joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4399f2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.00431b11
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
mov dword [ebp - 0x14], ecx
add esp, 0x10
cmp eax, 0xffffffff
je 0x439a7a
push 2
push esi
push esi
push edi
call fcn.00431b11
mov ecx, eax
add esp, 0x10
and eax, edx
cmp eax, 0xffffffff
je 0x439a7a
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x439b13
jg 0x439a54
or esi, esi
je 0x439b13
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x439a88
call fcn.00428d68
mov dword [eax], 0xc
call fcn.00428d68
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push edi
call fcn.00424849
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
or eax, eax
jl 0x439ab0
jg 0x439aa9
cmp esi, 0x1000
jb 0x439ab0
mov eax, 0x1000
jmp 0x439ab2
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.0042dbb5
add esp, 0xc
cmp eax, 0xffffffff
je 0x439ad9
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x439af4
jg 0x439a9b
or esi, esi
je 0x439af4
jmp 0x439a9b
call fcn.00428d34
cmp dword [eax], 5
jne 0x439aee
call fcn.00428d68
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00424849
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439b79
or eax, eax
jg 0x439b85
jl 0x439b1d
or esi, esi
jae 0x439b85
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00431b11
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x439a7a
push edi
call fcn.0042d703
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov ebx, eax
push edx
pop eax
push ebx
pop ecx
mov dword [ebp - 8], eax
and ecx, eax
cmp ecx, 0xffffffff
jne 0x439b85
call fcn.00428d68
mov dword [eax], 0xd
call fcn.00428d34
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x439a7a
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.00431b11
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x439a7a
sub eax, eax
jmp 0x439a81
Function at 0x457d24
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
sub ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
push edx
pop edi
mov dword [ebp - 8], ebx
call fcn.004077c7
lea ecx, [ebp - 0x20]
call fcn.004077c7
lea ecx, [ebp - 0x40]
call fcn.004077c7
push 0x4b93a8
lea ecx, [ebp - 0x30]
call fcn.00407d2c
push esi
lea ecx, [ebp - 0x30]
call fcn.00407e0b
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.00407e0b
lea ecx, [ebp - 0x20]
call fcn.00407eec
or edi, edi
je 0x457da7
push 0x5c
pop eax
cmp word [edi], ax
je 0x457da7
cmp word [edi + 2], ax
je 0x457da7
push 0x4b93dc
lea ecx, [ebp - 0x20]
call fcn.00407d2c
push edi
lea ecx, [ebp - 0x20]
call fcn.00407e0b
cmp dword [ebp + 0xc], ebx
je 0x457df8
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00423020
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.004081a7
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.00407e0b
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 0x457e84
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
pop esi
or esi, esi
jne 0x457e84
lea eax, [ebp - 8]
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 0x457e7f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x457e7a
mov eax, dword [ebp - 0xc]
sub ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0xc], 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 - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00405a64
lea ecx, [ebp - 0x20]
call fcn.00405a64
lea ecx, [ebp - 0x30]
call fcn.00405a64
pop edi
mov eax, esi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x458652
Capabilities:
Get token privileges

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
sub ebx, ebx
push edi
push esi
push ebx
push dword [eax]
push ecx
pop edi
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4586a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4586ac
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
or eax, eax
je 0x4586ac
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4586ac
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x458af9
Capabilities:
Create process on windows

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ebx
sub ebx, ebx
test byte [ebp + 0x14], 1
push ebx
pop eax
push edi
mov dword [ebp - 4], eax
push ebx
pop edi
je 0x458b11
inc edi
jmp 0x458b1a
test byte [ebp + 0x14], 2
je 0x458b1a
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x458b59
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]
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x458b85
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 0x458b94
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
push ebp
pop esp
pop ebp
ret 0x28

Function at 0x458c93
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x1c]
movsx eax, al
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18

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

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
push ecx
pop esi
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 0x45915d
xor al, al
jmp 0x4591d7
push ebx
sub ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x4591d4
cmp edi, dword [ebp - 8]
jb 0x4591d4
cmp edi, dword [ebp - 4]
jb 0x4591d4
sub ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
push esi
pop eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
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 0x4591c9
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4591b8
sub 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.00407d2c
mov bl, 1
push esi
call fcn.0042106c
pop ecx
mov al, bl
jmp 0x4591d6
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x459b50
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [ebp - 4], esi
push dword [esi]
call fcn.0045ae57
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub ebx, ebx
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 1
push eax
cmp dword [ebp + 8], ebx
jge 0x459ba8
push 0x25
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x459bd0
push 0x27
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
mov edi, dword [ebp - 4]
push 0x101
push dword [edi]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [edi]
call fcn.0045ae57
pop edi
pop esi
mov al, 1
pop ebx
push ebp
pop esp
pop ebp
ret 4

Function at 0x45a37c
Capabilities:
Log keystrokes

Disassembly:
push ebp
push esp
pop ebp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x45a3a7
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x45a3c0
push 1
jmp 0x45a3a8
push esi
push esi
push dword [ebp + 8]
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 esi
pop ebp
ret 8
Function at 0x45afdc
Capabilities:
Get graphical window text

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push ecx
pop ebx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 8], ebx
call fcn.00407eec
push dword [ebx]
call fcn.0041619a
test al, al
je 0x45b004
xor al, al
jmp 0x45b099
push ebx
pop ecx
call fcn.0045b0a2
mov ebx, eax
or ebx, ebx
jne 0x45b016
mov ebx, 0x7fff
xor ecx, ecx
lea esi, [ebx + 1]
push 2
pop edx
push esi
pop eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
pop ecx
mov edi, eax
mov eax, dword [ebp - 8]
push edi
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
or eax, eax
jle 0x45b090
push edi
call fcn.00423980
pop ecx
cmp eax, ebx
jne 0x45b087
sub ecx, ecx
test eax, eax
je 0x45b068
mov dl, byte [ecx + edi]
cmp dl, 0x20
jl 0x45b087
cmp dl, 0x7e
jg 0x45b087
inc ecx
cmp ecx, eax
jb 0x45b056
push edi
lea ecx, [ebp - 0x18]
call fcn.0045ae14
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040793a
lea ecx, [ebp - 0x18]
call fcn.00405a64
jmp 0x45b090
mov ecx, dword [ebp + 8]
push edi
call fcn.00407d2c
push edi
call fcn.0042106c
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45fc4d
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.00420ff6
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
push eax
pop edi
push esi
push ecx
push edi
call fcn.00421080
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
or ecx, ecx
jle 0x45fca8
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45fc9f
push edi
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x460219
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x100
sub eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
push ecx
pop edi
mov dword [esi], eax
mov word [esi + 4], ax
cmp dword [edi + 0x20], eax
je 0x4602bc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4603a1
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x460261
cmp byte [ebp - 0xf0], al
jne 0x46026a
cmp byte [edi + 0x1a], 0
jne 0x46026a
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x460279
cmp byte [edi + 0x1b], 0
jne 0x460279
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x46028b
cmp byte [edi + 0x1c], 0
jne 0x46028b
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x46029d
cmp byte [edi + 0x1d], 0
jne 0x46029d
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x4603a1
cmp byte [edi + 0x1e], 0
jne 0x4603a1
mov byte [esi + 4], 1
jmp 0x4603a1
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 0x4602e9
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x4602f2
cmp byte [edi + 0x1a], 0
jne 0x4602f2
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x460318
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x460322
cmp byte [edi + 0x1b], 0
jne 0x460322
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x460342
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x46034c
cmp byte [edi + 0x1c], 0
jne 0x46034c
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46036c
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x460376
cmp byte [edi + 0x1d], 0
jne 0x460376
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x460396
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x4603a0
cmp byte [edi + 0x1e], 0
jne 0x4603a0
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
push ebp
pop esp
pop ebp
ret 4
Function at 0x46052c
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
push ecx
pop esi
je 0x460544
mov byte [esi + 0x14], 1
cmp byte [eax + 2], 0
je 0x46054e
mov byte [esi + 0x16], 1
cmp byte [eax + 3], 0
je 0x460558
mov byte [esi + 0x17], 1
xor eax, eax
cmp byte [esi + 0x14], al
je 0x460567
cmp byte [esi + 0x1a], al
je 0x460567
mov byte [esi + 0x14], al
cmp byte [esi + 0x15], al
je 0x460574
cmp byte [esi + 0x1b], al
je 0x460574
mov byte [esi + 0x15], al
cmp byte [esi + 0x16], al
je 0x460581
cmp byte [esi + 0x1c], al
je 0x460581
mov byte [esi + 0x16], al
cmp byte [esi + 0x17], al
je 0x46058e
cmp byte [esi + 0x1d], al
je 0x46058e
mov byte [esi + 0x17], al
cmp byte [esi + 0x18], al
je 0x46059b
cmp byte [esi + 0x1e], al
je 0x46059b
mov byte [esi + 0x18], al
cmp dword [esi + 0x20], eax
je 0x46061d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or eax, eax
je 0x460755
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 0x4605e0
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 0x460755
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00460195
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 0x460655
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0x460673
cmp byte [esi + 0x1a], 0
jne 0x460673
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.0046189f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00461121
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x460695
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x4606b3
cmp byte [esi + 0x1b], 0
jne 0x4606b3
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.0046189f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00461121
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x4606cf
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x4606ea
cmp byte [esi + 0x1c], 0
jne 0x4606ea
push 0x11
lea ecx, [ebp - 0xc]
call fcn.0046189f
lea eax, [ebp - 0xc]
push esi
pop ecx
push eax
call fcn.00461121
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x460706
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x460721
cmp byte [esi + 0x1d], 0
jne 0x460721
push 0x12
lea ecx, [ebp - 0xc]
call fcn.0046189f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00461121
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0x460738
push 0x5b
call edi
test bx, ax
je 0x460753
cmp byte [esi + 0x1e], 0
jne 0x460753
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.0046189f
lea eax, [ebp - 0xc]
push esi
pop ecx
push eax
call fcn.00461121
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460f7b
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
push esp
pop ebp
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 bl, 1
cmp byte [ebp + 0xc], bl
je 0x460fdc
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.004617d7
mov ecx, dword [ebp - 4]
call fcn.004601fe
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004617d7
mov ecx, dword [ebp - 4]
call fcn.004601e5
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x460fe6
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 0x4610c1
cmp bl, 0x14
je 0x4610c1
cmp bl, 0x90
je 0x4610c1
cmp bl, 0x91
je 0x4610c1
cmp bl, 0xff
je 0x4610ae
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or eax, eax
je 0x461059
movzx eax, bl
or byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 1
call fcn.0046042e
cmp al, 1
jne 0x461073
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x461084
cmp byte [esi + 0x1d], 0
jne 0x461084
cmp bl, 0x12
jne 0x4610a2
cmp byte [esi + 0x16], 0
jne 0x4610a2
cmp byte [esi + 0x1c], 0
jne 0x4610a2
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0x4610b6
push edx
movzx eax, bl
push eax
push 0x100
jmp 0x4610b6
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x461111
cmp bl, 0xff
je 0x4610e7
mov ecx, edi
call fcn.0046042e
push ecx
mov ecx, esi
cmp al, 1
jne 0x4610d8
push 1
jmp 0x4610da
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004617d7
jmp 0x461111
mov word [ebp - 0x1a], ax
sub 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.004601fe
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 4
Function at 0x461121
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 0x4611f9
cmp bl, 0x14
je 0x4611f9
cmp bl, 0x90
je 0x4611f9
cmp bl, 0x91
je 0x4611f9
cmp bl, 0xff
je 0x461249
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x461198
movzx eax, bl
xor byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 0xc0000001
call fcn.0046042e
cmp al, 1
jne 0x4611b5
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x4611c6
cmp byte [esi + 0x1d], 0
jne 0x4611c6
cmp bl, 0x12
jne 0x4611e4
cmp byte [esi + 0x16], 0
jne 0x4611e4
cmp byte [esi + 0x1c], 0
jne 0x4611e4
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x4611ee
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x461249
cmp bl, 0xff
je 0x46121f
push edi
pop ecx
call fcn.0046042e
push ecx
push esi
pop ecx
cmp al, 1
jne 0x461210
push 3
jmp 0x461212
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004617d7
jmp 0x461249
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]
push esi
pop ecx
call fcn.004601e5
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 4