joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4463cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47bcfc]
cmp byte [eax + 0xc], 0
je 0x446539
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x446532
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47cbe8], 0
jne 0x446420
push 0x446540
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x446548
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cbe8], eax
cmp dword [0x47ab10], 0
jne 0x44651b
push 0x446558
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47ab10], eax
cmp dword [0x47ab10], 0
je 0x44651b
push 0x446564
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cbec], eax
push 0x446574
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cbf0], eax
push 0x446588
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cbf4], eax
push 0x4465a0
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cbf8], eax
push 0x4465b8
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cbfc], eax
push 0x4465cc
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cc00], eax
push 0x4465e4
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cc04], eax
push 0x4465fc
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cc08], eax
push 0x446618
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cc0c], eax
push 0x446624
mov eax, dword [0x47ab10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47cc10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446539
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44a604
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404330
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44a653
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404598
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452494
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4524e4]
test si, 4
je 0x4524a8
or bl, 1
test si, 8
je 0x4524b2
or bl, 4
test si, 1
je 0x4524bc
or bl, 8
test si, 2
je 0x4524c6
or bl, 0x10
test si, 0x10
je 0x4524d0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4524df
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4524e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452520]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452501
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452510
or bl, 4
test esi, 0x20000000
je 0x45251b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x458b24
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x458b36
add esp, 0xfffffff0
call fcn.0040390c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ec94
mov eax, dword [0x47b984]
mov dword [eax + 4], ebx
mov dword [eax], 0x458ec8
mov eax, dword [0x47b994]
mov dword [eax + 4], ebx
mov dword [eax], 0x458ed4
mov eax, ebx
call fcn.00458ee0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4553a8
push eax
push 0
push 0
mov eax, dword [0x47baf4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4206cc]
call fcn.00421da0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4206cc]
call fcn.00421da0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4206cc]
call fcn.00421da0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00459300
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4591dc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4591dc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4591dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458c73
call fcn.00403964
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458fc0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45916b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45914c
mov dl, 1
mov eax, dword [0x4151cc]
call fcn.00403578
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404330
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45913b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044672c
test al, al
je 0x45912e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45917c
lea eax, [ebp - 0x254]
call fcn.0040928c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45912e
xor eax, eax
push ebp
push 0x459127
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4591b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459110
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404598
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x459110
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404598
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45912e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459031
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041932c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459172
lea eax, [ebp - 0x260]
call fcn.00404330
ret

Function at 0x459aa0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47cc2c]
cmp byte [eax + 0xa5], 0
jne 0x459b11
cmp dword [0x47cc44], 0
jne 0x459ad2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459a5c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47cc44], eax
cmp dword [0x47cc40], 0
jne 0x459aed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47cc40], eax
cmp dword [0x47cc48], 0
jne 0x459b11
push esp
push 0
push 0
push 0x459a00
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47cc48], eax
pop edx
ret
Function at 0x459c08
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459c1f
add esp, 0xfffffff0
call fcn.0040390c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ec94
mov eax, dword [0x47bae4]
cmp word [eax + 2], 0
jne 0x459c47
mov eax, dword [0x47bae4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b2e4
mov eax, dword [0x47bb84]
cmp word [eax + 2], 0
jne 0x459c61
mov eax, dword [0x47bb84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b4dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414cdc]
call fcn.00403578
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42114c]
call fcn.00428a98
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459de8
mov eax, dword [0x47b9f0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428e68
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ba4c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47b9f0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c8b4
test eax, eax
je 0x459d56
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bd4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8dc
test eax, eax
je 0x459d6a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404598
mov eax, dword [0x47b8ac]
cmp byte [eax], 0
jne 0x459d9e
mov eax, ebx
call fcn.00459f10
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045bc28
mov eax, ebx
call fcn.0045c568
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459dde
call fcn.00403964
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a184
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47cc2c]
cmp dword [eax + 0x30], 0
je 0x45a22e
cmp dword [ebx + 0x94], 0
jne 0x45a228
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a114
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a228
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a1ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a228
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041737c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a1fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ad0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45ad41
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404420
jmp 0x45ad4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404384
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45be04
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45be45
mov eax, esi
call fcn.00441e20
test al, al
je 0x45be45
mov eax, dword [ebx + 0x84]
call fcn.00441b1c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45be45
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441b1c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x468824
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x468852
mov eax, ebx
call fcn.004692dc
cmp dword [ebx + 0x3c], 0
je 0x46884b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4688c3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4688b5
cmp dword [ebx + 8], 0
je 0x468874
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x468886
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4688b5
cmp dword [ebx + 8], 0
je 0x468867
cmp eax, 3
je 0x468899
dec eax
jne 0x468867
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x468867
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x468867
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4688e1
cmp dword [ebx + 0x10], 0xcc
je 0x4688e1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004688ec
pop ebx
ret
Function at 0x4056d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405ac0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40585d
test edi, edi
je 0x40585d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405794
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40576f
cmp edi, 0xffffffff
je 0x405733
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405733
mov byte [esp], 0
jmp 0x40585d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40576f
test ebx, ebx
jne 0x405768
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025b0
test eax, eax
jne 0x405768
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40585d
pause
dec ebp
test ebp, ebp
jg 0x405718
cmp edi, 0xffffffff
je 0x405794
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405792
mov byte [esp], 0
jmp 0x40585d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056e2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025b0
cmp ebx, eax
jne 0x405794
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058d0
mov edx, eax
mov ebx, dword [0x4ee8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057fb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057f9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057fb
xor edi, edi
cmp byte [esp], 0
je 0x405824
mov ebx, dword [esi]
test bl, 1
jne 0x40583d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025b0
cmp ebx, eax
jne 0x405801
mov byte [esp + 1], 1
jmp 0x40583d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025b0
cmp ebx, eax
jne 0x405824
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057ae
cmp byte [esp], 0
je 0x40585d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4065d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ee050], 0
je 0x406639
cmp word [0x4ee32c], 0xd7b2
jne 0x406601
cmp dword [0x4ee334], 0
jbe 0x406601
mov eax, 0x4ee328
call dword [0x4ee344]
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
push 0x406664
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e8028], 0
jne 0x406655
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4067e4
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 [0x4e802c], 0
je 0x40680f
mov edx, edi
mov eax, esi
call dword [0x4e802c]
mov ebx, eax
jmp 0x406820
mov eax, 8
call fcn.00404398
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ee051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067ac
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 0x406855
mov edx, 8
mov eax, ebx
call fcn.004043b4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x408b00
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 0x408c65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406928
cmp si, word [0x4e87dc]
jb 0x408b98
cmp si, word [0x4e89dc]
ja 0x408b98
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408b98
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4e87dc]
jae 0x408b72
mov edi, ebx
dec edi
jmp 0x408b93
cmp si, word [ebx*8 + 0x4e87dc]
jbe 0x408b82
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408b93
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e87e0]
call fcn.00408a10
jmp 0x408b98
cmp edi, dword [ebp - 8]
jae 0x408b5c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408c47
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c47
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.00407330
push dword [ebp - 0x160]
push 0x408c80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407330
push dword [ebp - 0x164]
push 0x408c90
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407330
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c6c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406988
ret
Function at 0x408e18
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 0x408f1b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f0b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f0b6a]
jne 0x408e64
mov eax, esi
mov edx, 0x4f0b6c
mov ecx, 0x55
call fcn.00407330
push 0x4f0b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f05
push 0x4f0b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406928
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ed3
cmp byte [0x4f0b50], 0
je 0x408e98
mov edx, esi
mov eax, ebx
call fcn.00408cfc
jmp 0x408ed3
mov edx, esi
mov eax, ebx
call fcn.00408b00
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408ed3
cmp dword [esi], 0
je 0x408ebc
mov eax, esi
mov edx, 0x408f34
call fcn.00407488
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408b00
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407488
push 0x4f0b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f0b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040728c
push eax
push 0x4f0b6c
call sub.kernel32.dll_lstrcpynW
push 0x4f0b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f22
lea eax, [ebp - 4]
call fcn.00406928
ret
Function at 0x409150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a0c
xor eax, eax
push ebp
push 0x409375
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409190
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4091aa
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040728c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40935f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409384
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409279
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409384
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409279
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409279
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409279
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409279
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40935f
xor eax, eax
push ebp
push 0x409358
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f5c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092e8
mov eax, dword [ebp - 0x10]
call fcn.00404398
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072dc
jmp 0x409333
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409468
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409333
mov eax, dword [ebp - 0x10]
call fcn.00404398
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409468
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40935f
cmp dword [ebp - 8], 0
je 0x40934e
mov eax, dword [ebp - 8]
call fcn.004043b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40937c
lea eax, [ebp - 4]
call fcn.00406928
ret