joyce8/EMBER2024-capa huggingface dataset:
Function at 0x824fe9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.combase.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x825021
push edi
push 0
push 0x8afaf0
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x85dd5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x825020
push edi
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x825020
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
je 0x825020
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x825020

Function at 0x82506b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x85ddf6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00845812
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x825091
Function at 0x825d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x825d93
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x825d56
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x825d66
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x825d37
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x825d56
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x825d56
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x825d3f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00825dae
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x825d2e
Function at 0x835e58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x835e80
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x835e72
pop edi
pop esi
pop ebp
ret 4
Function at 0x84023b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
xor ebx, ebx
mov dword [ebp - 4], edx
push esi
inc ebx
mov dword [ebp - 0x10], edx
push edi
cmp dword [eax + 4], edx
je 0x875d4d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov edi, edx
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov byte [ecx], dl
mov dword [ebp - 8], 0x23
push edi
mov ecx, esi
call fcn.00827b20
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x875d54
cmp ax, cx
je 0x875d54
cmp ax, dx
je 0x875d54
cmp ax, word [ebp - 8]
je 0x875d54
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.00827b20
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x875dcf
push 0x40
lea ecx, [ebp - 0x20]
call fcn.00827b76
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.00840352
test al, al
je 0x84034e
push dword [ebp - 0x20]
push dword [esi*4 + 0x8c4cf0]
call fcn.0084313d
pop ecx
pop ecx
test eax, eax
je 0x84031a
inc esi
cmp esi, 0x63
jl 0x8402ff
cmp esi, 0x63
je 0x875d86
cmp byte [esi + 0x8c4c88], 0
jne 0x84034e
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00825a64
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor bl, bl
jmp 0x840335
lea ecx, [ebp - 0x20]
call fcn.00825a64
xor al, al
jmp 0x840345
cmp ax, word [ebp - 0xc]
jne 0x875d5f
mov eax, dword [ebp + 0x10]
jmp 0x875d7e
cmp ax, cx
jne 0x875d69
mov eax, dword [ebp + 0x14]
jmp 0x875d7e
cmp ax, dx
jne 0x875d73
mov eax, dword [ebp + 0x18]
jmp 0x875d7e
push 0x23
pop ecx
cmp ax, cx
jne 0x875d80
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x840287
push 0
lea ecx, [ebp - 0x20]
call fcn.00827b52
movzx eax, word [eax]
push eax
call dword [sym.imp.user32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x875d45
test eax, 0x200
je 0x875dae
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x875dba
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x840335
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x840335
push eax
call dword [sym.imp.user32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x875d4d
test eax, 0x200
je 0x875dee
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x875dfa
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x84033d
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x84033d
Function at 0x8403a2
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.user32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x840bd0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x8e6283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.00844916
pop ecx
push eax
call fcn.00844744
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x876305
lea ecx, [ebp - 0x18]
call fcn.00825c18
mov ecx, edi
call fcn.00829997
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00825b75
push dword [ebp - 0x18]
push 0x8b1d28
push esi
call fcn.00844b15
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x876325
lea ecx, [ebp - 0x18]
call fcn.00825a64
mov edi, dword [ebp - 8]
push esi
call fcn.00844cda
pop ecx
cmp ebx, 0xffffffff
je 0x840c6e
push ebx
push esi
call fcn.00844916
pop ecx
push eax
call fcn.00844744
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x840c56
push esi
mov ecx, edi
call fcn.008889e2
push eax
push 1
call fcn.0088899f
push eax
call fcn.00844a93
add esp, 0x10
mov edi, eax
jmp 0x840c49
mov ecx, edi
call fcn.00829997
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
jmp 0x840c3e
Function at 0x855ccc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8dfd50]
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.0084a099
mov dword [ebp - 0x14], eax
cmp dword [0x8e50e8], esi
jne 0x855dbf
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x855d4c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x855e9f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x855e9f
push 0x8c0db0
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x855e9f
push eax
call ebx
push 0x8c0dbc
push edi
mov dword [0x8e50e8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8e50ec], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8e50f0], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8e50f8], eax
test eax, eax
je 0x855dbc
push 0x8c0dfc
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8e50f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x855de4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x855dd7
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x855df9
push 4
pop eax
jmp 0x855ea1
cmp dword [ebp - 0x14], esi
je 0x855df9
push dword [0x8e50e8]
call dword [sym.imp.kernel32.dll_DecodePointer]
push 3
jmp 0x855dde
mov eax, dword [0x8e50f4]
mov ebx, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, edi
je 0x855e57
cmp dword [0x8e50f8], edi
je 0x855e57
push eax
call ebx
push dword [0x8e50f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x855e57
test eax, eax
je 0x855e57
call ecx
test eax, eax
je 0x855e4c
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 0x855e4c
test byte [ebp - 8], 1
jne 0x855e57
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x855e87
mov eax, dword [0x8e50ec]
cmp eax, edi
je 0x855e84
push eax
call ebx
test eax, eax
je 0x855e84
call eax
mov esi, eax
test esi, esi
je 0x855e84
mov eax, dword [0x8e50f0]
cmp eax, edi
je 0x855e84
push eax
call ebx
test eax, eax
je 0x855e84
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8e50e8]
call ebx
test eax, eax
je 0x855e9f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x855ea1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0084c836
mov esp, ebp
pop ebp
ret
Function at 0x877d24
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.008277c7
lea ecx, [ebp - 0x20]
call fcn.008277c7
lea ecx, [ebp - 0x40]
call fcn.008277c7
push 0x8d93a8
lea ecx, [ebp - 0x30]
call fcn.00827d2c
push esi
lea ecx, [ebp - 0x30]
call fcn.00827e0b
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.00827e0b
lea ecx, [ebp - 0x20]
call fcn.00827eec
test edi, edi
je 0x877da7
push 0x5c
pop eax
cmp word [edi], ax
je 0x877da7
cmp word [edi + 2], ax
je 0x877da7
push 0x8d93dc
lea ecx, [ebp - 0x20]
call fcn.00827d2c
push edi
lea ecx, [ebp - 0x20]
call fcn.00827e0b
cmp dword [ebp + 0xc], ebx
je 0x877df8
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00843020
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.008281a7
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.00827e0b
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 0x877e84
lea eax, [ebp - 0x10]
push eax
push 0x80000002
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x877e84
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 0x877e7f
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 0x877e7a
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.combase.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00825a64
lea ecx, [ebp - 0x20]
call fcn.00825a64
lea ecx, [ebp - 0x30]
call fcn.00825a64
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x878652
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 0x8786a9
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x8786ac
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 0x8786ac
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.advapi32.dll_GetTokenInformation]
test eax, eax
je 0x8786ac
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x878af9
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 0x878b11
inc edi
jmp 0x878b1a
test byte [ebp + 0x14], 2
je 0x878b1a
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x878b59
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 0x878b85
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 0x878b94
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 0x878c93
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 0x878e03
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 0x878e74
push eax
push eax
call dword [sym.imp.kernel32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x87912d
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 0x87915d
xor al, al
jmp 0x8791d7
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x8791d4
cmp edi, dword [ebp - 8]
jb 0x8791d4
cmp edi, dword [ebp - 4]
jb 0x8791d4
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.00840ff6
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 0x8791c9
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x8791b8
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.00827d2c
mov bl, 1
push esi
call fcn.0084106c
pop ecx
mov al, bl
jmp 0x8791d6
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x879b50
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.0087ae57
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 0x879ba8
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 0x879bd0
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.0087ae57
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x87a37c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x87a3a7
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 0x87a3c0
push 1
jmp 0x87a3a8
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 0x87afdc
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.00827eec
push dword [ebx]
call fcn.0083619a
test al, al
je 0x87b004
xor al, al
jmp 0x87b099
mov ecx, ebx
call fcn.0087b0a2
mov ebx, eax
test ebx, ebx
jne 0x87b016
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.00840ff6
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 0x87b090
push edi
call fcn.00843980
pop ecx
cmp eax, ebx
jne 0x87b087
xor ecx, ecx
test eax, eax
je 0x87b068
mov dl, byte [ecx + edi]
cmp dl, 0x20
jl 0x87b087
cmp dl, 0x7e
jg 0x87b087
inc ecx
cmp ecx, eax
jb 0x87b056
push edi
lea ecx, [ebp - 0x18]
call fcn.0087ae14
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0082793a
lea ecx, [ebp - 0x18]
call fcn.00825a64
jmp 0x87b090
mov ecx, dword [ebp + 8]
push edi
call fcn.00827d2c
push edi
call fcn.0084106c
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x87fc4d
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.00840ff6
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00841080
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x87fca8
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x87fc9f
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x880219
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 0x8802bc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.user32.dll_GetKeyboardState]
test eax, eax
je 0x8803a1
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x880261
cmp byte [ebp - 0xf0], al
jne 0x88026a
cmp byte [edi + 0x1a], 0
jne 0x88026a
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x880279
cmp byte [edi + 0x1b], 0
jne 0x880279
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x88028b
cmp byte [edi + 0x1c], 0
jne 0x88028b
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x88029d
cmp byte [edi + 0x1d], 0
jne 0x88029d
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x8803a1
cmp byte [edi + 0x1e], 0
jne 0x8803a1
mov byte [esi + 4], 1
jmp 0x8803a1
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 0x8802e9
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x8802f2
cmp byte [edi + 0x1a], 0
jne 0x8802f2
mov byte [esi], 1
push 0xa1
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x880318
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x880322
cmp byte [edi + 0x1b], 0
jne 0x880322
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x880342
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x88034c
cmp byte [edi + 0x1c], 0
jne 0x88034c
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x88036c
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x880376
cmp byte [edi + 0x1d], 0
jne 0x880376
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x880396
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x8803a0
cmp byte [edi + 0x1e], 0
jne 0x8803a0
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4