joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab6c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x5ab6f8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x180]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
movzx eax, byte [edx + 8]
test eax, eax
je 0x5ab7c5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
cmp eax, dword [edx + 0x60]
jae 0x5ab78d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x5ab753
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x78
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x184]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x5ab78b
xor al, al
jmp 0x5ab7df
jmp 0x5ab70d
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
mov eax, dword [edx]
call eax
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
jmp 0x5ab6f8
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x41]
neg eax
sbb eax, eax
neg eax
add eax, 0xcd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x5e30e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x5e8580
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x5e8621
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x5e85cf
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x78e740]
add edx, 1
cmp edx, esi
jl 0x5e85b1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x5e85fc
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x78e740]
add edx, 1
cmp edx, esi
jl 0x5e85e0
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x5feff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5feffb
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
jmp fcn.005fed10
Function at 0x40142f
Capabilities:
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x401463
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40146e
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401480
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 4
push 0x1000
push 0x20c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4014c9
mov dword [ebp - 0xc], 0x41c935f1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x357
jne 0x4014c9
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4014db
mov ecx, dword [ebp - 4]
push ecx
call fcn.004045cc
add esp, 4
cmp dword [ebp - 4], 0
je 0x401504
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1e8], 0
je 0x401504
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1e8]
mov dword [0x412aa0], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404552
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40457f
push 0
push 0
push 0
push 0
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.0040142f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4045b9
mov eax, dword [0x412aa0]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
pop edx
mov ecx, edx
push ecx
xor ecx, 0xc
pop ecx
mov edx, ecx
push edx
shl edx, 3
mov eax, ecx
xor ecx, edx
push eax
pop edx
nop
pop ebx
mov ebx, ebx
mov eax, dword [ebp - 4]
push eax
call ebx
xor edx, ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4047a9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x409100
call fcn.00405538
mov edi, 0x94
mov eax, edi
call fcn.00405590
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x412abc], ecx
mov eax, dword [esi + 4]
mov dword [0x412ac8], eax
mov edx, dword [esi + 8]
mov dword [0x412acc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x412ac0], esi
cmp ecx, 2
je 0x404809
or esi, 0x8000
mov dword [0x412ac0], esi
shl eax, 8
add eax, edx
mov dword [0x412ac4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404844
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404844
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40485c
cmp eax, 0x20b
je 0x404849
mov dword [ebp - 0x1c], esi
jmp 0x404870
cmp dword [ecx + 0x84], 0xe
jbe 0x404844
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40486a
cmp dword [ecx + 0x74], 0xe
jbe 0x404844
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004054e7
pop ecx
test eax, eax
jne 0x40489c
cmp dword [0x412aac], 1
jne 0x404889
call fcn.00404c90
push 0x1c
call fcn.00404b19
push 0xff
call fcn.00404982
pop ecx
pop ecx
call fcn.00405445
mov dword [ebp - 4], esi
call fcn.0040529a
test eax, eax
jge 0x4048b5
push 0x1b
call fcn.00404784
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x412ff4], eax
call fcn.00405178
mov dword [0x412aa4], eax
call fcn.004050d6
test eax, eax
jge 0x4048db
push 8
call fcn.00404784
pop ecx
call fcn.00404ea3
test eax, eax
jge 0x4048ec
push 9
call fcn.00404784
pop ecx
call fcn.004049b2
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4048ff
push eax
call fcn.00404784
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404e3a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x404920
movzx eax, word [ebp - 0x34]
jmp 0x404923
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00404552
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404941
push edi
call fcn.00404ad9
call fcn.00404afb
jmp 0x404973
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405573
ret
Function at 0x404a17
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x412afc], esi
push edi
jne 0x404a37
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x412af8], esi
mov byte [0x412af4], al
jne 0x404a9d
mov ecx, dword [0x412fe8]
test ecx, ecx
je 0x404a7e
mov eax, dword [0x412fe4]
sub eax, 4
cmp eax, ecx
jmp 0x404a77
mov eax, dword [eax]
test eax, eax
je 0x404a69
call eax
mov eax, dword [0x412fe4]
sub eax, 4
cmp eax, dword [0x412fe8]
mov dword [0x412fe4], eax
jae 0x404a61
mov eax, 0x40b01c
mov esi, 0x40b020
cmp eax, esi
mov edi, eax
jae 0x404a9d
mov eax, dword [edi]
test eax, eax
je 0x404a96
call eax
add edi, 4
cmp edi, esi
jb 0x404a8e
mov eax, 0x40b024
mov esi, 0x40b028
cmp eax, esi
mov edi, eax
jae 0x404abc
mov eax, dword [edi]
test eax, eax
je 0x404ab5
call eax
add edi, 4
cmp edi, esi
jb 0x404aad
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404ad7
push dword [ebp + 8]
mov dword [0x412afc], 1
call fcn.00404982
pop ecx
pop ebp
ret

Function at 0x404b19
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x412970]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x412848]
je 0x404b46
inc eax
cmp eax, 0x12
jb 0x404b37
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x412848]
jne 0x404c7a
mov eax, dword [0x412aac]
cmp eax, 1
je 0x404c55
cmp eax, edx
jne 0x404b76
cmp dword [0x412844], 1
je 0x404c55
cmp ecx, 0xfc
je 0x404c7a
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404baf
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00405790
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004059c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404bf1
lea eax, [ebp - 0x10c]
push eax
call fcn.004059c0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x409470
push edi
call fcn.00405890
add esp, 0x10
push edi
call fcn.004059c0
push dword [esi + 0x41284c]
mov ebx, eax
call fcn.004059c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405590
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405790
push edi
push ebx
call fcn.004057a0
push 0x409450
push ebx
call fcn.004057a0
push dword [esi + 0x41284c]
push ebx
call fcn.004057a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405689
add esp, 0x2c
jmp 0x404c7a
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41284c]
push dword [esi]
call fcn.004059c0
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00405a7c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405689
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x412c14], ebx
push esi
push edi
jne 0x405709
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405744
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x412c14], eax
je 0x405744
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x412c18], eax
call esi
cmp dword [0x412abc], 2
mov dword [0x412c1c], eax
jne 0x405709
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x412c24], eax
je 0x405709
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412c20], eax
mov eax, dword [0x412c20]
test eax, eax
je 0x40574e
call eax
test eax, eax
je 0x405735
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x412c24]
test eax, eax
je 0x405735
test byte [ebp - 8], 1
jne 0x40574e
cmp dword [0x412ac8], 4
jb 0x405748
or byte [ebp + 0x12], 0x20
jmp 0x40576d
xor eax, eax
jmp 0x40577d
or byte [ebp + 0x12], 4
jmp 0x40576d
mov eax, dword [0x412c18]
test eax, eax
je 0x40576d
call eax
mov ebx, eax
test ebx, ebx
je 0x40576d
mov eax, dword [0x412c1c]
test eax, eax
je 0x40576d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x412c14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e38
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405590
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407ecd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x412abc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x407ecd
cmp eax, 1
je 0x407ee5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407ecd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x407ea2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x407ec9
xor eax, eax
inc eax
jmp 0x407f01
cmp esi, ebx
jae 0x407ed1
xor eax, eax
jmp 0x407f01
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x412abc]
jmp 0x407ee7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029e4
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.00403f98
test esi, esi
jne 0x402a1a
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.00404088
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030c0
Capabilities:
Query or enumerate registry value

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

Function at 0x403e1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x475048], 0
je 0x403e7d
cmp word [0x47521c], 0xd7b2
jne 0x403e45
cmp dword [0x475224], 0
jbe 0x403e45
mov eax, 0x475218
call dword [0x475234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47306c
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 0x403ea4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x403e99
push 0
push 0x473064
push 0x47306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405228
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 0x405458
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052ab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405458
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052ab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405474
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405334
xor eax, eax
push ebp
push 0x40532d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405070
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 0x405312
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405494
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405312
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 0x405334
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 0x40544e
cmp byte [ebp - 0xd], 0
jne 0x40537b
cmp byte [ebp - 0x12], 0
je 0x40544e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405394
dec ebx
cmp byte [ebx], 0x2e
je 0x4053a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405393
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40544e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053e0
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 0x40544e
cmp byte [ebp - 0xd], 0
je 0x40544e
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 0x40544e
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 0x405b20
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 0x405b86
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.00404208
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b70
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b8d
lea eax, [ebp - 0x10]
call fcn.00403f98
ret

Function at 0x40aeec
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 0x40af25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404088
jmp 0x40af2e
mov eax, ebx
mov edx, esi
call fcn.00403fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b5e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b458
mov eax, dword [0x474aa0]
cmp byte [eax], 0
je 0x40b65c
mov eax, dword [0x47489c]
call fcn.00402af0
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408760
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 0x40b6a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b692
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474848]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475664]
call fcn.00405034
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