joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b3d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov ecx, Ordinal_211
call fcn.140194684
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140042536
xor edx, edx
mov r8d, Ordinal_211
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
call sub.MSVCP140.dll__Thrd_hardware_concurrency
test eax, eax
je 0x140042458
call sub.MSVCP140.dll__Thrd_hardware_concurrency
lea ecx, [rax - 1]
jmp 0x14004245b
mov ecx, r15d
mov ebp, 8
cmp ecx, ebp
cmova ebp, ecx
lea rax, vtable.httplib::ThreadPool.0
mov qword [rsi], rax
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x20], r15
mov qword [rsi + 0x28], r15
mov ecx, 0x50
call fcn.140194684
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi + 0x20], rax
mov byte [rsi + 0x30], 0
lea rcx, [rsi + 0x38]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
lea rcx, [rsi + 0x80]
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
test rbp, rbp
je 0x140042534
mov qword [rsp + 0x38], rsi
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi + 0x18]
je 0x14004251d
mov ecx, 8
call fcn.140194684
test rax, rax
je 0x1400424e0
mov qword [rax], rsi
jmp 0x1400424e3
mov rax, r15
mov qword [rsp + 0x38], rax
lea r14, [rdi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140021c30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140042565
add qword [rsi + 0x10], 0x10
sub rbp, 1
jmp 0x1400424bb
lea r8, [rsp + 0x38]
mov rdx, rdi
lea rcx, [rsi + 8]
call fcn.14001c4b0
sub rbp, 1
jmp 0x1400424bb
jmp 0x140042539
mov rsi, r15
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140194a30
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
mov dword [r14], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
add rcx, 8
jmp 0x1400423f0
Function at 0x14004ca80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004cb53
cmp byte [rcx + 0x71], 0
je 0x14004cb53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14004cb4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004cb14
sub eax, 1
je 0x14004cb18
cmp eax, 2
jne 0x14004cb4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004cb46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004cb4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004cafc
xor al, al
jmp 0x14004cafc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x60
pop rbx
ret
Function at 0x14004d330
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14004d4cb
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140009b00
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14004d494
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14004d40e
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14004d483
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14004d44b
mov r10, qword [rdx]
cmp r10, rax
je 0x14004d445
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14004d483
cmp r9, rdx
je 0x14004d45f
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14004d4a5
cmp r9, rdx
jne 0x14004d450
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14004d3c1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14004d483
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14004f295
cvtsi2ss xmm0, rdx
jmp 0x14004f2aa
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1401b9da8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14004f2d8
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14004f2d8
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14004f30a
cmp rbx, 0x200
jae 0x14004f307
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14004f30a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14004d330
Function at 0x14004d4f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, qword [rcx]
mov r9d, 0x270
mov ecx, dword [r10]
cmp ecx, r9d
jne 0x14004d551
lea r8, [r10 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14004d510
mov ecx, dword [r10]
jmp 0x14004d63a
cmp ecx, 0x4e0
jb 0x14004d63a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14004d570
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14004d5c0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140057110
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x24], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140057174
movzx r8d, byte [rsp + 0x20]
mov rdx, rax
call fcn.140023820
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0x10
jb 0x14005718c
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x140057192
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x1400572a8
lea r8, [0x1401be3b0]
movzx ebx, byte [rsp + 0x20]
nop
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x14005723f
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14005721d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140057212
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140057235
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1400234d0
lea r8, [0x1401be3b0]
sub rsi, 6
sub rbp, 1
jne 0x1400571e0
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x1400571b0
cmp r13d, 0xfffffffa
jle 0x1400572a8
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rdx, r14d
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140057295
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14005728a
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400572a8
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.1400234d0
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x1400572f8
movzx ebx, byte [rsp + 0x20]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400572db
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400572d3
mov rax, qword [rdi]
mov word [rcx + rax], 0x3d
jmp 0x1400572ef
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1400234d0
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x1400572b6
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400668f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140066924
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140066910
ret
Function at 0x1400b4d10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
mov dword [rsp + 0x10], edx
movabs rcx, 0x100000001b3
movzx r8d, dl
movabs rax, 0xcbf29ce484222325
mov r10d, edx
xor r8, rax
xor edx, edx
movzx eax, byte [rsp + 0x11]
mov rbx, qword [r9 + 0x38]
mov r11, qword [r9 + 0x10]
imul r8, rcx
xor r8, rax
movzx eax, byte [rsp + 0x12]
imul r8, rcx
xor r8, rax
movzx eax, byte [rsp + 0x13]
imul r8, rcx
xor r8, rax
imul r8, rcx
and rbx, r8
shl rbx, 4
add rbx, qword [r9 + 0x20]
mov rcx, qword [rbx + 8]
mov rax, rcx
cmp rcx, r11
je 0x1400b4da1
mov r8, qword [rbx]
cmp r10d, dword [rcx + 0x10]
je 0x1400b4da4
nop dword [rax]
cmp rax, r8
je 0x1400b4da1
mov rax, qword [rax + 8]
cmp r10d, dword [rax + 0x10]
jne 0x1400b4d90
jmp 0x1400b4da4
mov rax, rdx
test rax, rax
cmove rax, r11
cmp rax, r11
je 0x1400b4de3
cmp rcx, r11
je 0x1400b4dd2
mov rax, qword [rbx]
cmp r10d, dword [rcx + 0x10]
je 0x1400b4dcf
nop
cmp rcx, rax
je 0x1400b4dd2
mov rcx, qword [rcx + 8]
cmp r10d, dword [rcx + 0x10]
jne 0x1400b4dc0
mov rdx, rcx
test rdx, rdx
cmove rdx, r11
movzx eax, byte [rdx + 0x16]
mov rbx, qword [rsp + 8]
ret
mov rbx, qword [rsp + 8]
mov eax, edx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor edi, edi
mov qword [rsp + 0x28], rcx
mov eax, edx
mov rbx, rcx
cmp edx, 9
jl 0x1400b7213
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
mov r8d, 0x100
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1400b7200
lea rdx, [rsp + 0x30]
mov rcx, rbx
jmp 0x1400b722e
xorps xmm0, xmm0
lea rdx, str.None
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov r8d, 4
mov qword [rcx + 0x18], rdi
call fcn.140019730
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140194a30
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x1400b7cc0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x1400b7cf8
cmp ax, 0x17
jne 0x1400b7d6d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400b7d6d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400b7d52
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140009fb0
mov al, 1
jmp 0x1400b7d6f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400be570
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x1400be57a
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.1400be570

Function at 0x1400c1bb0
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
mov rcx, qword [0x14024cad8]
add rcx, 0x5df0
jmp fcn.1400b4d10
Function at 0x1400c3c80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1400c3dfd
lea rax, [rsp + 0x48]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x80], 0
mov rcx, qword [rbx + 0x3b8]
test rcx, rcx
je 0x1400c3cef
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xc8], 0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.14004f370
movzx ecx, byte [rbx + 0x37c]
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x38], al
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], cl
mov dword [rsp + 0x20], ebp
mov r9d, dword [rbx + 0x378]
mov r8d, edi
lea rdx, [0x1401bae63]
mov rcx, rsi
call fcn.140029c80
mov rsi, rax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400c3d86
mov r8, qword [rcx]
lea rax, [rsp + 0x48]
cmp rcx, rax
setne dl
call qword [r8 + reloc.WLDAP32.dll_Ordinal_32]
mov qword [rsp + 0x80], 0
xchg qword [rbx + 0x48], rsi
mov rax, qword [rbx + 0x48]
nop
cmp rax, 0xffffffffffffffff
je 0x1400c3dfd
test edi, edi
jne 0x1400c3deb
mov dword [rsp + 0xd0], 0x80
mov rcx, qword [rbx + 0x48]
nop
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400c3dfd
movzx eax, word [rsp + 0xe0]
cmp ax, 2
je 0x1400c3dd8
cmp ax, 0x17
jne 0x1400c3dfd
movzx ecx, word [rsp + 0xe2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
test edi, edi
js 0x1400c3dfd
mov rcx, rbx
call fcn.1400c3e20
test al, al
je 0x1400c3dfd
mov al, 1
jmp 0x1400c3dff
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x178
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d6380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400d63ad
xor eax, eax
jmp 0x1400d6516
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1400d63ed
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1400d63ed
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1400d650e
cmp qword [rdi + 0x80], 0
je 0x1400d6509
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400d6427
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400d6452
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400d650e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400d64c1
sub eax, 1
je 0x1400d64c1
cmp eax, 2
jne 0x1400d6509
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400d650e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400d64ef
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400d6509
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400d650e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140194a30
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400e3400
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400e3454
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400e3430
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400e4910
Capabilities:
Hash data using fnv

Disassembly:
mov r10, qword [0x14024cad8]
mov eax, ecx
shr eax, 8
movabs r9, 0x100000001b3
movzx edx, al
mov r8d, ecx
movzx eax, cl
movabs rcx, 0xcbf29ce484222325
xor rax, rcx
imul rax, r9
xor rdx, rax
mov eax, r8d
imul rdx, r9
shr eax, 0x10
movzx ecx, al
mov eax, r8d
xor rdx, rcx
shr rax, 0x18
imul rdx, r9
xor rdx, rax
imul rdx, r9
mov r9, qword [r10 + 0x5e00]
and rdx, qword [r10 + 0x5e28]
shl rdx, 4
add rdx, qword [r10 + 0x5e10]
mov r11, qword [rdx + 8]
mov rcx, r11
cmp r11, r9
je 0x1400e49a4
mov rax, qword [rdx]
cmp r8d, dword [r11 + 0x10]
je 0x1400e49a6
cmp rcx, rax
je 0x1400e49a4
mov rcx, qword [rcx + 8]
cmp r8d, dword [rcx + 0x10]
jne 0x1400e4993
jmp 0x1400e49a6
xor ecx, ecx
test rcx, rcx
je 0x1400e49f9
mov rax, qword [rdx]
cmp r11, rcx
jne 0x1400e49cb
cmp rax, rcx
jne 0x1400e49c1
mov qword [rdx], r9
mov qword [rdx + 8], r9
jmp 0x1400e49d6
mov r9, qword [rcx + 8]
mov qword [rdx + 8], r9
jmp 0x1400e49d6
cmp rax, rcx
jne 0x1400e49d6
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x5e08]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, Ordinal_27
jmp fcn.1401946c0
ret

Function at 0x1400e9920
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400e9990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400e9960
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140194a30
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x1400e99c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400e9a2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400e9a00
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140194a30
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret