joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dde0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
xor eax, 0xea8d
add eax, 0x11372
add eax, 0xd18f
or eax, 0x83b6
pop eax
push edx
push ecx
add esp, 4
mov eax, dword [edx]
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 0xcb4]
je 0x41de06
mov edx, dword [ebp - 0x50c]
cmp dword [edx + 0x30], 0
jne 0x41dbd1
mov dword [ebp - 0x318], 0
mov edx, dword [ebp - 0x768]
add edx, 1
mov dword [ebp - 0x768], edx
Function at 0x43e980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dace
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
mov eax, dword [0x5f6be0]
and eax, 1
jne 0x43e9f3
mov ecx, dword [0x5f6be0]
or ecx, 1
mov dword [0x5f6be0], ecx
mov dword [ebp - 4], 0
mov ecx, 0x5f6bc4
call fcn.0041a680
push 0x5a3400
call fcn.0056cdea
add esp, 4
mov dword [ebp - 4], 0xffffffff
movzx edx, byte [0x5f6bc0]
cmp edx, 1
jne 0x43ea23
push 0x5f6bc4
mov ecx, dword [ebp + 8]
call fcn.0041a6a0
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 8]
jmp 0x43eaf8
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0056b960
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43ead2
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x238]
call fcn.0041a680
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23c]
push ecx
movzx edx, word [ebp - 0x21c]
push edx
call fcn.00417c50
add esp, 8
movzx eax, al
test eax, eax
je 0x43eac0
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00418350
add esp, 8
movzx eax, al
test eax, eax
je 0x43eac0
lea ecx, [ebp - 0x238]
push ecx
mov ecx, 0x5f6bc4
call fcn.0041a6d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00417280
mov byte [0x5f6bc0], 1
push 0x5f6bc4
mov ecx, dword [ebp + 8]
call fcn.0041a6a0
mov edx, dword [ebp - 0x240]
or edx, 1
mov dword [ebp - 0x240], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret
Function at 0x44b750
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f528
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5f4964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 8], 0
je 0x44b786
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x44b78f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x44b7a2
xor al, al
jmp 0x44b92d
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x44b7c7
xor al, al
jmp 0x44b92d
mov dword [ebp - 0x1c], 0
jmp 0x44b7d9
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x10]
jge 0x44b91a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x44b7f8
jmp 0x44b7d0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00415010
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004161f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004161f0
mov byte [ebp - 4], 2
push 0
movzx ecx, word [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00422890
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x44b8b3
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041d840
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x24]
call fcn.004150c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00423040
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00420f20
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004150c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00423040
jmp 0x44b8bf
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004150c0
push 0x22
push 0x22
lea ecx, [ebp - 0x24]
call fcn.0044bae0
mov ecx, eax
call fcn.0044ba50
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00417130
push eax
mov ecx, dword [ebp - 0x38]
call fcn.004232e0
mov ecx, eax
call fcn.004150c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00423040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00423040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00423040
jmp 0x44b7d0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x18], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4594a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4594a9
xor ecx, ecx
jne 0x4594a9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4594ca
mov eax, 0xd
jmp 0x459525
xor eax, eax
jne 0x4594b1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x4594db
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4600c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.004afd70
add esp, 4
mov dword [ebp - 4], 3
push 9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47fe20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x47fe33
xor al, al
jmp 0x47ff07
mov byte [ebp - 5], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x47fee5
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47fed4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
push 0x5f8b8d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.0057016b
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x47fed4
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47fed4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jne 0x47fed4
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
movzx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x47ff04
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047fd50
add esp, 0xc
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x490460
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], vtable.CSiteSlideHelper.0
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.00492430
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x3c], 1
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x3d], 1
push 8
push 0
mov edx, dword [ebp - 8]
add edx, 0x24
push edx
call fcn.0056b960
add esp, 0xc
push 8
push 0
mov eax, dword [ebp - 8]
add eax, 0x2c
push eax
call fcn.0056b960
add esp, 0xc
movzx ecx, byte [0x5f7a34]
test ecx, ecx
je 0x49059e
movzx edx, byte [0x5f7a14]
test edx, edx
jne 0x49059e
mov byte [0x5f7a14], 1
push str.UxTheme.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49053a
push str.BeginPanningFeedback
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a18], eax
push str.EndPanningFeedback
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a1c], eax
push str.UpdatePanningFeedback
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a20], eax
push 0x5aaec4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49059e
push str.GetGestureInfo
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a24], eax
push str.CloseGestureInfoHandle
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a28], eax
push str.SetGestureConfig
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a2c], eax
push str.GetGestureConfig
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f7a30], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4a75c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a763a
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jae 0x4a763a
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a763a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a763a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0056f7b0
add esp, 0xc
mov eax, 1
jmp 0x4a763c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a7640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a769e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a769e
cmp dword [ebp + 0x10], 0
je 0x4a7692
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4a76a0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a76b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a7640
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a772f
cmp dword [ebp - 4], 0
jbe 0x4a772f
mov dword [ebp - 0xc], 0
push 0x5ab484
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.005702e1
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4a772f
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0056bcbd
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.0056c5cf
add esp, 4
mov eax, 1
jmp 0x4a7731
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4add90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596129
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], 0
cmp dword [ebp + 0xc], 0
jne 0x4adde5
mov ecx, dword [ebp + 8]
call fcn.0041a680
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
jmp 0x4adf3b
lea ecx, [ebp - 0x2c]
call fcn.0041a680
mov dword [ebp - 4], 1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4adf17
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4adf06
push 0x5f8b8d
mov eax, dword [ebp - 0x34]
push eax
call fcn.0057016b
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x4adf06
mov edx, dword [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 0x38]
push eax
call fcn.0056b960
add esp, 0xc
mov dword [ebp - 0x3c], 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4adeed
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x34]
jne 0x4adeed
lea ecx, [ebp - 0x4c]
call fcn.004a8740
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004ae9a0
add esp, 0xc
test eax, eax
je 0x4adeed
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004a8760
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
call fcn.00422f30
push eax
lea ecx, [ebp - 0x2c]
call fcn.004199b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00423040
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.0056b4f0
add esp, 4
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041a6a0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00417280
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret
Function at 0x4aef90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4aef50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4aefe8
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4afbb0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x4afbce
xor eax, eax
jmp 0x4afcb4
mov dword [ebp - 0x14], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x4afbf0
mov eax, 1
jmp 0x4afcb4
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x4afca7
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x4afc47
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
jmp 0x4afc95
mov edx, dword [ebp - 0x10]
push edx
call fcn.004afb00
add esp, 4
test eax, eax
je 0x4afc8e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x4afc7f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x4afc7d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4afc86
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x4afc95
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x4afcb1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4afcc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.0056b960
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4afd32
movzx edx, byte [ebp - 0xf6]
and edx, 0x80
jne 0x4afd32
push 0
push 1
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov dword [ebp - 0x10c], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x10c], 0
je 0x4afd59
push 0
push 3
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret
Function at 0x4b0e30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b0e8d
cmp dword [ebp - 0x11c], 6
jae 0x4b0e6d
xor eax, eax
jmp 0x4b0e8f
cmp dword [ebp - 0x11c], 6
jne 0x4b0e86
cmp dword [ebp - 0x118], 0
sbb eax, eax
add eax, 1
jmp 0x4b0e8f
mov eax, 1
jmp 0x4b0e8f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret

Function at 0x4b1390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.0056d570
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
jne 0x4b13b4
xor al, al
jmp 0x4b1473
mov byte [ebp - 0x2010], 0
push 0x1fff
push 0
lea eax, [ebp - 0x200f]
push eax
call fcn.0056b960
add esp, 0xc
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b13f7
cmp dword [ebp - 0xc], 0x1fff
jbe 0x4b13fb
xor al, al
jmp 0x4b1473
mov byte [ebp - 1], 0
lea eax, [ebp - 0x2010]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4b1470
mov dword [ebp - 0x2014], 0
mov dword [ebp - 0x2018], 0
lea eax, [ebp - 0x2018]
push eax
lea ecx, [ebp - 0x2014]
push ecx
push 0x5abac8
lea edx, [ebp - 0x2010]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4b1470
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2014]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2014]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret