joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462660
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 0x46280b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4627ec
mov dl, 1
mov eax, dword [0x416af4]
call fcn.00403a4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4627db
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.0044fc9c
test al, al
je 0x4627ce
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, 0x46281c
lea eax, [ebp - 0x254]
call fcn.00409c40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4627ce
xor eax, eax
push ebp
push 0x4627c7
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 0x462854
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4627b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a50
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 0x4627b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4627ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4626d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b1e8
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 0x462812
lea eax, [ebp - 0x260]
call fcn.004047e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x513c38]
cmp byte [eax + 0xa5], 0
jne 0x4631b1
cmp dword [0x513c50], 0
jne 0x463172
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4630fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x513c50], eax
cmp dword [0x513c4c], 0
jne 0x46318d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x513c4c], eax
cmp dword [0x513c54], 0
jne 0x4631b1
push esp
push 0
push 0
push 0x4630a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x513c54], eax
pop edx
ret
Function at 0x4632d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4632ef
add esp, 0xfffffff0
call fcn.00403de0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420b68
mov eax, dword [0x5122e0]
cmp word [eax + 2], 0
jne 0x463317
mov eax, dword [0x5122e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004649b4
mov eax, dword [0x512428]
cmp word [eax + 2], 0
jne 0x463331
mov eax, dword [0x512428]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464bac
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416490]
call fcn.00403a4c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416490]
call fcn.00403a4c
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 [0x423140]
call fcn.0042b184
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4634b8
mov eax, dword [0x5120e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b554
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46511c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5120e4]
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.0040db70
test eax, eax
je 0x463426
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409540
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040db98
test eax, eax
je 0x46343a
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.00404a50
mov eax, dword [0x511e30]
cmp byte [eax], 0
jne 0x46346e
mov eax, ebx
call fcn.004635e0
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.004652f8
mov eax, ebx
call fcn.00465c38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4634ae
call fcn.00403e38
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463854
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x513c38]
cmp dword [eax + 0x30], 0
je 0x4638fe
cmp dword [ebx + 0x94], 0
jne 0x4638f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4637e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4638f8
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 0x4638be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4638f8
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.00418cd8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4638cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4643dc
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 0x464411
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.004048d8
jmp 0x46441e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040483c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4654d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465515
mov eax, esi
call fcn.0044b28c
test al, al
je 0x465515
mov eax, dword [ebx + 0x84]
call fcn.0044af88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465515
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044af88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46d5e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d6bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x513cb8], 0
jne 0x46d6a0
lea eax, [ebp - 4]
mov edx, 0x46d6d4
call fcn.00404880
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c98
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46d6a0
mov eax, ebx
call fcn.004027e0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46d699
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46d683
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46d6e4
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46d683
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x513cb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d6a0
mov eax, dword [ebp - 0xc]
call fcn.00402800
ret
mov ebx, dword [0x513cb8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d6c3
lea eax, [ebp - 4]
call fcn.004047e8
ret

Function at 0x4734ac
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x513cdc], 0
jne 0x4734cf
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x473420
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x513cdc], eax
ret

Function at 0x474650
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0044b28c
test al, al
je 0x4746ab
cmp bl, 7
jne 0x474687
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x47468c
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xcc]
test eax, eax
je 0x4746ab
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, edi
call fcn.0042c07c
mov byte [esi + 0x220], bl
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x499ed3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x510eae
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x499f2b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x510ecf
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x499f21
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x499f2f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4ad814
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4ad842
mov eax, ebx
call fcn.004ae2cc
cmp dword [ebx + 0x3c], 0
je 0x4ad83b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4ad8b3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4ad8a5
cmp dword [ebx + 8], 0
je 0x4ad864
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 0x4ad876
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4ad8a5
cmp dword [ebx + 8], 0
je 0x4ad857
cmp eax, 3
je 0x4ad889
dec eax
jne 0x4ad857
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 0x4ad857
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4ad857
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4ad8d1
cmp dword [ebx + 0x10], 0xcc
je 0x4ad8d1
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.004ad8dc
pop ebx
ret
Function at 0x4c64fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c675c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c655f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c5fc4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d658
cmp al, 1
jne 0x4c655f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c62dc
test al, al
je 0x4c66eb
cmp dword [ebp - 8], 0
jge 0x4c657d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c5fc4
mov eax, dword [ebp - 0x210]
call fcn.00404aa0
cmp ebx, eax
jge 0x4c65c7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c5fc4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5126d8]
and eax, 0xff
bt dword [edx], eax
jae 0x4c65c7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c65db
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c64d8
cmp ebx, dword [ebp - 8]
je 0x4c66dd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c6607
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c78
and eax, 0x7f
movzx eax, word [eax*2 + 0x511980]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c66ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c78
and eax, 0x7f
movzx eax, word [eax*2 + 0x511980]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044af88
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c78
and eax, 0x7f
movzx eax, word [eax*2 + 0x511980]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044af88
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c66d1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c673e
cmp dword [ebp - 8], 0
jge 0x4c66f6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c5fc4
mov eax, dword [ebp - 0x218]
call fcn.00404aa0
cmp eax, dword [ebp - 8]
jg 0x4c6730
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c5fc4
mov eax, dword [ebp - 0x21c]
call fcn.00404aa0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c64d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6763
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040480c
ret
Function at 0x4dbd24
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4dbd68
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409744
add esp, 0x200
pop ebx
ret

Function at 0x4e2034
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4e206f
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418cd8
mov al, byte [eax + 0x2a0]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418cd8
pop edx
mov byte [eax + 0x2a0], dl
inc ebx
dec edi
jne 0x4e2047
pop edi
pop esi
pop ebx
ret
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x416f75d4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x69646817
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4013c2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x4020e8
call fcn.0040168c
xor edi, edi
push edi
call dword [sym.imp.orauts.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4013fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4013fd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401415
cmp eax, 0x20b
je 0x401402
mov dword [ebp - 0x1c], edi
jmp 0x401429
cmp dword [ecx + 0x84], 0xe
jbe 0x4013fd
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401423
cmp dword [ecx + 0x74], 0xe
jbe 0x4013fd
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40302c], 0xffffffff
or dword [0x403030], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x403024]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x403020]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403028], eax
call fcn.004015ce
call fcn.00401677
cmp dword [0x403010], edi
jne 0x401489
push 0x401674
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040165c
push 0x40300c
push 0x403008
call sub.MSVCR71.dll__initterm
push 0x401612
call fcn.004015bc
mov eax, dword [0x40301c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x403018]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x4014dd
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x403004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401000
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x401519
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40154e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004016c7
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x4edc9c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebx, ecx
mov dword [esp], edx
lea esi, [esp + 8]
lea edi, [esp + 4]
lea ebp, [esp + 0xc]
mov edx, eax
mov ecx, edx
and ecx, 0xfffff000
mov dword [esp + 0x10], ecx
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [0x4df5ec]
mov dword [edi], eax
jmp 0x4edcd1
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, dword [esi]
mov dword [ebp], eax
mov eax, dword [esi]
cmp eax, dword [esp + 0x10]
jae 0x4edc95
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp]
cmp eax, dword [esp + 0x14]
jbe 0x4edca5
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esi]
cmp eax, dword [ebp]
jae 0x4edccb
push 4
push 0x1000
mov eax, dword [ebp]
sub eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualAlloc
test eax, eax
jne 0x4edccb
xor eax, eax
mov dword [ebx], eax
jmp 0x4edcda
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, 0x4df5ec
cmp eax, dword [edi]
jne 0x4edc76
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ee600
Capabilities:
Get geographical location

Disassembly:
cmp dword [0x4df61c], 0
jle 0x4ee60c
cmp dword [0x4df61c], 0xc
jge 0x4ee5e1
mov dword [0x4df5c8], 7
jmp 0x4ee60c
mov eax, dword [0x4df61c]
or eax, 2
mov edx, dword [0x4df620]
mov dword [edx], eax
mov eax, dword [0x4df620]
add eax, 4
call fcn.004ee30b
xor eax, eax
mov dword [0x4df620], eax
xor eax, eax
mov dword [0x4df61c], eax
ret

Function at 0x4f17a4
Capabilities:
Get disk size

Disassembly:
test edx, edx
je 0x4f17ca
mov ecx, dword [eax]
test ecx, ecx
je fcn.004f1503
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, dword [ecx - 4]
mov edx, dword [esi - 4]
add edx, edi
cmp esi, ecx
je 0x4f17bf
call fcn.004f1b0b
mov eax, esi
mov ecx, dword [esi - 4]
mov edx, dword [ebx]
add edx, edi
call fcn.004ef173
pop edi
pop esi
pop ebx
ret
call fcn.004f1b0b
mov eax, dword [ebx]
mov ecx, edi
jmp 0x4f17b2
ret