joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d1010
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 0x1400d102e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x1400d1022
cmp qword [rcx + 0x80], 0
je 0x1400d1043
call fcn.1400d15a0
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1400d0d40
test eax, eax
je 0x1400d106a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.14027bdf8
mov rbx, rax
test rax, rax
jne 0x1400d1090
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.14027bdf8
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 0x1400d10d6
mov rcx, rbx
call fcn.14027b988
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 0x1400d1128
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1400cf8c0
test eax, eax
jne 0x1400d1128
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 0x1400d1153
movzx eax, byte [rdi + 0x3d]
jmp 0x1400d1157
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 0x1400d1207
lea r8, [0x140338700]
nop dword [rax + rax]
movzx eax, byte [rsi]
test al, al
je 0x1400d1207
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 0x1400d11a0
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 0x1400d16f0
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 0x1400d17fc
cmp dword [rcx + 8], 0xffffffff
jne 0x1400d17fc
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 0x1400d1740
movzx ecx, word [rdi + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x1400d1777
cmp cx, 0x2f
je 0x1400d1777
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x1400d1764
mov eax, dword [0x14034b0a4]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x48]
cmp esi, 1
jne 0x1400d17aa
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400d17aa
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.1400cfe00
test rax, rax
jne 0x1400d17d4
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.1400d0360
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 0x1400d8040
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 0x1400d808b
mov eax, dword [rdi]
sub eax, 9
cmp eax, 0xc
ja 0x1400d808b
mov rcx, qword [rbx + 0x5c0]
mov rdx, rdi
test rcx, rcx
je 0x1400d829d
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 0x1400d8130
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rax + 0x470], 0
je 0x1400d8130
cmp dword [rdi], 0xf
jne 0x1400d8130
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d82a5
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
test di, ax
jne 0x1400d8106
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x1400d8106
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 0x1400d82a5
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 0x1400d8188
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d82a5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d80c7
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.1400bfaa0
jmp 0x1400d80c7
cmp eax, 0xe
jne 0x1400d81d0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d82a5
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.1400bfaa0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0xb
jne 0x1400d823b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d82a5
or dword [rbx + 0x5b8], 8
mov rcx, rbx
call fcn.1400c8b20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d82a5
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.1400bfaa0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0xa
jne 0x1400d829a
mov eax, dword [rbx + 0x5b8]
test al, 8
je 0x1400d82a5
and eax, 0xfffffff7
mov rcx, rbx
mov dword [rbx + 0x5b8], eax
call fcn.1400c8b20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d82a5
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.1400bfaa0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, rdi
mov rcx, rbx
call fcn.1400d7b00
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d89a0
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 0x1400d89fd
mov eax, dword [r14]
sub eax, 9
cmp eax, 0xc
ja 0x1400d89fd
mov rcx, qword [rbx + 0xa98]
mov rdx, r14
test rcx, rcx
je 0x1400d89ea
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.1400d8040
mov qword [rsp + 0x40], rsi
xor esi, esi
cmp dword [r14], 0x1a
mov qword [rsp + 0x48], rdi
jne 0x1400d8a4d
mov edi, esi
cmp dword [rbx + 0x5c8], esi
jle 0x1400d8a4d
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 0x1400d8aeb
inc edi
cmp edi, dword [rbx + 0x5c8]
jl 0x1400d8a20
cmp dword [r14], 0xe
jne 0x1400d8a99
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d8a99
mov edi, esi
cmp dword [rbx + 0x5c8], esi
jle 0x1400d8a99
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 0x1400d8b03
inc edi
cmp edi, dword [rbx + 0x5c8]
jl 0x1400d8a70
mov eax, dword [rbx + 0x5c8]
test eax, eax
jle 0x1400d8b3d
cmp dword [r14], 9
jne 0x1400d8b3d
or edi, 0xffffffff
test eax, eax
jle 0x1400d8b27
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 0x1400d8b25
inc esi
cmp esi, dword [rbx + 0x5c8]
jl 0x1400d8ac0
jmp 0x1400d8b27
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
jmp 0x1400d8b72
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.1400bfaa0
jmp 0x1400d8b72
mov edi, esi
cmp dword [rbx + 0xa90], edi
je 0x1400d8b3d
mov rcx, rbx
call fcn.1400c8b20
mov dword [rbx + 0xa90], edi
cmp dword [rbx + 0x5c8], 0
jle 0x1400d8b67
cmp dword [r14], 0xa
jne 0x1400d8b67
cmp dword [rbx + 0xa90], 0xffffffff
je 0x1400d8b67
mov rcx, rbx
call fcn.1400c8b20
mov dword [rbx + 0xa90], 0xffffffff
mov rdx, r14
mov rcx, rbx
call fcn.1400d8040
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400db350
Capabilities:
Check for time delay via gettickcount

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

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

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

Function at 0x1400e1090
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 0x1400e10e8
cmp word [rdx], 0x3c
je 0x1400e10e8
call fcn.1400c28a0
mov rdx, qword [rsp + 0x48]
mov r8b, 1
lea rcx, [rax + 0x28]
call fcn.1400c38b0
test rax, rax
je 0x1400e10d7
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 0x1400e1134
cmp word [rdx], 0x3c
mov rcx, rdi
jne 0x1400e1120
call fcn.1400e4e80
test al, al
jne 0x1400e11cb
xor eax, eax
jmp 0x1400e11e0
call fcn.1400e5030
test al, al
jne 0x1400e11cb
xor eax, eax
jmp 0x1400e11e0
mov rbx, qword [rdi + 0x158]
test rbx, rbx
jne 0x1400e1152
mov rbx, qword [0x1404578b8]
test rbx, rbx
cmove rbx, qword [0x140457268]
mov r8, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400e1119
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x1400e1187
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x1400e11e0
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.1400e4f40
test al, al
je 0x1400e1119
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.1400e1200
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 0x1400f19b0
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 0x1400f1a08
cmp ecx, r9d
jge 0x1400f19fe
mov r10, qword [rbx + 8]
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x14]
cmp rdx, r10
jb 0x1400f19de
xor al, al
jmp 0x1400f19e7
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 0x1400f19d5
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 0x1400f1a3e
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 0x1400f1a20
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x1400f1a6f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop
cmp rax, r8
jb 0x1400f1a59
xor dl, dl
jmp 0x1400f1a62
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400f1a50
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 0x1400f1ac0
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 0x1400f1afd
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 0x1400f1b17
mov rcx, rbx
call fcn.1400f1150
test eax, eax
je 0x1400f1af0
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1402743b0
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 0x1401031f0
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 0x14010329f
cmp edx, 0x100
jne 0x140103279
cmp r8, 0xd
jne 0x140103279
cmp byte [rcx + 0x71a], 0
je 0x14010324c
lea ecx, [r8 + 4]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140103279
cmp byte [rbx + 0x71b], 0
jne 0x140103279
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140103275
mov byte [rsp + 0x28], 0
lea r8, str.return
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rbx
call fcn.1400bfaa0
xor eax, eax
jmp 0x1401032a4
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 0x1401032a4
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 0x14010a660
Capabilities:
Check for time delay via gettickcount

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

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x1403a0088]
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 0x140114807
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x2d8
ret
xor edx, edx
lea rcx, [rsp + 0x1c0]
mov r8d, 0xff
call fcn.1402767a0
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 0x1401147ed
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.140125a70
add rsp, 0x2d8
ret

Function at 0x140122070
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 [0x1403a0088]
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 0x1401220c1
lea eax, [rdi - 0x2d]
cmp eax, 1
ja 0x1401220c5
bts ebx, 8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1402767a0
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.1400c2e90
mov rax, rsi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013de50
Capabilities:
Receive data
Receive data on socket

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

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1403a0088]
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.1402767a0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14013e134
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14012a9c0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14013e17b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.14013dc50
test al, al
jne 0x14013e186
call fcn.140284f80
mov rbx, rax
call fcn.140284f80
mov ecx, dword [rbx]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov rdi, rax
call fcn.14012a9c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140140960
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14013f680
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xb43], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14013f6ef
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.140140a40
jmp 0x14013f77e
mov ecx, dword [rbx + 0xaa4]
mov dword [rsp + 0x58], 1
call fcn.1401418b0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xaa8]
call fcn.1401418b0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14013f77e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.140140a40
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14013f7a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14013f816
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14012a9c0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.140140a40
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x150
pop rbx
ret

Function at 0x1401408a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xb36], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140140947
cmp qword [rcx + 0x278], 0
je 0x140140907
mov dl, 1
call fcn.140127560
mov rax, qword [rdi + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140127560
mov eax, ebx
jmp 0x140140949
cmp ebx, 2
ja 0x140140947
mov r9, qword [rdi + 0x1d0]
lea rdx, [0x1402b73d0]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1402865dc
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.1402865dc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret