joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460eed
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 0xc], ebx
call fcn.00403f6a
lea ecx, [ebp - 0x20]
call fcn.00403f6a
lea ecx, [ebp - 0x40]
call fcn.00403f6a
push 0x4c57a0
lea ecx, [ebp - 0x30]
call fcn.004043ee
push esi
lea ecx, [ebp - 0x30]
call fcn.004044dd
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004044dd
lea ecx, [ebp - 0x20]
call fcn.004045bc
test edi, edi
je 0x460f70
push 0x5c
pop eax
cmp word [edi], ax
je 0x460f70
cmp word [edi + 2], ax
je 0x460f70
push 0x4c57d4
lea ecx, [ebp - 0x20]
call fcn.004043ee
push edi
lea ecx, [ebp - 0x20]
call fcn.004044dd
cmp dword [ebp + 0xc], ebx
je 0x460fc1
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00423330
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040478a
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004044dd
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x46104d
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x46104d
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x461048
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x461043
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 8], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.004020f8
lea ecx, [ebp - 0x20]
call fcn.004020f8
lea ecx, [ebp - 0x30]
call fcn.004020f8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461886
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push esi
push 0
push dword [eax]
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x4618de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4618dc
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x4618dc
push esi
push dword [esi]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x461d46
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 0x461d5e
inc edi
jmp 0x461d67
test byte [ebp + 0x14], 2
je 0x461d67
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x461da6
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 0x461dd2
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 0x461de1
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x28

Function at 0x461edf
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 0x461f36
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
mov esp, ebp
pop ebp
ret

Function at 0x462085
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 0x4620f6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4623b4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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]
jb 0x4623e4
xor al, al
jmp 0x46245e
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x46245b
cmp edi, dword [ebp - 8]
jb 0x46245b
cmp edi, dword [ebp - 4]
jb 0x46245b
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.004201ab
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 0x462450
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x46243f
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.004043ee
mov bl, 1
push esi
call fcn.004201b4
pop ecx
mov al, bl
jmp 0x46245d
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x462de2
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.00464220
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 0x462e38
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 0x462e5c
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.00464220
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x464220
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 0x46424c
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 0x464263
push 1
jmp 0x46424d
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
mov esp, ebp
pop ebp
ret
Function at 0x4643bb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], ebx
call fcn.004045bc
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0x1388
push 2
pop eax
push eax
push edi
push edi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4643f6
xor al, al
jmp 0x46448b
mov ecx, ebx
call fcn.00464494
mov dword [ebp - 8], eax
test eax, eax
jne 0x46440c
mov eax, 0x7fff
mov dword [ebp - 8], eax
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004201ab
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0xc]
push ebx
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x464482
push ebx
call fcn.004289b0
pop ecx
mov ecx, eax
cmp ecx, dword [ebp - 8]
jne 0x464479
test ecx, ecx
je 0x46445b
mov al, byte [edi + ebx]
sub al, 0x20
cmp al, 0x5e
ja 0x464479
inc edi
cmp edi, ecx
jb 0x46444d
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004641cb
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041f32a
lea ecx, [ebp - 0x1c]
call fcn.004020f8
jmp 0x464482
mov ecx, dword [ebp + 8]
push ebx
call fcn.004043ee
push ebx
call fcn.004201b4
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x469ae5
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.004201ab
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.004211a0
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x469b40
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x469b37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46a0ba
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 0x46a0ca
mov eax, dword [ecx]
mov ecx, eax
jmp fcn.0046b53d

Function at 0x46a0d1
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 0x46a0e3
mov eax, dword [ecx + 4]
mov ecx, eax
jmp fcn.0046b53d
Function at 0x46a0ea
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 0x46a18d
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46a272
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x46a132
cmp byte [ebp - 0xf0], al
jne 0x46a13b
cmp byte [edi + 0x1a], 0
jne 0x46a13b
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x46a14a
cmp byte [edi + 0x1b], 0
jne 0x46a14a
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x46a15c
cmp byte [edi + 0x1c], 0
jne 0x46a15c
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x46a16e
cmp byte [edi + 0x1d], 0
jne 0x46a16e
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x46a272
cmp byte [edi + 0x1e], 0
jne 0x46a272
mov byte [esi + 4], 1
jmp 0x46a272
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 0x46a1ba
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x46a1c3
cmp byte [edi + 0x1a], 0
jne 0x46a1c3
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46a1e9
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x46a1f3
cmp byte [edi + 0x1b], 0
jne 0x46a1f3
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46a213
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x46a21d
cmp byte [edi + 0x1c], 0
jne 0x46a21d
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46a23d
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x46a247
cmp byte [edi + 0x1d], 0
jne 0x46a247
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46a267
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x46a271
cmp byte [edi + 0x1e], 0
jne 0x46a271
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46a40a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
xor eax, eax
inc eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x46a429
mov byte [esi + 0x14], al
mov dl, al
jmp 0x46a42c
mov dl, byte [esi + 0x14]
cmp byte [ecx + 2], 0
je 0x46a439
mov byte [esi + 0x16], al
mov bl, al
jmp 0x46a43c
mov bl, byte [esi + 0x16]
cmp byte [ecx + 3], 0
je 0x46a447
mov byte [esi + 0x17], al
jmp 0x46a44a
mov al, byte [esi + 0x17]
xor ecx, ecx
test dl, dl
je 0x46a458
cmp byte [esi + 0x1a], cl
je 0x46a458
mov byte [esi + 0x14], cl
cmp byte [esi + 0x15], cl
je 0x46a465
cmp byte [esi + 0x1b], cl
je 0x46a465
mov byte [esi + 0x15], cl
test bl, bl
je 0x46a471
cmp byte [esi + 0x1c], cl
je 0x46a471
mov byte [esi + 0x16], cl
test al, al
je 0x46a47d
cmp byte [esi + 0x1d], cl
je 0x46a47d
mov byte [esi + 0x17], cl
cmp byte [esi + 0x18], cl
je 0x46a48a
cmp byte [esi + 0x1e], cl
je 0x46a48a
mov byte [esi + 0x18], cl
cmp dword [esi + 0x20], ecx
je 0x46a50c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46a642
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 0x46a4cf
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 0x46a642
push edi
lea ecx, [ebp - 0xc]
call fcn.0046a077
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 0x46a543
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a561
cmp byte [esi + 0x1a], 0
jne 0x46a561
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.0046b77a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046b02b
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a583
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a5a1
cmp byte [esi + 0x1b], 0
jne 0x46a5a1
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.0046b77a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046b02b
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a5bd
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a5d8
cmp byte [esi + 0x1c], 0
jne 0x46a5d8
push 0x11
lea ecx, [ebp - 0xc]
call fcn.0046b77a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046b02b
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a5f4
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a60f
cmp byte [esi + 0x1d], 0
jne 0x46a60f
push 0x12
lea ecx, [ebp - 0xc]
call fcn.0046b77a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046b02b
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0x46a626
push 0x5b
call edi
test bx, ax
je 0x46a641
cmp byte [esi + 0x1e], 0
jne 0x46a641
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.0046b77a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046b02b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46ae78
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 0x46aeda
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.0046b6bf
mov ecx, dword [ebp - 4]
call fcn.0046a0d1
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0046b6bf
mov ecx, dword [ebp - 4]
call fcn.0046a0ba
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46aee4
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 0x46afcb
cmp bl, 0x14
je 0x46afcb
cmp bl, 0x90
je 0x46afcb
cmp bl, 0x91
je 0x46afcb
cmp bl, 0xff
je 0x46afb8
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46af5b
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.0046a302
cmp al, 1
jne 0x46af7d
mov edx, dword [ebp + 8]
or edx, 0x1000001
cmp byte [esi + 0x17], 0
jne 0x46af8e
cmp byte [esi + 0x1d], 0
jne 0x46af8e
cmp bl, 0x12
jne 0x46afac
cmp byte [esi + 0x16], 0
jne 0x46afac
cmp byte [esi + 0x1c], 0
jne 0x46afac
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0x46afc0
push edx
movzx eax, bl
push eax
push 0x100
jmp 0x46afc0
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46b01b
cmp bl, 0xff
je 0x46aff1
mov ecx, edi
call fcn.0046a302
push ecx
mov ecx, esi
cmp al, 1
jne 0x46afe2
push 1
jmp 0x46afe4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0046b6bf
jmp 0x46b01b
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.0046a0d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46b02b
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 0x46b10b
cmp bl, 0x14
je 0x46b10b
cmp bl, 0x90
je 0x46b10b
cmp bl, 0x91
je 0x46b10b
cmp bl, 0xff
je 0x46b15b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46b0a2
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.0046a302
cmp al, 1
jne 0x46b0c7
mov edx, dword [ebp + 8]
or edx, 0xc1000001
cmp byte [esi + 0x17], 0
jne 0x46b0d8
cmp byte [esi + 0x1d], 0
jne 0x46b0d8
cmp bl, 0x12
jne 0x46b0f6
cmp byte [esi + 0x16], 0
jne 0x46b0f6
cmp byte [esi + 0x1c], 0
jne 0x46b0f6
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x46b100
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46b15b
cmp bl, 0xff
je 0x46b131
mov ecx, edi
call fcn.0046a302
push ecx
mov ecx, esi
cmp al, 1
jne 0x46b122
push 3
jmp 0x46b124
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0046b6bf
jmp 0x46b15b
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.0046a0ba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46b16b
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 0x46b19c
cmp byte [esi + 1], 0
jne 0x46b19c
cmp byte [esi + 2], 0
jne 0x46b19c
cmp byte [esi + 3], 0
jne 0x46b19c
cmp byte [esi + 4], 0
je 0x46b345
cmp dword [edi + 0x20], 0
push ebx
je 0x46b2cd
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x46b2cd
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46b226
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46b1e4
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x46b1f5
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x46b201
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x46b20d
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x46b219
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 0x46b237
cmp byte [esi + 1], 0
je 0x46b24e
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 0x46b26b
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 0x46b2aa
cmp byte [esi + 2], 0
jne 0x46b293
cmp byte [edi + 0x1c], 0
jne 0x46b293
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x46b2a5
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 0x46b33d
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0x46b33d
xor ebx, ebx
cmp byte [esi], bl
je 0x46b2e6
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 1], bl
je 0x46b2fe
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 2], bl
je 0x46b313
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 3], bl
je 0x46b328
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 4], bl
je 0x46b33d
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.0046b6bf
mov ecx, edi
call fcn.0046a0d1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4