joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039845
Capabilities:
Get geographical location
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
push 0
mov dword [ebp - 8], edi
mov dword [ebp - 8], 0xffffffed
pop ebx
jmp 0x10039882
cmp byte [ebp - 1], 0
je 0x1003986f
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], 0
je 0x1003987f
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x17
mov byte [ebp - 1], bl
jne 0x10039862
cmp byte [ebp - 1], 0
je 0x1003989f
push 0x1682
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x7038
push esi
push edi
push 0x6356
push 0x7f12
call fcn.1003520e
mov dword [ebp - 8], 0x9ef4a042
add esp, 0x14
mov dword [ebp - 8], 0xfffffff9
mov dword [ebp - 8], ebx
jmp 0x100398d9
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x18], 5
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x100398cb
mov dword [ebp - 8], ebx
jmp 0x100398f2
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x24], 7
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x100398e4
mov dword [ebp - 8], ebx
jmp 0x1003990b
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xc], 0xffffffff
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x100398fd
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, edi
mov eax, dword [ebp - 0x18]
setg cl
imul eax, ecx
test eax, eax
je 0x1003992b
mov eax, edi
cmp dword [ebp - 0x14], ebx
jne 0x1003992d
mov eax, ebx
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
test eax, eax
mov eax, dword [ebp - 0x14]
setle dl
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
add edx, 0x4705b758
xor ecx, ecx
cmp edx, eax
mov eax, 0x8e1b8814
setle cl
cmp eax, ecx
mov eax, dword [ebp - 0x1c]
sbb ecx, ecx
xor edx, edx
inc ecx
imul eax, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
dec ecx
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setne dl
sub edx, eax
mov eax, dword [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0xc], edx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], 0
je 0x1003999e
push 0xa33
call edi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
call fcn.100252c9
pop ecx
mov esi, eax
mov dword [ebp - 8], ebx
jmp 0x100399ba
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x10], 9
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jl 0x100399ac
mov byte [ebp - 1], bl
cmp byte [ebp - 1], 0
je 0x100399e4
push 0x1fc4
push 0x163e
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], 0
je 0x100399f9
push 0x14de
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006cfd5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10076330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005d8fa
mov dword [ebp - 0x14], eax
cmp dword [0x10664018], esi
jne 0x1006d0c8
push 0x800
push esi
push 0x100081dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006d055
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006d1a8
push esi
push esi
push 0x100081dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006d1a8
push 0x100081f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006d1a8
push eax
call ebx
push 0x10008200
push edi
mov dword [0x10664018], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008210
push edi
mov dword [0x1066401c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008224
push edi
mov dword [0x10664020], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664028], eax
test eax, eax
je 0x1006d0c5
push 0x10008240
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664024], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006d0ed
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006d0e0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006d102
push 4
pop eax
jmp 0x1006d1aa
cmp dword [ebp - 0x14], esi
je 0x1006d102
push dword [0x10664018]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006d0e7
mov eax, dword [0x10664024]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006d160
cmp dword [0x10664028], edi
je 0x1006d160
push eax
call ebx
push dword [0x10664028]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006d160
test eax, eax
je 0x1006d160
call ecx
test eax, eax
je 0x1006d155
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006d155
test byte [ebp - 8], 1
jne 0x1006d160
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006d190
mov eax, dword [0x1066401c]
cmp eax, edi
je 0x1006d18d
push eax
call ebx
test eax, eax
je 0x1006d18d
call eax
mov esi, eax
test esi, esi
je 0x1006d18d
mov eax, dword [0x10664020]
cmp eax, edi
je 0x1006d18d
push eax
call ebx
test eax, eax
je 0x1006d18d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10664018]
call ebx
test eax, eax
je 0x1006d1a8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006d1aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100594cd
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Get disk information

Disassembly:
sub esp, 0x830
mov eax, dword [esp + 0x834]
mov ecx, dword [eax]
push ebx
mov ebx, dword [0x43ff5c]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [0x43ff58]
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], 0x9e3779b9
call fcn.00403000
mov eax, dword [0x43ff60]
mov edx, dword [0x43ff64]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov eax, dword [0x2aeca24]
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x4030c0
mov dword [0x2aeca20], 0xedeb2e40
jmp 0x4030cd
cmp eax, 0x3eb
jne 0x4030cd
mov dword [0x2ae992c], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
mov dword [0x2aeca1c], 0xf4ea3dee
call fcn.00403010
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0x18], eax
cmp dword [0x2aeca24], 0x213
jne 0x40314c
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0x40]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x34], esi
call fcn.00402ff0
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov edx, esi
shr edx, 5
add edx, ebx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x2aeca24], 0x121
jne 0x4031ac
push ebp
push ebp
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00403020
mov eax, dword [esp + 0x38]
sub dword [esp + 0x14], eax
sub dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x28]
jne 0x403090
mov eax, dword [esp + 0x844]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x830
ret 4
Function at 0x409db0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fbc0]
jne 0x409dba
repz ret
jmp fcn.0040de2b

Function at 0x40d684
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409110
and dword [ebp - 4], 0
cmp dword [0x441d30], 0
mov ebx, eax
jne 0x40d735
push 0x401b18
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d7e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b0c
push edi
call esi
test eax, eax
je 0x40d7e6
push eax
call fcn.0040909e
mov dword [esp], 0x401afc
push edi
mov dword [0x441d30], eax
call esi
push eax
call fcn.0040909e
mov dword [esp], 0x401ae8
push edi
mov dword [0x441d34], eax
call esi
push eax
call fcn.0040909e
mov dword [esp], 0x401acc
push edi
mov dword [0x441d38], eax
call esi
push eax
call fcn.0040909e
pop ecx
mov dword [0x441d40], eax
test eax, eax
je 0x40d735
push 0x401ab4
push edi
call esi
push eax
call fcn.0040909e
pop ecx
mov dword [0x441d3c], eax
mov eax, dword [0x441d3c]
cmp eax, ebx
je 0x40d78d
cmp dword [0x441d40], ebx
je 0x40d78d
push eax
call fcn.00409119
push dword [0x441d40]
mov esi, eax
call fcn.00409119
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d78d
test edi, edi
je 0x40d78d
call esi
test eax, eax
je 0x40d784
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d784
test byte [ebp - 0xc], 1
jne 0x40d78d
or dword [ebp + 0x10], 0x200000
jmp 0x40d7c6
mov eax, dword [0x441d34]
cmp eax, ebx
je 0x40d7c6
push eax
call fcn.00409119
pop ecx
test eax, eax
je 0x40d7c6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d7c6
mov eax, dword [0x441d38]
cmp eax, ebx
je 0x40d7c6
push eax
call fcn.00409119
pop ecx
test eax, eax
je 0x40d7c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441d30]
call fcn.00409119
pop ecx
test eax, eax
je 0x40d7e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d7e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48bebe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48bef6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489f75
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00489f4d
jmp 0x48bf02
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d5ac
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 0x48d5ee
call fcn.0049365b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d5ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d5e5
xor eax, eax
jmp 0x48d5f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d5fc
pop edi
pop esi
pop ebx
ret 4

Function at 0x493b8b
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 0x493bb9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x493bd7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00493af1
jmp 0x493bd7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x493bd7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00493af1
test edi, edi
mov eax, edi
jne 0x493bc1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0xff6560
Capabilities:
Encode data using xor

Disassembly:
jmp 0xff656a
pushal
call 0xff6570
pop ebp
sub ebp, 0x10
sub ebp, 0xbf6560
jmp 0xff6586
mov eax, 0xbf6560
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cb
mov edx, 0x4848a3d8
xor byte [eax], dl
inc eax
dec ecx
jne 0xff659d
jmp 0xff65b0
push ebx
adc eax, 0xd8e45153
fcomp st(0)
pop ecx
sbb dword [eax], esp
fcomp st(0)
fcomp st(3)
adc eax, 0xd8d8dd60
fsub dword [edx - 0x10]
fcomp st(0)
fsubr dword [edi]
cmp bl, bl
adc byte [ebx + 0x59], dl
aam 0xd8
fcomp st(0)
fistp dword [0x24fcbc55]
push ecx
fdiv st(4), st(0)
mov byte [eax - 0x273ad298], dh
mov al, 0x77
mov bh, 0x79
fcomp st(1)
hlt
Function at 0x407544
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a2d0
test esi, esi
jne 0x40757a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a468
jmp 0x407598
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407488
mov edi, eax
test esi, esi
je 0x407598
cmp dword [ebx], 0
je 0x407598
dec esi
jmp 0x407581
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408ec8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409388
mov byte [esp], al
cmp byte [esp], 0
jne 0x409051
test edi, edi
je 0x409051
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f6c
cmp edi, 0xffffffff
je 0x408f2d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f2d
mov byte [esp], 0
jmp 0x409051
cmp dword [esi], 1
jg 0x408f6c
cmp dword [esi], 0
jne 0x408f5e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f5e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409051
lea eax, [esp + 0xc]
call fcn.00408b60
dec ebp
test ebp, ebp
jg 0x408f12
cmp edi, 0xffffffff
je 0x408f91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f8f
mov byte [esp], 0
jmp 0x409051
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ed6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004090cc
mov edx, eax
mov ebx, dword [0x62f900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408ff5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408ff3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408ff5
xor edi, edi
cmp byte [esp], 0
je 0x40901b
mov ebx, dword [esi]
test bl, 1
jne 0x409031
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ffb
mov byte [esp + 1], 1
jmp 0x409031
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40901b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408fa8
cmp byte [esp], 0
je 0x409051
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409f68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62f05c], 0
je 0x409fcf
cmp word [0x62f34c], 0xd7b2
jne 0x409f91
cmp dword [0x62f354], 0
jbe 0x409f91
mov eax, 0x62f348
call dword [0x62f364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x409ffc
call fcn.0040ab94
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x621036], 0
jne 0x409feb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x621038], 0
je 0x40a1bb
mov edx, edi
mov eax, esi
call dword [0x621038]
mov ebx, eax
jmp 0x40a1cc
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x62f05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a158
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a1fc
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dee0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e047
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a2d0
cmp si, word [0x621a18]
jb 0x40df78
cmp si, word [0x621c18]
ja 0x40df78
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40df78
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x621a18]
jae 0x40df52
mov edi, ebx
dec edi
jmp 0x40df73
cmp si, word [ebx*8 + 0x621a18]
jbe 0x40df62
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40df73
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x621a1c]
call fcn.0040de00
jmp 0x40df78
cmp edi, dword [ebp - 8]
jae 0x40df3c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e027
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e027
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ae98
push dword [ebp - 0x160]
push 0x40e064
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ae98
push dword [ebp - 0x164]
push 0x40e074
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ae98
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b0d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e04e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a330
pop eax
jmp eax
Function at 0x40e1fc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e302
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x631c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x631c30]
jne 0x40e248
mov eax, esi
mov edx, 0x631c32
mov ecx, 0x55
call fcn.0040ae98
push 0x631c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e2ea
push 0x631c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a2d0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e2b7
cmp byte [0x631c14], 0
je 0x40e27c
mov edx, esi
mov eax, ebx
call fcn.0040e0e0
jmp 0x40e2b7
mov edx, esi
mov eax, ebx
call fcn.0040dee0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e2b7
cmp dword [esi], 0
je 0x40e2a0
mov eax, esi
mov edx, 0x40e31c
call fcn.0040aff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dee0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aff4
push 0x631c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x631c30], bx
mov eax, dword [esi]
call fcn.0040ade4
mov ecx, eax
mov eax, 0x631c32
mov edx, 0xaa
call fcn.0040dd60
push 0x631c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e309
lea eax, [ebp - 4]
call fcn.0040a2d0
pop eax
jmp eax
Function at 0x40e544
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a3c4
xor eax, eax
push ebp
push 0x40e76c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e58a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e5a4
mov eax, dword [ebp - 4]
call fcn.0040ade4
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dd60
cmp word [ebp - 0x21e], 0
je 0x40e74f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e77c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e673
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e77c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e673
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e7b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e673
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e7b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e673
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e7ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e673
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e820
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e74f
xor eax, eax
push ebp
push 0x40e748
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e344
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e6d6
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae44
jmp 0x40e721
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e860
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e721
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e860
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e74f
cmp dword [ebp - 0xc], 0
je 0x40e73c
mov eax, dword [ebp - 0xc]
call fcn.00406e58
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e773
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a330
pop eax
jmp eax