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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rdi, rdx
mov rbx, rcx
call qword [rax + 0x228]
test al, al
jne 0x1400d7c1b
mov eax, dword [rdi]
sub eax, 9
cmp eax, 0xc
ja 0x1400d7c1b
mov rcx, qword [rbx + 0x5c0]
mov rdx, rdi
test rcx, rcx
je 0x1400d7e2d
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x30]
mov rcx, qword [rbx + 0x5c0]
test rcx, rcx
je 0x1400d7cc0
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rax + 0x470], 0
je 0x1400d7cc0
cmp dword [rdi], 0xf
jne 0x1400d7cc0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d7e35
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
test di, ax
jne 0x1400d7c96
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x1400d7c96
lea rcx, [rbx + 0x5a8]
mov dl, 1
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [rax + Ordinal_41]
mov rcx, qword [rbx + 0x5c0]
test rcx, rcx
je 0x1400d7e35
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [rbx + 0x5b0]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x20]
mov eax, dword [rdi]
cmp eax, 0xd
jne 0x1400d7d18
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d7e35
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d7c57
mov rcx, qword [rbx + 0x58]
lea r8, str.buttondown
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
jmp 0x1400d7c57
cmp eax, 0xe
jne 0x1400d7d60
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d7e35
mov rcx, qword [rbx + 0x58]
lea r8, str.itemclick
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0xb
jne 0x1400d7dcb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d7e35
or dword [rbx + 0x5b8], 8
mov rcx, rbx
call fcn.1400cd380
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d7e35
mov rcx, qword [rbx + 0x58]
lea r8, str.mouseenter
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0xa
jne 0x1400d7e2a
mov eax, dword [rbx + 0x5b8]
test al, 8
je 0x1400d7e35
and eax, 0xfffffff7
mov rcx, rbx
mov dword [rbx + 0x5b8], eax
call fcn.1400cd380
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d7e35
mov rcx, qword [rbx + 0x58]
lea r8, str.mouseleave
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, rdi
mov rcx, rbx
call fcn.1400d7690
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d8530
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x30
mov rax, qword [rcx]
mov r14, rdx
mov rbx, rcx
call qword [rax + 0x228]
test al, al
jne 0x1400d858d
mov eax, dword [r14]
sub eax, 9
cmp eax, 0xc
ja 0x1400d858d
mov rcx, qword [rbx + 0xa98]
mov rdx, r14
test rcx, rcx
je 0x1400d857a
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
jmp qword [rax + 0x30]
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
jmp fcn.1400d7bd0
mov qword [rsp + 0x40], rsi
xor esi, esi
cmp dword [r14], 0x1a
mov qword [rsp + 0x48], rdi
jne 0x1400d85dd
mov edi, esi
cmp dword [rbx + 0x5c8], esi
jle 0x1400d85dd
nop dword [rax]
mov rdx, qword [r14 + 0x14]
lea rcx, [rbx + 0x5cc]
movsxd rax, edi
shl rax, 4
add rcx, rax
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1400d867b
inc edi
cmp edi, dword [rbx + 0x5c8]
jl 0x1400d85b0
cmp dword [r14], 0xe
jne 0x1400d8629
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d8629
mov edi, esi
cmp dword [rbx + 0x5c8], esi
jle 0x1400d8629
nop dword [rax]
mov rdx, qword [r14 + 0x14]
lea rcx, [rbx + 0x5cc]
movsxd rax, edi
shl rax, 4
add rcx, rax
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1400d8693
inc edi
cmp edi, dword [rbx + 0x5c8]
jl 0x1400d8600
mov eax, dword [rbx + 0x5c8]
test eax, eax
jle 0x1400d86cd
cmp dword [r14], 9
jne 0x1400d86cd
or edi, 0xffffffff
test eax, eax
jle 0x1400d86b7
nop dword [rax + rax]
mov rdx, qword [r14 + 0x14]
lea rcx, [rbx + 0x5cc]
movsxd rax, esi
shl rax, 4
add rcx, rax
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1400d86b5
inc esi
cmp esi, dword [rbx + 0x5c8]
jl 0x1400d8650
jmp 0x1400d86b7
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
jmp 0x1400d8702
mov rcx, qword [rbx + 0x58]
lea r8, str.link
movsxd r9, edi
mov rdx, rbx
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rsi
call fcn.1400c41e0
jmp 0x1400d8702
mov edi, esi
cmp dword [rbx + 0xa90], edi
je 0x1400d86cd
mov rcx, rbx
call fcn.1400cd380
mov dword [rbx + 0xa90], edi
cmp dword [rbx + 0x5c8], 0
jle 0x1400d86f7
cmp dword [r14], 0xa
jne 0x1400d86f7
cmp dword [rbx + 0xa90], 0xffffffff
je 0x1400d86f7
mov rcx, rbx
call fcn.1400cd380
mov dword [rbx + 0xa90], 0xffffffff
mov rdx, r14
mov rcx, rbx
call fcn.1400d7bd0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400daee0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov byte [rcx + 0x1bd], dl
mov rax, rcx
test dl, dl
jne 0x1400daf06
mov rcx, qword [rcx + 0x58]
test rcx, rcx
je 0x1400daf06
cmp qword [rcx + 0x168], rax
jne 0x1400daf06
xor edx, edx
jmp fcn.1400c3740
ret

Function at 0x1400daf90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, qword [rcx + 0x58]
test rax, rax
je 0x1400dafa4
mov rdx, rcx
mov rcx, rax
jmp fcn.1400c3740
ret

Function at 0x1400e0c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, rdx
mov r15, r9
shr rax, 0x10
mov r14, r8
mov rdi, rcx
test ax, ax
je 0x1400e0c78
cmp word [rdx], 0x3c
je 0x1400e0c78
call fcn.1400c7100
mov rdx, qword [rsp + 0x48]
mov r8b, 1
lea rcx, [rax + 0x28]
call fcn.1400c8110
test rax, rax
je 0x1400e0c67
mov rax, qword [rax]
mov rdx, qword [rsp + 0x48]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rbx
mov rax, rdx
shr rax, 0x10
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
test ax, ax
je 0x1400e0cc4
cmp word [rdx], 0x3c
mov rcx, rdi
jne 0x1400e0cb0
call fcn.1400e4a10
test al, al
jne 0x1400e0d5b
xor eax, eax
jmp 0x1400e0d70
call fcn.1400e4bc0
test al, al
jne 0x1400e0d5b
xor eax, eax
jmp 0x1400e0d70
mov rbx, qword [rdi + 0x158]
test rbx, rbx
jne 0x1400e0ce2
mov rbx, qword [0x14045fa58]
test rbx, rbx
cmove rbx, qword [0x14045f408]
mov r8, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400e0ca9
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x1400e0d17
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x1400e0d70
mov rdx, rsi
mov qword [rdi + 0x148], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call fcn.1400e4ad0
test al, al
je 0x1400e0ca9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rdi + 0x150], r14
mov r9, qword [rsp + 0x68]
mov rdx, r15
mov r8, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400e0d90
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400ec290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x1400ec2a6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x14033e2a0]
not ecx
cmp r10d, 8
jb 0x1400ec398
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x1400ec2d0
test r10d, r10d
je 0x1400ec3c0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x1400ec3a0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x1400ecd50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
imul esi, edx
mov rbp, rdx
cmp byte [r9], 0
mov r10, rcx
je 0x1400ecda0
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ecd9a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1400ecdd1
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x1400ecdb8
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov rcx, r10
mov r8d, esi
call fcn.140278ed0
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ecdf0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x1400ece40
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ece3a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x1400ece77
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x1400ece56
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, edi
call fcn.140278ed0
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x1400ece98
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x1400ece8e
cmp byte [rbx + 0x10], 0
je 0x1400ece8e
or eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x1400eddd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x1400eddee
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x1400edde2
cmp qword [rcx + 0x80], 0
je 0x1400ede03
call fcn.1400ee360
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1400edb00
test eax, eax
je 0x1400ede2a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140280918
mov rbx, rax
test rax, rax
jne 0x1400ede50
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.140280918
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x1400ede96
mov rcx, rbx
call fcn.1402804a8
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x1400edee8
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1400ec680
test eax, eax
jne 0x1400edee8
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x1400edf13
movzx eax, byte [rdi + 0x3d]
jmp 0x1400edf17
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x1400edfc7
lea r8, [0x14033e2a0]
nop dword [rax + rax]
movzx eax, byte [rsi]
test al, al
je 0x1400edfc7
mov ecx, dword [rbx + 0x9c]
xor rcx, rax
mov eax, dword [rbx + 0x9c]
movzx edx, cl
shr eax, 8
mov ecx, dword [r8 + rdx*4]
mov edx, dword [rbx + 0xa4]
xor ecx, eax
movzx eax, cl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0xa0], ecx
movzx eax, byte [rbx + 0xa3]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x1400edf60
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400ee4b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
jne 0x1400ee5bc
cmp dword [rcx + 8], 0xffffffff
jne 0x1400ee5bc
mov qword [rsp + 0x48], rbx
lea rbx, [rcx + 0x250]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400ee500
movzx ecx, word [rdi + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x1400ee537
cmp cx, 0x2f
je 0x1400ee537
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x1400ee524
mov eax, dword [0x140351bcc]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x48]
cmp esi, 1
jne 0x1400ee56a
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400ee56a
mov eax, 0x2000000
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r14d
mov rcx, rbp
call fcn.1400ecbc0
test rax, rax
jne 0x1400ee594
mov eax, dword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rcx, rax
call fcn.1400ed120
xor ecx, ecx
mov qword [rdi], rax
test rax, rax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov eax, 0x1000000
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400f6210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r9d, ecx
and r9d, 7
je 0x1400f6268
cmp ecx, r9d
jge 0x1400f625e
mov r10, qword [rbx + 8]
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x14]
cmp rdx, r10
jb 0x1400f623e
xor al, al
jmp 0x1400f6247
movzx eax, byte [rdx]
inc rdx
mov qword [rbx], rdx
movzx eax, al
shl eax, cl
add ecx, 8
or r8d, eax
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], r8d
cmp ecx, 0x18
jle 0x1400f6235
mov ecx, r9d
shr dword [rbx + 0x14], cl
sub dword [rbx + 0x10], r9d
mov ecx, dword [rbx + 0x10]
xor r9d, r9d
test ecx, ecx
jle 0x1400f629e
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r9d
shr edx, 8
sub ecx, 8
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], edx
test ecx, ecx
jg 0x1400f6280
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x1400f62cf
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop
cmp rax, r8
jb 0x1400f62b9
xor dl, dl
jmp 0x1400f62c2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400f62b0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x1400f6320
mov rax, qword gs:[0x58]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400f635d
mov rax, qword gs:[0x58]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1400f6377
mov rcx, rbx
call fcn.1400f59b0
test eax, eax
je 0x1400f6350
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.140278ed0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140107a50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x710], 0
mov rbp, r9
mov rdi, r8
mov esi, edx
mov rbx, rcx
je 0x140107aff
cmp edx, 0x100
jne 0x140107ad9
cmp r8, 0xd
jne 0x140107ad9
cmp byte [rcx + 0x71a], 0
je 0x140107aac
lea ecx, [r8 + 4]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140107ad9
cmp byte [rbx + 0x71b], 0
jne 0x140107ad9
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140107ad5
mov byte [rsp + 0x28], 0
lea r8, str.return
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rbx
call fcn.1400c41e0
xor eax, eax
jmp 0x140107b04
mov rax, qword [rbx + 0x710]
mov r9, rbp
mov r8, rdi
mov edx, esi
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
call qword [r10 + Ordinal_27]
jmp 0x140107b04
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14010eec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rdx, qword [rcx + 0x5c8]
test rdx, rdx
je 0x14010eed9
mov rax, qword [rdx]
mov rcx, rdx
jmp qword [rax + 0x250]
mov rax, qword [rcx + 0x58]
test rax, rax
je 0x14010eeed
mov rdx, rcx
mov rcx, rax
jmp fcn.1400c3740
ret
Function at 0x140119020
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140119067
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x2d8
ret
xor edx, edx
lea rcx, [rsp + 0x1c0]
mov r8d, 0xff
call fcn.14027b2c0
mov edx, 0xff
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14011904d
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
mov eax, ecx
shr eax, 8
movzx eax, al
movzx edx, cl
shl edx, 8
add eax, edx
mov edx, ecx
shl eax, 8
shr edx, 0x10
movzx r8d, dl
add eax, r8d
shr ecx, 0x18
shl eax, 8
add eax, ecx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x2d8
ret

Function at 0x1401268d0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ecx, ecx
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov ecx, edi
mov r8, rax
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ebx, eax
lea eax, [rdi - 0x21]
cmp eax, 7
jbe 0x140126921
lea eax, [rdi - 0x2d]
cmp eax, 1
ja 0x140126925
bts ebx, 8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14027b2c0
mov ecx, ebx
lea rdx, [rsp + 0x20]
bts ecx, 0x18
mov r8d, 0x104
test ebp, ebp
cmove ecx, ebx
shl ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rcx, [rsi + 8]
xor eax, eax
mov qword [rsi], rcx
lea rdx, [rsp + 0x20]
mov word [rcx], ax
or r8d, 0xffffffff
mov rcx, rsi
call fcn.1400c76f0
mov rax, rsi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x140142680
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
je 0x14014269d
call fcn.140146f40
test eax, eax
jne 0x1401426c8
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x140142696
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1401426c8
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov dword [rsp + 0x20], Ordinal_133
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_133
mov rbp, r9
call fcn.14027b2c0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140142964
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14012f220
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1401429ab
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.140142480
test al, al
jne 0x1401429b6
call fcn.140289aa0
mov rbx, rax
call fcn.140289aa0
mov ecx, dword [rbx]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov rdi, rax
call fcn.14012f220
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140145190
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret