joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180037df0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r8
mov r14, rdx
mov rsi, rcx
movzx r12d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r12, rax
movabs rcx, 0x100000001b3
imul r12, rcx
movzx eax, byte [r8 + 1]
xor r12, rax
imul r12, rcx
movzx eax, byte [r8 + 2]
xor r12, rax
imul r12, rcx
movzx eax, byte [r8 + 3]
xor r12, rax
imul r12, rcx
mov rcx, qword [rsi + 0x30]
and rcx, r12
add rcx, rcx
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rsi + 8]
mov r15, qword [rdx]
cmp rbx, r15
jne 0x180037e77
mov rbx, r15
mov rbp, r15
jmp 0x180037eba
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x180037e91
cmp rbx, rcx
je 0x180037eb4
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x180037e83
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15, rbx
mov rbp, rbx
movabs rax, 0xea0ea0ea0ea0ea
cmp qword [rsi + 0x10], rax
jne 0x180037ed8
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x118
call fcn.1800d0350
mov rdi, rax
mov qword [rsp + 0x28], rax
mov eax, dword [r13]
mov dword [rdi + 0x10], eax
lea rcx, [rdi + 0x14]
xor edx, edx
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
nop
mov rcx, qword [rsi + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x180037f25
cvtsi2ss xmm0, rcx
jmp 0x180037f3a
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x180037f4d
cvtsi2ss xmm1, rcx
jmp 0x180037f62
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x180037fd1
mov rcx, rsi
call fcn.18002a7c0
mov rcx, r12
and rcx, qword [rsi + 0x30]
add rcx, rcx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rsi + 8]
cmp rax, rbx
jne 0x180037f9f
mov qword [rsp + 0x28], 0
jmp 0x180037fc4
mov rdx, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x180037fc1
nop dword [rax + rax]
mov rbx, rax
cmp rax, rdx
je 0x180038005
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x180037fb0
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r15, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [rsi + 0x10]
mov qword [rdi], r15
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
and rax, r12
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rsi + 8]
jne 0x180038015
mov qword [rcx + rax*8], rdi
jmp 0x180038027
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x180037fc9
cmp r8, rbp
jne 0x180038020
mov qword [rcx + rax*8], rdi
jmp 0x18003802c
cmp qword [rcx + rax*8 + 8], rdx
jne 0x18003802c
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x180037e99
Function at 0x18003f8c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x40
mov rbp, r8
mov r15, rdx
mov rbx, rcx
test r8, r8
jne 0x18003f8fb
xor edi, edi
mov dword [rcx], 1
mov dword [rcx + 0xc], edi
mov rax, rcx
mov qword [rcx + 4], rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test rdi, rdi
jns 0x18003f949
xor edi, edi
mov dword [rbx], 2
mov dword [rbx + 0xc], edi
mov rax, rbx
mov qword [rbx + 4], rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r14
lea r14, [rdi + 1]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x18003f97c
xor edi, edi
mov dword [rbx + 0xc], edi
mov dword [rbx], 3
mov qword [rbx + 4], rdi
jmp 0x18003fa52
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x18003f9b2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edi, edi
mov dword [rbx], 2
mov dword [rbx + 0xc], edi
mov qword [rbx + 4], rdi
jmp 0x18003fa52
mov r8, rdi
mov rdx, rsi
xor ecx, ecx
call fcn.18003e200
cmp eax, 1
jne 0x18003f9ca
mov byte [rdi + rsi], 0
jmp 0x18003f9cd
mov r14, rdi
mov r8, r14
mov rdx, rsi
mov ecx, eax
call fcn.18003e200
xor edi, edi
mov qword [rsp + 0x20], r14
mov r9, rsi
mov qword [rsp + 0x70], rdi
mov r8d, eax
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x30]
mov ebp, eax
lea rcx, [rsp + 0x70]
call fcn.18003e2c0
test al, al
je 0x18003f96a
mov rdi, qword [rsp + 0x70]
cmp rdi, rsi
je 0x18003fa1d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x30]
mov r9, r15
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov qword [rax], rdi
mov qword [r15 + 0x50], rdi
call fcn.18003f6b0
mov dword [rsp + 0x3c], ebp
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
Function at 0x180072450
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x108
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x1801e4d59], 0
je 0x18007266f
call fcn.180033370
mov ecx, eax
mov edx, 1
call fcn.18003a170
test eax, eax
jne 0x18007266f
movaps xmmword [rsp + 0xf0], xmm6
lea rcx, [rsp + 0x70]
movaps xmmword [rsp + 0xe0], xmm7
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm9
movaps xmmword [rsp + 0xb0], xmm10
movaps xmmword [rsp + 0xa0], xmm11
call fcn.18006d8b0
xor edx, edx
lea rcx, [rsp + 0x70]
movups xmm9, xmmword [rax]
movsd xmm11, qword [rax + 0x10]
call fcn.18002ad80
xorps xmm8, xmm8
xorps xmm7, xmm7
movups xmm1, xmmword [rax]
movsd xmm2, qword [rax + 0x10]
mulss xmm1, dword [0x1801895b4]
mulss xmm2, dword [0x1801895b4]
cvtss2sd xmm8, xmm1
cvtss2sd xmm7, xmm2
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm7
andps xmm1, xmmword [0x180189950]
cvtps2pd xmm6, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
xorps xmm1, xmm1
xorps xmm10, xmm10
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm7
xorps xmm1, xmmword [0x180189980]
cvtss2sd xmm1, xmm1
mulsd xmm1, xmm6
cvtsd2ss xmm10, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm8
cvtps2pd xmm2, xmm1
mulsd xmm2, xmm6
cvtpd2ps xmm6, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
xorps xmm7, xmm7
movaps xmm8, xmm9
cvtsd2ss xmm7, xmm0
movss xmm0, dword [0x180189790]
addss xmm8, xmm10
addss xmm11, xmm7
shufps xmm9, xmm9, 0xaa
addss xmm9, xmm6
mulss xmm7, xmm0
mulss xmm10, xmm0
mulss xmm6, xmm0
addss xmm7, xmm11
addss xmm10, xmm8
addss xmm6, xmm9
call fcn.180033370
mov ecx, eax
lea rdx, [rsp + 0x90]
mov r8d, 1
call fcn.18003a500
mov edx, Ordinal_211
call fcn.18006f230
test eax, eax
jne 0x1800725e8
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18007263b
call fcn.180033370
movss xmm4, dword [0x1801897b0]
movaps xmm3, xmm10
movss dword [rsp + 0x60], xmm4
movaps xmm2, xmm11
mov dword [rsp + 0x58], 1
movaps xmm1, xmm9
mov dword [rsp + 0x48], eax
movaps xmm0, xmm8
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_50
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm6
call fcn.18006ee00
movaps xmm10, xmmword [rsp + 0xb0]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xf0]
movaps xmm11, xmmword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800d0330
add rsp, 0x108
ret
Function at 0x18007a600
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc50
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
lea rax, [rsp + 0x440]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rdi + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x18007a690
mov r8d, 0x3ff
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop
inc r8
cmp byte [rax + r8], dil
jne 0x18007a680
lea rdx, [rsp + 0x40]
jmp 0x18007a6a8
xorps xmm0, xmm0
lea rdx, [0x18012083e]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.180008710
mov rax, rbx
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.1800d0330
mov rbx, qword [rsp + 0xc60]
add rsp, 0xc50
pop rdi
ret

Function at 0x18007a740
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rbx + rdx], 0
jne 0x18007a760
xor esi, esi
mov edi, esi
test rbx, rbx
je 0x18007a796
mov eax, esi
movsx ecx, byte [rax + rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add eax, edi
inc esi
imul edi, eax, 0x401
mov eax, edi
shr eax, 6
xor edi, eax
mov eax, esi
cmp rax, rbx
jb 0x18007a774
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + rdi*8]
mov rbp, qword [rsp + 0x38]
mov ecx, eax
mov rsi, qword [rsp + 0x40]
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
add rsp, 0x20
pop rdi
ret
Function at 0x18008e780
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 + 0xaee], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x18008e836
cmp qword [rcx + 0x288], 0
je 0x18008e7eb
mov dl, 1
call fcn.18007eb50
mov rax, qword [rdi + 0x1e0]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.18007eb50
mov eax, ebx
jmp 0x18008e838
mov edx, ebx
test ebx, ebx
je 0x18008e7fb
sub edx, 1
je 0x18008e7fb
cmp edx, 1
jne 0x18008e836
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1800e05b0]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18008e850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xaee], 0
mov rdi, rcx
jne 0x18008e893
cmp qword [rcx + 0x1e8], 0
je 0x18008e995
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1800a0230
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x18008e8c1
mov rcx, qword [rdi + 0x1e8]
test rcx, rcx
je 0x18008e908
cmp byte [rdi + 0x1283], 0
jne 0x18008e908
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x18008e8f0
mov byte [rdi + 0x1283], 1
cmp byte [rdi + 0xaee], 0
mov byte [rsp + rbx + 0x30], 0xa
je 0x18008e98d
cmp qword [rdi + 0x288], 0
je 0x18008e956
mov dl, 1
mov rcx, rdi
call fcn.18007eb50
mov rax, qword [rdi + 0x1e0]
lea r9, [rbx + 1]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
call fcn.18007eb50
jmp 0x18008e98d
mov r9, qword [rdi + 0x1d8]
lea rcx, [0x1800e05b0]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d8]
lea rdx, [rbx + 1]
mov r8d, 1
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800d0330
add rsp, 0x160
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x18008ebe2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18008ed80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x238]
mov r14, qword [rcx + r8*8 + 0x1f0]
add rbx, rax
mov rax, qword [rcx + 0x3f0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x18008ee89
lea rax, [0x18008ec30]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x18008ee89
cmp qword [rbx], 0
je 0x18008ee0e
test rdi, rdi
je 0x18008ee89
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.18009e930
cmp eax, 0xffffffff
je 0x18008ee89
test al, 1
je 0x18008ee89
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18008ee68
mov eax, dword [rbp + 0x704]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x18008eec3
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x18008ee89
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x18008ef02
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x18008eed2
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x18008ef02
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x18008ef05
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1800bbf30
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.18008e850
mov dword [rbp + 0xdcc], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800d0330
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x288], 0
je 0x18008f39d
call fcn.1800888d0
test eax, eax
jne 0x18008f3c3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x18008f396
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x18008f396
mov al, 1
add rsp, 0x28
ret
Function at 0x18008f620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rdi, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18008f6c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800bbf30
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x18008f751
movzx eax, word [rsp + 0x30]
cmp eax, 2
je 0x18008f703
cmp eax, 0x17
jne 0x18008f70f
lea rdx, [rsp + 0x38]
mov ecx, eax
mov r8, rdi
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.1800bd310
test rax, rax
je 0x18008f70f
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
jmp 0x18008f75c
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x18008f6de
mov byte [rdi], 0
mov dword [rbx], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800bbf30
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.18008e850
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800d0330
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180091350
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret

Function at 0x180091650
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18009167a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800e0a58]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x1800916dd
mov rcx, rbx
test r14, r14
je 0x1800916c7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x180091715
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180091715
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1800917d8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x180091740
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1800917ca
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800917ca
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x180091770
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x180091784
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800917a0
mov rcx, rdi
test r14, r14
je 0x1800917c1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1800917c7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1800d896d]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x180094020
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rax + 0x7c8]
mov dword [rcx + 0x30], 2
call fcn.180084450
lea rdx, str.CONNECT_phase_completed__n
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18008e9b0
Function at 0x18009d300
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18009d355
jmp 0x18009d504
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18009d4db
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x18009d4db
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x18009d4db
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x18009d4db
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x18009d4db
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18009d4db
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18009d4db
mov r9, rsi
lea r8, [0x1800e268c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1800a0110
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18009d475
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x18009d4db
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x18009d4db
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18009d4db
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x18009d4fc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800d0330
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret