joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435ccc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bfd50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042a099
mov dword [ebp - 0x14], eax
cmp dword [0x4c50e8], esi
jne 0x435dbf
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x435d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435e9f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x435e9f
push 0x4a0db0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435e9f
push eax
call ebx
push 0x4a0dbc
push edi
mov dword [0x4c50e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4c50ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4c50f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c50f8], eax
test eax, eax
je 0x435dbc
push 0x4a0dfc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c50f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x435de4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435dd7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x435df9
push 4
pop eax
jmp 0x435ea1
cmp dword [ebp - 0x14], esi
je 0x435df9
push dword [0x4c50e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435dde
mov eax, dword [0x4c50f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435e57
cmp dword [0x4c50f8], edi
je 0x435e57
push eax
call ebx
push dword [0x4c50f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435e57
test eax, eax
je 0x435e57
call ecx
test eax, eax
je 0x435e4c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x435e4c
test byte [ebp - 8], 1
jne 0x435e57
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435e87
mov eax, dword [0x4c50ec]
cmp eax, edi
je 0x435e84
push eax
call ebx
test eax, eax
je 0x435e84
call eax
mov esi, eax
test esi, esi
je 0x435e84
mov eax, dword [0x4c50f0]
cmp eax, edi
je 0x435e84
push eax
call ebx
test eax, eax
je 0x435e84
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c50e8]
call ebx
test eax, eax
je 0x435e9f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x435ea1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c836
mov esp, ebp
pop ebp
ret
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
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
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
test 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]
mov esi, eax
test 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]
xor 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
mov esp, ebp
pop ebp
ret
Function at 0x458652
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push esi
push ebx
push dword [eax]
mov edi, ecx
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
test 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
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 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]
mov esi, eax
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
mov esp, ebp
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
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 0x45915d
xor al, al
jmp 0x4591d7
push ebx
xor 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
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.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
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.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]
xor 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
mov esp, ebp
pop ebp
ret 4

Function at 0x45a37c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
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
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
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
mov ecx, ebx
call fcn.0045b0a2
mov ebx, eax
test ebx, ebx
jne 0x45b016
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.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]
test eax, eax
jle 0x45b090
push edi
call fcn.00423980
pop ecx
cmp eax, ebx
jne 0x45b087
xor 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
mov edi, eax
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
test ecx, ecx
jle 0x45fca8
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45fc9f
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x460219
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 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
mov esp, ebp
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
mov esi, ecx
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]
test 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]
mov ecx, esi
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]
mov ecx, esi
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
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 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]
test 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
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.004601fe
pop edi
pop esi
pop ebx
mov esp, ebp
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
mov ecx, edi
call fcn.0046042e
push ecx
mov ecx, esi
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]
mov ecx, esi
call fcn.004601e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4