joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004250
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100059b0
push 1
mov dword [0x10faa3f0], 0x10004210
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov esi, dword [0x10faa3fc]
call fcn.100059e0
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
mov dword [ebp - 0x2d0], 0x10010
call sub.MSVCR100.dll_memset
mov ecx, dword [0x10fa9a74]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [0x10fa9a74]
lea edx, [ebp - 0x2d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [0x10fa9a74]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2b8], 1
mov dword [ebp - 0x2bc], 0
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [0x10fa9a74]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10005bba
mov esp, ebp
pop ebp
ret
Function at 0x10004fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x10005142
cmp byte [ebx + 0x49], 0
je 0x10005142
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10005136
lea esi, [ebp - 0x2c]
call fcn.10004f50
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10005023
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000505b
dec eax
je 0x1000505f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x1000513d
call fcn.10004370
xor al, al
jmp 0x10005144
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000506f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000509d
cmp edi, 0x10
jae 0x1000507e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000512e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x1000513a
test esi, esi
jne 0x10005017
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000515f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000515f
cmp edi, esi
jae 0x10005117
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.100051e0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10005017
mov ecx, eax
cmp edi, 0x10
jae 0x100050f3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x1000510e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10005011
test esi, esi
jne 0x100050e9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10005126
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10005011
lea esi, [ebp - 0x2c]
call fcn.10004370
xor al, al
jmp 0x10005144
lea esi, [ebp - 0x2c]
call fcn.10004370
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005bba
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x100059e0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x10005a51
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10005a51
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Thread32Next]
cmp dword [ebp - 0x14], ebx
je 0x10005a36
lea ecx, [ebp - 0x20]
push ecx
push esi
call edi
test eax, eax
jne 0x10005a26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
push 1
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [0x10fa9a74], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10005bba
mov esp, ebp
pop ebp
ret

Function at 0x10005bba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009018]
jne 0x10005bc4
repz ret
jmp fcn.100060d1
Function at 0x1002cd60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002cf2d
pushal
mov esi, section.VSP1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x1002cd8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002cd91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002cd80
mov eax, 1
add ebx, ebx
jne 0x1002cda3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002cd98
jne 0x1002cdb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002cd98
xor ecx, ecx
sub eax, 3
jb 0x1002cdc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002ce3a
mov ebp, eax
add ebx, ebx
jne 0x1002cdd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002cde0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002ce04
inc ecx
add ebx, ebx
jne 0x1002cdf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002cde5
jne 0x1002ce01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002cde5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002ce24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002ce15
jmp 0x1002cd86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002ce24
add edi, ecx
jmp 0x1002cd86
pop esi
mov edi, esi
mov ecx, 0xb05
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002ce42
cmp byte [edi], 3
jne 0x1002ce42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002ce47
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x1002cebf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c47c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c56c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002ce74
mov ecx, edi
jns 0x1002cea3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c570]
or eax, eax
je 0x1002ceb9
mov dword [ebx], eax
add ebx, 4
jmp 0x1002ce91
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002cef0
cmp al, 0xef
ja 0x1002cee3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002cec5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002ced2
mov ebp, dword [esi + 0x2c574]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002cf24
sub esp, 0xffffff80
jmp 0x1001eff9
Function at 0x4017e0
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [0x487008]
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx esi, dl
mov eax, 0x8d299
sub eax, esi
cmp byte [0x48706a], dl
push edi
lea ecx, [eax + ebx + 0xe]
ja 0x401813
sub esi, dword [0x487004]
mov byte [0x487058], cl
add ecx, esi
mov edx, dword [ebp + 0xc]
push 0x52de00
add ecx, ebx
push 0x46e
mov dword [0x52f474], edx
lea esi, [eax + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x494d3c
push 0x40
mov edi, eax
mov eax, dword [0x52f474]
push 0x5074
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movzx eax, byte [0x48706a]
cmp eax, 0x47
ja 0x401877
mov cl, byte [0x487068]
mov edx, 0x47
sub edx, dword [0x487004]
mov byte [0x487058], cl
add dword [0x487068], edx
movzx ecx, byte [0x487008]
lea edx, [esi + ecx + 0x2f]
movzx esi, byte [0x487069]
cmp esi, 0x5cd
mov dword [ebp + 8], edx
jne 0x4018ad
movzx esi, byte [0x487062]
add esi, edi
mov edi, dword [0x487004]
lea esi, [edi + esi*2 - 0x18]
mov dword [0x487004], esi
cmp eax, ebx
ja 0x4018be
mov byte [0x487058], dl
mov dword [ebp + 8], 2
mov eax, 0xb311
push 0x494100
sub eax, ecx
push 0x46e
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [0x52f474]
mov eax, 0x2c
movzx ecx, byte [0x487062]
cmp dword [ebp + 8], ecx
je 0x4018fd
sub byte [eax + 0x487058], bl
sub eax, 2
cmp eax, 3
jg 0x4018e3
movzx eax, byte [0x487008]
mov edx, dword [ebp + 0xc]
movzx edi, byte [0x487058]
lea esi, [eax + edx - 2]
mov eax, 3
cmp ebx, edi
je 0x40192e
movzx ecx, byte [0x48705a]
cmp ebx, ecx
je 0x40192e
add eax, 2
cmp eax, 0x17
jl 0x401917
mov al, dl
add al, al
add al, 0x51
mov byte [0x487008], al
mov eax, ebx
sub eax, esi
add eax, 0x70af
ret
Function at 0x4237ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x493ee0]
jne 0x4237b5
repz ret
jmp fcn.00429b07

Function at 0x428199
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00421ee1
xor ebx, ebx
cmp dword [0x52fb10], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42826e
push 0x48591c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4281d9
xor eax, eax
jmp 0x428332
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x485910
push edi
call esi
cmp eax, ebx
je 0x4281d2
push eax
call fcn.00421e7e
mov dword [esp], 0x485900
push edi
mov dword [0x52fb10], eax
call esi
push eax
call fcn.00421e7e
mov dword [esp], 0x4858ec
push edi
mov dword [0x52fb14], eax
call esi
push eax
call fcn.00421e7e
mov dword [0x52fb18], eax
lea eax, [ebp - 8]
push eax
call fcn.0041f6ca
test eax, eax
pop ecx
pop ecx
je 0x42823c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f4b0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42826e
push 0x4858d0
push edi
call esi
push eax
call fcn.00421e7e
cmp eax, ebx
pop ecx
mov dword [0x52fb20], eax
je 0x42826e
push 0x4858b8
push edi
call esi
push eax
call fcn.00421e7e
pop ecx
mov dword [0x52fb1c], eax
mov eax, dword [0x52fb1c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4282e7
cmp dword [0x52fb20], esi
je 0x4282e7
push eax
call fcn.00421eea
pop ecx
call eax
cmp eax, ebx
je 0x4282b4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x52fb20]
call fcn.00421eea
pop ecx
call eax
test eax, eax
je 0x4282b4
test byte [ebp - 0x18], 1
jne 0x4282e7
lea eax, [ebp - 0xc]
push eax
call fcn.0041f779
test eax, eax
pop ecx
je 0x4282cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f4b0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4282de
or dword [ebp + 0x10], 0x200000
jmp 0x428318
or dword [ebp + 0x10], 0x40000
jmp 0x428318
mov eax, dword [0x52fb14]
cmp eax, esi
je 0x428318
push eax
call fcn.00421eea
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x428318
mov eax, dword [0x52fb18]
cmp eax, esi
je 0x428318
push dword [ebp - 4]
push eax
call fcn.00421eea
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x52fb10]
call fcn.00421eea
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402a6c
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.004040f8
test esi, esi
jne 0x402aa2
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.004041e8
jmp 0x402ac0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402980
mov edi, eax
test esi, esi
je 0x402ac0
cmp dword [ebx], 0
je 0x402ac0
dec esi
jmp 0x402aa9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Query or enumerate registry value

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

Function at 0x403ef8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x403f59
cmp word [0x48e220], 0xd7b2
jne 0x403f21
cmp dword [0x48e228], 0
jbe 0x403f21
mov eax, 0x48e21c
call dword [0x48e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c06c
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 0x403f80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c030], 0
jne 0x403f75
push 0
push 0x48c064
push 0x48c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040ac
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.00402744
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404074
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405638
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405868
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4056bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405868
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4056bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405884
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405744
xor eax, eax
push ebp
push 0x40573d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405480
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405722
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4058a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405722
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405744
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40585e
cmp byte [ebp - 0xd], 0
jne 0x40578b
cmp byte [ebp - 0x12], 0
je 0x40585e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4057a4
dec ebx
cmp byte [ebx], 0x2e
je 0x4057b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4057a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40585e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4057f0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40585e
cmp byte [ebp - 0xd], 0
je 0x40585e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40585e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f30
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 0x405f96
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.00404368
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f9d
lea eax, [ebp - 0x10]
call fcn.004040f8
ret

Function at 0x40b530
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 0x40b569
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041e8
jmp 0x40b572
mov eax, ebx
mov edx, esi
call fcn.0040414c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba9c
mov eax, dword [0x48d810]
cmp byte [eax], 0
je 0x40bca0
mov eax, dword [0x48d58c]
call fcn.00402b84
call fcn.004028ac
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.00408c54
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 0x40bce8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48d52c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e668]
call fcn.00405444
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 0x40c5b4
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 0x40c68a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404190
lea eax, [ebp - 8]
call fcn.00404608
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c674
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c66d
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.004045b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c657
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c69c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c657
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 0x40c674
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c691
lea eax, [ebp - 8]
call fcn.004040f8
ret

Function at 0x40cc14
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 0x40cc78
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.00404368
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408730
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc7f
lea eax, [ebp - 0xc]
call fcn.004040f8
ret

Function at 0x421b0c
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.00421938
dec esi
jne 0x421b2e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret