joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eb1a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ebx, ecx
mov esi, dword [edi]
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x170], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp ecx, dword [edi + 0x174]
je 0x45ef05
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jge 0x45ef16
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
mov ecx, 0x8000
and ax, cx
push 0
mov word [ebp + 0xa], ax
pop eax
push dword [ebx + 0x1c]
setne al
mov dword [ebp - 0xc], eax
call esi
mov esi, dword [ebp - 0xc]
mov cx, ax
mov eax, 0x8000
and cx, ax
push 0
pop eax
setne al
mov word [ebp - 2], cx
mov dword [ebp - 8], eax
cmp esi, dword [edi + 0x17c]
jne 0x45ef27
cmp dword [ebp + 0xc], 0
je 0x41ebd1
mov dword [edi + 0x17c], esi
cmp eax, dword [edi + 0x180]
jne 0x45ef9a
cmp dword [ebp + 0xc], 0
je 0x41ebe9
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, dword [edi + 0x178]
je 0x41eb79
jmp 0x41eb63
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00492b60
jmp 0x41eb79
cmp dword [ebp + 0xc], 1
jl 0x41ebc5
cmp byte [edi + 0x1a8], 0
je 0x41ebc5
cmp word [ebp + 0xa], 0
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
je 0x45ef52
push 0xfffffffffffffff9
jmp 0x45ef82
push 0xfffffffffffffff8
call fcn.00492b60
cmp byte [edi + 0x184], 0
je 0x45ef87
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
test eax, 0x1000000
je 0x45ef80
push 0xfffffffffffffffa
jmp 0x45ef82
push 0xfffffffffffffff4
call fcn.00492b60
mov eax, dword [ebp - 8]
mov cx, word [ebp - 2]
mov byte [edi + 0x184], 0
jmp 0x41ebc5
cmp dword [ebp + 0xc], 1
jl 0x41ebdd
push dword [ebp - 0x10]
test cx, cx
mov ecx, ebx
push dword [ebp - 0x14]
push edi
je 0x45efb6
push 0xfffffffffffffff7
jmp 0x45efb8
push 0xfffffffffffffff6
call fcn.00492b60
mov eax, dword [ebp - 8]
jmp 0x41ebdd
Function at 0x41ef77
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45f0a7
mov ecx, dword [0x4d193c]
push esi
push edi
cmp ecx, 0xffffffff
je 0x41f029
mov eax, dword [0x4d1930]
xor edx, edx
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
cmp byte [esi + 0x3a], dl
je 0x41efba
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x45f0c1
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x45f11b
je 0x41efea
test edi, edi
je 0x45f10a
cmp edi, 1
je 0x41efea
cmp edi, 2
je 0x41f020
cmp edi, 3
je 0x41f017
jle 0x41f00e
cmp edi, 5
jg 0x45f0e9
cmp byte [esi + 0x38], 0
jne 0x41f029
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41f00a
cmp edi, 4
je 0x41f00a
mov ecx, dword [ebp + 0xc]
call fcn.0041f02d
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
mov byte [esi + 0x38], 1
jmp 0x45f176
mov byte [esi + 0x38], 1
jmp 0x45f0f2
xor eax, eax
jmp 0x41f011
push dword [ebp + 0xc]
mov ecx, 0x4d18d0
call fcn.0041b0a1
mov ecx, eax
mov dword [0x4d193c], ecx
jmp 0x41ef8a
cmp byte [esi + 0x198], dl
je 0x41efba
push dword [esi + 0x194]
push esi
call fcn.00497fd6
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x41efba
cmp edi, 6
jne 0x41f00e
cmp byte [esi + 0x38], 0
je 0x41f029
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f00e
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41f00e
mov eax, edi
sub eax, 9
je 0x45f176
sub eax, 0x37
je 0x45f168
sub eax, 1
je 0x45f165
sub eax, 1
je 0x45f155
sub eax, 1
jne 0x41f00e
push edx
mov byte [esi + 0x39], dl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x41f00e
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41f00e
push edx
jmp 0x45f16a
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41f00e
cmp byte [esi + 0x38], 0
je 0x41f029
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
call fcn.0041f02d
jmp 0x41f00e
Function at 0x41f02d
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp ebx, esi
je 0x41f146
push edi
xor edi, edi
test esi, esi
jne 0x41f05c
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
jne 0x45f195
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x41f154
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push 1
push edi
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 8]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x41f14f
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 - 0xc]
test eax, eax
jne 0x41f14b
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 0
push edi
push dword [ebp - 4]
call esi
push 0
push dword [ebp - 8]
push edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x41f142
push 4
jmp 0x41f151
push 3
pop ebx
jmp 0x41f125
push 2
pop ebx
jmp 0x41f13f
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f06b
Function at 0x41f633
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1353]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042da05
pop ecx
push eax
call fcn.0042d826
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f3c6
lea ecx, [ebp - 0x18]
call fcn.0040b4b3
mov ecx, esi
call fcn.00408ed0
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f828
push dword [ebp - 0x18]
push 0x49d174
push edi
call fcn.0041f6d3
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f3e6
lea ecx, [ebp - 0x18]
call fcn.0040b276
mov esi, dword [ebp - 8]
push edi
call fcn.0042de49
push edi
call fcn.0042da05
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f6c3
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d826
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471d85
push eax
push 1
call fcn.00471d15
push eax
call fcn.0042dc63
add esp, 0x10
mov esi, eax
jmp 0x41f6ab
mov ecx, esi
call fcn.00408ed0
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f6a0

Function at 0x43932b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004391aa

Function at 0x43d281
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cf41
Function at 0x46065c
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.0040c29d
lea ecx, [ebp - 0x20]
call fcn.0040c29d
lea ecx, [ebp - 0x40]
call fcn.0040c29d
push 0x4c5970
lea ecx, [ebp - 0x30]
call fcn.00408507
push esi
lea ecx, [ebp - 0x30]
call fcn.004052e1
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004052e1
lea ecx, [ebp - 0x20]
call fcn.0040bfff
test edi, edi
je 0x4606df
push 0x5c
pop eax
cmp word [edi], ax
je 0x4606df
cmp word [edi + 2], ax
je 0x4606df
push 0x4c59a4
lea ecx, [ebp - 0x20]
call fcn.00408507
push edi
lea ecx, [ebp - 0x20]
call fcn.004052e1
cmp dword [ebp + 0xc], ebx
je 0x460730
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004223f0
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040c203
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004052e1
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 0x4607bc
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 0x4607bc
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 0x4607b7
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 0x4607b2
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.0040b276
lea ecx, [ebp - 0x20]
call fcn.0040b276
lea ecx, [ebp - 0x30]
call fcn.0040b276
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x460fed
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 0x461045
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x461043
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 0x461043
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 0x4614a7
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 0x4614bf
inc edi
jmp 0x4614c8
test byte [ebp + 0x14], 2
je 0x4614c8
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x461507
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 0x461533
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 0x461542
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
leave
ret 0x28

Function at 0x46163c
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 0x461693
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp eax, 1
pop ebx
sete al
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
mov esi, ecx
lea eax, [ebp - 8]
push eax
push 0xb0
mov dword [ebp - 0x10], esi
push dword [esi]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jae 0x461ba8
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x461ba8
cmp edi, dword [ebp - 8]
jb 0x461ba8
cmp edi, dword [ebp - 4]
jb 0x461ba8
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.0041febb
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 0x461b9d
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x461b8c
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.00408507
mov bl, 1
push esi
call fcn.0041fec4
pop ecx
mov al, bl
jmp 0x461baa
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46257b
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.00463a1f
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 0x4625d1
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 0x4625f5
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.00463a1f
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x462d80
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 0x462dac
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 0x462dc3
push 1
jmp 0x462dad
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
leave
ret
Function at 0x463ba6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0040bfff
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00463ce5
test al, al
je 0x463bd0
xor al, al
jmp 0x463c60
mov ecx, esi
call fcn.00463c67
mov ebx, eax
test ebx, ebx
jne 0x463be2
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.0041febb
pop ecx
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x463c57
push edi
call fcn.00428e30
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x463c4e
xor ecx, ecx
test esi, esi
je 0x463c30
mov al, byte [ecx + edi]
sub al, 0x20
cmp al, 0x5e
ja 0x463c4e
inc ecx
cmp ecx, esi
jb 0x463c22
push edi
lea ecx, [ebp - 0x18]
call fcn.004639ca
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040875b
lea ecx, [ebp - 0x18]
call fcn.0040b276
jmp 0x463c57
mov ecx, dword [ebp + 8]
push edi
call fcn.00408507
push edi
call fcn.0041fec4
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x469629
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.0041febb
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420ed0
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x469684
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x46967b
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x469bf4
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 0x469c04
mov eax, dword [ecx]
mov ecx, eax
jmp fcn.0046b053

Function at 0x469c0b
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 0x469c1d
mov eax, dword [ecx + 4]
mov ecx, eax
jmp fcn.0046b053
Function at 0x469c24
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 0x469cc7
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x469dac
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x469c6c
cmp byte [ebp - 0xf0], al
jne 0x469c75
cmp byte [edi + 0x1a], 0
jne 0x469c75
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x469c84
cmp byte [edi + 0x1b], 0
jne 0x469c84
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x469c96
cmp byte [edi + 0x1c], 0
jne 0x469c96
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x469ca8
cmp byte [edi + 0x1d], 0
jne 0x469ca8
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x469dac
cmp byte [edi + 0x1e], 0
jne 0x469dac
mov byte [esi + 4], 1
jmp 0x469dac
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 0x469cf4
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469cfd
cmp byte [edi + 0x1a], 0
jne 0x469cfd
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469d23
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469d2d
cmp byte [edi + 0x1b], 0
jne 0x469d2d
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469d4d
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469d57
cmp byte [edi + 0x1c], 0
jne 0x469d57
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469d77
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469d81
cmp byte [edi + 0x1d], 0
jne 0x469d81
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x469da1
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x469dab
cmp byte [edi + 0x1e], 0
jne 0x469dab
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x469f3c
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 0x469f58
mov byte [esi + 0x14], 1
mov cl, 1
jmp 0x469f5b
mov cl, byte [esi + 0x14]
cmp byte [eax + 2], 0
je 0x469f65
mov byte [esi + 0x16], 1
cmp byte [eax + 3], 0
je 0x469f6f
mov byte [esi + 0x17], 1
xor eax, eax
test cl, cl
je 0x469f7d
cmp byte [esi + 0x1a], al
je 0x469f7d
mov byte [esi + 0x14], al
cmp byte [esi + 0x15], al
je 0x469f8a
cmp byte [esi + 0x1b], al
je 0x469f8a
mov byte [esi + 0x15], al
cmp byte [esi + 0x16], al
je 0x469f97
cmp byte [esi + 0x1c], al
je 0x469f97
mov byte [esi + 0x16], al
cmp byte [esi + 0x17], al
je 0x469fa4
cmp byte [esi + 0x1d], al
je 0x469fa4
mov byte [esi + 0x17], al
cmp byte [esi + 0x18], al
je 0x469fb1
cmp byte [esi + 0x1e], al
je 0x469fb1
mov byte [esi + 0x18], al
cmp dword [esi + 0x20], eax
je 0x46a033
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46a16b
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 0x469ff6
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 0x46a16b
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00469bb1
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 0x46a06b
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a089
cmp byte [esi + 0x1a], 0
jne 0x46a089
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.0046b28a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab47
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a0ab
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a0c9
cmp byte [esi + 0x1b], 0
jne 0x46a0c9
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.0046b28a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab47
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a0e5
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a100
cmp byte [esi + 0x1c], 0
jne 0x46a100
push 0x11
lea ecx, [ebp - 0xc]
call fcn.0046b28a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab47
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x46a11c
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x46a137
cmp byte [esi + 0x1d], 0
jne 0x46a137
push 0x12
lea ecx, [ebp - 0xc]
call fcn.0046b28a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab47
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0x46a14e
push 0x5b
call edi
test bx, ax
je 0x46a169
cmp byte [esi + 0x1e], 0
jne 0x46a169
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.0046b28a
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0046ab47
pop edi
pop ebx
pop esi
leave
ret 4