joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d485c
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 0x4d4a09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4d49ea
mov dl, 1
mov eax, dword [0x42e51c]
call fcn.0043a3d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406c88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4d49d9
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.004b6ebc
test al, al
je 0x4d49cc
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, 0x4d4a18
lea eax, [ebp - 0x394]
call fcn.00414ec0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4d49cc
xor eax, eax
push ebp
push 0x4d49c5
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 0x4d4a88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4d49ae
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406e88
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4d49ae
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d49cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4d48cf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043a314
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4a10
lea eax, [ebp - 0x3a0]
call fcn.00406c78
ret

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

Disassembly:
push ecx
mov eax, dword [0x54a2c0]
cmp byte [eax + 0xad], 0
jne 0x4d55da
cmp dword [0x54a2d8], 0
jne 0x4d559a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5432cc]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x54a2d8], eax
cmp dword [0x54a2d4], 0
jne 0x4d55b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x54a2d4], eax
cmp dword [0x54a2dc], 0
jne 0x4d55da
push esp
push 0
push 0
mov eax, dword [0x5432c8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x54a2dc], eax
pop edx
ret
Function at 0x4d5900
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4d5917
add esp, 0xfffffff0
call fcn.0040542c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00442a2c
mov eax, dword [0x543f98]
cmp byte [eax], 0
jne 0x4d5944
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x54441c]
cmp word [eax + 2], 0
jne 0x4d595e
mov eax, dword [0x54441c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004d79f8
mov eax, dword [0x5445a0]
cmp word [eax + 2], 0
jne 0x4d5978
mov eax, dword [0x5445a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004d7c08
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x450004]
call fcn.00456540
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4d81b8
mov dl, 1
mov eax, dword [0x42be1c]
call fcn.00404ec8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42be1c]
call fcn.00404ec8
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x454704]
call fcn.0045fdb8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4d5b58
mov eax, dword [0x54423c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0046024c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4d84a0
mov dl, 1
mov eax, dword [0x42be1c]
call fcn.00404ec8
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x54423c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00414cb8
test eax, eax
je 0x4d5a89
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00414a48
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00414c9c
test eax, eax
je 0x4d5aa1
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406e88
push ebx
push 0x4d73c8
call fcn.004cb610
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x543f98]
cmp byte [eax], 0
jne 0x4d5af2
mov eax, ebx
call fcn.004d5ccc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004d86cc
mov eax, ebx
call fcn.004d9300
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4d5b4f
call fcn.00405484
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d5fa0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4d6042
cmp dword [ebx + 0x94], 0
jne 0x4d603c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4d5eec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4d603c
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 0x4d6002
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4d603c
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.00436d54
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4d6011
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x54a2c0]
cmp dword [eax + 0x170], 0
je 0x4d63c5
test bl, bl
jne 0x4d6313
cmp dword [esi + 0x9c], 0
jne 0x4d6308
mov eax, esi
call fcn.004d9150
push eax
push 0x4d616c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4d62d9
mov eax, dword [0x54a2c0]
cmp byte [eax + 0xd3], 0
je 0x4d62d9
mov eax, dword [esi + 0xd8]
call fcn.00408584
mov edi, eax
cmp edi, 0
jl 0x4d62d9
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4d62c2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4d6308
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436d54
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4d62e8
inc dword [esi + 0x9c]
jmp 0x4d63c5
cmp dword [esi + 0x9c], 0
jle 0x4d63c5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4d63c5
cmp dword [esi + 0x44], 0
je 0x4d6370
mov eax, dword [0x54a2c0]
cmp byte [eax + 0xd3], 0
je 0x4d6370
mov eax, dword [esi + 0xd8]
call fcn.00408584
mov edi, eax
cmp edi, 0
jl 0x4d6370
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4d6359
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4d639f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436d54
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4d637f
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4c94e8]
call fcn.00408744
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4d7014
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4d707f
cmp byte [ebx + 0xd3], 0
jne 0x4d707f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406dc4
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4d706c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4d708c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c88
jmp 0x4d708c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c88
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4d88b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4d8922
mov eax, esi
call fcn.004b0e10
test al, al
je 0x4d8922
mov eax, dword [ebx + 0x84]
call fcn.004b0a64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d8922
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4d8916
push 0
mov eax, dword [ebx + 0x84]
call fcn.004b0a64
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004a7a00
jmp 0x4d8922
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004d86ec
pop esi
pop ebx
ret
Function at 0x4db63c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40cc48]
call fcn.004079b8
xor eax, eax
push ebp
push 0x4db786
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x543848], 0
jne 0x4db690
mov ecx, dword [0x543fc4]
mov dl, 1
mov eax, dword [0x40e1f4]
call fcn.004190bc
call fcn.004059d0
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004048bc
mov eax, ebx
call fcn.00406a5c
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4db794
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409cc4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4db6d7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4db72c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4db725
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406ef0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406e88
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00413508
test eax, eax
jne 0x4db725
mov ebx, 0x15
jmp 0x4db731
mov ebx, 0x10
jmp 0x4db731
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x543848]
call fcn.004db4a8
mov eax, dword [ebp - 4]
call fcn.004db4a8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db78d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406c80
lea eax, [ebp - 0xc]
mov edx, dword [0x40cc48]
call fcn.00407a90
ret
Function at 0x4e05a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4e05b8
add esp, 0xfffffff0
call fcn.0040542c
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4e06d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404260
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4e06bc
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004db4a8
xor eax, eax
push ebp
push 0x4e06a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004db4a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406ef0
jmp 0x4e067a
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407538
mov eax, dword [ebx + 4]
call fcn.00406ff8
dec eax
jle 0x4e068e
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4e0668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e06b0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e06d9
lea eax, [ebp - 4]
call fcn.00406890
ret
Function at 0x4f3c60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f3d88
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004f3b4c
mov eax, dword [esi]
call fcn.0040857c
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40e0b0]
call fcn.00408744
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.0040444c
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.0040444c
add ebx, 0x1c
mov eax, dword [esi]
call fcn.0040857c
mov dword [ebp - 0xc], eax
mov eax, dword [0x544738]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004e91f0
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.004048bc
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.0040857c
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004e90a0
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004e8fa4
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004e91e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3d8f
lea eax, [ebp - 4]
mov edx, dword [0x40e0b0]
call fcn.00408864
ret
Function at 0x5145b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 8
call fcn.004048bc
mov eax, edi
call fcn.00414510
test al, al
je 0x5146c5
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.00406d14
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5146c5
mov eax, esi
call fcn.00404294
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5146be
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x514663
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, edi
call fcn.00406d14
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.0041b5c4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5146cc
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueW
call fcn.0041b5c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x514679
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebx], ax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 8]
mov word [ebx + 2], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebx + 4], ax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xc]
mov word [ebx + 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5146c5
mov eax, dword [ebp - 8]
call fcn.004042b0
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x515888
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x544554]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x5158c0
mov edx, dword [0x544554]
cmp byte [eax + 0x29a], 1
je 0x5158c0
mov eax, dword [0x544554]
mov eax, dword [eax]
call fcn.004d6d78
mov eax, dword [0x544554]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.004d2c0c
push 0
mov eax, dword [0x544554]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x515bd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x515c10]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x515bec
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x515bfc
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x515c0c
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x51d338
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec ecx
js 0x51d389
lea eax, [ebp - 0x30]
cmp word [eax + 0x20], 3
je 0x51d370
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x51d360
jmp 0x51d389
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x51d371
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a08
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x405a40
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x405a2e
mov al, 1
jmp 0x405a8a
cmp dword [ebx + 0x54], ecx
jne 0x405a37
mov al, 2
jmp 0x405a8a
cmp dword [ebx + 0x7c], ecx
jne 0x405a8a
mov al, 3
jmp 0x405a8a
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x405a55
mov al, 4
jmp 0x405a8a
cmp ecx, 5
jne 0x405a75
cmp ebx, 0
jne 0x405a63
mov al, 5
jmp 0x405a8a
cmp ebx, 1
jne 0x405a6c
mov al, 6
jmp 0x405a8a
cmp ebx, 2
jne 0x405a75
mov al, 7
jmp 0x405a8a
cmp ecx, 6
jne 0x405a81
cmp ebx, 0
jne 0x405a83
mov al, 8
jmp 0x405a8a
cmp ebx, 1
jne 0x405a8a
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413510
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475d1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046a626
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413592
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046853d
mov eax, dword [eax]
push 0x48e1f0
push eax
call fcn.0045b3c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a8b1
test bl, bl
je 0x413592
push 0x48e1f0
lea ecx, [esp + 0xc]
call fcn.0046ac41
push 0x491d6c
lea ecx, [esp + 0xc]
call fcn.0046ac41
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4135ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a8b1
jmp 0x413699
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x413652
lea edx, [esp + 0x7c]
push 0x491d68
push edx
call fcn.0045b3c4
add esp, 8
test eax, eax
je 0x413652
lea eax, [esp + 0x7c]
push 0x491d64
push eax
call fcn.0045b3c4
add esp, 8
test eax, eax
je 0x413652
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4135e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046a8b1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x413e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x413ef2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc