joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1f4e1746
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x39616f79
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40ade0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40adfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ae01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40adf0
mov eax, 1
add ebx, ebx
jne 0x40ae13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ae08
jne 0x40ae24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ae08
xor ecx, ecx
sub eax, 3
jb 0x40ae38
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40aeaa
mov ebp, eax
add ebx, ebx
jne 0x40ae43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ae50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ae74
inc ecx
add ebx, ebx
jne 0x40ae60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ae55
jne 0x40ae71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ae55
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ae94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ae85
jmp 0x40adf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ae94
add edi, ecx
jmp 0x40adf6
pop esi
mov edi, esi
mov ecx, 0x34
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40aeb2
cmp byte [edi], 2
jne 0x40aeb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40aeb7
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40af2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb318]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40aee4
mov ecx, edi
jns 0x40af13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb370]
or eax, eax
je 0x40af29
mov dword [ebx], eax
add ebx, 4
jmp 0x40af01
call dword [esi + 0xb36c]
mov ebp, dword [esi + 0xb374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40af63
sub esp, 0xffffff80
jmp 0x401584
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b653
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub esi, esi
dec eax
call fcn.0043b684
add esi, 0x42801d6b
or eax, esi
xor dword [edi], edx
sub esi, eax
inc edi
add esi, eax
add esi, esi
invalid
Function at 0x5d8ad4
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
mov eax, 0xd1922a67
sub esi, esi
inc esi
call fcn.005d8b21
and esi, esi
add eax, 0xc7bd12da
or esi, esi
xor dword [ecx], ebx
and esi, eax
sub esi, 0x96e8fd76
inc esi
add ecx, 2
mov eax, 0x8af4eb2c
add eax, 0x61191aee
sub eax, 1
cmp ecx, edx
jl fcn.005d8ad4
and esi, eax
and esi, esi
add esi, esi
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40e05a]
shl eax, 2
mov dword [0x40e05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x411898
mov ecx, 0x411c7c
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40e06e], edx
mov eax, dword [edx - 8]
mov dword [0x40e066], eax
mov eax, dword [edx - 4]
mov dword [0x40e06a], eax
sub edx, 4
mov dword [0x4118a8], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.0040794a
pop ecx
push 0x40e02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40e062], eax
push 0
jmp fcn.0040ce20
Function at 0x4091b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4091d7
mov eax, dword [0x40f98c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4091e4
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x409211
je 0x409223
sub ecx, 0x100
je 0x409231
sub ecx, 0x100
je 0x409238
sub ecx, 0x100
je 0x40922a
jmp 0x40923f
sub ecx, 0x600
je 0x409238
sub ecx, 0x100
je 0x409223
jmp 0x40923f
mov edi, 1
jmp 0x409244
mov edi, 2
jmp 0x409244
mov edi, 4
jmp 0x409244
mov edi, 5
jmp 0x409244
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40926b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40fe7c]
test al, 0x80
je 0x409264
mov ebx, 0x80
jmp 0x40927d
mov ebx, 1
jmp 0x40927d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40927d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40928f
je 0x409298
dec eax
je 0x4092a1
jmp 0x4092aa
mov dword [ebp - 4], 0x80000000
jmp 0x4092b9
mov dword [ebp - 4], 0x40000000
jmp 0x4092b9
mov dword [ebp - 4], 0xc0000000
jmp 0x4092b9
push 1
call fcn.00408f6c
pop ecx
mov ebx, eax
jmp 0x4093a5
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4092d5
sub eax, 0x10
je 0x4092dc
sub eax, 0x10
je 0x4092e5
sub eax, 0x10
je 0x4092ee
jmp 0x4092ee
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4092f5
mov dword [ebp - 8], 1
jmp 0x4092f5
mov dword [ebp - 8], 2
jmp 0x4092f5
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40935e
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x409353
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x409353
add ebx, 0xffffffb2
push ebx
call fcn.00408f6c
pop ecx
mov ebx, eax
jmp 0x4093a5
mov edi, esi
push edi
call fcn.00409128
pop ecx
test eax, eax
je 0x409372
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40937e
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00408cc8
add esp, 8
mov ebx, eax
inc eax
jne 0x4093a5
push 4
call fcn.00408f6c
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c2dc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x40c7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x4105d0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40c8a8
cmp byte [0x40e059], 0
je 0x40c862
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0040554c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c84b
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0040554c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c84b
lea ebx, [ebp - 0x54]
jmp 0x40c84c
inc ebx
call fcn.0040c7a8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x40c8c9
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4105d4
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004054ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4105d7
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x40c8c9
cmp dword [0x4105d0], 0xffffffff
je 0x40c8c9
mov eax, dword [0x4105d0]
test eax, eax
je 0x40c8c9
cmp byte [eax], 0
je 0x40c8c9
push esi
push eax
call fcn.0040c958
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edi
lea edi, [esi + 0x1000]
mov dword [ebp + 8], 0x10
xor eax, dword [edi]
push eax
push esi
mov dword [ebp - 4], eax
call fcn.100289ed
pop ecx
xor eax, ebx
mov ebx, dword [ebp - 4]
add edi, 4
dec dword [ebp + 8]
pop ecx
jne 0x100289b1
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [esi + 0x1040]
pop edi
xor eax, ecx
mov ecx, dword [esi + 0x1044]
xor ecx, ebx
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop ebx
mov dword [ecx], eax
leave
ret

Function at 0x10028b63
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edi
lea edi, [esi + 0x1044]
mov dword [ebp + 8], 0x10
xor eax, dword [edi]
push eax
push esi
mov dword [ebp - 4], eax
call fcn.100289ed
pop ecx
xor eax, ebx
mov ebx, dword [ebp - 4]
sub edi, 4
dec dword [ebp + 8]
pop ecx
jne 0x10028b84
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [esi + 0x1004]
pop edi
xor eax, ecx
mov ecx, dword [esi + 0x1000]
xor ecx, ebx
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop ebx
mov dword [ecx], eax
leave
ret
Function at 0x10028ec1
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 8]
push edi
shl esi, 0x18
shr eax, 8
or esi, eax
mov edi, esi
mov eax, esi
shl edi, 0x18
shr eax, 8
or edi, eax
mov dword [ebp - 4], esi
mov eax, edi
mov ecx, edi
shl eax, 0x18
shr ecx, 8
or eax, ecx
mov ecx, dword [ebp + 0x10]
shr ecx, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
and ecx, 0x3ffffffe
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x10], edi
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xc], ecx
je 0x10028f8c
cmp eax, ecx
jae 0x10028ffa
jmp 0x10028f20
mov esi, dword [ebp - 4]
mov ecx, dword [eax]
and dword [ebp + 0x14], 0
lea edx, [eax + 4]
mov dword [ebp + 0x10], 0x20
mov dword [ebp + 0xc], edx
mov edx, dword [edx]
jmp 0x10028f3a
mov esi, dword [ebp - 4]
mov edi, edx
sub dword [ebp + 0x14], 0x61c88647
shr edi, 5
add edi, esi
mov esi, edx
shl esi, 4
add esi, dword [ebp + 8]
xor edi, esi
mov esi, dword [ebp + 0x14]
add esi, edx
xor edi, esi
add ecx, edi
mov esi, ecx
mov edi, ecx
shr esi, 5
add esi, dword [ebp - 8]
shl edi, 4
add edi, dword [ebp - 0x10]
xor esi, edi
mov edi, dword [ebp + 0x14]
add edi, ecx
xor esi, edi
add edx, esi
dec dword [ebp + 0x10]
jne 0x10028f37
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
add eax, 4
cmp eax, dword [ebp - 0xc]
jb 0x10028f1d
jmp 0x10028ffa
cmp eax, ecx
jae 0x10028ffa
push ebx
mov edx, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], 0xc6ef3720
mov ecx, dword [ecx]
mov dword [ebp + 0x10], 0x20
mov esi, edx
mov ebx, edx
shr esi, 5
add esi, dword [ebp - 8]
shl ebx, 4
add ebx, edi
xor esi, ebx
mov ebx, dword [ebp + 0x14]
add ebx, edx
xor esi, ebx
sub ecx, esi
mov esi, ecx
mov ebx, ecx
shr esi, 5
add esi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp + 8]
xor esi, ebx
mov ebx, dword [ebp + 0x14]
add dword [ebp + 0x14], 0x61c88647
add ebx, ecx
xor esi, ebx
sub edx, esi
dec dword [ebp + 0x10]
jne 0x10028fa9
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
add eax, 4
cmp eax, dword [ebp - 0xc]
jb 0x10028f91
pop ebx
pop edi
pop esi
leave
ret

Function at 0x10029bd7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add ebx, edi
add ecx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], ecx
jbe 0x10029c30
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.1002f790
pop ecx
test eax, eax
pop ecx
je 0x10029c37
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x10029c0b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x10029c32
Function at 0x1002a0de
Capabilities:
Check for time delay via gettickcount
Create thread
Hide graphical window
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov ecx, dword [ebp + 8]
mov al, byte [ebp + 0x14]
cmp byte [ebp + 0x18], 0
push ebx
mov bl, byte [ebp + 0x10]
mov dword [0x1003bad8], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov byte [0x1003baec], al
mov byte [0x1003baed], bl
mov dword [0x1003bad4], ecx
je 0x1002a165
test al, al
jne 0x1002a165
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [0x1003baf9], 1
call edi
mov esi, eax
xor eax, eax
push 0x1003baf0
push eax
push eax
push 0x1002a489
push eax
push eax
add esi, 0xfa
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [0x1003baf9], 0
je 0x1002a15d
call edi
cmp eax, esi
jae 0x1002a15d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002a144
push 1
pop eax
jmp 0x1002a2db
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [0x1003baf8], 0
mov dword [0x1003baf0], eax
jne 0x1002a1de
mov eax, dword [0x1003b780]
xor esi, esi
mov dword [ebp - 0x18], eax
mov al, byte [0x1003baec]
neg al
sbb eax, eax
mov dword [ebp - 0x28], esi
and al, 0xfe
mov dword [ebp - 0x24], 0x1002a2e0
add eax, 0x7f02
mov dword [ebp - 0x20], esi
push eax
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x100384b4
jne 0x1002a1cb
mov dword [ebp - 4], 0x1003849c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov byte [0x1003baf8], 1
jmp 0x1002a1e0
xor esi, esi
cmp byte [ebp + 0x14], 0
je 0x1002a1f8
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
inc edi
cmp edi, 0x100
jl 0x1002a1e8
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
sub eax, dword [0x1003bad8]
push 1
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call esi
mov ecx, dword [0x1003bad4]
sub eax, ecx
cdq
sub eax, edx
mov edx, 0x100384b4
sar eax, 1
cmp byte [ebp + 0x14], 0
jne 0x1002a22f
mov edx, 0x1003849c
xor esi, esi
push esi
push dword [0x1003b780]
push esi
push esi
push ecx
push dword [0x1003bad8]
push eax
mov al, byte [0x1003baec]
neg al
sbb eax, eax
push edi
and eax, 0xf8000000
add eax, 0x8000000
or eax, 0x80000000
neg bl
sbb ebx, ebx
push eax
and ebx, 0xffffff88
push esi
add ebx, 0x80
push edx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 4
push eax
mov dword [0x1003bae0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1003bae0]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [ebp + 0x14], 0
je 0x1002a2a3
push esi
push 0x64
push 2
push dword [0x1003bae0]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [0x1003bae0]
lea eax, [ebp - 0x128]
push 0x10038448
push eax
call fcn.1002b19b
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x1003848c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
and byte [0x1003baf9], 0
mov eax, dword [0x1003bae0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002cbac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100385e8
cmp edx, dword [eax]
je 0x1002cbce
add eax, 8
inc ecx
cmp eax, 0x10038678
jl 0x1002cbbf
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100385e8]
jne 0x1002ccfc
mov eax, dword [0x1003bce4]
cmp eax, 1
je 0x1002ccd6
test eax, eax
jne 0x1002cbff
cmp dword [0x1003bce8], 1
je 0x1002ccd6
cmp edx, 0xfc
je 0x1002ccfc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002cc36
lea eax, [ebp - 0x1a4]
push 0x1003b544
push eax
call fcn.1002ad30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1002ae20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1002cc79
lea eax, [ebp - 0x1a4]
push eax
call fcn.1002ae20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1003b540
push edi
call fcn.1002ea60
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x1003b524
push eax
call fcn.1002ad30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1002ad40
lea eax, [ebp - 0xa0]
push 0x1003b520
push eax
call fcn.1002ad40
push dword [esi + 0x100385ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.1002ad40
push 0x12010
lea eax, [ebp - 0xa0]
push 0x1003b4f8
push eax
call fcn.1002e9c8
add esp, 0x2c
pop edi
jmp 0x1002ccfc
lea eax, [ebp + 8]
lea esi, [esi + 0x100385ec]
push 0
push eax
push dword [esi]
call fcn.1002ae20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x496a06
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00496bb6
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x496b04
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x496aa7
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x496aea
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x496abe
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x496ad9
test al, 0x40
je 0x496ad0
mov ecx, dword [edi + 0x20]
jmp 0x496ad7
test al, 0x80
je 0x496aea
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x496aea
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x496a76
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x698571c6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..rsrc
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1ba47d8a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219