joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e128
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49e2fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x49e314
mov dl, 8
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, esi
call fcn.0055dbbc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_TimerOn_qqrv
xor eax, eax
push ebp
push 0x49e2df
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x49e25a
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WS2_32.DLL_recv
mov ebx, eax
test ebx, ebx
je 0x49e27e
cmp ebx, 1
jle 0x49e224
mov eax, dword [esi]
call fcn.0055de3c
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, ebx
mov eax, esi
call fcn.0055e170
mov eax, esi
call fcn.0055e00c
mov edx, dword [ebp - 8]
inc edx
dec edx
cmp edx, dword [eax - 4]
jb 0x49e1e0
call fcn.0055ce5c
inc edx
lea edx, [eax + edx - 1]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, ebx
call fcn.0055c860
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x49e21a
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100bc]
call dword [ebx + 0x100b8]
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_TimerOn_qqrv
jmp 0x49e24e
inc ebx
jne 0x49e24e
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x49e27e
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [0x5ae3ec]
mov eax, dword [eax]
call fcn.0050f7c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x49e27e
cmp edi, 0xffffffff
je 0x49e187
mov eax, dword [esi]
call fcn.0055de3c
cmp edi, eax
jg 0x49e187
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x49e2c9
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x49e32c
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_EAbortError_]
call fcn.00558568
call fcn.0055d6b8
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x49e2c9
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e2e6
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_TimerOff_qqrv
ret
Function at 0x49eda4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x49ee70
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x49ee84
mov dl, 4
mov eax, ebx
call sym.LookAtLan.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x49ee5a
movzx eax, si
push eax
call sub.WS2_32.DLL_closesocket
test eax, eax
jne 0x49ee4c
test byte [ebx + 0x20], 8
jne 0x49ee09
cmp word [ebx + 0x1004a], 0
je 0x49ee09
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x49ee5a
push 0
push 1
push 2
call sub.WS2_32.DLL_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x49ee2c
call fcn.0055ce5c
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.WS2_32.DLL_WSAAsyncSelect
jmp 0x49ee5a
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call sym.LookAtLan.exe__Psock_TPowersock_ErrorManager_qqrus
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ee77
lea eax, [ebp - 4]
call fcn.0055dbbc
ret

Function at 0x49f16c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x49f1a8
mov dl, 8
mov eax, ebx
call sym.LookAtLan.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.WS2_32.DLL_recv
test eax, eax
jle 0x49f19a
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x49f1b8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x49f1bf
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x49f20c
mov dl, 8
mov eax, ebx
call sym.LookAtLan.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.WS2_32.DLL_recv
add esp, 0x10004
pop ebx
ret
Function at 0x49f4c4
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov dword [ebp - 4], edx
mov ecx, 0x49f584
mov dl, 8
call sym.LookAtLan.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, 0xc8
call fcn.00554f3c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49f56f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xc8
mov eax, dword [ebp - 8]
push eax
call sub.WS2_32.DLL_gethostname
mov eax, dword [ebp - 8]
push eax
call sub.WS2_32.DLL_gethostbyname
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x28]
mov ecx, 3
mov eax, 0x49f5a0
call fcn.005560e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f576
mov eax, dword [ebp - 8]
call fcn.0055c6ec
ret

Function at 0x49f5ac
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
mov dword [edi], 0x10
push edi
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.WS2_32.DLL_getsockname
push dword [esp + 8]
call sub.WS2_32.DLL_inet_ntoa
mov ebx, eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov edx, dword [edi]
cmp byte [ebx + edx], 0x2e
jne 0x49f5ef
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x49f5e0
mov edx, esi
mov eax, ebx
call fcn.00555b9c
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x49f608
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.WS2_32.DLL_getsockname
push esi
mov bx, word [esp + 0xa]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
shr bx, 8
movzx eax, bx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 0x18]
mov ecx, 1
mov eax, 0x49f674
call fcn.005560e4
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x4b9c10
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4b9c27
add esp, 0xfffffff0
call fcn.0055d260
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4b9dad
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0054c1a4
mov dword [ebx + 0x90], 0xffffffff
xor eax, eax
mov dword [ebx + 0xe4], eax
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x84], 1
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x94], 0
xor eax, eax
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4b42d4]
call fcn.0055cef0
mov dword [ebx + 0x74], eax
lea edx, [ebp - 8]
mov eax, dword [0x5ae3c0]
call fcn.0055ffe4
mov eax, dword [ebp - 8]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4b2918]
call fcn.004b8654
mov esi, eax
mov dword [ebx + 0x78], esi
mov byte [esi + 4], 0
mov byte [esi + 0x2c], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x5ae3c4]
call fcn.0055ffe4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4b2918]
call fcn.004b8654
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x28], accept
mov byte [ebx + 0x64], 1
mov word [ebx + 0x38], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4b3e0c]
call fcn.004b8d88
mov dword [ebx + 0x58], eax
lea edx, [ebx + 0x70]
mov eax, dword [0x5ae33c]
call fcn.0055ffe4
lea edx, [ebx + 0x60]
mov eax, dword [0x5ae338]
call fcn.0055ffe4
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x54], eax
mov al, byte [0x4b9dd4]
mov byte [ebx + 0x95], al
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x50], 0xffffffff
mov byte [ebx + 0xea], 1
mov byte [ebx + 0xe8], 1
mov byte [ebx + 0xeb], 0
lea eax, [ebx + 0xe0]
call fcn.0055dbbc
mov al, byte [0x4b9dd8]
mov byte [ebx + 0x9c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9db4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0055dbe0
ret
Function at 0x4c7c0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x5a6f60
call fcn.0056134c
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.005609cc
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4c7c81
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x4c7c81
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.005609ec
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4c7c81
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x4c7c9e
cmp dword [ebp - 0x34], 0
je 0x4c7c9e
mov edx, dword [ebp - 0x34]
jmp 0x4c7ca3
mov edx, 0x5a6bcc
lea eax, [ebp - 4]
call fcn.00583900
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.005609dc
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00583b18
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00583ae8
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4c7d21
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d0e04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
call fcn.004d0e58
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4d0e26
lea eax, [ebp - 1]
xor edx, edx
call fcn.004d0e8c
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4d0e3c
lea eax, [ebp - 1]
mov dl, 2
call fcn.004d0e8c
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4d0e52
lea eax, [ebp - 1]
mov dl, 1
call fcn.004d0e8c
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x4d14ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [0x5ae3ec]
mov eax, dword [eax]
call fcn.0050f2cc
push 0
mov edx, dword [0x5ae3ec]
mov ecx, dword [edx]
push dword [ecx + 0x24]
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
cmp word [eax + 0x23a], 0
je 0x4d1533
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x23c]
mov ecx, dword [ebp - 4]
call dword [ecx + 0x238]
pop ecx
pop ebp
ret

Function at 0x4d1538
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [0x5ae3ec]
mov eax, dword [eax]
call fcn.0050f36c
push 9
mov edx, dword [0x5ae3ec]
mov ecx, dword [edx]
push dword [ecx + 0x24]
call sub.USER32.DLL_ShowWindow
mov eax, dword [0x5ae3ec]
mov edx, dword [eax]
push dword [edx + 0x24]
call sub.USER32.DLL_SetForegroundWindow
mov ecx, dword [ebp - 4]
cmp word [ecx + 0x242], 0
je 0x4d158e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
mov ecx, dword [ebp - 4]
call dword [ecx + 0x240]
pop ecx
pop ebp
ret

Function at 0x4e4bb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004e46e0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0055e000
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4e4c16
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5ae568]
mov dl, 1
mov eax, dword [0x4e456c]
call fcn.00558660
call fcn.0055d6b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e4c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0055e000
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4e4c78
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5ae56c]
mov dl, 1
mov eax, dword [0x4e456c]
call fcn.00558660
call fcn.0055d6b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e4710
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4eaf34
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0055dbbc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4eaf83
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0055ddec
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f15e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f1847
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4f164a
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004f10b0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00558ea4
cmp al, 1
jne 0x4f164a
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004f13c8
test al, al
je 0x4f17d6
cmp dword [ebp - 8], 0
jge 0x4f1668
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004f10b0
mov eax, dword [ebp - 0x210]
call fcn.0055de3c
cmp ebx, eax
jge 0x4f16b2
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004f10b0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5ae658]
and eax, 0xff
bt dword [edx], eax
jae 0x4f16b2
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x4f16c6
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004f15c4
cmp ebx, dword [ebp - 8]
je 0x4f17c8
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4f16f2
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0055d0fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x5a8aa8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x4f17b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0055d0fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x5a8aa8]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00521ee0
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0055d0fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x5a8aa8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00521ee0
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f17bc
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x4f1829
cmp dword [ebp - 8], 0
jge 0x4f17e1
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004f10b0
mov eax, dword [ebp - 0x218]
call fcn.0055de3c
cmp eax, dword [ebp - 8]
jg 0x4f181b
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004f10b0
mov eax, dword [ebp - 0x21c]
call fcn.0055de3c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f15c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f184e
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0055dbe0
ret
Function at 0x4fb0e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4fb0e6
ret

Function at 0x4fdadc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4fdb2d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4fdb14
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4fdb04
jmp 0x4fdb2d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4fdb15
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5aee60
cmp dword [edi], 0
jne 0x506dec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5aee5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a8d8c
mov ecx, 2
call fcn.0055c860
mov edx, 0x506d48
lea eax, [esi + 5]
call fcn.00506d68
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00506d68
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x506dc1
mov dword [0x5aee5c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x506f08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x506f58]
test si, 4
je 0x506f1c
or bl, 1
test si, 8
je 0x506f26
or bl, 4
test si, 1
je 0x506f30
or bl, 8
test si, 2
je 0x506f3a
or bl, 0x10
test si, 0x10
je 0x506f44
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x506f53
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x506f5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x506f94]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x506f75
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x506f84
or bl, 4
test esi, 0x20000000
je 0x506f8f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x50bf84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jl 0x50c012
mov ax, word [esi + 4]
sub ax, 9
je 0x50bfab
add eax, 0xffffffe4
sub ax, 4
jb 0x50bfdd
jmp 0x50c012
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jl 0x50c012
push 1
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
setge cl
mov edx, dword [ebx + 0x208]
mov eax, ebx
call fcn.00522404
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x208]
test eax, eax
je 0x50c01b
push 0
mov dx, word [esi + 4]
cmp dx, 0x27
je 0x50bffd
cmp dx, 0x28
je 0x50bffd
xor ecx, ecx
jmp 0x50bfff
mov cl, 1
mov edx, dword [eax + 0x24]
xchg edx, eax
call fcn.00522404
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.005213c8
pop esi
pop ebx
ret
Function at 0x50d4e4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x50d4f6
add esp, 0xfffffff0
call fcn.0055d260
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0054c1a4
mov eax, ebx
call fcn.0050d830
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x5435a0]
call fcn.0055cef0
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x509fd4
push eax
push 0
push 0
mov eax, dword [0x5ae630]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4fa568]
call fcn.004fbb40
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4fa568]
call fcn.004fbb40
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4fa568]
call fcn.004fbb40
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0050dca0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50db74
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50db74
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50db74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50d605
call fcn.0055d2b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret