joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4310e1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4551b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00431076
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00433170
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x431130
cmp dword [ebp - 0x1c], 5
jb 0x431148
jmp 0x431144
cmp dword [ebp - 0x10], 1
jne 0x431148
cmp dword [ebp - 0x1c], 4
ja 0x431144
jne 0x431148
cmp dword [ebp - 0x18], 0
jbe 0x431148
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4495a4
call fcn.0041e4e0
test eax, eax
jge 0x431169
mov byte [0x4579e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431b07
add ebp, 0x78
leave
ret

Function at 0x43131b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x456ee8], 0
push esi
jne 0x43128e
call fcn.004311b9
test eax, eax
je 0x4312d1
mov eax, dword [0x456ee8]
cmp eax, 1
jne 0x4312af
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4312d1
pop esi
ret
push eax
call dword [0x456ef0]
test eax, eax
jne 0x431319
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4312d5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x456ee8]
call dword [0x456ef0]
mov edi, eax
test edi, edi
je 0x4312fc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x431318
lea edi, [esi + 0xff0]
push esi
push dword [0x456ee8]
call dword [0x456eec]
add esi, 0x10
cmp esi, edi
jb 0x431302
mov eax, esi
pop edi
pop esi
ret
jmp 0x43127b

Function at 0x431b07
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4551b0]
jne 0x431b11
repz ret
jmp fcn.00435fd3
Function at 0x43896b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x455380]
je 0x438986
inc edi
cmp edi, 0x17
jb 0x438977
cmp edi, 0x17
jae 0x438b06
push ebp
push 3
call fcn.0043e1e7
cmp eax, 1
pop ecx
je 0x438ad2
push 3
call fcn.0043e1e7
test eax, eax
pop ecx
jne 0x4389ba
cmp dword [0x455030], 1
je 0x438ad2
cmp ebx, 0xfc
je 0x438b05
push 0x449c70
mov ebx, 0x314
push ebx
mov ebp, 0x457428
push ebp
call fcn.00434622
add esp, 0xc
test eax, eax
je 0x4389f0
push esi
push esi
push esi
push esi
push esi
call fcn.00431b20
add esp, 0x14
push 0x104
mov esi, 0x457441
push esi
push 0
mov byte [0x457545], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438a34
push 0x449c58
push 0x2fb
push esi
call fcn.00434622
add esp, 0xc
test eax, eax
je 0x438a34
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431b20
add esp, 0x14
push esi
call fcn.00433300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438a79
push esi
call fcn.00433300
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45773c
push 0x449c54
sub ecx, eax
push ecx
push eax
call fcn.00439575
add esp, 0x14
test eax, eax
je 0x438a79
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431b20
add esp, 0x14
jmp 0x438a7b
xor esi, esi
push 0x449c50
push ebx
push ebp
call fcn.0043e176
add esp, 0xc
test eax, eax
je 0x438a9b
push esi
push esi
push esi
push esi
push esi
call fcn.00431b20
add esp, 0x14
push dword [edi*8 + 0x455384]
push ebx
push ebp
call fcn.0043e176
add esp, 0xc
test eax, eax
je 0x438abd
push esi
push esi
push esi
push esi
push esi
call fcn.00431b20
add esp, 0x14
push 0x12010
push 0x449c28
push ebp
call fcn.0043dfb9
add esp, 0xc
jmp 0x438b05
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438b05
cmp ebp, 0xffffffff
je 0x438b05
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x455384]
push dword [esi]
call fcn.00433300
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43dfb9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004361b9
xor ebx, ebx
cmp dword [0x4579b4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43e08f
push 0x44a5e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43e16f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44a5dc
push edi
call esi
cmp eax, ebx
je 0x43e16f
push eax
call fcn.0043614b
mov dword [esp], 0x44a5cc
push edi
mov dword [0x4579b4], eax
call esi
push eax
call fcn.0043614b
mov dword [esp], 0x44a5b8
push edi
mov dword [0x4579b8], eax
call esi
push eax
call fcn.0043614b
mov dword [0x4579bc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00436904
test eax, eax
pop ecx
pop ecx
je 0x43e05d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431b20
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43e08f
push 0x44a59c
push edi
call esi
push eax
call fcn.0043614b
cmp eax, ebx
pop ecx
mov dword [0x4579c4], eax
je 0x43e08f
push 0x44a584
push edi
call esi
push eax
call fcn.0043614b
pop ecx
mov dword [0x4579c0], eax
mov eax, dword [0x4579c0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43e114
cmp dword [0x4579c4], ecx
je 0x43e114
push eax
call fcn.004361c2
push dword [0x4579c4]
mov esi, eax
call fcn.004361c2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43e114
cmp edi, ebx
je 0x43e114
call esi
cmp eax, ebx
je 0x43e0e1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43e0e1
test byte [ebp - 0x18], 1
jne 0x43e114
lea eax, [ebp - 0x10]
push eax
call fcn.0043693b
test eax, eax
pop ecx
je 0x43e0fc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431b20
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43e10b
or dword [ebp + 0x10], 0x200000
jmp 0x43e14f
or dword [ebp + 0x10], 0x40000
jmp 0x43e14f
mov eax, dword [0x4579b8]
cmp eax, dword [ebp - 8]
je 0x43e14f
push eax
call fcn.004361c2
cmp eax, ebx
pop ecx
je 0x43e14f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43e14f
mov eax, dword [0x4579bc]
cmp eax, dword [ebp - 8]
je 0x43e14f
push eax
call fcn.004361c2
cmp eax, ebx
pop ecx
je 0x43e14f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4579b4]
call fcn.004361c2
cmp eax, ebx
pop ecx
je 0x43e16f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43e171
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403701
Capabilities:
Terminate process

Disassembly:
jmp 0x45aaa3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aab4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405b4b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403832
Capabilities:
Query environment variable

Disassembly:
jmp 0x497afd
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x497b0e
pop esi
ret
push ebx
push edi
push esi
call fcn.004979e4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040412e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x497b36
push ebx
push esi
push edi
call fcn.00405925
add esp, 0xc
push 0
call fcn.00406514
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4059f7
Capabilities:
Parse pe header

Disassembly:
jmp 0x41cbb8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cbf7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cbf7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cbf7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cbf7
cmp dword [ecx + 0x74], 0xe
jbe 0x41cbf7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x495cd2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51b0d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x495d1d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00496194
test al, al
jne 0x495d17
sub edx, 2
cmp edx, edi
jne 0x495cfd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x495d3f
lea eax, [edi + 2]
cmp edx, eax
je 0x495d3f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004958cb
add esp, 0x10
jmp 0x495e39
push esi
lea ecx, [ebp - 0x255]
call fcn.00496194
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x495d82
push dword [ebp - 0x25c]
jmp 0x495d2f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x495dbf
cmp word [ebp - 0x226], 0
je 0x495de0
cmp word [ebp - 0x226], ax
jne 0x495dbf
cmp word [ebp - 0x224], 0
je 0x495de0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004958cb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x495e2c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x495d99
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x495e14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x495e39
push 0x4952b3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405754
add esp, 0x10
jmp 0x495e09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a18e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ded
mov eax, dword [0x51b0d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004060f0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a192a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1a86
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406258
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x51ed30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403355
mov ecx, dword [esi*4 + 0x51ed30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1a7f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1a7f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1a7f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403355
add esp, 0x14
test edx, edx
jl 0x4a1a7f
jg 0x4a19f5
test eax, eax
jb 0x4a1a7f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1a7f
jl 0x4a1a0f
cmp dword [ebp - 0x1008], eax
ja 0x4a1a7f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1a2d
test ebx, ebx
je 0x4a1a66
cmp ecx, edi
jae 0x4a1a66
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1a47
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1a53
cmp byte [ecx + 1], 0xa
jne 0x4a1a53
inc ecx
jmp 0x4a1a53
movzx eax, al
movsx eax, byte [eax + 0x51ba10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1a2d
cmp edx, ebx
jne 0x4a1a2d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1a84
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a21c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51ed30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a2205
cmp byte [ebx], 0xa
jne 0x4a2205
or byte [eax + edi + 0x28], 4
jmp 0x4a220a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a2308
mov al, byte [edx]
cmp al, 0x1a
je 0x4a22ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2239
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a225e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2268
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a221b
jmp 0x4a2308
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a22e5
cmp dword [ebp - 0xc], 0
je 0x4a22e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51ed30]
test byte [eax + edi + 0x28], 0x48
je 0x4a22bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a22aa
mov byte [esi], dl
jmp 0x4a22bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51ed30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2308
cmp byte [ebp - 1], 0xa
jne 0x4a22ce
cmp esi, ebx
jne 0x4a22ce
mov byte [esi], 0xa
jmp 0x4a2307
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2308
mov byte [esi], 0xd
jmp 0x4a2307
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51ed30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2304
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2308
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2364
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x51ed30]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a23a7
cmp word [esi], dx
jne 0x4a23a7
or byte [edi + eax + 0x28], 4
jmp 0x4a23ac
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a24ff
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a24df
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a23ee
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2424
cmp eax, edx
jae 0x4a2430
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a23c6
jmp 0x4a24ff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a24db
cmp dword [ebp - 0x14], 0
je 0x4a24db
mov eax, dword [ebx*4 + 0x51ed30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a24b3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a247c
mov word [esi], cx
jmp 0x4a24af
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51ed30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51ed30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51ed30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a24ff
pop ebx
cmp word [ebp - 4], bx
jne 0x4a24c4
cmp esi, dword [ebp + 0xc]
jne 0x4a24c4
mov word [esi], bx
jmp 0x4a24fc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a24ff
push 0xd
jmp 0x4a24f8
mov ecx, dword [ebx*4 + 0x51ed30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a24f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a24ff
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402a70
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404564
test esi, esi
jne 0x402aa6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404654
jmp 0x402ac4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402924
mov edi, eax
test esi, esi
je 0x402ac4
cmp dword [ebx], 0
je 0x402ac4
dec esi
jmp 0x402aad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40367c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40365c
xor eax, eax
push ebp
push 0x403655
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403698
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40365c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404364
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x477048], 0
je 0x4043c5
cmp word [0x47721c], 0xd7b2
jne 0x40438d
cmp dword [0x477224], 0
jbe 0x40438d
mov eax, 0x477218
call dword [0x477234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x475054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47501c], 0
jne 0x4043e1
push 0
push 0x475074
push 0x475054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404518
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x477049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40b720
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b759
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404654
jmp 0x40b762
mov eax, ebx
mov edx, esi
call fcn.004045b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b76c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b78d
mov al, byte [esp]
jmp 0x40b78f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40be14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc8c
mov eax, dword [0x4761d8]
cmp byte [eax], 0
je 0x40be7c
mov eax, dword [0x475fec]
call fcn.00402e7c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408dd4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bec4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40beb2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475fa4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x477714]
call fcn.00405cd0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40cca0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cd04
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a54
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd0b
lea eax, [ebp - 0xc]
call fcn.00404564
ret

Function at 0x41deb0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041dd24
dec esi
jne 0x41ded2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret