joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4049ab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x404a75
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
add edx, 8
sub esi, 8
dec edi
jne 0x4049c0
pop edi
test esi, esi
je 0x404a9a
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x450060]
lea edx, [edx + 1]
dec esi
jne 0x404a80
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x405280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x4052c6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4052c1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4052ee
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4052d7
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004340d0
add esp, 0xc
add dword [edi + 0x18], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b46
mov esp, ebp
pop ebp
ret
Function at 0x405310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
je 0x405355
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405350
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x405382
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x405366
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.004340d0
lea eax, [ebx + edi]
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x4053a0
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b46
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40538d
cmp byte [esi + 8], 0
je 0x40538d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00432b46
mov esp, ebp
pop ebp
ret
Function at 0x4054b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4054f8
cmp byte [edi + 1], 0
je 0x4054e7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4054fe
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b46
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
je 0x40551d
cmp byte [edi + 1], 0
je 0x405519
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x405520
xor eax, eax
jmp 0x405520
mov eax, dword [edi + 0x18]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], ebx
call fcn.00433895
mov esi, eax
add esp, 4
test esi, esi
jne 0x405556
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b46
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ebx, eax
jbe 0x40565a
lea ebx, [ebx]
mov ecx, dword [ebp - 0xc]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 0xc]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x4055be
cmp byte [edi + 1], 0
je 0x40565a
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4055c1
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x4055e9
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4055e4
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x405612
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x4055fc
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.004340d0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x40565a
lea eax, [ebx - 3]
test eax, eax
jle 0x40564c
dec eax
cmp byte [eax + esi], 0x50
jne 0x40563e
cmp byte [eax + esi + 1], 0x4b
jne 0x40563e
cmp byte [eax + esi + 2], 5
jne 0x40563e
cmp byte [eax + esi + 3], 6
je 0x405644
test eax, eax
jg 0x405622
jmp 0x40564c
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x40565a
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jb 0x405570
push esi
call fcn.0043381f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00432b46
mov esp, ebp
pop ebp
ret
Function at 0x4064d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x406568
cmp dword [esi + 4], 0xffffffff
jne 0x406568
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x406500
cmp dword [ebp + 0x10], 1
mov eax, dword [0x44ec04]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x406533
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x406533
mov eax, 0x2000000
pop edi
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00405110
add esp, 8
test eax, eax
jne 0x406554
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
mov ecx, eax
call fcn.00405680
mov dword [esi], eax
mov eax, dword [0x45ef64]
pop edi
pop esi
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc

Function at 0x406ce0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x406dca
movzx eax, word [ebx]
test ax, ax
je 0x406dca
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x406d1e
cmp ax, 0x5c
jne 0x406d20
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x406d12
cmp edi, ebx
je 0x406d6a
sub edi, ebx
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00433927
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x406dda
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, esi
mov word [ebp + edi - 0x20c], ax
call fcn.00406ce0
lea ecx, [ebp - 0x414]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x406d72
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x406d83
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406da0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b46
mov esp, ebp
pop ebp
ret
call fcn.00433e71
int3
Function at 0x4100a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x45ef78]
push esi
test eax, eax
jne 0x4100b8
call fcn.00410150
test eax, eax
je 0x4100f8
mov eax, dword [0x45ef78]
cmp eax, 1
jne 0x4100d4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4100f8
pop esi
ret
push eax
call dword [0x45ef80]
test eax, eax
jne 0x410147
push 0x40
push 0x1000
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4100fc
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45ef78]
call dword [0x45ef80]
mov edi, eax
test edi, edi
je 0x410124
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
ret
lea edi, [esi + 0xff0]
lea ebx, [ebx]
push esi
push dword [0x45ef78]
call dword [0x45ef7c]
add esi, 0x10
cmp esi, edi
jb 0x410130
mov eax, esi
pop edi
pop esi
ret

Function at 0x4121e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
test ebx, ebx
jne 0x412200
mov dword [edi], 1
jmp 0x4122cf
push 2
push 0
push 0
push ebx
call fcn.00435a4d
push ebx
call fcn.0043550b
add esp, 0x14
mov esi, eax
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], edx
call fcn.00435a4d
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
jg 0x412243
jl 0x412239
test esi, esi
jae 0x412243
mov esi, 2
jmp 0x4122c4
xor ecx, ecx
cmp esi, esi
jne 0x4122bf
cmp ecx, eax
jne 0x4122bf
mov eax, 1
test esi, esi
cmovne eax, esi
push eax
call dword [0x45ca08]
add esp, 4
mov dword [ebp + 8], eax
push ebx
test eax, eax
jne 0x412276
call fcn.00435f3a
mov dword [edi], 3
jmp 0x4122cc
push esi
push 1
push eax
call fcn.00435e22
push ebx
mov esi, eax
call fcn.00435f3a
mov eax, dword [ebp - 4]
add esp, 0x14
cmp esi, eax
je 0x4122a2
push dword [ebp + 8]
call dword [0x45ca04]
mov dword [edi], 2
jmp 0x4122cc
mov ecx, dword [ebp - 8]
push 1
push 1
sub esp, 8
push eax
push dword [ebp + 8]
push edi
call fcn.00412620
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 3
push ebx
call fcn.00435f3a
mov dword [edi], esi
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
test edx, edx
je 0x4152a4
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x415280
sub edx, esi
sar edx, 1
je 0x4152a4
mov edx, dword [ebp + 0xc]
push 0
mov ecx, ebx
call fcn.004072a0
mov ecx, eax
jmp 0x415371
push 0x340
call fcn.00433353
mov esi, eax
add esp, 4
test esi, esi
je 0x4152d0
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
jmp 0x4152d2
xor esi, esi
cmp dword [esi], 0
jne 0x415344
cmp dword [esi + 4], 0xffffffff
jne 0x415344
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4152f3
mov eax, dword [0x44ec04]
push 0x1c
mov dword [edi], eax
mov dword [ebp - 8], 0
call fcn.00433353
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
add esp, 4
mov ecx, eax
mov word [eax], 0x100
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.00405680
mov dword [esi], eax
mov eax, dword [0x45ef64]
pop edi
jmp 0x415349
mov eax, 0x1000000
mov dword [0x45ef68], eax
test eax, eax
je 0x41535f
push esi
call fcn.00432b41
add esp, 4
xor ecx, ecx
jmp 0x415374
push 8
call fcn.00433353
mov ecx, eax
mov dword [ecx], 1
mov dword [ecx + 4], esi
add esp, 4
xor eax, eax
test ecx, ecx
mov dword [0x45ef84], ecx
mov ecx, dword [ebp - 4]
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b46
mov esp, ebp
pop ebp
ret 0x10

Function at 0x416610
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], vtable.FooUI::Widgets::Event::FMouseEvent.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push 0x5b
mov dword [esi + 0xc], 0
call edi
test ax, ax
js 0x416662
push 0x5c
call edi
test ax, ax
jns 0x416666
or dword [esi + 0xc], 8
push 0x11
call edi
test ax, ax
jns 0x416673
or dword [esi + 0xc], 2
push 0x10
call edi
test ax, ax
jns 0x416680
or dword [esi + 0xc], 4
push 0x12
call edi
test ax, ax
jns 0x41668d
or dword [esi + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4166c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov byte [esi + 4], 0
mov dword [esi + 8], 0x11
mov dword [esi], vtable.FooUI::Widgets::Event::FWheelEvent.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0x5b
mov dword [esi + 0xc], 0
call edi
test ax, ax
js 0x416705
push 0x5c
call edi
test ax, ax
jns 0x416709
or dword [esi + 0xc], 8
push 0x11
call edi
test ax, ax
jns 0x416716
or dword [esi + 0xc], 2
push 0x10
call edi
test ax, ax
jns 0x416723
or dword [esi + 0xc], 4
push 0x12
call edi
test ax, ax
jns 0x416730
or dword [esi + 0xc], 1
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x416750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x5b
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], vtable.FooUI::Widgets::Event::FKeyEvent.0
mov dword [esi + 0xc], 0
call edi
test ax, ax
js 0x416786
push 0x5c
call edi
test ax, ax
jns 0x41678a
or dword [esi + 0xc], 8
push 0x11
call edi
test ax, ax
jns 0x416797
or dword [esi + 0xc], 2
push 0x10
call edi
test ax, ax
jns 0x4167a4
or dword [esi + 0xc], 4
push 0x12
call edi
test ax, ax
jns 0x4167b1
or dword [esi + 0xc], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
movzx eax, cx
mov dword [esi + 0x14], eax
shr ecx, 0x10
pop edi
mov dword [esi + 0x18], ecx
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4183a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4464b3
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x45b080]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x68], 0
jne 0x4183fb
push 0x1c
call fcn.00433353
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x60], 0
test eax, eax
je 0x4183f6
push esi
mov ecx, eax
call fcn.00410220
jmp 0x4183f8
xor eax, eax
mov dword [esi + 0x68], eax
lea ecx, [esp + 0xc]
call fcn.004167d0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x60], 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
or dword [esp + 0x1c], 8
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.0040ceb0
mov ecx, dword [esi + 0x68]
lea eax, [esp + 0x18]
push eax
call fcn.00410350
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x419d60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
sub eax, 0x111
je 0x419dbd
sub eax, 0x22
jne 0x419ec4
mov eax, dword [ebx + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x419d8a
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 0x14]
jne 0x419ec4
mov esi, dword [ebp + 0x10]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 0x18]
pop esi
mov byte [eax], 1
mov eax, dword [ebx + 0xcc]
pop ebx
mov eax, dword [eax + 4]
pop ebp
ret 0x14
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x419dcd
mov eax, dword [eax + 4]
mov esi, dword [ebp + 0x14]
cmp eax, esi
jne 0x419ec4
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov edx, 0x300
push edi
cmp dx, ax
jne 0x419e73
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x419df7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
test ecx, ecx
jg 0x419e1e
push 0x452dbc
lea ecx, [ebx + 0x24]
call fcn.00407b70
push ecx
push 0x10000
push 0x8000
jmp 0x419e5b
mov eax, dword [ebx + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x419e2f
xor edi, edi
jmp 0x419e32
mov edi, dword [eax + 4]
lea eax, [ecx + 1]
push eax
push eax
lea ecx, [ebx + 0x24]
call fcn.004079a0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ecx
lea ecx, [ebx + 0x24]
call fcn.004079e0
push ecx
push 0x8000
push 0x10000
mov ecx, ebx
call fcn.00409780
push 0
push 1
push 0x19
push dword [ebx + 0x1c]
mov ecx, ebx
push ebx
call fcn.0040cc50
mov eax, dword [ebx + 0xcc]
mov edi, dword [sym.imp.USER32.dll_LockWindowUpdate]
push dword [eax]
call edi
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebx + 0xcc]
push esi
push dword [ebp + 0x10]
push 0x111
push dword [eax]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcW]
push 0
mov esi, eax
call edi
mov ecx, dword [ebp + 0x18]
pop edi
mov eax, esi
pop esi
mov byte [ecx], 1
pop ebx
pop ebp
ret 0x14
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
Function at 0x41a0d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov edx, esi
test esi, esi
je 0x41a0f7
lea esp, [esp]
mov eax, dword [edx + 0x30]
shr eax, 6
test al, 1
je 0x41a12b
mov eax, dword [edx + 0xc8]
mov edx, dword [eax + 0x28]
test edx, edx
jne 0x41a0e0
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x41a17a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a17a
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x41a16e
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x41a17a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a17a
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x41a15e
push eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
mov eax, dword [eax + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4

Function at 0x41a180
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x41a1c2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a1c2
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x41a1b6
push eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x421590
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4469db
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x45b080]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x45b080]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0xcc]
je 0x4217ce
movzx esi, ax
mov dword [edi + 0xcc], eax
movzx ebx, word [edi + 0xce]
lea eax, [esi - 8]
cmp eax, 0x9d
ja case.0x421602.9
movzx eax, byte [eax + 0x4217fc]
jmp dword [eax*4 + 0x4217f4]
xor esi, esi
jmp 0x421611
test esi, esi
jne 0x42162a
test ebx, ebx
jne 0x42162a
push 0x452f50
mov dword [edi + 0xcc], ebx
call fcn.004095e0
jmp 0x4217bd
mov eax, dword [0x45c5a8]
mov ecx, 0x45c5a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x228], 0
test bl, 8
je 0x42165e
push 6
push str.Win_
lea ecx, [esp + 0x18]
call fcn.00407de0
test bl, 2
je 0x421673
push 7
push str.Ctrl_
lea ecx, [esp + 0x18]
call fcn.00407de0
test bl, 4
je 0x421688
push 8
push str.Shift_
lea ecx, [esp + 0x18]
call fcn.00407de0
test bl, 1
je 0x42169d
push 6
push str.Alt_
lea ecx, [esp + 0x18]
call fcn.00407de0
lea eax, [esi - 0x13]
cmp eax, 0x7d
ja case.0x4216b0.20
movzx eax, byte [eax + 0x4218e4]
jmp dword [eax*4 + 0x42189c]
push str.Pause_Break
jmp 0x421783
push str.Page_Up
jmp 0x421783
push str.Page_Down
jmp 0x421783
push 0x452fd4
jmp 0x421783
push str.Home
jmp 0x421783
push str.Left
jmp 0x421783
push 0x452ff4
jmp 0x421783
push str.Right
jmp 0x421783
push str.Down
jmp 0x421783
push str.Select
jmp 0x421783
push str.Print
jmp 0x421783
push str.Execute
jmp 0x421783
push str.Snapshot
jmp 0x421783
push str.Insert
jmp 0x421783
push str.Delete
jmp 0x421783
push str.Help
jmp 0x421783
push str.Num_Lock
jmp 0x421783
test esi, esi
je 0x42178c
xor eax, eax
push 0x1fc
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
call fcn.00437d40
add esp, 0xc
lea eax, [esp + 0x14]
push 0xff
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00407bc0
mov esi, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.004095e0
add esi, 0xfffffff0
mov dword [esp + 0x228], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4217bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 2
push 0x19
push dword [edi + 0x1c]
mov ecx, edi
push edi
call fcn.0040cc50
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00432b46
mov esp, ebp
pop ebp
ret 4