joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60e83c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0060e760
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00699e58
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x60e8a0
call fcn.0060e08c
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x60e892
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00699e58
pop esi
pop ebx
ret

Function at 0x60e8c4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0069ad78
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0069985c
test ebx, ebx
je 0x60e90f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x60e954
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x60e97c
mov edx, edi
mov eax, esi
call fcn.0060e8c4
mov dword [ebx + 4], eax
jmp 0x60e9b9
cmp dword [ebp - 4], 0
je 0x60e995
mov eax, dword [ebp - 4]
call fcn.0069ad78
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x60e9b9
cmp byte [ebp + 0xc], 0
jne 0x60e9a2
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x60e9b9
mov ecx, dword [0x7c995c]
mov dl, 1
mov eax, dword [0x60d990]
call fcn.00694df0
call fcn.0069a414
cmp dword [ebp + 0x14], 0
je 0x60e9d5
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0060e920
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x60e9e3
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x60e9ec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x60ea1d
mov ecx, dword [0x7c9968]
mov dl, 1
mov eax, dword [0x60d990]
call fcn.00694df0
call fcn.0069a414
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x60ea4a
mov ecx, dword [0x7c9964]
mov dl, 1
mov eax, dword [0x60d990]
call fcn.00694df0
call fcn.0069a414
xor eax, eax
push ebp
push 0x60eac9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00699e58
cmp byte [ebp + 8], 0
je 0x60eaa5
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0060e954
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0060e83c
jmp 0x60eabf
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0060e378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x60eae6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x60ecac
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0060e5f8
xor edx, edx
push ebp
push 0x60ee0c
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x60edf6
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x60ecf6
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x60ed00
call fcn.0069a4b4
jmp 0x60ee13
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.006844dc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x60edeb
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_send
cmp eax, 0xffffffff
jne 0x60eda9
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x60ed99
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00699e58
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0060ec64
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x60ee1c]
cmp dl, byte [eax + 0x28]
je 0x60edf2
call fcn.00694ccc
jmp 0x60edf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.006844ec
jmp 0x60edf2
cmp eax, ebx
jge 0x60edc2
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.006844ec
jmp 0x60ed00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.006844dc
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.006844f8
cmp ebx, eax
jne 0x60ed00
push ebp
call fcn.0060ec64
pop ecx
jmp 0x60edf2
push ebp
call fcn.0060ec64
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60ee13
mov eax, dword [ebp - 4]
call fcn.0060e604
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60f464
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0068cfe4
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.0068cfd4
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.WSOCK32.DLL_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x6133c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0069ad78
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x620324
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x62048d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0069a9cc
mov eax, dword [ebp - 0x10]
call fcn.0061fe8c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x620376
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0069adfc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00620a7c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x62044b
xor eax, eax
push ebp
push 0x620444
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00620038
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.006204bc
test al, al
je 0x620422
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0069aa1c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x620422
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0069ad78
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x62041c
mov eax, dword [ebp - 0x14]
call fcn.0069ad78
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0069aaec
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00620324
dec ebx
cmp ebx, 0xffffffff
jne 0x6203d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62044b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00620038
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.0069ad78
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00620024
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620494
lea eax, [ebp - 0x3c]
call fcn.0069a934
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0069a958
ret

Function at 0x6204bc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0069985c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x7c9660]
cmp byte [edx + 8], 0
je 0x620520
mov edx, dword [0x7c9628]
cmp dword [edx], 2
jne 0x620520
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x620524
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x6205dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.006204bc
test al, al
je 0x6205be
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0069aa1c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x6205be
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0069ad78
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.0069ad78
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0069aaec
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x620577
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6205e3
lea eax, [ebp - 0x2c]
call fcn.0069a934
lea eax, [ebp - 0xc]
call fcn.0069a934
ret

Function at 0x6205ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x6206a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.006204bc
test al, al
je 0x620686
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0069aa1c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x620686
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0069ad78
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.0069ad78
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0069aaec
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x62063f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6206ab
lea eax, [ebp - 0x2c]
call fcn.0069a934
lea eax, [ebp - 0xc]
call fcn.0069a934
ret
Function at 0x620990
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.0061fea0
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.0069ad78
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x6209ee
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7c9508]
mov dl, 1
mov eax, dword [0x61fc7c]
call fcn.00694e2c
call fcn.0069a414
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x6209f8
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.0069ad78
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x620a50
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7c950c]
mov dl, 1
mov eax, dword [0x61fc7c]
call fcn.00694e2c
call fcn.0069a414
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0061fed0
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 0x623c40
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.0069a934
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x623c8f
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.0069ab64
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x62a3d4
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 0x62a633
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x62a436
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00629e9c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00695678
cmp al, 1
jne 0x62a436
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0062a1b4
test al, al
je 0x62a5c2
cmp dword [ebp - 8], 0
jge 0x62a454
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.00629e9c
mov eax, dword [ebp - 0x210]
call fcn.0069abb4
cmp ebx, eax
jge 0x62a49e
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00629e9c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x7c9634]
and eax, 0xff
bt dword [edx], eax
jae 0x62a49e
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x62a4b2
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0062a3b0
cmp ebx, dword [ebp - 8]
je 0x62a5b4
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 0x62a4de
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00699e58
and eax, 0x7f
movzx eax, word [eax*2 + 0x7be448]
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 0x62a5a1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00699e58
and eax, 0x7f
movzx eax, word [eax*2 + 0x7be448]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.0065fbfc
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00699e58
and eax, 0x7f
movzx eax, word [eax*2 + 0x7be448]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0065fbfc
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62a5a8
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 0x62a615
cmp dword [ebp - 8], 0
jge 0x62a5cd
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00629e9c
mov eax, dword [ebp - 0x218]
call fcn.0069abb4
cmp eax, dword [ebp - 8]
jg 0x62a607
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00629e9c
mov eax, dword [ebp - 0x21c]
call fcn.0069abb4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0062a3b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62a63a
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0069a958
ret
Function at 0x63682c
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 0x636832
ret

Function at 0x639318
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 0x639369
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x639350
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x639340
jmp 0x639369
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 0x639351
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x642b14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x7cabac
cmp dword [edi], 0
jne 0x642b90
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x7caba8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7be734
mov ecx, 2
call fcn.00699420
mov edx, 0x642aec
lea eax, [esi + 5]
call fcn.00642b0c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00642b0c
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 0x642b65
mov dword [0x7caba8], 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 0x642cac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x642cfc]
test si, 4
je 0x642cc0
or bl, 1
test si, 8
je 0x642cca
or bl, 4
test si, 1
je 0x642cd4
or bl, 8
test si, 2
je 0x642cde
or bl, 0x10
test si, 0x10
je 0x642ce8
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x642cf7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x642d00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x642d38]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x642d19
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x642d28
or bl, 4
test esi, 0x20000000
je 0x642d33
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x6498f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x64990a
add esp, 0xfffffff0
call fcn.00699fbc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.006891ec
mov eax, ebx
call fcn.00649c5c
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x6801b4]
call fcn.00699c4c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x6801b4]
call fcn.00699c4c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x6801b4]
call fcn.00699c4c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x6801b4]
call fcn.00699c4c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x6801b4]
call fcn.00699c4c
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, 0x645d78
push eax
push 0
push 0
mov eax, dword [0x7c9608]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x635c8c]
call fcn.0063732c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x635c8c]
call fcn.0063732c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x635c8c]
call fcn.0063732c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0064a0cc
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x649fa0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x649fa0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x649fa0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x649a19
call fcn.0069a014
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret