joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c2bd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.10099a40
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x100c2d41
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x100c2d36
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x100c2d36
lea eax, [ebp - 0x2a8]
push eax
call fcn.10099a40
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.100a0390
pop ecx
test eax, eax
pop ecx
jne 0x100c2c1d
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x100c2d27
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x100c2d1e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x100c2d15
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.1009a5d0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x100c2d15
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x100c2c1d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret
Function at 0x100cb62a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x100cb6c1
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x100cb676
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x1011314c]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x100cb658
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x100cb69d
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x1011314c]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x100cb680
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret

Function at 0x100e5b59
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100e5b67
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
mov eax, dword [ebp + 8]
push esi
push edi
not eax
mov ecx, 0xff
jb 0x100e5c49
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
mov eax, dword [esi*4 + 0x100f7f68]
shr ebx, 8
xor eax, ebx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x100f7f68]
shr eax, 8
xor esi, eax
inc edx
movzx ebx, byte [edx + 1]
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x100f7f68]
shr esi, 8
xor eax, esi
inc edx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x100f7f68]
shr eax, 8
xor esi, eax
inc edx
movzx ebx, byte [edx + 1]
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x100f7f68]
shr esi, 8
xor eax, esi
inc edx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x100f7f68]
inc edx
movzx ebx, byte [edx + 1]
shr eax, 8
xor esi, eax
sub dword [ebp + 0x10], 8
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x100f7f68]
movzx ebx, byte [edx + 1]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x100f7f68]
shr eax, 8
xor eax, esi
inc edx
dec edi
jne 0x100e5b84
pop ebx
cmp dword [ebp + 0x10], 0
je 0x100e5c6a
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
mov esi, dword [esi*4 + 0x100f7f68]
shr eax, 8
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x100e5c4f
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x403470
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax], 0
mov dword [eax + 4], 0
jmp loc.00471a28
Function at 0x406ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
jmp loc.00473e18

Function at 0x407060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407078
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4070aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4070a6
cmp esi, eax
jae 0x4070aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407098
cmp esi, eax
jb 0x4070b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x409310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409416
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094f0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x409409
test ebx, ebx
je 0x409414
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.__s_
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406e00
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409414
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40945c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421df0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x4605d8
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.004097b0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40ae45
cmp edi, 2
jge 0x40ae45
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ae3c
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x40ae08
lea eax, [ebx + 0xd]
jmp 0x40ae28
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x42692c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40ae3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
jmp 0x472f40
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f5be
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40f58d
cmp eax, 2
jne 0x40f5a8
mov eax, dword [ebp - 4]
test esi, esi
je 0x40f5b8
test eax, eax
je 0x40f5b3
test al, 1
jne 0x40f5a8
jmp 0x474e80
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4106c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a520]
jne 0x4106d1
repz ret
jmp fcn.004166aa

Function at 0x41eb40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41eb56
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
jmp loc.004745e8

Function at 0x41ec8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415f87
and dword [ebp - 0x14], 0
cmp dword [0x461790], 0
mov dword [ebp - 0x18], eax
jne 0x41ed3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ede7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp loc.004714b0
mov eax, dword [0x46179c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed98
cmp dword [0x4617a0], ecx
je 0x41ed98
push eax
call esi
push dword [0x4617a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed98
test ebx, ebx
je 0x41ed98
call edi
test eax, eax
je 0x41ed8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed8f
test byte [ebp - 8], 1
jne 0x41ed98
or dword [ebp + 0x10], 0x200000
jmp 0x41edcb
mov eax, dword [0x461794]
cmp eax, dword [ebp - 0x18]
je 0x41edcb
push eax
call esi
test eax, eax
je 0x41edcb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edcb
mov eax, dword [0x461798]
cmp eax, dword [ebp - 0x18]
je 0x41edcb
push eax
call esi
test eax, eax
je 0x41edcb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x461790]
call esi
test eax, eax
je 0x41ede7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ede9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret
Function at 0x41a208
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x490d40]
jne 0x41a212
repz ret
jmp fcn.00421f06

Function at 0x42009c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x490d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041787c
and dword [ebp - 0x14], 0
cmp dword [0x497154], 0
mov dword [ebp - 0x18], eax
jne 0x42014f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4201f7
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4201f7
mov esi, dword [section..data]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x497154], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x497158], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49715c], eax
call edi
push eax
call esi
mov dword [0x497164], eax
test eax, eax
je 0x42014f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x497160], eax
mov eax, dword [0x497160]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x490004]
cmp eax, ecx
je 0x4201a8
cmp dword [0x497164], ecx
je 0x4201a8
push eax
call esi
push dword [0x497164]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4201a8
test ebx, ebx
je 0x4201a8
call edi
test eax, eax
je 0x42019f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42019f
test byte [ebp - 8], 1
jne 0x4201a8
or dword [ebp + 0x10], 0x200000
jmp 0x4201db
mov eax, dword [0x497158]
cmp eax, dword [ebp - 0x18]
je 0x4201db
push eax
call esi
test eax, eax
je 0x4201db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4201db
mov eax, dword [0x49715c]
cmp eax, dword [ebp - 0x18]
je 0x4201db
push eax
call esi
test eax, eax
je 0x4201db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x497154]
call esi
test eax, eax
je 0x4201f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4201f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a208
leave
ret
Function at 0x457c53
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040bc70
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 1
call fcn.00412f40
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x457cae
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.0045340c
cmp word [eax], bx
je 0x457cae
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
call fcn.0045340c
mov edi, eax
call fcn.00410160
mov ebx, eax
cmp dword [ebp + 0x14], 3
jb 0x457cca
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
push eax
call fcn.0045340c
mov edi, eax
call fcn.00410160
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x457d04
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
push eax
call fcn.0045340c
cmp word [eax], 0
je 0x457d04
mov edx, dword [esi + 4]
mov edi, dword [edx + 0xc]
push edi
call fcn.0044cecd
test al, al
jne 0x457d04
push edi
call fcn.004533eb
push eax
lea esi, [ebp - 0x18]
call fcn.0040e0a0
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 5
jb 0x457d1b
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c650
movzx ecx, ax
mov dword [ebp - 8], ecx
push 0x3c
lea edx, [ebp - 0x54]
push 0
push edx
call fcn.00412f40
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], pe_nt_image_headers32
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
mov eax, dword [ecx]
add esp, 0xc
push eax
call fcn.0045340c
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test ebx, ebx
je 0x457d7c
push ebx
call fcn.004111dc
add esp, 4
test edi, edi
je 0x457d89
push edi
call fcn.004111dc
add esp, 4
test esi, esi
jne 0x457dc7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 1
add eax, ecx
call fcn.00403c90
mov esi, dword [ebp + 0x18]
call fcn.00408f40
mov dword [esi + 8], 1
mov dword [esi], 0
lea ecx, [ebp - 0x18]
call fcn.00402250
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x457dec
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x450], eax
lea ecx, [ebp - 0x18]
call fcn.00402250
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x18]
call fcn.00408f40
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], 1
mov dword [esi], 1
test eax, eax
je 0x457db4
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00402250
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x468d9e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebx + 4], esi
je 0x468eb9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov byte [edx], 0
mov byte [eax], 0
mov dword [ecx], esi
lea ebx, [ebx]
push esi
push ebx
call fcn.004364e6
movzx eax, word [eax]
cmp eax, 0x2b
je 0x468e01
cmp eax, 0x5e
je 0x468dfc
cmp eax, 0x21
je 0x468dfc
cmp eax, 0x23
jne 0x468e34
cmp eax, 0x2b
jne 0x468e0a
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
inc esi
jmp 0x468dde
cmp eax, 0x5e
jne 0x468e18
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
inc esi
jmp 0x468dde
cmp eax, 0x21
jne 0x468e26
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
inc esi
jmp 0x468dde
cmp eax, 0x23
jne 0x468e31
mov edx, dword [ebp + 0x1c]
mov byte [edx], 1
inc esi
jmp 0x468dde
push esi
inc esi
push ebx
mov dword [ebp + 0x1c], esi
call fcn.004364e6
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x468f22
mov eax, pe_nt_image_headers32
lea ecx, [ebp - 0x10]
call fcn.004013c0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x7d
call fcn.0045ffc2
test al, al
je 0x468efe
mov edx, dword [ebp - 0x10]
mov eax, dword [edi*4 + 0x492968]
push edx
push eax
call fcn.004114ab
add esp, 8
test eax, eax
je 0x468e8e
inc edi
cmp edi, 0x62
jl 0x468e70
cmp edi, 0x62
jne 0x468ef5
xor edi, edi
lea esi, [ebp - 0x10]
call fcn.00401c90
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [ebp + 0xc]
cwde
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x468ec4
mov ecx, esi
call fcn.00402250
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, 0x200
je 0x468ed1
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x400
je 0x468ede
mov edx, dword [ebp + 0x18]
mov byte [edx], 1
test eax, 0x100
je 0x468f18
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov byte [eax], 1
call fcn.00402250
jmp 0x468f5b
cmp byte [edi + 0x492af0], 0
je 0x468f0c
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00402250
jmp 0x468f5b
movzx ecx, byte [edi + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00402250
jmp 0x468f5b
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 0xc]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x468eb9
test eax, 0x200
je 0x468f41
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test eax, 0x400
je 0x468f4e
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
test eax, 0x100
je 0x468f5b
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0xff
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret

Function at 0x8839b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8839ba
pushal
call 0x8839c0
pop ebp
sub ebp, 0x10
sub ebp, 0x4839b0
jmp 0x8839d6
mov eax, 0x4839b0
add eax, ebp
add eax, 0x4c
mov ecx, 0x61b
mov edx, 0x7881ec6e
xor byte [eax], dl
inc eax
dec ecx
jne 0x8839ed
jmp 0x883a00
in eax, 0xa3
in eax, 0xe7
push edx
outsb dx, byte [esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
out dx, eax
scasd eax, dword es:[edi]
xchg esi, eax
outsb dx, byte [esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
insd dword es:[edi], dx
mov dword [0x6e6e65d6], eax
outsb dx, byte [esi]
aam 0x46
outsb dx, byte [esi]
outsb dx, byte [esi]
outsb dx, byte [esi]
cdq
mov word [ebp - 0x5a], gs
in eax, 0xef
bound ebp, qword [esi + 0x6e]
outsb dx, byte [esi]
insd dword es:[edi], dx
stosd dword es:[edi], eax
jecxz 0x883a33
dec edx
xchg edx, eax
out 0x6a, eax
dec edx
push es
adc ah, byte [eax + 0x6e]
push es
invalid