joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x437274]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x437274]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x437274]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [0x437154]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
sub esi, ecx
mov ecx, dword [ebp - 0x1c]
sub esi, eax
mov eax, dword [ebp - 0xc]
add esi, ebx
mov ebx, dword [ebp - 0x14]
add esi, edi
mov edi, dword [0x437150]
sub edi, edx
push 0
sub edi, ecx
add edi, eax
add edi, ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, esi
push 1
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, edi
push 4
cdq
sub eax, edx
mov edx, dword [0x437274]
sar eax, 1
push edi
push esi
push eax
push ebx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x437274]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ca60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x41ca7b
mov eax, dword [ebp + 8]
push eax
call fcn.0041b780
pop esi
pop ebp
ret 4
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp + 8]
and eax, 0x8000
dec ecx
cmp ecx, 0x2d
ja case.0x41ca9e.9
xor edx, edx
mov dl, byte [ecx + 0x41cbc8]
jmp dword [edx*4 + 0x41cba4]
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x78]
push ebx
push eax
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
mov ecx, dword [edi]
mov ebx, eax
push ecx
call dword [sym.imp.Engine.dll_void___cdecl_FreeMemory_void__]
add esp, 8
mov ecx, esi
mov dword [edi], ebx
call fcn.0041c9c0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x78]
mov eax, dword [eax]
push eax
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
mov ecx, dword [esi + 0x48]
mov edi, eax
push ecx
call dword [sym.imp.Engine.dll_void___cdecl_FreeMemory_void__]
add esp, 8
mov ecx, esi
mov dword [esi + 0x48], edi
call fcn.0041c9c0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x68]
test eax, eax
jle case.0x41ca9e.9
dec eax
pop edi
mov dword [esi + 0x68], eax
mov eax, 1
pop esi
pop ebp
ret 4
mov edi, dword [esi + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x68]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae case.0x41ca9e.9
inc edx
pop edi
mov dword [esi + 0x68], edx
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x68], 0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov edi, dword [esi + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov dword [esi + 0x68], ecx
mov eax, 1
pop esi
pop ebp
ret 4
push 0
push eax
lea eax, [esi + 0x68]
push eax
jmp 0x41cb8a
push 1
lea ecx, [esi + 0x68]
push eax
push ecx
add esi, 0x48
push esi
call fcn.0041cc00
add esp, 0x10
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x423110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov al, byte [0x443048]
push edi
mov byte [ebp - 0x110], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x110]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x44304c
push 0
push str.SOFTWAREGameSpygames
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4231a7
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [0x442f2c]
dec ecx
push ecx
lea ecx, [ebp - 0x110]
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423200
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a064
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [sym.imp.Engine.dll_class_CTFileName__fnmCDPath]
push ebx
push esi
push edi
push 0x443050
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
mov edi, dword [sym.imp.Engine.dll_void___cdecl_FreeMemory_void__]
test eax, eax
je 0x42327e
push str.C:Install_
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.Engine.dll_class_CTFileName__fnmCDPath]
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [esi], ecx
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
call edi
add esp, 0x10
mov ebx, 0x43
lea edx, [ebp - 0x10]
mov byte [ebp - 0x10], bl
push edx
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], 0x5c
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4232e2
mov eax, dword [sym.imp.Engine.dll_class_CTFileName__fnmCDPath]
lea edx, [ebp - 0x18]
push 0x442fc0
push edx
mov ecx, dword [eax]
mov byte [ecx], bl
mov ecx, dword [sym.imp.Engine.dll_class_CTFileName__fnmCDPath]
call dword [sym.imp.Engine.dll_public:_class_CTString___thiscall_CTString::operator_class_CTString_const__]
mov eax, dword [eax]
push 0x436144
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call edi
add esp, 0xc
mov dword [0x44302c], esi
test esi, esi
jne 0x4232fb
inc ebx
cmp ebx, 0x5a
jle 0x423283
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0x437274]
push 3
push 0
push 0
push eax
push str.OPEN
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x371e7a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x3c13450e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x5f8ef8
Capabilities:
Encode data using xor

Disassembly:
invalid
test eax, 0xc802bec7
dec ebp
cwde
jmp 0x5f8ecf

Function at 0x6435f8
Capabilities:
Encode data using xor

Disassembly:
in al, 0xd8
out dx, al
push edx
mov edi, 0xb254531f
aad 0x17
stc
aam 0xb0
retf
pop edx
add dword [ebp + 0x36ec871c], 0xd6951a85
sbb bh, byte [ebx - 0x2c46f713]
push edi
sbb al, 0xc2
jne 0x6435a7
mov dword [ecx], ebx
pop ecx
dec eax
ljmp 0xfa5d
sub ecx, ecx
lcall 0xa8af, 0x35fa5d26
mov esp, dword [edi + 0xe]
mov bl, 0x76
adc dword [edx - 0x33], esi
pop eax
dec esi
pop edx
imul edi, ebp, 0xdbdd2bcc
sub eax, 0x58ea8d40
or ch, byte [ebx + 0x75866262]
mov ah, 0xbd
outsd dx, dword [esi]
pop edx
push cs
sti
push ds
in eax, dx
not byte [esi + ecx*8]
cmp dword [ebx + 0x5b], 0xb
std
clc
in eax, 0x68
loopne 0x64356f
adc byte [esi - 0x1726ed9a], bl
and byte [eax], bl
push eax
add dword [edx], esp
salc
pop ds
inc eax
push cs
dec edi
nop
enter 0x2e80, 0x3b
outsb dx, byte [esi]
rcr eax, 1
fcom dword [ebp - 0xf913fb8]
jle 0x64358b
xor byte [ebp + 0x46], bh
fcom dword [ebp - 0xf913fb8]
jle 0x64358b
xor byte [ebp + 0x46], bh
imul ebp, dword [esi - 0x67f6a9a2], 0x50
ficom word [ebp - 0x43]
xor dl, bl
cmp dword [ebx], 0xffffffa5
sub esi, dword [ebp + 0x19623b7d]
sbb byte [ecx + 0x7e], al
mov byte [0x492dc52b], al
rcl dword [ecx + 0x30f87448], cl
mov esi, 0x4f3ece20
xor byte [esi + 0x4f3ece20], bh
jne 0x643625
jo 0x6435e7
pushal
push cs
hlt
push eax
enter 0xffffffffffffdb40, 0xffffffffffffff85
call 0x76044b3
and ebp, dword [edi - 0x6d]
or edx, dword [ebp + 0x310ce57b]
scasb al, byte es:[edi]
xchg ebx, eax
dec ebx
xchg ebx, eax
mov ebx, 0x9b35c125
add eax, 0x23d82092
jmp 0x6436e1
xchg edx, eax
test byte [esi + 0x56629e7b], cl
push ebp
cli
ret
aad 0xc8
and eax, 0x59b73b7
lodsb al, byte [esi]
ret 0x7036
wait
add eax, 0x7036c2ac
push 0xf906e967
outsd dx, dword [esi]
sbb eax, 0x21a7b073
mov dh, 0x59
lahf
jle 0x64367e
pop ebx
and dword [ecx - 0x5e], eax
in al, dx
ret
pop eax
arpl word [edi + 0x25], sp
pop ss
out dx, al
test dword [eax], 0x9302e9e6
push ecx
int1
inc edx
push edx
mov eax, dword [0x45b8a14a]
dec edx
cmpsd dword [esi], dword es:[edi]
test dword [ecx - 0x4f75fc21], esi
jle 0x6436a4
pop esp
cmp bl, dl
jp 0x64369f
xlatb
stosb byte es:[edi], al
or edx, ebx
adc ah, byte [ebp - 0x5a]
xlatb
push esp
xchg edi, eax
xchg byte [eax + 0x58], cl
mov al, byte [0x2a243ca7]
rcr dword [0xcb9101d6], 0xd5
salc
jno 0x643769
cmp ah, byte [ecx + 0x4d]
popal
or ecx, dword [edi]
push cs
add al, 0x8d
or eax, 0x418c3c89
sub dword [edi - 0x5af138c6], eax
dec ecx
sal dword [ecx - 0x47c808d9], 1
das
adc eax, dword [edx - 0x2e]
cmp esi, dword [ecx]
mov edx, 0x752eeb11
pop es
lodsb al, byte [esi]
in al, 0xed
popfd
sub edx, esp
xchg edx, eax
xor ecx, edx
test al, 0x2f
fisubr word [edx]
push esp
mov ah, cl
stosb byte es:[edi], al
test byte [ecx - 0x3f], bh
lodsb al, byte [esi]
fmul qword [edx + 0x70]
xchg esi, eax
test eax, edi
inc esi
cli
aad 0xd8
xor al, 0xda
std
xor al, dl
loope 0x643771
in eax, dx
test dword [edi], eax
sar esi, 1
invalid
Function at 0x7c652d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd3f8
cmp edx, dword [eax]
je 0x7c654f
add eax, 8
inc ecx
cmp eax, 0x7cd488
jl 0x7c6540
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd3f8]
jne 0x7c667d
mov eax, dword [0xbcfd94]
cmp eax, 1
je 0x7c6657
test eax, eax
jne 0x7c6580
cmp dword [0x7cd324], 1
je 0x7c6657
cmp edx, 0xfc
je 0x7c667d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c65b7
lea eax, [ebp - 0x1a4]
push 0x7cb590
push eax
call fcn.007c6f10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c73a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c65fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c73a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cb58c
push edi
call fcn.007c9270
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cb570
push eax
call fcn.007c6f10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6f20
lea eax, [ebp - 0xa0]
push 0x7cb56c
push eax
call fcn.007c6f20
push dword [esi + 0x7cd3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6f20
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cb544
push eax
call fcn.007c91e4
add esp, 0x2c
pop edi
jmp 0x7c667d
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd3fc]
push 0
push eax
push dword [esi]
call fcn.007c73a0
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 0x418190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x49e2a8
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41823a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41823a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41823a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41823a
push 0x44
call fcn.004897e5
add esp, 4
test eax, eax
je 0x418204
mov esi, eax
call fcn.00416970
mov ecx, eax
jmp 0x418206
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00472990
mov ecx, dword [0x4af878]
inc dword [0x4af1f8]
mov dword [0x4ae268], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, 0x4af278
call fcn.0042fd40
pop esi
add esp, 0x10
ret 8
Function at 0x403630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004036f0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x25c021a6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x3fe02e14
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40307c
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 0x4030b8
movzx eax, 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 0x4030d8
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404c5c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4039c0
Capabilities:
Query or enumerate registry value

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

Function at 0x40486c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48f044], 0
je 0x4048cd
cmp word [0x48f218], 0xd7b2
jne 0x404895
cmp dword [0x48f220], 0
jbe 0x404895
mov eax, 0x48f214
call dword [0x48f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4048f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48602c], 0
jne 0x4048e9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405db8
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 0x405fe8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fe8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406004
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ec4
xor eax, eax
push ebp
push 0x405ebd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bf4
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 0x405ea2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406024
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ea2
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 0x405ec4
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 0x405fde
cmp byte [ebp - 0xd], 0
jne 0x405f0b
cmp byte [ebp - 0x12], 0
je 0x405fde
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f24
dec ebx
cmp byte [ebx], 0x2e
je 0x405f33
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f23
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405fde
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f70
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 0x405fde
cmp byte [ebp - 0xd], 0
je 0x405fde
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 0x405fde
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 0x405ec4
Capabilities:
Get geographical location

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 0x405fe8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fe8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406004
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ec4
xor eax, eax
push ebp
push 0x405ebd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bf4
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 0x405ea2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406024
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ea2
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 0x405ec4
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 0x405fde
cmp byte [ebp - 0xd], 0
jne 0x405f0b
cmp byte [ebp - 0x12], 0
je 0x405fde
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f24
dec ebx
cmp byte [ebx], 0x2e
je 0x405f33
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f23
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405fde
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f70
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 0x405fde
cmp byte [ebp - 0xd], 0
je 0x405fde
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 0x405fde
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