joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a17d4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a197f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5a1960
mov dl, 1
mov eax, dword [0x439850]
call fcn.004612c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00407cd0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5a194f
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.00519628
test al, al
je 0x5a1942
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5a1990
lea eax, [ebp - 0x394]
call fcn.004211e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5a1942
xor eax, eax
push ebp
push 0x5a193b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5a1a00
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5a1924
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040880c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5a1924
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040880c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1942
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5a1845
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004611f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1986
lea eax, [ebp - 0x3a0]
call fcn.00407cd0
ret

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

Disassembly:
push ecx
mov eax, dword [0x5e47d4]
cmp byte [eax + 0xc5], 0
jne 0x5a25ae
cmp dword [0x5e47f8], 0
jne 0x5a256e
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x5dcef8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5e47f8], eax
cmp dword [0x5e47f4], 0
jne 0x5a2589
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5e47f4], eax
cmp dword [0x5e47fc], 0
jne 0x5a25ae
push esp
push 0
push 0
mov eax, dword [0x5dcef4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5e47fc], eax
pop edx
ret
Function at 0x5a2980
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5a2997
add esp, 0xfffffff0
call fcn.00406548
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0046deb8
mov eax, dword [0x5dcfdc]
cmp byte [eax], 0
jne 0x5a29c4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x5dd31c]
cmp word [eax + 2], 0
jne 0x5a29de
mov eax, dword [0x5dd31c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005a4ddc
mov eax, dword [0x5dd448]
cmp word [eax + 2], 0
jne 0x5a29f8
mov eax, dword [0x5dd448]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005a4fe0
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4d7370]
call fcn.004dd9dc
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5a545c
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4dc27c]
call fcn.004e739c
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5a2be8
mov eax, dword [0x5dd1c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004e7824
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5a571c
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5dd1c0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00420fe4
test eax, eax
je 0x5a2b12
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00420e3c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00420fc8
test eax, eax
je 0x5a2b2a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040880c
push ebx
push 0x5a47bc
call fcn.00598168
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5dcfdc]
cmp byte [eax], 0
jne 0x5a2b7b
mov eax, ebx
call fcn.005a2db0
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005a5954
mov eax, ebx
call fcn.005a65dc
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5a2bdf
call fcn.004065a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a30dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5a317e
cmp dword [ebx + 0xac], 0
jne 0x5a3178
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5a301c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5a3178
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_GetWindowLongW
test al, 8
je 0x5a313e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5a3178
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.0045d210
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5a314d
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5a3424
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5e47d4]
cmp dword [eax + 0x188], 0
je 0x5a358d
test bl, bl
jne 0x5a34e0
cmp dword [esi + 0xb4], 0
jne 0x5a34d5
mov eax, esi
call fcn.005a642c
push eax
push 0x5a3324
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5a34a6
mov eax, dword [0x5e47d4]
cmp byte [eax + 0xeb], 0
je 0x5a34a6
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5a3487
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5a34a6
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5a348f
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5a34d5
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0045d210
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5a34b5
inc dword [esi + 0xb4]
jmp 0x5a358d
cmp dword [esi + 0xb4], 0
jle 0x5a358d
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5a358d
cmp dword [esi + 0x58], 0
je 0x5a3542
mov eax, dword [0x5e47d4]
cmp byte [eax + 0xeb], 0
je 0x5a3542
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5a3523
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5a3542
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5a352b
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5a3571
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0045d210
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5a3551
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5947d8]
call fcn.0040a100
pop edi
pop esi
pop ebx
ret
Function at 0x5a42d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5a4335
cmp byte [ebx + 0xeb], 0
jne 0x5a4335
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407e58
mov eax, dword [esi]
test eax, eax
je 0x5a4322
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5a4342
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004080b0
jmp 0x5a4342
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004080b0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5a5b68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5a5bd9
mov eax, esi
call fcn.005131e8
test al, al
je 0x5a5bd9
mov eax, dword [ebx + 0x98]
call fcn.00512e14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5a5bd9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x140]
test al, al
je 0x5a5bca
push 0
mov eax, dword [ebx + 0x98]
call fcn.00512e14
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00509cec
jmp 0x5a5bd9
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005a5974
pop esi
pop ebx
ret
Function at 0x5ad444
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5ad4ca
mov eax, dword [ebx + 8]
call fcn.00512e14
mov ecx, eax
mov dl, 1
mov eax, dword [0x5221c0]
call fcn.0050d020
mov dword [ebx + 0x8c], eax
mov esi, dword [ebx + 0x8c]
xor edx, edx
mov eax, esi
call fcn.0052ae4c
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5acd14
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00512e14
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00512e14
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5ad54c
mov eax, dword [ebx + 8]
call fcn.00512e14
mov ecx, eax
mov dl, 1
mov eax, dword [0x5221c0]
call fcn.0050d020
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov dl, 1
mov eax, esi
call fcn.0052ae4c
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5acd60
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00512e14
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00512e14
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5ad5ca
mov eax, dword [ebx + 8]
call fcn.00512e14
mov ecx, eax
mov dl, 1
mov eax, dword [0x522c68]
call fcn.0050d020
mov dword [ebx + 0x94], eax
mov esi, dword [ebx + 0x94]
mov byte [esi + 0x2a0], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00512e14
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00512e14
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5c8f58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c9017
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005c80c4
dec eax
jge 0x5c8f9b
push 1
push 0x5c9024
push 0x5c9024
push 0x5c9028
push 0x5c9024
mov eax, ebx
call fcn.00512e14
push eax
call sub.shell32.dll_ShellExecuteW
push 0x24
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00509de8
mov eax, dword [ebp - 4]
call fcn.0040876c
mov ecx, eax
mov edx, 0x5c908c
mov eax, dword [0x5dd414]
mov eax, dword [eax]
call fcn.005a4e60
cmp eax, 6
jne 0x5c8ff9
push 1
push 0
push 0
lea eax, [ebp - 8]
call fcn.005c7ec4
mov eax, dword [ebp - 8]
call fcn.0040876c
push eax
push 0
mov eax, ebx
call fcn.00512e14
push eax
call sub.shell32.dll_ShellExecuteW
mov eax, dword [0x5dd414]
mov eax, dword [eax]
call fcn.005a4d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c901e
lea eax, [ebp - 8]
call fcn.00407cd0
lea eax, [ebp - 4]
call fcn.00407cd0
ret
Function at 0x4076f4
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.0040a40c
test esi, esi
jne 0x40772a
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.0040a5a4
jmp 0x407748
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407638
mov edi, eax
test esi, esi
je 0x407748
cmp dword [ebx], 0
je 0x407748
dec esi
jmp 0x407731
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409054
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.00409514
mov byte [esp], al
cmp byte [esp], 0
jne 0x4091dd
test edi, edi
je 0x4091dd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40911d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090f8
cmp edi, 0xffffffff
je 0x4090b9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090b9
mov byte [esp], 0
jmp 0x4091dd
cmp dword [esi], 1
jg 0x4090f8
cmp dword [esi], 0
jne 0x4090ea
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4090ea
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4091dd
lea eax, [esp + 0xc]
call fcn.00408d08
dec ebp
test ebp, ebp
jg 0x40909e
cmp edi, 0xffffffff
je 0x40911d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40911b
mov byte [esp], 0
jmp 0x4091dd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409062
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40911d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409258
mov edx, eax
mov ebx, dword [0x6948fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409181
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40917f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409181
xor edi, edi
cmp byte [esp], 0
je 0x4091a7
mov ebx, dword [esi]
test bl, 1
jne 0x4091bd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409187
mov byte [esp + 1], 1
jmp 0x4091bd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091a7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409134
cmp byte [esp], 0
je 0x4091dd
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 0x40a0a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69405c], 0
je 0x40a10b
cmp word [0x694348], 0xd7b2
jne 0x40a0cd
cmp dword [0x694350], 0
jbe 0x40a0cd
mov eax, 0x694344
call dword [0x694360]
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, 0x40a138
call fcn.0040ac24
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x68a036], 0
jne 0x40a127
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a2cc
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 [0x68a038], 0
je 0x40a2f7
mov edx, edi
mov eax, esi
call dword [0x68a038]
mov ebx, eax
jmp 0x40a308
mov eax, 8
call fcn.00406fe8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x69405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a294
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 0x40a338
mov eax, ebx
call fcn.00407004
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dba0
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 0x40dd07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a40c
cmp si, word [0x68aa18]
jb 0x40dc38
cmp si, word [0x68ac18]
ja 0x40dc38
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dc38
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x68aa18]
jae 0x40dc12
mov edi, ebx
dec edi
jmp 0x40dc33
cmp si, word [ebx*8 + 0x68aa18]
jbe 0x40dc22
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dc33
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x68aa1c]
call fcn.0040dabc
jmp 0x40dc38
cmp edi, dword [ebp - 8]
jae 0x40dbfc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dce7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dce7
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.0040af24
push dword [ebp - 0x160]
push 0x40dd24
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040af24
push dword [ebp - 0x164]
push 0x40dd34
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040af24
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b15c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd0e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a46c
pop eax
jmp eax
Function at 0x40debc
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 0x40dfc2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x696c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x696c30]
jne 0x40df08
mov eax, esi
mov edx, 0x696c32
mov ecx, 0x55
call fcn.0040af24
push 0x696c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dfaa
push 0x696c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a40c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df77
cmp byte [0x696c14], 0
je 0x40df3c
mov edx, esi
mov eax, ebx
call fcn.0040dda0
jmp 0x40df77
mov edx, esi
mov eax, ebx
call fcn.0040dba0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40df77
cmp dword [esi], 0
je 0x40df60
mov eax, esi
mov edx, 0x40dfdc
call fcn.0040b07c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dba0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b07c
push 0x696c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x696c30], bx
mov eax, dword [esi]
call fcn.0040ae70
mov ecx, eax
mov eax, 0x696c32
mov edx, 0xaa
call fcn.0040da1c
push 0x696c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfc9
lea eax, [ebp - 4]
call fcn.0040a40c
pop eax
jmp eax
Function at 0x40e204
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.0040a500
xor eax, eax
push ebp
push 0x40e42c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e24a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e264
mov eax, dword [ebp - 4]
call fcn.0040ae70
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040da1c
cmp word [ebp - 0x21e], 0
je 0x40e40f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e43c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e333
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e43c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e333
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e478
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e333
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e478
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e333
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e333
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e40f
xor eax, eax
push ebp
push 0x40e408
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e004
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 0x40e396
mov eax, dword [ebp - 0x14]
call fcn.00406fe8
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.0040aed0
jmp 0x40e3e1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e520
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e3e1
mov eax, dword [ebp - 0x14]
call fcn.00406fe8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e520
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aed0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e40f
cmp dword [ebp - 0xc], 0
je 0x40e3fc
mov eax, dword [ebp - 0xc]
call fcn.00407004
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 0x40e433
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a46c
pop eax
jmp eax