joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4614ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x4614e6
inc edi
jmp 0x4614ef
test byte [ebp + 0x14], 2
je 0x4614ef
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x46152e
push esi
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x46155a
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x400
push eax
push dword [ebp + 0x1c]
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x461569
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
leave
ret 0x28

Function at 0x461663
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
test eax, eax
je 0x4616ba
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp eax, 1
pop ebx
sete al
leave
ret

Function at 0x461803
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 2
push 0
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x461874
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x461b2c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
mov esi, ecx
lea eax, [ebp - 8]
push eax
push 0xb0
mov dword [ebp - 0x10], esi
push dword [esi]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jae 0x461bcf
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x461bcf
cmp edi, dword [ebp - 8]
jb 0x461bcf
cmp edi, dword [ebp - 4]
jb 0x461bcf
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe0b
pop ecx
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x461bc4
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x461bb3
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.00406b57
mov bl, 1
push esi
call fcn.0041fe14
pop ecx
mov al, bl
jmp 0x461bd1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4625a2
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov dl, 1
push esi
push edi
mov ecx, dword [ebx]
call fcn.00463a3d
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x25
call edi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [ebp + 8], 0
push eax
jge 0x4625f8
push 0x25
push 0x100
push dword [ebx]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x46261c
push 0x27
push 0x100
push dword [ebx]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [ebx]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx]
xor dl, dl
call fcn.00463a3d
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x462da7
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dl, 1
jne 0x462dd3
lea eax, [ebp - 4]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x462dea
push 1
jmp 0x462dd4
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
leave
ret
Function at 0x463bc4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0040a6c3
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00463d03
test al, al
je 0x463bee
xor al, al
jmp 0x463c7e
mov ecx, esi
call fcn.00463c85
mov ebx, eax
test ebx, ebx
jne 0x463c00
mov ebx, 0x7fff
xor ecx, ecx
lea esi, [ebx + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe0b
pop ecx
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x463c75
push edi
call fcn.00428d80
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x463c6c
xor ecx, ecx
test esi, esi
je 0x463c4e
mov al, byte [ecx + edi]
sub al, 0x20
cmp al, 0x5e
ja 0x463c6c
inc ecx
cmp ecx, esi
jb 0x463c40
push edi
lea ecx, [ebp - 0x18]
call fcn.004639e8
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00406d9e
lea ecx, [ebp - 0x18]
call fcn.0040988f
jmp 0x463c75
mov ecx, dword [ebp + 8]
push edi
call fcn.00406b57
push edi
call fcn.0041fe14
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46967e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe0b
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420e20
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x4696d9
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4696d0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x469c49
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [ecx + 0x20]
neg eax
sbb eax, eax
and eax, 2
cmp dword [ecx], eax
jl 0x469c59
mov eax, dword [ecx]
mov ecx, eax
jmp fcn.0046b0a8

Function at 0x469c60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [ecx + 0x20]
neg eax
sbb eax, eax
and eax, 2
cmp dword [ecx + 4], eax
jl 0x469c72
mov eax, dword [ecx + 4]
mov ecx, eax
jmp fcn.0046b0a8
Function at 0x469c79
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esi], eax
mov word [esi + 4], ax
cmp dword [edi + 0x20], eax
je 0x469d1c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x469e01
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x469cc1
cmp byte [ebp - 0xf0], al
jne 0x469cca
cmp byte [edi + 0x1a], 0
jne 0x469cca
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x469cd9
cmp byte [edi + 0x1b], 0
jne 0x469cd9
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x469ceb
cmp byte [edi + 0x1c], 0
jne 0x469ceb
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x469cfd
cmp byte [edi + 0x1d], 0
jne 0x469cfd
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x469e01
cmp byte [edi + 0x1e], 0
jne 0x469e01
mov byte [esi + 4], 1
jmp 0x469e01
push ebx
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469d49
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469d52
cmp byte [edi + 0x1a], 0
jne 0x469d52
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469d78
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469d82
cmp byte [edi + 0x1b], 0
jne 0x469d82
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469da2
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469dac
cmp byte [edi + 0x1c], 0
jne 0x469dac
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469dcc
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469dd6
cmp byte [edi + 0x1d], 0
jne 0x469dd6
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469df6
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469e00
cmp byte [edi + 0x1e], 0
jne 0x469e00
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x469f91
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10c
cmp byte [eax], 0
push esi
mov esi, ecx
je 0x469fad
mov byte [esi + 0x14], 1
mov cl, 1
jmp 0x469fb0
mov cl, byte [esi + 0x14]
cmp byte [eax + 2], 0
je 0x469fba
mov byte [esi + 0x16], 1
cmp byte [eax + 3], 0
je 0x469fc4
mov byte [esi + 0x17], 1
xor eax, eax
test cl, cl
je 0x469fd2
cmp byte [esi + 0x1a], al
je 0x469fd2
mov byte [esi + 0x14], al
cmp byte [esi + 0x15], al
je 0x469fdf
cmp byte [esi + 0x1b], al
je 0x469fdf
mov byte [esi + 0x15], al
cmp byte [esi + 0x16], al
je 0x469fec
cmp byte [esi + 0x1c], al
je 0x469fec
mov byte [esi + 0x16], al
cmp byte [esi + 0x17], al
je 0x469ff9
cmp byte [esi + 0x1d], al
je 0x469ff9
mov byte [esi + 0x17], al
cmp byte [esi + 0x18], al
je 0x46a006
cmp byte [esi + 0x1e], al
je 0x46a006
mov byte [esi + 0x18], al
cmp dword [esi + 0x20], eax
je 0x46a088
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46a1c0
mov cl, byte [esi + 0x1a]
mov dl, byte [esi + 0x1b]
test cl, cl
sete al
dec al
and byte [ebp - 0x6c], al
test dl, dl
sete al
dec al
and byte [ebp - 0x6b], al
test cl, cl
jne 0x46a04b
test dl, dl
sete al
dec al
and byte [ebp - 0xfc], al
cmp byte [esi + 0x1c], 0
sete al
dec al
and byte [ebp - 0xfb], al
cmp byte [esi + 0x1d], 0
sete al
dec al
and byte [ebp - 0xfa], al
test cl, cl
sete al
dec al
and byte [ebp - 0xb1], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x46a1c0
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00469c06
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call ebx
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46a0c0
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a0de
cmp byte [esi + 0x1a], 0
jne 0x46a0de
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.0046b2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab9c
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a100
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a11e
cmp byte [esi + 0x1b], 0
jne 0x46a11e
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.0046b2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab9c
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a13a
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a155
cmp byte [esi + 0x1c], 0
jne 0x46a155
push 0x11
lea ecx, [ebp - 0xc]
call fcn.0046b2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab9c
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a171
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a18c
cmp byte [esi + 0x1d], 0
jne 0x46a18c
push 0x12
lea ecx, [ebp - 0xc]
call fcn.0046b2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab9c
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0x46a1a3
push 0x5b
call edi
test bx, ax
je 0x46a1be
cmp byte [esi + 0x1e], 0
jne 0x46a1be
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.0046b2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab9c
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x46a9ed
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
movzx edi, al
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bx, 1
cmp byte [ebp + 0xc], bl
je 0x46aa4f
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ecx
push 0
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0046b226
mov ecx, dword [ebp - 4]
call fcn.00469c60
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0046b226
mov ecx, dword [ebp - 4]
call fcn.00469c49
pop esi
pop edi
mov al, bl
pop ebx
leave
ret 8

Function at 0x46aa57
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 4], bl
mov byte [ebp + 8], bh
je 0x46ab3e
cmp bl, 0x14
je 0x46ab3e
cmp bl, 0x90
je 0x46ab3e
cmp bl, 0x91
je 0x46ab3e
cmp bl, 0xff
je 0x46ab2b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46aace
movzx eax, bl
or byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, bh
mov ecx, edi
shl eax, 0x10
mov edx, eax
mov dword [ebp + 8], eax
or edx, 1
call fcn.00469e8d
cmp al, 1
jne 0x46aaf0
mov edx, dword [ebp + 8]
or edx, 0x1000001
cmp byte [esi + 0x17], 0
jne 0x46ab01
cmp byte [esi + 0x1d], 0
jne 0x46ab01
cmp bl, 0x12
jne 0x46ab1f
cmp byte [esi + 0x16], 0
jne 0x46ab1f
cmp byte [esi + 0x1c], 0
jne 0x46ab1f
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0x46ab33
push edx
movzx eax, bl
push eax
push 0x100
jmp 0x46ab33
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46ab8e
cmp bl, 0xff
je 0x46ab64
mov ecx, edi
call fcn.00469e8d
push ecx
mov ecx, esi
cmp al, 1
jne 0x46ab55
push 1
jmp 0x46ab57
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0046b226
jmp 0x46ab8e
mov word [ebp - 0x1a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
inc edx
xor ecx, ecx
and dword [ebp - 0x14], ecx
and dword [ebp - 0x10], ecx
push eax
push edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.00469c60
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46ab9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 4], bl
mov byte [ebp + 8], bh
je 0x46ac7c
cmp bl, 0x14
je 0x46ac7c
cmp bl, 0x90
je 0x46ac7c
cmp bl, 0x91
je 0x46ac7c
cmp bl, 0xff
je 0x46accc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46ac13
movzx eax, bl
xor byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, bh
mov ecx, edi
shl eax, 0x10
mov edx, eax
mov dword [ebp + 8], eax
or edx, 0xc0000001
call fcn.00469e8d
cmp al, 1
jne 0x46ac38
mov edx, dword [ebp + 8]
or edx, 0xc1000001
cmp byte [esi + 0x17], 0
jne 0x46ac49
cmp byte [esi + 0x1d], 0
jne 0x46ac49
cmp bl, 0x12
jne 0x46ac67
cmp byte [esi + 0x16], 0
jne 0x46ac67
cmp byte [esi + 0x1c], 0
jne 0x46ac67
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x46ac71
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46accc
cmp bl, 0xff
je 0x46aca2
mov ecx, edi
call fcn.00469e8d
push ecx
mov ecx, esi
cmp al, 1
jne 0x46ac93
push 3
jmp 0x46ac95
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0046b226
jmp 0x46accc
mov word [ebp - 0x1a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 6
inc edx
xor ecx, ecx
and dword [ebp - 0x14], ecx
and dword [ebp - 0x10], ecx
push eax
push edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.00469c49
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46acda
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x46ad0b
cmp byte [esi + 1], 0
jne 0x46ad0b
cmp byte [esi + 2], 0
jne 0x46ad0b
cmp byte [esi + 3], 0
jne 0x46ad0b
cmp byte [esi + 4], 0
je 0x46aeb4
cmp dword [edi + 0x20], 0
push ebx
je 0x46ae3c
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x46ae3c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46ad95
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46ad53
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x46ad64
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x46ad70
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x46ad7c
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x46ad88
or byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x46ada6
cmp byte [esi + 1], 0
je 0x46adbd
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x46adda
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 3], 0
je 0x46ae19
cmp byte [esi + 2], 0
jne 0x46ae02
cmp byte [edi + 0x1c], 0
jne 0x46ae02
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x46ae14
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x46aeac
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0x46aeac
xor ebx, ebx
cmp byte [esi], bl
je 0x46ae55
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 1], bl
je 0x46ae6d
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 2], bl
je 0x46ae82
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 3], bl
je 0x46ae97
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 4], bl
je 0x46aeac
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.0046b226
mov ecx, edi
call fcn.00469c60
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x46aeba
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x46aeeb
cmp byte [esi + 1], 0
jne 0x46aeeb
cmp byte [esi + 2], 0
jne 0x46aeeb
cmp byte [esi + 3], 0
jne 0x46aeeb
cmp byte [esi + 4], 0
je 0x46b0a2
cmp dword [edi + 0x20], 0
push ebx
je 0x46b024
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x46b024
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46af75
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46af33
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x46af44
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x46af50
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x46af5c
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x46af68
xor byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x46af86
cmp byte [esi + 1], 0
je 0x46af9f
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x46afbe
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 3], 0
je 0x46afff
cmp byte [esi + 2], 0
jne 0x46afe6
cmp byte [edi + 0x1c], 0
jne 0x46afe6
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x46affa
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x46b09a
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x46b09a
cmp byte [esi], 0
push 2
pop ebx
je 0x46b03f
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 1], 0
je 0x46b058
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 2], 0
je 0x46b06e
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 3], 0
je 0x46b084
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.0046b226
cmp byte [esi + 4], 0
je 0x46b09a
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.0046b226
mov ecx, edi
call fcn.00469c49
pop ebx
pop edi
pop esi
leave
ret 4