joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433018
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, pe_nt_image_headers32
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
jne 0x43315c
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
test ax, ax
jns 0x4330cd
cmp edi, 0x21
je 0x43305b
push 0x10
call ebx
test ax, ax
jns 0x4330cd
cmp edi, 9
jne 0x4330cd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, 0xbc2
mov dword [ebp + 8], eax
push ebx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
mov esi, eax
push edi
push edi
push 0x130b
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x433098
push edi
push edi
push 0x1304
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
dec eax
push eax
push 0x130c
push esi
call edi
test eax, eax
js 0x4330c6
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x4e
push dword [ebp + 8]
mov dword [ebp - 4], 0xfffffdd9
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
call edi
xor eax, eax
jmp 0x4331a7
push 0x11
call ebx
test ax, ax
jns 0x433196
cmp edi, 0x22
je 0x4330e8
cmp edi, 9
jne 0x433196
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, 0xbc2
mov dword [ebp + 0xc], eax
push ebx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
mov dword [ebp + 8], eax
push edi
push edi
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x1304
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageA]
dec eax
or ecx, 0xffffffff
cmp esi, eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmovge esi, ecx
lea eax, [esi + 1]
mov esi, dword [ebp + 8]
push eax
push 0x130c
push esi
call edi
test eax, eax
js 0x4330c6
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x4e
push dword [ebp + 0xc]
jmp 0x4330b7
mov ebx, 0x87
cmp dword [ebp + 0xc], ebx
jne 0x433196
test esi, esi
je 0x433196
cmp dword [esi + 4], eax
jne 0x433196
cmp dword [esi + 8], 9
jne 0x433196
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x433196
push esi
push edi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_CallWindowProcA]
or eax, 4
jmp 0x4331a7
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4331eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x433205
test al, 0x10
je 0x433205
xor eax, eax
inc eax
jmp 0x433207
xor eax, eax
pop ebp
ret 4
Function at 0x435252
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0x150
push esi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x128], eax
call ebx
cmp eax, edi
je 0x435450
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4352ce
inc eax
push eax
push 0
mov dword [ebp - 0x12c], eax
call fcn.00484e16
mov edi, eax
mov dword [ebp - 0x138], eax
test edi, edi
je 0x4352ce
push dword [ebp - 0x12c]
push dword [edi]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4352d6
xor edi, edi
mov dword [ebp - 0x138], edi
push 0
push 0
push 0x14b
push esi
call ebx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x128]
push 3
push 0x46c
push dword [eax + 4]
call ebx
test eax, eax
je 0x43543b
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x128]
push 4
push 0x46c
push dword [eax + 4]
call ebx
test eax, eax
je 0x43543b
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x128]
push 1
push 0x46c
push dword [eax + 4]
call ebx
test eax, eax
je 0x43543b
mov eax, dword [ebp - 0x128]
push 0x7fff
push dword [eax + 0x10]
lea eax, [ebp - 0x90]
push dword [ebp - 0xb]
push dword [ebp - 0xf]
push eax
push dword [ebp - 0x9f]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x130]
push dword [eax]
call fcn.0043254b
mov eax, dword [ebp - 0x130]
cmp dword [0x49e1ec], 0x400
sbb edx, edx
and dword [ebp - 0x128], 0
mov eax, dword [eax]
and edx, 0x7fff801f
add edx, 0x7fe0
mov dword [ebp - 0x140], edx
mov ecx, dword [eax + 0x16]
mov eax, dword [eax + 0x1a]
mov dword [ebp - 0x12c], ecx
test eax, eax
je 0x4353d3
mov eax, dword [eax]
jmp 0x4353d5
xor eax, eax
mov dword [ebp - 0x134], eax
test ecx, ecx
jle 0x43542b
mov edi, eax
cmp dword [ebp - 0x128], edx
jge 0x435425
push edi
push 0
push 0x143
push esi
call ebx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4353f9
sub ecx, edx
mov edx, dword [ebp - 0x140]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x12c]
sub ecx, eax
add edi, eax
inc dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
test ecx, ecx
jg 0x4353e1
mov edi, dword [ebp - 0x138]
push dword [ebp - 0x13c]
push 0
push 0x151
push esi
call ebx
test edi, edi
je 0x435450
push dword [edi]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
push 0
call fcn.00484d0c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret 0xc
Function at 0x435a39
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push dword [edi + 4]
push ebx
push 0
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x435ab8
push dword [edi + 8]
lea eax, [ebp - 0x21c]
push ebx
push eax
push dword [edi]
call fcn.0042f904
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x435a8d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret 8

Function at 0x438e21
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0x3e9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
push 0x3ea
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0x10]
push 0
push 0x470
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
pop ebp
ret 0xc
Function at 0x45498a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x40c], esi
xor edi, edi
mov dword [ebp - 0x408], eax
call fcn.0045ed49
test eax, eax
je 0x4549ec
push 0x134
push esi
push 0xc0001
call fcn.0040bde8
cmp eax, 7
jne 0x4549da
xor esi, esi
jmp 0x4549ef
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
add esi, 2
jmp 0x4549ef
xor esi, esi
inc esi
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.004872d7
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp byte [eax], 0
je 0x454ae2
cmp esi, 1
jne 0x454b14
push 0x3d
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x454acf
mov byte [esi], 0
inc esi
cmp byte [esi], 0x7b
jne 0x454a51
push 0x7d
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
pop ecx
pop ecx
test eax, eax
jne 0x454a53
mov eax, esi
push 0x3b
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x454a68
mov byte [edi], 0
inc edi
push dword [0x49a414]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x454a99
push dword [0x49a418]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x454a99
xor ecx, ecx
inc ecx
jmp 0x454aa2
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jne 0x454aa2
xor esi, esi
mov eax, dword [str.Microsoft_Office]
test ecx, ecx
push esi
push dword [ebp - 0x408]
cmovne eax, dword [0x49a40c]
push eax
push dword [ebp - 0x40c]
call dword [0x49df38]
mov esi, eax
neg esi
sbb esi, esi
add esi, 2
jmp 0x454ad2
push 2
pop esi
mov dword [ebp - 0x408], edi
mov eax, edi
test edi, edi
jne 0x454a12
cmp esi, 1
jne 0x454b14
test ebx, ebx
je 0x454af0
cmp byte [ebx], 0
jne 0x454af2
xor ebx, ebx
push ebx
push dword [0x49a41c]
push dword [0x49a410]
push dword [ebp - 0x40c]
call dword [0x49df38]
mov esi, eax
neg esi
sbb esi, esi
add esi, 2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret 0x10

Function at 0x455222
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0xc]
and dword [ecx], 0
cmp eax, 0xffffffff
je 0x455263
test al, 1
je 0x455243
mov dword [ecx], 1
test al, 2
je 0x45524a
or dword [ecx], 2
test al, 4
je 0x455251
or dword [ecx], 4
test al, 0x10
je 0x455258
or dword [ecx], 0x10
test al, 0x20
je 0x45525f
or dword [ecx], 0x20
xor eax, eax
pop ebp
ret
push 2
pop eax
pop ebp
ret
Function at 0x455429
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp - 0x14]
mov ecx, 0x49a640
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], 2
push 5
xor ebx, ebx
mov dword [ebp - 0x10], 0x18
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
jmp 0x455530
push dword [esi*4 + 0x49a69c]
add eax, 0x18
mov dword [ebp - 0x14], eax
call fcn.0047a838
push 2
push eax
push dword [0x49e1e8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4554e9
push ebx
push dword [0x49e1e8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4554e9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4554e9
push ebx
push dword [0x49e1e8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4554e9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4554e9
push ebx
push eax
push dword [ebp - 0xc]
call fcn.00489fea
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4554f6
push 0x50000
call fcn.0040b8c0
mov ebx, dword [ebp - 4]
cmp esi, 5
je 0x45550e
cmp esi, 6
je 0x45550e
cmp esi, 0xd
je 0x45550e
cmp esi, 0xe
je 0x45550e
xor ecx, ecx
jmp 0x455511
xor ecx, ecx
inc ecx
xor eax, eax
cmp esi, 3
sete al
push eax
push ecx
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00455358
mov edx, dword [ebp - 0x14]
inc esi
mov ecx, dword [ebp - 8]
lea eax, [edx - 1]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ecx]
jl 0x45545a
add ecx, 4
add eax, 0xa
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
cmp ecx, 0x49a660
jl 0x455533
mov eax, dword [0x49df80]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x455dc5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x49df7c], 0
je 0x455e29
cmp byte [0x49c6f9], 0
je 0x455e29
mov ecx, dword [0x49a6d8]
test ecx, ecx
jne 0x455df0
cmp dword [0x49a6e0], ecx
jne 0x455df9
push 0x64
jmp 0x455e24
cmp dword [0x49a6e0], 0
je 0x455e1b
mov eax, dword [ebp + 8]
cmp eax, dword [0x49a5c0]
je 0x455e1b
push 0
push dword [0x49a6e4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [0x49a6e0], 0
jmp 0x455dec
test ecx, ecx
je 0x455e29
push 0x2bc
call fcn.00455d73
pop ebp
ret 4

Function at 0x455e2d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49a6d8]
xor ecx, ecx
inc ecx
cmp dword [ebp + 8], 0
cmove eax, ecx
cmp dword [0x49a6dc], 0
mov dword [0x49a6d8], eax
je 0x455e67
push 0xa
push dword [0x49a6e4]
call dword [sym.imp.USER32.dll_KillTimer]
neg eax
sbb eax, eax
inc eax
mov dword [0x49a6dc], eax
jmp 0x455e85
cmp dword [0x49a6e0], 0
je 0x455e85
push 0
push dword [0x49a6e4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [0x49a6e0], 0
pop ebp
ret 4

Function at 0x456f62
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push dword [0x49c4e8]
call fcn.0045cb67
push 0
push dword [0x49df4c]
push dword [0x49cc18]
call fcn.00478064
push dword [0x49df4c]
mov esi, eax
push dword [0x49cc18]
call fcn.00477cdd
mov ebx, eax
test ebx, ebx
je 0x4570d4
push dword [0x49c4e8]
call fcn.0045ca68
mov dword [ebp - 0x414], eax
test eax, eax
je 0x4570d4
push edi
xor edi, edi
test ebx, ebx
jle 0x4570cd
cmp dword [esi + 8], 0
jne 0x4570bb
mov eax, dword [esi + 4]
test eax, eax
jne 0x456ff5
mov dword [ebp - 0x40c], 0x49a7b8
jmp 0x456ffd
mov eax, dword [eax]
mov dword [ebp - 0x40c], eax
mov eax, dword [esi]
push edi
push esi
push dword [eax]
call fcn.00456903
test eax, eax
je 0x45707b
push 0xa
lea ecx, [ebp - 0x404]
push 0x400
push ecx
push eax
mov dword [ebp - 0x410], ecx
call fcn.0045ee91
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45702f
sub ecx, edx
mov byte [ebp + ecx - 0x404], 0x2d
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, eax
mov dword [ebp - 0x408], eax
lea eax, [edx + 1]
mov dword [ebp - 0x418], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x457055
sub edx, dword [ebp - 0x418]
lea eax, [edx + 1]
push eax
lea eax, [ebp + ecx - 0x403]
push eax
push dword [ebp - 0x408]
call fcn.00489fea
jmp 0x457085
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0x410], eax
mov edx, dword [ebp - 0x40c]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x408], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457096
sub ecx, dword [ebp - 0x408]
push ecx
push edx
push 1
push 0
push dword [ebp - 0x410]
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc edi
add esi, 0xc
cmp edi, ebx
jl 0x456fd8
mov eax, dword [ebp - 0x414]
push eax
call sub.ADVAPI32.dll_RegCloseKey
pop edi
push dword [0x49df4c]
push dword [0x49cc18]
call fcn.004779fc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret
Function at 0x45ed49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45ed63
test al, 0x10
jne 0x45ed63
xor eax, eax
inc eax
jmp 0x45ed65
xor eax, eax
pop ebp
ret 4

Function at 0x45eda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
xor edi, edi
push esi
call fcn.0045ed2c
test al, al
mov ecx, 0x8000
cmovne esi, dword [ebp + 0x14]
jmp 0x45edeb
push 0
lea eax, [ebp + 0x14]
push eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ee10
mov eax, dword [ebp + 0x14]
mov ecx, 0x8000
cmp eax, ecx
jne 0x45ee07
sub esi, ecx
add ebx, ecx
add edi, ecx
cmp esi, ecx
ja 0x45edc4
push 0
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ee10
mov eax, dword [ebp + 0x14]
add eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
or eax, 0xffffffff
jmp 0x45ee09

Function at 0x45ee15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, 0x8000
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x45ee48
push ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45ee6b
mov ecx, 0x8000
cmp dword [ebp + 0x10], ecx
jne 0x45ee6b
sub esi, ecx
add edi, ecx
lea eax, [ebp + 0x10]
push 0
push eax
cmp esi, ecx
ja 0x45ee2b
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45ee6b
cmp dword [ebp + 0x10], esi
jne 0x45ee6b
mov eax, dword [ebp - 4]
jmp 0x45ee6e
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46dd17
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebp - 0x18]
mov eax, dword [ebx + 0xc]
lea esi, [ebx + 0x28]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
push ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov dword [esi], 1
mov dword [ebx + 0x44], 0x1a
call fcn.0046b2c2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0
je 0x46dd72
mov dword [ebp - 0x30], 0x202
jmp 0x46dd95
push 3
push 0x20e
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x46dda5
mov dword [ebp - 0x30], 0x200
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x28], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [ebp - 0x30]
jne 0x46ddc1
cmp eax, 0x202
jne 0x46ddce
sub eax, 0x200
je 0x46ddf2
dec eax
sub eax, 1
jne 0x46dd60
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [esi], 0
je 0x46de46
mov eax, dword [ebx + 8]
cmp byte [eax + 4], 1
je 0x46de37
cmp dword [ebp + 0x18], 0
jne 0x46de37
cmp dword [ebp + 0x14], 0
je 0x46de37
xor eax, eax
jmp 0x46de3a
mov ebx, dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x18]
push dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0048d4aa
push edx
push eax
push dword [ebp + 8]
call fcn.0046da92
mov esi, dword [ebp - 4]
cmp ebx, eax
mov ebx, dword [ebp + 8]
mov dword [esi], eax
je 0x46de24
push ebx
call fcn.0046b2c2
push dword [ebp - 0x28]
call fcn.0048d4aa
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jmp 0x46dd60
or eax, 0xffffffff
and dword [esi], 0
push eax
push ebx
call fcn.0046df01
jmp 0x46de4c
push ebx
call fcn.0046b2c2
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x46df42
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
and dword [ebp + 8], 0
mov eax, dword [edi + 0x44]
mov esi, dword [edi + 0xc]
and eax, 0x4000
mov ecx, dword [edi + 0x10]
or eax, 0x1a
mov dword [edi + 0x44], eax
mov eax, dword [edi + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ecx
cmp byte [eax + 4], 2
jne 0x46df8a
cmp dword [ebp + 0x10], 0
jne 0x46df8a
xor eax, eax
cmp dword [ebp + 0xc], eax
cmovne ebx, eax
cmp dword [edi + 0x50], 0xd
je 0x46e07e
cmp byte [esi + 1], 0
je 0x46dfa3
cmp byte [esi], 0
je 0x46e07e
push edi
mov dword [ecx], 1
call fcn.0046b2c2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x46dfc1
mov eax, dword [ebp - 0x24]
sub eax, 0x100
je 0x46dff8
sub eax, 1
jne 0x46e042
cmp dword [ebp - 0x20], 0x20
jne 0x46e042
inc eax
mov dword [ebp + 8], eax
jmp 0x46e045
cmp dword [ebp - 0x20], 0x20
jne 0x46e067
cmp word [ebp - 0x1c], 0
je 0x46e067
cmp byte [esi], 0
je 0x46e042
push edi
call fcn.0046b322
test eax, eax
je 0x46e042
call dword [sym.imp.USER32.dll_GetFocus]
push ebx
push edi
mov esi, eax
call fcn.0046b7df
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x46e04d
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46e04d
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
test eax, eax
je 0x46dfc1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0xc]
and dword [eax], 0
cmp dword [ebp - 4], 0
je 0x46e07e
push edi
call fcn.0046b2c2
jmp 0x46e085
xor eax, eax
inc eax
cmp dword [ebp - 0x20], 0xd
mov dword [ebp + 8], eax
je 0x46e04d
cmp dword [ebp - 0x20], 0x20
je 0x46e04d
mov dword [ebp - 4], eax
jmp 0x46e045
push ebx
push edi
call fcn.0046df01
and dword [edi + 0x44], 0x4000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46fe2b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
test esi, esi
je 0x46ff30
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x46fe63
cmp dword [ebp - 0x34], 0x202
je 0x46ff2a
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46ff2a
cmp dword [ebp - 0x34], 0x200
jne 0x46fe63
push dword [ebp - 0x2c]
call fcn.0048d4aa
push edx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46fe63
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x1c]
push 0
push 0x84
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x46fe63
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
call dword [sym.imp.USER32.dll_ReleaseCapture]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebp - 0x1c]
shl ecx, 0x10
or ecx, eax
push ecx
push 1
push 0x201
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x46ff30
jmp 0x46fe5c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00490511
mov esp, ebp
pop ebp
ret 4