joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420147
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c2810
jne 0x47f763
mov ecx, dword [0x4c287c]
cmp ecx, 0xffffffff
je 0x4201e1
mov eax, dword [0x4c2870]
push ebx
mov eax, dword [eax + ecx*4]
push esi
mov esi, dword [eax]
xor ecx, ecx
mov ebx, dword [esi]
cmp byte [esi + 0x3a], cl
je 0x420189
mov byte [esi + 0x3a], cl
cmp dword [esi + 0x18c], ecx
jge 0x47f77a
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x47f7b9
je 0x4201b5
test edi, edi
je 0x4201f9
cmp edi, 1
je 0x4201b5
cmp edi, 2
je 0x4201f0
cmp edi, 3
je 0x47f80e
jle 0x4201d7
cmp edi, 5
jg 0x4201e5
cmp byte [esi + 0x38], 0
jne 0x420207
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x4201d3
cmp edi, 4
je 0x4201d3
push ebx
call fcn.0042020b
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x4201dc
cmp edi, 6
je 0x47f7a1
jmp 0x4201d7
mov byte [esi + 0x38], 1
jmp 0x47f7a1
push ecx
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x4201d7
xor eax, eax
jmp 0x4201da
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041cedf
mov ecx, eax
mov dword [0x4c287c], ecx
jmp 0x420160
cmp byte [esi + 0x198], cl
je 0x420189
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0046ee5c
xor ecx, ecx
mov byte [esi + 0x198], cl
jmp 0x420189
cmp byte [esi + 0x38], 0
je 0x420207
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4201d7
mov eax, edi
sub eax, 9
je 0x47f80e
sub eax, 0x37
je 0x47f800
dec eax
je 0x47f7fd
dec eax
je 0x47f7ed
dec eax
jne 0x4201d7
push ecx
mov byte [esi + 0x39], cl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4201d7
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x4201d7
push ecx
jmp 0x47f802
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4201d7
cmp byte [esi + 0x38], 0
je 0x420207
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.0042020b
jmp 0x4201d7
Function at 0x42020b
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x474e4f
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x474e64
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x474e78
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x474f53
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x474f2f
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x474f34
push 4
jmp 0x474f31
push 3
pop ebx
jmp 0x474f37
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x474f56
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x420229
Function at 0x4351c0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bbdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042968c
mov dword [ebp - 0x14], eax
cmp dword [0x4c2048], edi
jne 0x4352b1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43523e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435391
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x435391
push 0x49ca50
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435391
push eax
call ebx
push 0x49ca5c
push esi
mov dword [0x4c2048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c204c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c2050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c2058], eax
test eax, eax
je 0x4352ae
push 0x49ca9c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c2054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4352d6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4352c9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4352eb
push 4
pop eax
jmp 0x435393
cmp dword [ebp - 0x14], edi
je 0x4352eb
push dword [0x4c2048]
call dword [0x4bb004]
push 3
jmp 0x4352d0
mov eax, dword [0x4c2054]
mov ebx, dword [0x4bb004]
cmp eax, esi
je 0x435349
cmp dword [0x4c2058], esi
je 0x435349
push eax
call ebx
push dword [0x4c2058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435349
test eax, eax
je 0x435349
call ecx
test eax, eax
je 0x43533e
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 0x43533e
test byte [ebp - 8], 1
jne 0x435349
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x435379
mov eax, dword [0x4c204c]
cmp eax, esi
je 0x435376
push eax
call ebx
test eax, eax
je 0x435376
call eax
mov edi, eax
test edi, edi
je 0x435376
mov eax, dword [0x4c2050]
cmp eax, esi
je 0x435376
push eax
call ebx
test eax, eax
je 0x435376
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c2048]
call ebx
test eax, eax
je 0x435391
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x435393
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bfaf
leave
ret
Function at 0x43b9df
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 edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0040e959
lea ecx, [ebp - 0x20]
call fcn.0040e959
lea ecx, [ebp - 0x40]
call fcn.0040e959
push 0x4b38f4
lea ecx, [ebp - 0x30]
call fcn.00408f96
push esi
lea ecx, [ebp - 0x30]
call fcn.00403f04
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.00403f04
lea ecx, [ebp - 0x20]
call fcn.0040d4dd
test edi, edi
je 0x43ba62
push 0x5c
pop eax
cmp word [edi], ax
je 0x43ba62
cmp word [edi + 2], ax
je 0x43ba62
push 0x4b3928
lea ecx, [ebp - 0x20]
call fcn.00408f96
push edi
lea ecx, [ebp - 0x20]
call fcn.00403f04
cmp dword [ebp + 0xc], ebx
je 0x43bab3
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422460
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.0040daca
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.00403f04
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x43bb3f
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 0x43bb3f
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 0x43bb3a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43bb35
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
shr eax, 1
xor ecx, ecx
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.00406ea2
lea ecx, [ebp - 0x20]
call fcn.00406ea2
lea ecx, [ebp - 0x30]
call fcn.00406ea2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43c2f6
Capabilities:
Get token privileges

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

Disassembly:
push ebp
mov ebp, esp
call fcn.0043c4bf
test al, al
je 0x43c7ac
pop ebp
jmp fcn.0043c4f8
pop ebp
jmp fcn.0043c7b2

Function at 0x43c943
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
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
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x43c99c
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 ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
leave
ret

Function at 0x43c9a7
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
push dword [ebp + 0x1c]
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 0x43cb09
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]
push 2
push 0
mov ebx, eax
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 0x43cb7a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x43ceb1
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
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0xb0
push dword [esi]
mov dword [ebp - 0x10], esi
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x43cee1
xor al, al
jmp 0x43cf5b
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x43cf58
cmp edi, dword [ebp - 8]
jb 0x43cf58
cmp edi, dword [ebp - 4]
jb 0x43cf58
xor ecx, ecx
push 2
lea esi, [edi + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420bfa
pop ecx
push eax
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x43cf4d
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x43cf3c
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.00408f96
mov bl, 1
push esi
call fcn.00420c6e
pop ecx
mov al, bl
jmp 0x43cf5a
xor al, al
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x43d8f9
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 1
push dword [esi]
mov dword [ebp - 4], esi
call fcn.0043ec4e
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 0x43d951
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 0x43d979
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.0043ec4e
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x43e137
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x43e162
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 0x43e17b
push 1
jmp 0x43e163
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 0x43edfe
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
call fcn.0040d4dd
push dword [ebx]
call fcn.00401237
test al, al
je 0x43ee20
xor al, al
jmp 0x43ee9c
mov ecx, ebx
call fcn.0043eea3
test eax, eax
mov ecx, 0x7fff
cmove eax, ecx
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.00420bfa
pop ecx
mov edi, eax
push edi
push esi
push 0xd
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x43ee93
push edi
call fcn.00422ee0
pop ecx
push edi
cmp eax, dword [ebp - 8]
jne 0x43ee8b
lea ecx, [ebp - 0x18]
call fcn.0043ec0b
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040d532
lea ecx, [ebp - 0x18]
call fcn.00406ea2
jmp 0x43ee93
mov ecx, dword [ebp + 8]
call fcn.00408f96
push edi
call fcn.00420c6e
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x443b82
Capabilities:
Encode data using xor

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

Function at 0x444042
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 0x4440e5
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4441ca
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x44408a
cmp byte [ebp - 0xf0], al
jne 0x444093
cmp byte [edi + 0x1a], 0
jne 0x444093
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x4440a2
cmp byte [edi + 0x1b], 0
jne 0x4440a2
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x4440b4
cmp byte [edi + 0x1c], 0
jne 0x4440b4
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x4440c6
cmp byte [edi + 0x1d], 0
jne 0x4440c6
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x4441ca
cmp byte [edi + 0x1e], 0
jne 0x4441ca
mov byte [esi + 4], 1
jmp 0x4441ca
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 0x444112
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x44411b
cmp byte [edi + 0x1a], 0
jne 0x44411b
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x444141
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x44414b
cmp byte [edi + 0x1b], 0
jne 0x44414b
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x44416b
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x444175
cmp byte [edi + 0x1c], 0
jne 0x444175
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x444195
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x44419f
cmp byte [edi + 0x1d], 0
jne 0x44419f
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4441bf
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x4441c9
cmp byte [edi + 0x1e], 0
jne 0x4441c9
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x444dee
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 0x444e4f
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.0044566e
mov ecx, dword [ebp - 4]
call fcn.00444026
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0044566e
mov ecx, dword [ebp - 4]
call fcn.0044400b
pop esi
pop edi
mov al, bl
pop ebx
leave
ret 8

Function at 0x444e57
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, word [edi + 8]
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
mov byte [ebp - 8], bl
mov byte [ebp - 4], bh
mov dword [ebp - 0xc], eax
je 0x444f42
cmp bl, 0x14
je 0x444f42
cmp bl, 0x90
je 0x444f42
cmp bl, 0x91
je 0x444f42
mov ecx, edi
call fcn.00444315
test al, al
je 0x444f29
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x444ed3
movzx eax, bl
or byte [ebp + eax - 0x128], 0x80
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [ebp + 8]
movzx edi, bh
shl edi, 0x10
or edi, 1
call fcn.00444255
cmp al, 1
jne 0x444eee
or edi, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x444eff
cmp byte [esi + 0x1d], 0
jne 0x444eff
cmp bl, 0x12
jne 0x444f1d
cmp byte [esi + 0x16], 0
jne 0x444f1d
cmp byte [esi + 0x1c], 0
jne 0x444f1d
or edi, 0x20000000
movzx eax, bl
push edi
push eax
push 0x104
jmp 0x444f37
movzx eax, bl
push edi
push eax
push 0x100
jmp 0x444f37
mov eax, dword [ebp - 0xc]
movzx eax, ax
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x444f9e
mov ecx, edi
call fcn.00444315
test al, al
je 0x444f6e
mov ecx, edi
call fcn.00444255
push ecx
mov ecx, esi
cmp al, 1
jne 0x444f5f
push 1
jmp 0x444f61
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044566e
jmp 0x444f9e
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x24], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x22], ax
push 0x1c
xor ecx, ecx
lea eax, [ebp - 0x28]
inc ecx
push eax
push ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.00444026
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x444fac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov bl, byte [edi]
cmp dword [esi + 0x20], 0
mov bh, byte [edi + 7]
mov byte [ebp - 4], bl
mov byte [ebp - 8], bh
je 0x445087
cmp bl, 0x14
je 0x445087
cmp bl, 0x90
je 0x445087
cmp bl, 0x91
je 0x445087
mov ecx, edi
call fcn.00444315
test al, al
je 0x4450e3
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x445025
movzx eax, bl
xor byte [ebp + eax - 0x124], 0x80
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [ebp + 8]
movzx edi, bh
shl edi, 0x10
or edi, 0xc0000001
call fcn.00444255
cmp al, 1
jne 0x445043
or edi, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x445054
cmp byte [esi + 0x1d], 0
jne 0x445054
cmp bl, 0x12
jne 0x445072
cmp byte [esi + 0x16], 0
jne 0x445072
cmp byte [esi + 0x1c], 0
jne 0x445072
or edi, 0x20000000
movzx eax, bl
push edi
push eax
push 0x105
jmp 0x44507c
movzx eax, bl
push edi
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4450e3
mov ecx, edi
call fcn.00444315
test al, al
je 0x4450b3
mov ecx, edi
call fcn.00444255
push ecx
mov ecx, esi
cmp al, 1
jne 0x4450a4
push 3
jmp 0x4450a6
push 2
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0044566e
jmp 0x4450e3
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x20], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x1e], ax
push 0x1c
xor ecx, ecx
lea eax, [ebp - 0x24]
inc ecx
push eax
push ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 6
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.0044400b
pop edi
pop esi
pop ebx
leave
ret 4