joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
neg eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov eax, esi
shr eax, 0x1f
test al, al
jne 0x4010ad
push 0
push 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor esi, esi
mov ecx, esi
shr ecx, 0x1f
test cl, cl
je 0x4010d5
push str.Couldnt_find_the_application_directory._n
call fcn.00401490
add esp, 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040299f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
mov esi, eax
add esp, 8
test esi, esi
je 0x40114f
mov ecx, esi
lea eax, [ebp - 0x108]
sub ecx, eax
cmp ecx, 0xfb
ja 0x40114f
mov eax, dword [str.xul.dll]
mov dword [esi + 1], eax
mov eax, dword [0x40450c]
push 0x104
mov dword [esi + 5], eax
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401164
push str.Could_not_find_the_Mozilla_runtime._n
call fcn.00401490
add esp, 4
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040299f
mov esp, ebp
pop ebp
ret
push edi
call fcn.004021d0
lea eax, [ebp - 0x108]
push eax
call fcn.00402270
mov edi, eax
add esp, 4
mov ecx, edi
shr ecx, 0x1f
test cl, cl
je 0x4011a4
push str.Couldnt_load_XPCOM._n
call fcn.00401490
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040299f
mov esp, ebp
pop ebp
ret
push 0x404190
call fcn.004021e0
mov edi, eax
add esp, 4
mov ecx, edi
shr ecx, 0x1f
test cl, cl
je 0x4011dc
push str.Couldnt_load_XRE_functions._n
call fcn.00401490
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040299f
mov esp, ebp
pop ebp
ret
call fcn.00402130
test ebx, ebx
je 0x40124c
lea eax, [ebp - 0x31c]
mov byte [esi], 0
push eax
call fcn.00402190
push 2
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004020d0
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x328]
push 1
push eax
call fcn.004020f0
lea eax, [ebp - 0x328]
push eax
call fcn.004020b0
push ebx
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00402150
mov edi, eax
lea eax, [ebp - 0x31c]
push eax
call fcn.00402170
add esp, 0x34
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040299f
mov esp, ebp
pop ebp
ret
Function at 0x4012b0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push ebx
push esi
push edi
push 1
push eax
call dword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
add esp, 8
call dword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_void_]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp edi, 1
jle 0x401430
mov ecx, dword [esi + 4]
mov edx, ecx
mov al, byte [ecx]
cmp al, 0x2d
jne 0x4012f6
xor eax, eax
cmp byte [ecx + 1], 0x2d
sete al
inc edx
add eax, edx
jmp 0x401301
cmp al, 0x2f
jne 0x401430
lea eax, [ecx + 1]
push str.contentproc
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
sete al
test al, al
je 0x401430
push 0
push dword [esi]
call fcn.00401040
shr eax, 0x1f
add esp, 8
test al, al
je 0x40133c
mov eax, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + edi*4 - 4]
lea ebx, [edi - 1]
mov dword [ebp - 8], ebx
call dword [0x4060b4]
add esp, 4
call dword [0x4060bc]
cmp eax, 1
je 0x40140e
push 0
push 0
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x401403
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402991
add esp, 4
mov ebx, eax
push edi
push ebx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [edi - 1]
cmp ecx, eax
jne 0x4013f7
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4013f7
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402991
add esp, 4
mov edi, eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4013ee
push edi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call fcn.0040299a
add esp, 4
push ebx
call fcn.0040299a
mov ebx, dword [ebp - 8]
add esp, 4
push 0x4043b4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea eax, [ebp + 0xb]
push eax
push esi
push ebx
call dword [0x4060b8]
add esp, 0xc
mov esi, eax
shr esi, 0x1f
call fcn.00402140
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call fcn.00401040
shr eax, 0x1f
add esp, 8
test al, al
jne 0x401330
movups xmm0, xmmword [ebp - 0x24]
sub esp, 0x18
mov eax, esp
push 1
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x14]
movq qword [eax + 0x10], xmm0
call dword [0x406094]
call dword [0x40609c]
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push esi
push edi
call fcn.00401540
add esp, 0x2c
mov esi, eax
call fcn.00402140
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov edx, 4
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402991
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x401c35
mov dword [ebp - 4], 0
test edi, edi
jle 0x401c44
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
mov esi, dword [eax + ecx]
mov ebx, esi
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401bd0
sub ebx, ecx
sar ebx, 1
lea eax, [ebx*2 + 1]
add eax, ebx
push eax
call fcn.00402991
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401c2c
push ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.004019f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
add ecx, 4
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x401c41
mov eax, dword [ebp + 0xc]
jmp 0x401bc1
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, 0x7f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebx + edi*4], 0
lea eax, [edi + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402991
mov esi, eax
add esp, 4
test esi, esi
jne 0x401c97
test edi, edi
je 0x401c82
push dword [ebx + edi*4 - 4]
dec edi
call fcn.0040299a
add esp, 4
test edi, edi
jne 0x401c71
push ebx
call fcn.0040299a
mov eax, 0x7f
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x401cb5
mov dword [ebp + 8], ebx
mov ecx, esi
sub ebx, esi
mov edx, edi
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x401ca4
mov ebx, dword [ebp - 8]
push 0x4043a0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
push dword [eax]
push ebx
push edi
call fcn.004012b0
push ebx
mov dword [ebp + 8], eax
call fcn.0040299a
add esp, 0x14
test edi, edi
je 0x401cf1
nop
push dword [esi + edi*4 - 4]
dec edi
call fcn.0040299a
add esp, 4
test edi, edi
jne 0x401ce0
push esi
call fcn.0040299a
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.004029b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10014]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xorps xmm0, xmm0
push 1
push eax
movlpd qword [ebp - 0x1000c], xmm0
push dword [ebp - 0x10008]
push dword [ebp - 0x1000c]
push ebx
call esi
test eax, eax
je 0x4026ae
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40264e
push 0
push 0
push 0
push eax
push ebx
call esi
test eax, eax
je 0x4026ae
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x402696
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10008]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402696
cmp dword [ebp - 0x10008], 0x10000
jne 0x402696
add esi, 0x10000
cmp esi, edi
jb 0x402660
push 0
push 0
push dword [ebp - 0x10010]
push dword [ebp - 0x10014]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040299f
mov esp, ebp
pop ebp
ret

Function at 0x420cd0
Capabilities:
Encode data using xor

Disassembly:
lea eax, [ebp + ecx*4 + 0x75]
push 8
xor ecx, 0xffffffe6
push esp
call edi
call dword [esp + 0x50]
mov eax, 0xf12cb721
dec byte [esp]
mov ah, 0xc2
jne 0x420b93
pop eax
lea edx, [ecx + 0x68]
push 1
inc edx
call fcn.00420d97
mov dword [esi + 0x14], 0xc
mov edx, 0x9b920637
pop dword [esi + 0x1c]
xchg edi, ecx
lea eax, [ebp - 0x36]
dec edx
push eax
dec edi
mov dword [esi + 0x18], esi
sub byte [esi + 2], 0xfc
jmp 0x420be1
mov cl, 0x17
push 4
push 3
lea esi, [esi + 0x14]
push esi
adc ch, ch
inc edi
mov dh, 0x9e
add dword [ebp - 0x78], ebp
call dword [0xfffffe70]
sub dword [ebp - 0x78], ebp
ret
push 0xf9a69e19
call fcn.00420e2e
mov dword [ebp - 0x190], esi
push 0x642eb1dd
call fcn.00420e2e
lea eax, [esp + 0x28]
or cl, 0xa9
mov edi, 0xa775f32c
mov dword [esp + 0x4c], esi
xchg esi, eax
push 0x20
dec eax
mov edi, dword [esp + 0x4c]
jmp 0x420b8f
Function at 0x4c4368
Capabilities:
Encode data using xor

Disassembly:
invalid
pop es
insd dword es:[edi], dx
sub ch, byte [ebx + 0xa]
sbb ch, ah
adc eax, dword [ebx + 0x3cdac28c]
rsqrtps xmm7, xmmword [eax - 0x122c7943]
push edx
mov eax, 0xedd386bd
loop 0x4c4302
cmp ebx, edx
fnstcw word [ebx]
jl 0x4c43e1
je 0x4c43e8
ja 0x4c4376
pop ebx
mov al, 6
jb 0x4c43db
jb 0x4c440d
das
cwde
lahf
or eax, 0xa697b7a6
pop esp
jmp 0xf10c30d6
scasb al, byte es:[edi]
wait
int 0x2b
das
mov dh, 0x59
pop ecx
insd dword es:[edi], dx
dec esi
cmp al, 0x5d
sub ch, byte [edx]
jbe 0x4c4459
xor al, 6
movaps xmm6, xmm5
out 0x13, eax
out dx, al
add dl, byte [ecx - 0x555c5c28]
cmp al, 0x77
xchg esp, ebp
fdiv dword [edi - 0x5069a349]
int1
aas
popal
push cs
movsb byte es:[edi], byte [esi]
invalid
fidiv word [edi + 0x3e]
inc ebp
out dx, al
fsub st(4), st(0)
invalid
fimul dword [edi - 0x22]
push edi
fistp qword [eax - 0xc11e235]
ficom word [edi - 0x21]
mov eax, 0xf3ee1dcb
mov ch, 0x7c
or ah, byte [edx]
aam 0x46
or dword [esi + esi*2 + 0x60], esp
xor ebx, dword [ecx]
mov dh, 0x55
scasd eax, dword es:[edi]
popfd
aas
sar byte [ebx - 0x48], 0x9f
je 0x4c445b
adc byte [ecx + edi*4 - 0x1431ba88], 0xca
inc edi
cmc
stc
rsqrtps xmm3, xmmword [ebx + 0x1cb71ca6]
mov dl, byte [esp]
sbb dl, byte [ebx + 0x5f]
sbb byte [esi + 0x54159eef], dh
les ebp, [ecx - 0x51]
fcmovnb st(0), st(7)
xlatb
out 0x90, eax
jp 0x4c44ab
push 0x46
invalid
outsb dx, byte [esi]
jge 0x4c4515
fcmovnb st(0), st(7)
aad 0xd9
setbe byte [esi + 0x7df9309b]
sar byte [esi + 0x70], 1
and ah, cl
mov bl, byte [edi + 0x1c]
jg 0x4c4523
cmp eax, 0x57b2020e
cld
dec ecx
dec esi
ja 0x4c450a
dec ecx
push cs
or eax, 0x848c97aa
sahf
adc esi, ebp
mov ch, 0xcb
test byte [esi - 0x344a11ef], bl
jg 0x4c44bd
adc bh, byte [edx]
xlatb
movsd dword es:[edi], dword [esi]
inc edx
adc eax, 0x1c31b6ff
pop edx
push edi
jl 0x4c451d
xchg esi, eax
mov ch, 0x54
pop es
and dword [eax], ebp
and eax, 0x7655bc82
std
sahf
push edi
push es
lodsb al, byte [esi]
stc
inc edx
stosd dword es:[edi], eax
adc ebx, dword [edx + 0x2311cfc1]
mul dl
cmp dword [ebx - 0x38], ebp
test dword [edi], ecx
jno 0x4c44d4
invalid
sbb edi, dword [ebp + 0x3e]
xchg dword [0x8c9ebacf], eax
movsd dword es:[edi], dword [esi]
out dx, eax
mov al, 8
iretd
mov word [ebp - 0x30f74f11], fs
call 0x3746953f
cli
push eax
cli
cli
aas
sbb ah, bh
out dx, eax
cmp ch, byte [ebx - 0x2f]
jae 0x4c457a
in eax, dx
and dword [ebx + 0x101a7213], ebx
scasd eax, dword es:[edi]
mov edx, 0x1ec48126
retf 0x87f3
in eax, dx
sti
ret 0xce6a
push 0x77
sbb al, 0x4c
loope 0x4c453b
or dword [ecx + esi*4], ebx
mov eax, 0x42033f79
ja 0x4c45a9
pop ds
pop esi
mov edx, 0xfc250e03
enter 0xffffffffffff8658, 0x3e
mov cl, 0xd9
mov ebp, 0xcd42d6b4
dec edx
scasb al, byte es:[edi]
int3
daa
push ss
adc dl, byte [esi]
sub eax, 0xb475bd6
sub al, 0xbb
pop ebx
inc edi
or ebp, dword [ebx + edi*4]
fstp dword [ebp + 0x1c]
das
mov bh, 0xca
stc
sahf
mov ch, 0xde
rol byte [esi], cl
out 0x4d, eax
inc ebx
push ss
pop eax
add al, 0xe6
mov word es:[edi - 0x7b], gs
xor eax, 0xd92e5489
jg 0x4c4589
scasd eax, dword es:[edi]
jo 0x4c45a3
test eax, 0xc55e2fff
sbb al, 0x65
hlt
Function at 0x65041e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6582c0
cmp edx, dword [eax]
je 0x650440
add eax, 8
inc ecx
cmp eax, 0x658350
jl 0x650431
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6582c0]
jne 0x65056e
mov eax, dword [0xa5b93c]
cmp eax, 1
je 0x650548
test eax, eax
jne 0x650471
cmp dword [0x658204], 1
je 0x650548
cmp edx, 0xfc
je 0x65056e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6504a8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00650b30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00650d60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6504eb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00650d60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x654b60
push edi
call fcn.00652530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00650b30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00650b40
lea eax, [ebp - 0xa0]
push 0x654b40
push eax
call fcn.00650b40
push dword [esi + 0x6582c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00650b40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.006524a4
add esp, 0x2c
pop edi
jmp 0x65056e
lea eax, [ebp + 8]
lea esi, [esi + 0x6582c4]
push 0
push eax
push dword [esi]
call fcn.00650d60
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 0x405e04
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 0x405e6a
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.00404450
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e71
lea eax, [ebp - 0x10]
call fcn.004041e0
ret

Function at 0x40ad84
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 0x40adbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d0
jmp 0x40adc6
mov eax, ebx
mov edx, esi
call fcn.00404234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b488
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2f0
mov eax, dword [0x44f2c0]
cmp byte [eax], 0
je 0x40b504
mov eax, dword [0x44f0a8]
call fcn.00402d10
call fcn.00402bb4
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.00408574
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 0x40b54c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b53a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44f050]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450660]
call fcn.00405270
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 0x40bda8
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 0x40be7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404278
lea eax, [ebp - 8]
call fcn.004046f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40be68
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40be61
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.004046a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40be4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40be90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40be4b
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 0x40be68
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be85
lea eax, [ebp - 8]
call fcn.004041e0
ret

Function at 0x40c358
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 0x40c3bc
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.00404450
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3c3
lea eax, [ebp - 0xc]
call fcn.004041e0
ret

Function at 0x41a588
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x450884
cmp dword [edi], 0
jne 0x41a604
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x450880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e3e8
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a560
lea eax, [esi + 5]
call fcn.0041a580
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a580
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 0x41a5d9
mov dword [0x450880], 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 0x41bfa0
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 0x41bfa6
ret
Function at 0x41e418
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 0x41e469
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e450
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e440
jmp 0x41e469
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 0x41e451
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427250
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 0x42719c
call sub.user32.dll_EnumWindows
ret

Function at 0x427370
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 0x4273ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00426dd0
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 0x427395
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004269d0
cmp dword [ebp - 4], 0
je 0x4273d7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046a0
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 0x4273f4
lea eax, [ebp - 4]
call fcn.004041e0
ret

Function at 0x42a8e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42a930]
test si, 4
je 0x42a8f4
or bl, 1
test si, 8
je 0x42a8fe
or bl, 4
test si, 1
je 0x42a908
or bl, 8
test si, 2
je 0x42a912
or bl, 0x10
test si, 0x10
je 0x42a91c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42a92b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42a934
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42a96c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42a94d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42a95c
or bl, 4
test esi, 0x20000000
je 0x42a967
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret