joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b85
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
mov dword [esi], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], esi
mov dword [ebx], eax
test edi, edi
je 0x422ca3
cmp dword [ebp + 0xc], eax
je 0x422ca3
push 0x68
push eax
lea eax, [ebp - 0x70]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x67452301
xor esi, esi
mov dword [ebp - 0x64], 0xefcdab89
mov edx, edi
mov dword [ebp - 0x6c], esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], esi
push dword [ebp + 0xc]
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.00422680
lea ecx, [ebp - 0x70]
call fcn.00422727
mov edi, esp
mov dword [ebp - 0x74], esi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x84]
mov ecx, dword [esi + 4]
call dword [0x4255c0]
mov ecx, dword [ebp - 0x7c]
call dword [esi + 4]
cmp edi, esp
je 0x422c4d
mov ecx, 4
int 0x29
mov esi, dword [ebp - 0x80]
mov edi, eax
test edi, edi
js 0x422c7f
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00422af8
test al, al
je 0x422c76
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push ebx
call fcn.00422af8
test al, al
jne 0x422c7b
mov edi, 0x80004005
test edi, edi
jns 0x422c97
push dword [esi]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
and dword [esi], 0
push dword [ebx]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
and dword [ebx], 0
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x422cd2
push 1
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
push 1
mov dword [esi], eax
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
pop ecx
mov dword [ebx], eax
mov edi, 0x8007000e
mov ecx, dword [esi]
test ecx, ecx
je 0x422cd2
test eax, eax
je 0x422cd2
mov byte [ecx], 0
xor edi, edi
mov eax, dword [ebx]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret 0x10
Function at 0x423420
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x423e68
call fcn.00423a14
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4248b8
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x423225
cmp eax, edi
jne 0x423237
mov esi, ebx
cmp dword [0x4248bc], ebx
jne 0x423244
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x423273
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42320e
cmp dword [0x4248bc], 0
jne 0x42326d
mov dword [0x4248bc], ebx
push 0x401028
push 0x40101c
call fcn.004233c4
pop ecx
pop ecx
test eax, eax
je 0x423273
jmp 0x4233ad
mov dword [0x4243c4], ebx
cmp dword [0x4248bc], ebx
jne 0x423296
push 0x401018
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4248bc], 2
test esi, esi
jne 0x4232a3
xor eax, eax
mov ecx, 0x4248b8
xchg dword [ecx], eax
cmp dword [0x4248c0], 0
je 0x4232d1
push 0x4248c0
call fcn.00423840
pop ecx
test eax, eax
je 0x4232d1
push 0
push 2
push 0
mov esi, dword [0x4248c0]
mov ecx, esi
call dword [0x4255c0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x4233ad
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x423341
test ax, ax
je 0x4232fa
test edx, edx
jne 0x423341
movzx eax, word [ecx]
test ax, ax
je 0x42330f
cmp ax, si
ja 0x42330f
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4232fa
test byte [ebp - 0x40], 1
je 0x42331b
movzx eax, word [ebp - 0x3c]
jmp 0x42331e
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x4243c0], eax
cmp dword [0x4243d8], 0
jne 0x423389
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x423352
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4232e9
cmp dword [0x4243c4], 0
jne 0x42339d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4243c0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4233b9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00423a5c
ret
call fcn.00423948
jmp 0x4231d8

Function at 0x42372f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x423e90
call fcn.00423b68
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x42378f
cmp eax, 0xffffffff
je 0x42378f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x423788
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x423788
cmp edx, 0x10000000
jae 0x423788
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x423785
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00423bad
ret 4
Function at 0x4237f0
Capabilities:
Enumerate pe sections

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

Function at 0x423910
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x423926
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x423941
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401e10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40f32b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
call fcn.0040e16d
mov eax, dword [eax + 8]
lea ecx, [esp + 0x108]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30c]
lea eax, [esp + 0x20c]
push edx
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x114]
push edx
push eax
call fcn.00402ed6
add esp, 0x14
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 4]
call fcn.004091a4
lea edx, [esp + 8]
lea ecx, [esp]
push edx
mov dword [esp + 0x418], 0
call fcn.0040935b
mov eax, dword [esp]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov dword [esp + 0x414], 0xffffffff
call fcn.0040917a
mov ecx, dword [esp + 0x40c]
mov dword fs:[0], ecx
add esp, 0x418
ret

Function at 0x401ee0
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x416348]
test eax, eax
je 0x401f1e
add ecx, 0x64
push str.diagnt.exe
lea eax, [esp + 4]
push ecx
push eax
call fcn.00409288
mov ecx, dword [eax]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call fcn.0040917a
pop ecx
ret
add ecx, 0x64
push str.diag9x.exe
lea edx, [esp + 4]
push ecx
push edx
call fcn.00409288
mov eax, dword [eax]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call fcn.0040917a
pop ecx
ret

Function at 0x402000
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
mov ax, word [0x41634c]
cmp eax, 0x404
je 0x402042
push 5
cmp eax, 0x804
push 0
push 0
je 0x40202f
push str.http:__www.gotogs.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
push str.http:__www.yuanzhi.com.cn
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
push 5
push 0
push 0
push str.http:__www.goldensoft.com.tw
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x402060
Capabilities:
Create process on windows

Disassembly:
push ecx
add ecx, 0x64
push str.ChsNetExam.stdClient_setup.exe
lea eax, [esp + 4]
push ecx
push eax
call fcn.00409288
mov ecx, dword [eax]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call fcn.0040917a
pop ecx
ret
Function at 0x4020a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa0
push ebx
push esi
lea eax, [esp + 0x14]
push edi
mov edi, ecx
push eax
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x28], 2
jne 0x40220c
cmp dword [esp + 0x1c], 4
ja 0x40214c
mov esi, str.Service_Pack_1
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x402101
test cl, cl
je 0x4020fd
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x402101
add eax, 2
add esi, 2
test cl, cl
jne 0x4020d9
xor eax, eax
jmp 0x402106
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40220c
mov esi, str.Service_Pack_3
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40213f
test cl, cl
je 0x40213b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40213f
add eax, 2
add esi, 2
test cl, cl
jne 0x402117
xor eax, eax
jmp 0x402144
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40220c
xor eax, eax
mov ax, word [0x41634c]
cmp eax, 0x404
je 0x4021da
cmp eax, 0x804
je 0x40219e
add edi, 0x64
push str.EngRouter_setup.exe
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00409288
mov ecx, dword [eax]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call fcn.0040917a
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
add edi, 0x64
push str.ChsRouter_setup.exe
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00409288
mov eax, dword [eax]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0xc]
call fcn.0040917a
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
add edi, 0x64
push str.ChtRouter_setup.exe
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00409288
mov edx, dword [eax]
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
call fcn.0040917a
pop edi
pop esi
pop ebx
add esp, 0xa0
ret

Function at 0x402220
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
sub esp, 0xc
mov ax, word [0x41634c]
cmp eax, 0x404
je 0x4022a0
cmp eax, 0x804
push str.chs_readme.txt
je 0x40226f
add ecx, 0x64
lea eax, [esp + 4]
push ecx
push eax
call fcn.00409288
mov ecx, dword [eax]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call fcn.0040917a
add esp, 0xc
ret
add ecx, 0x64
lea edx, [esp + 8]
push ecx
push edx
call fcn.00409288
mov eax, dword [eax]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
call fcn.0040917a
add esp, 0xc
ret
add ecx, 0x64
push str.chs_readme.txt
push ecx
lea ecx, [esp + 0x10]
push ecx
call fcn.00409288
mov edx, dword [eax]
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
call fcn.0040917a
add esp, 0xc
ret
Function at 0x4022e0
Capabilities:
Create process on windows

Disassembly:
push ecx
add ecx, 0x64
push str.ChsNetExam.proClient_setup.exe
lea eax, [esp + 4]
push ecx
push eax
call fcn.00409288
mov ecx, dword [eax]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call fcn.0040917a
pop ecx
ret

Function at 0x4057f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415d50
cmp edx, dword [eax]
je 0x405817
add eax, 8
inc ecx
cmp eax, 0x415de0
jl 0x405808
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415d50]
jne 0x405945
mov eax, dword [0x4184a0]
cmp eax, 1
je 0x40591f
test eax, eax
jne 0x405848
cmp dword [0x415944], 1
je 0x40591f
cmp edx, 0xfc
je 0x405945
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40587f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405a80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4058c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x411b34
push edi
call fcn.00406ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405a80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405a90
lea eax, [ebp - 0xa0]
push 0x411b14
push eax
call fcn.00405a90
push dword [esi + 0x415d54]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405a90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407000
add esp, 0x2c
pop edi
jmp 0x405945
lea eax, [ebp + 8]
lea esi, [esi + 0x415d54]
push 0
push eax
push dword [esi]
call fcn.00404e60
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 0x40b780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40b7c2
call fcn.0040e16d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40b7c2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40b7b9
xor eax, eax
jmp 0x40b7ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040b7d0
pop edi
pop esi
pop ebx
ret 4
Function at 0x40e76e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40e79c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40e7ba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040e6d4
jmp 0x40e7ba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e7ba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040e6d4
test edi, edi
mov eax, edi
jne 0x40e7a4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a30
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.004043ec
test esi, esi
jne 0x402a66
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.004044dc
jmp 0x402a84
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402a84
cmp dword [ebx], 0
je 0x402a84
dec esi
jmp 0x402a6d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034f0
Capabilities:
Query or enumerate registry value

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

Function at 0x404270
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470048], 0
je 0x4042d1
cmp word [0x47021c], 0xd7b2
jne 0x404299
cmp dword [0x470224], 0
jbe 0x404299
mov eax, 0x470218
call dword [0x470234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e054
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 0x4042f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e01c], 0
jne 0x4042ed
push 0
push 0x46e074
push 0x46e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a1f8
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 0x40a231
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044dc
jmp 0x40a23a
mov eax, ebx
mov edx, esi
call fcn.00404440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a8ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a764
mov eax, dword [0x46f96c]
cmp byte [eax], 0
je 0x40a959
mov eax, dword [0x46f7a4]
call fcn.00402e0c
call fcn.00402870
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a5c
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 0x40a9a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a98f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f75c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470714]
call fcn.00405b38
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 0x40b558
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 0x40b5bc
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.00404654
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408700
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5c3
lea eax, [ebp - 0xc]
call fcn.004043ec
ret
Function at 0x4218d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470a20
cmp dword [edi], 0
jne 0x421950
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x470a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e5cc
mov ecx, 2
call fcn.00402904
mov edx, 0x4218ac
lea eax, [esi + 5]
call fcn.004218cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004218cc
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 0x421925
mov dword [0x470a1c], 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 0x422e3c
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 0x422e42
ret

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