joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407324
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407352
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407359
cmp ebx, dword [eax + 4]
jae 0x407359
xor eax, eax
jmp 0x407549
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40736a
xor eax, eax
inc eax
jmp 0x407548
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407380
cmp ecx, edx
jae 0x4074c5
cmp dword [eax + 4], 0
je 0x407389
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407371
cmp dword [ebp + 8], 0
je 0x4073ab
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4074c5
cmp eax, esi
jae 0x4074c5
mov eax, dword [0x40ba80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4073d0
cmp dword [esi*4 + 0x40ba88], edi
je 0x4074c9
inc esi
cmp esi, eax
jl 0x4073be
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x409074]
test eax, eax
je 0x407545
cmp dword [ebp - 8], 0x1000000
jne 0x407545
test byte [ebp - 0xc], 0xcc
je 0x40744e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407545
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407545
cmp word [eax + 0x18], 0x10b
jne 0x407545
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407545
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40744e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40744e
test byte [ecx + 0x27], 0x80
jne 0x4074c5
push 1
push 0x40bac8
call dword [0x409078]
test eax, eax
jne 0x407362
mov ecx, dword [0x40ba80]
test ecx, ecx
mov edx, ecx
jle 0x407482
lea eax, [ecx*4 + 0x40ba84]
cmp dword [eax], edi
je 0x407482
dec edx
sub eax, 4
test edx, edx
jg 0x407476
test edx, edx
jne 0x4074b3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40748f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4074a7
lea eax, [edx*4 + 0x40ba88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407495
cmp ecx, 0x10
jge 0x4074b3
inc ecx
mov dword [0x40ba80], ecx
push 0
push 0x40bac8
call dword [0x409078]
jmp 0x407362
xor eax, eax
jmp 0x407548
test esi, esi
jle 0x407362
mov ebx, dword [0x409078]
push 1
push 0x40bac8
call ebx
test eax, eax
jne 0x407362
cmp dword [esi*4 + 0x40ba88], edi
je 0x40751f
mov eax, dword [0x40ba80]
lea esi, [eax - 1]
test esi, esi
jl 0x40750d
cmp dword [esi*4 + 0x40ba88], edi
je 0x407509
dec esi
jns 0x4074fd
test esi, esi
jge 0x40751d
cmp eax, 0x10
jge 0x407518
inc eax
mov dword [0x40ba80], eax
lea esi, [eax - 1]
jmp 0x40751f
je 0x407537
xor ecx, ecx
test esi, esi
jl 0x407537
lea eax, [ecx*4 + 0x40ba88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407525
push 0
push 0x40bac8
call ebx
jmp 0x407362
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405cb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404268
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ce4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d21
lea eax, [ebp - 0x10]
call fcn.00403ff8
ret

Function at 0x40ae40
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 0x40ae79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040e8
jmp 0x40ae82
mov eax, ebx
mov edx, esi
call fcn.0040404c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae8c
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 0x40aead
mov al, byte [esp]
jmp 0x40aeaf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b534
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3ac
mov eax, dword [0x474a74]
cmp byte [eax], 0
je 0x40b5b0
mov eax, dword [0x474884]
call fcn.00402b50
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004086b4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b5f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474828]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475664]
call fcn.004051c8
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 0x40be4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404090
lea eax, [ebp - 8]
call fcn.00404508
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf0c
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40beef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40beef
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf0c
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf29
lea eax, [ebp - 8]
call fcn.00403ff8
ret

Function at 0x40c42c
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 0x40c490
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.00404268
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408184
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c497
lea eax, [ebp - 0xc]
call fcn.00403ff8
ret

Function at 0x41a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x475884
cmp dword [edi], 0
jne 0x41a64c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x475880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4733ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a5a8
lea eax, [esi + 5]
call fcn.0041a5c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a5c8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a621
mov dword [0x475880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bbe8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bbee
ret
Function at 0x41e178
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e1c9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e1b0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e1a0
jmp 0x41e1c9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e1b1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044a8
mov eax, dword [ebp - 8]
call fcn.004044a8
xor eax, eax
push ebp
push 0x4703fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
je 0x4703d4
mov eax, dword [ebp - 4]
call fcn.004042b8
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x4702be
mov eax, dword [ebp - 4]
call fcn.004042b8
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404558
mov edx, dword [ebp - 4]
mov eax, 0x470418
call fcn.004045fc
test eax, eax
jne 0x4702e4
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404090
lea eax, [ebp - 0x14]
call fcn.00403ff8
jmp 0x470326
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x470418
call fcn.004045fc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404518
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x470418
call fcn.004045fc
mov edx, eax
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00404518
mov eax, dword [ebp - 0x10]
call fcn.0047062c
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x14]
call fcn.004044b8
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4703d4
cmp dword [ebp - 8], 0
jne 0x47035c
xor ebx, ebx
jmp 0x470366
mov eax, dword [ebp - 8]
call fcn.004044b8
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4703cb
mov eax, dword [ebp - 0x20]
call fcn.004026bc
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4703c4
cmp esi, dword [ebp - 0x18]
jne 0x4703bb
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov byte [ebp - 9], 1
jmp 0x4703cb
mov eax, edi
call fcn.004026dc
jmp 0x4703cb
mov eax, edi
call fcn.004026dc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470403
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040401c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040401c
ret
Function at 0x1014a8f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10022bc
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1014ae7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001765
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1014ada
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1014ae9
xor eax, eax
pop esi
leave
ret 4

Function at 0x410210
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x410fec
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [0x4500ec]
mov dword [0x4408cc], eax
mov al, ah
and eax, 0xff
mov dword [0x4408d8], eax
mov eax, dword [0x4408cc]
shr dword [0x4408cc], 0x10
and eax, 0xff
mov dword [0x4408d4], eax
shl eax, 8
add eax, dword [0x4408d8]
mov dword [0x4408d0], eax
call fcn.00410f41
call fcn.00410e7d
test eax, eax
jne 0x410289
push 0x10
call fcn.00410389
add esp, 4
mov dword [ebp - 4], 0
call fcn.00410d8b
call fcn.00410d80
call dword [0x450120]
mov dword [0x42146c], eax
call fcn.0041089d
call dword [0x4500f8]
mov dword [0x4408ac], eax
call fcn.004107d2
call fcn.00410449
mov esi, dword [0x42146c]
mov al, byte [esi]
cmp al, 0x22
je 0x4102d7
cmp al, 0x20
jbe 0x410303
inc esi
cmp byte [esi], 0x20
ja 0x4102cf
jmp 0x410303
inc esi
cmp byte [esi], 0x22
je 0x410302
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4102fd
movzx eax, bl
push eax
call fcn.0041078f
add esp, 4
test eax, eax
je 0x4102f7
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4102e0
cmp byte [esi], 0x22
jne 0x410303
inc esi
cmp byte [esi], 0
je 0x410313
cmp byte [esi], 0x20
ja 0x410313
inc esi
cmp byte [esi], 0
jne 0x410308
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x4500f4]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x410333
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [0x4500f0]
push eax
call main
push eax
call fcn.00410479
jmp 0x41036f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030a8
xor eax, eax
push ebp
push 0x4030a1
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 0x4030e4
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 0x4030a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x487020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x489048], 0
je 0x403ded
cmp word [0x48921c], 0xd7b2
jne 0x403db5
cmp dword [0x489224], 0
jbe 0x403db5
mov eax, 0x489218
call dword [fcn.00489234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48706c
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 0x403e14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487030], 0
jne 0x403e09
push 0
push 0x487064
push 0x48706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405af6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404178
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ae0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405afd
lea eax, [ebp - 0x10]
call fcn.00403f08
ret

Function at 0x40ae24
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 0x40ae5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ff8
jmp 0x40ae66
mov eax, ebx
mov edx, esi
call fcn.00403f5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae70
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 0x40ae91
mov al, byte [esp]
jmp 0x40ae93
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b518
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b390
mov eax, dword [0x488bc4]
cmp byte [eax], 0
je 0x40b594
mov eax, dword [0x4889ac]
call fcn.004029cc
call fcn.0040284c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004085b0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b5dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5ca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x488954]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x489664]
call fcn.00404fa4
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 0x40be30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fa0
lea eax, [ebp - 8]
call fcn.00404418
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bef0
mov eax, ebx
call fcn.004026e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bee9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bed3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf18
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bed3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bef0
mov eax, dword [ebp - 0x10]
call fcn.00402704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf0d
lea eax, [ebp - 8]
call fcn.00403f08
ret

Function at 0x40c410
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 0x40c474
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.00404178
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c47b
lea eax, [ebp - 0xc]
call fcn.00403f08
ret

Function at 0x41b22c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x489884
cmp dword [edi], 0
jne 0x41b2a8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x489880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4873ec
mov ecx, 2
call fcn.004028e0
mov edx, 0x41b204
lea eax, [esi + 5]
call fcn.0041b224
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b224
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b27d
mov dword [0x489880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c78c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c792
ret
Function at 0x41ed54
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41eda5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ed8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ed7c
jmp 0x41eda5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41ed8d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cf88
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x489b14], 0
jne 0x43cfab
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43cefc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x489b14], eax
ret

Function at 0x447710
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x44765c
call sub.user32.dll_EnumWindows
ret

Function at 0x447830
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4478ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00447290
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x447855
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00446e90
cmp dword [ebp - 4], 0
je 0x447897
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004043c8
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4478b4
lea eax, [ebp - 4]
call fcn.00403f08
ret