joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d388]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d369
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d378
or bl, 4
test esi, 0x20000000
je 0x44d383
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453a30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453a42
add esp, 0xfffffff0
call fcn.004035d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b208
mov eax, dword [0x478838]
mov dword [eax + 4], ebx
mov dword [eax], 0x453dd4
mov eax, dword [0x478848]
mov dword [eax + 4], ebx
mov dword [eax], 0x453de0
mov eax, ebx
call fcn.00453dec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
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, 0x450208
push eax
push 0
push 0
mov eax, dword [0x478a8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cc4c]
call fcn.0041e090
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cc4c]
call fcn.0041e090
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cc4c]
call fcn.0041e090
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045420c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4540e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4540e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4540e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453b7f
call fcn.0040362c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453ecc
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 0x454077
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454058
mov dl, 1
mov eax, dword [0x41255c]
call fcn.00403298
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404084
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454047
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.00441ebc
test al, al
je 0x45403a
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, 0x454088
lea eax, [ebp - 0x254]
call fcn.00409028
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45403a
xor eax, eax
push ebp
push 0x454033
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 0x4540c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45401c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042f4
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 0x45401c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45403a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453f3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416d54
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 0x45407e
lea eax, [ebp - 0x260]
call fcn.00404084
ret

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

Disassembly:
push ecx
mov eax, dword [0x479bb4]
cmp byte [eax + 0xa5], 0
jne 0x454a1d
cmp dword [0x479bcc], 0
jne 0x4549de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454968
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479bcc], eax
cmp dword [0x479bc8], 0
jne 0x4549f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479bc8], eax
cmp dword [0x479bd0], 0
jne 0x454a1d
push esp
push 0
push 0
push 0x45490c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x479bd0], eax
pop edx
ret
Function at 0x454b14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454b2b
add esp, 0xfffffff0
call fcn.004035d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b208
mov eax, dword [0x478a64]
cmp word [eax + 2], 0
jne 0x454b53
mov eax, dword [0x478a64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004561ec
mov eax, dword [0x478b98]
cmp word [eax + 2], 0
jne 0x454b6d
mov eax, dword [0x478b98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004563e4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403298
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], 0xff000018
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 [0x41d3fc]
call fcn.00423080
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454cf4
mov eax, dword [0x4788f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423450
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456994
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4788f8]
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.0040c7ac
test eax, eax
je 0x454c62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004089ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7d4
test eax, eax
je 0x454c76
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.004042f4
mov eax, dword [0x4786e0]
cmp byte [eax], 0
jne 0x454caa
mov eax, ebx
call fcn.00454e1c
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.00456b70
mov eax, ebx
call fcn.00457534
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454cea
call fcn.0040362c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45509c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bb4]
cmp dword [eax + 0x30], 0
je 0x455146
cmp dword [ebx + 0x94], 0
jne 0x455140
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45502c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455140
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 0x455106
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455140
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.004145d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455115
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455ca8
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 0x455cdd
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.00404174
jmp 0x455cea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456d4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456d8d
mov eax, esi
call fcn.0043d4a4
test al, al
je 0x456d8d
mov eax, dword [ebx + 0x84]
call fcn.0043d1a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456d8d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d1a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4584d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
pop edi
pop esi
pop ebx
ret
Function at 0x458648
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x4587ca
cmp dword [ebp - 8], 0
je 0x458699
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.004576e4
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004576d4
jmp 0x45869b
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x4586c5
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.004576e4
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004576d4
jmp 0x4586c7
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x4586f4
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.004576e4
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004576d4
jmp 0x4586f9
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x458725
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x45872a
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45876a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458776
cmp dword [ebp - 8], 0
je 0x458792
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004576bc
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x4587ae
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004576bc
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x4587ca
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004576bc
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4587d8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x34]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp eax, 0xffffffff
je 0x458815
add dword [ebx + 0x38], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x458acc
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00404084
test ebx, ebx
je 0x458b6d
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x458b08
mov eax, ebx
call fcn.00404544
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x458b79
mov eax, esi
mov edx, ebx
call fcn.004040d8
jmp 0x458b79
mov eax, ebx
call fcn.00404544
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x458b79
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x458b88
call fcn.004090a8
jmp 0x458b79
mov eax, esi
mov edx, 0x458b9c
call fcn.004040d8
add esp, 0x20
pop edi
pop esi
pop ebx
ret
Function at 0x461ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x461ef8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4620ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x462100
mov eax, esi
call fcn.0045fc80
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004040d8
lea ecx, [ebp - 0x10]
mov edx, 0x462114
mov eax, esi
call fcn.0045fc80
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004040d8
lea ecx, [ebp - 0x14]
mov edx, 0x46212c
mov eax, esi
call fcn.0045fc80
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004040d8
lea ecx, [ebp - 0x18]
mov edx, 0x462148
mov eax, esi
call fcn.0045fc80
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004040d8
lea ecx, [ebp - 0x1c]
mov edx, 0x462164
mov eax, esi
call fcn.0045fc80
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004040d8
lea ecx, [ebp - 0x24]
mov edx, 0x46217c
mov eax, esi
call fcn.0045fc80
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407f04
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040847c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x462194
mov eax, esi
call fcn.0045fc80
mov eax, dword [ebp - 0x28]
call fcn.0045ed98
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4621a4
mov eax, esi
call fcn.0045fc80
mov eax, dword [ebp - 0x2c]
call fcn.0045ed98
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4621bc
mov eax, esi
call fcn.0045fc80
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040847c
inc eax
je 0x46208d
lea ecx, [ebp - 0x34]
mov edx, 0x4621bc
mov eax, esi
call fcn.0045fc80
mov eax, dword [ebp - 0x34]
call fcn.00408440
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409978
fstp qword [ebp - 0x3c]
wait
call fcn.00409cdc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4620a8
lea ecx, [ebp - 0x40]
mov edx, 0x4621bc
mov eax, esi
call fcn.0045fc80
mov eax, dword [ebp - 0x40]
call fcn.0045ed98
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4621cc
mov eax, esi
call fcn.0045fc80
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004040d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4620f1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004040a8
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004040a8
ret
Function at 0x46e388
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46e3e2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046e378
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045d908
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0045d508
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e3e9
lea eax, [ebp - 4]
call fcn.00404084
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004068c0
test esi, esi
jne 0x404580
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.004069fc
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c8050], 0
je 0x405e9d
cmp word [0x4c832c], 0xd7b2
jne 0x405e65
cmp dword [0x4c8334], 0
jbe 0x405e65
mov eax, 0x4c8328
call dword [0x4c8344]
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 0x405ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c2030], 0
jne 0x405eb9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406028
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c2034], 0
je 0x40604e
mov edx, esi
mov eax, ebx
call dword [0x4c2034]
jmp 0x40605d
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c8051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405ff0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40867c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4087e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068c0
cmp si, word [0x4c27d0]
jb 0x408716
cmp si, word [0x4c29d0]
ja 0x408716
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408716
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c27d0]
jae 0x4086f0
mov edi, ebx
dec edi
jmp 0x408711
cmp si, word [ebx*8 + 0x4c27d0]
jbe 0x408700
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408711
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4c27d4]
call fcn.0040858c
jmp 0x408716
cmp edi, dword [ebp - 0xc]
jae 0x4086da
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087c5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087c5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406ac0
push dword [ebp - 0x164]
push 0x408800
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406ac0
push dword [ebp - 0x168]
push 0x408810
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406ac0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087ea
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068b8
ret
Function at 0x408814
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4089fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4cab58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4cab70]
cmp ax, word [ebp - 2]
jne 0x40886c
mov eax, dword [ebp - 6]
mov edx, 0x4cab74
mov ecx, 0x55
call fcn.00406ac0
push 0x4cab58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4089e4
push 0x4cab58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004068c0
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089ac
cmp byte [0x4cab54], 0
je 0x408962
call dword [0x4cab4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4cab50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40895b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4cab48]
test al, al
je 0x408934
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4cab48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408929
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408925
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408912
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089ac
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4cab50]
cmp dword [ebp - 0x10], 0
je 0x40895a
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0040867c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4089ac
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408991
mov eax, dword [ebp - 6]
mov edx, 0x408a14
call fcn.00406cd4
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0040867c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406cd4
mov eax, dword [ebp - 6]
push 0x4cab58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4cab70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.0040694c
push eax
push 0x4cab74
call sub.kernel32.dll_lstrcpynW
push 0x4cab58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a01
lea eax, [ebp - 0x1c]
call fcn.004068b0
ret