joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002560
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002582
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002591
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400025b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400025b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400025f2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000268e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000262d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000266e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000268e
cmp rbx, rax
ja 0x140002640
test rbx, rbx
je 0x14000268e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b1d
xor eax, eax
jmp 0x140002c89
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b57
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002c89
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002c7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002b9a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002bc5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c81
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x140002c34
sub eax, 1
je 0x140002c34
cmp eax, 2
jne 0x140002c7c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c81
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002c62
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002c7c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003d60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002f30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003003
cmp byte [rcx + 0x71], 0
je 0x140003003
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002fff
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 0x140002fc4
sub eax, 1
je 0x140002fc8
cmp eax, 2
jne 0x140002fff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002ff6
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 0x140002fff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002fac
xor al, al
jmp 0x140002fac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d60
add rsp, 0x60
pop rbx
ret

Function at 0x1400046e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000472a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000472a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000472a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000472a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000472a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000472c
xor al, al
add rsp, 0x28
ret
Function at 0x180001fe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov rbx, r9
mov ecx, select
mov ebp, r8d
mov esi, edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
test ebp, ebp
jle 0x18000214d
mov r8, qword [rsp + 0x68]
dec ebp
shr ebp, 4
cmp esi, 1
jne 0x1800020c0
mov rbx, qword [rsp + 0x60]
mov rsi, rax
sub rsi, rbx
inc ebp
nop dword [rax]
lea rax, [rbx + 0xf]
lea rcx, [r8 + 0xf]
cmp r8, rax
ja 0x180002052
cmp rcx, rbx
jae 0x180002060
lea rax, [rdi + 0xf]
cmp r8, rax
ja 0x180002086
cmp rcx, rdi
jb 0x180002086
mov r9, r8
mov rax, rbx
sub r9, rbx
mov edx, select
nop
movzx ecx, byte [rsi + rax]
xor cl, byte [rax]
mov byte [r9 + rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180002070
jmp 0x180002096
movdqu xmm1, xmmword [rbx]
movdqu xmm0, xmmword [rdi]
xorps xmm1, xmm0
movdqu xmmword [r8], xmm1
mov rdx, r8
lea rcx, [r14 + 4]
call fcn.180001b20
movups xmm1, xmmword [r8]
add r8, 0x10
sub rsi, 0x10
add rbx, 0x10
movups xmmword [rdi], xmm1
sub rbp, 1
jne 0x180002040
jmp 0x18000214d
mov rsi, qword [rsp + 0x60]
mov rbx, rdi
sub rbx, r8
mov qword [rsp + 0x40], r15
inc ebp
lea r15, [rax + 0xf]
nop word [rax + rax]
movups xmm2, xmmword [rsi]
mov rdx, rsi
lea rcx, [r14 + 4]
call fcn.180001b20
cmp r8, r15
ja 0x180002122
lea rax, [r8 + 0xf]
cmp rax, rdi
jb 0x180002122
mov rcx, r8
mov edx, select
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180002110
jmp 0x180002133
movdqu xmm1, xmmword [r8]
movdqu xmm0, xmmword [rdi]
xorps xmm1, xmm0
movdqu xmmword [r8], xmm1
add rsi, 0x10
add r8, 0x10
sub rbx, 0x10
movups xmmword [rdi], xmm2
sub rbp, 1
jne 0x1800020e0
mov r15, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18000a520
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r12d, r12d
mov r15, r9
mov r14, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
je 0x18000a71b
mov qword [rsp + 0xe0], rbx
test r8b, r8b
je 0x18000a5a0
movzx eax, byte [rdx]
test al, 8
je 0x18000a5a0
or al, 8
mov dword [rbp + 0xf], r12d
mov byte [rdx], al
lea r9, [rbp + 0xf]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rbp - 0x21]
setne dl
call fcn.18000a460
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.18000a460
test ebx, ebx
je 0x18000a717
mov qword [rsp + 0x98], rsi
movabs rcx, 0x4d54ee85da812030
mov rsi, qword [0x18008b568]
add rcx, rsi
mov qword [rsp + 0x90], r13
mov dword [rbp - 0x35], r12d
lea r13, [0x18008b560]
cmp rcx, 1
jbe 0x18000a610
mov rax, qword [0x18008b560]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov rsi, qword [0x18008b568]
jmp 0x18000a612
mov al, 1
movzx eax, al
lea rdx, [rbp - 9]
add rax, 2
mov dword [rbp - 0x39], 0x2733
mov qword [rbp - 0x29], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x31], r13
movups xmm0, xmmword [rbp - 0x39]
movsd qword [rbp + 7], xmm1
movups xmmword [rbp - 9], xmm0
call fcn.180009630
test al, al
jne 0x18000a6af
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x35], r12d
add rax, rsi
cmp rax, 1
jbe 0x18000a675
mov rax, qword [0x18008b560]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x18000a677
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x21]
add rax, 2
mov dword [rbp - 0x39], 0x4d5
mov qword [rbp - 0x29], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x31], r13
movups xmm0, xmmword [rbp - 0x39]
movsd qword [rbp - 0x11], xmm1
movups xmmword [rbp - 0x21], xmm0
call fcn.180009630
test al, al
je 0x18000a6e1
lea r8, [rbp + 0xf]
mov dword [rbp + 0xf], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.18000a460
mov rsi, qword [rsp + 0x98]
mov eax, ebx
mov r13, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180061d10
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, ebx
jmp 0x18000a6f3
mov eax, r12d
jmp 0x18000a6fb
Function at 0x18000a720
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x18000a7ab
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x18008b568]
lea rbx, [0x18008b560]
cmp rcx, 1
jbe 0x18000a76d
mov rax, qword [0x18008b560]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x18000a76f
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.18000a460
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18000a7d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp qword [rdx + 0x10], 1
mov rbx, rdx
mov rdi, rcx
je 0x18000a7fc
mov edx, dword [rdx]
jmp 0x18000a82f
mov rcx, qword [rdx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul edx, ecx, 0x3e8
add edx, dword [rbx]
xor r14d, r14d
lea rsi, [0x18008b560]
movabs r15, 0x4d54ee85da812030
sub edx, 0x79
je 0x18000a91a
sub edx, 0x450
je 0x18000a8e0
sub edx, 6
je 0x18000a8a6
cmp edx, 1
jne 0x18000a96b
mov rcx, qword [0x18008b568]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x18000a898
mov rax, qword [0x18008b560]
mov edx, 0x2751
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2751
jmp 0x18000a94b
mov al, 1
mov dword [rbp - 0x20], 0x2751
jmp 0x18000a94b
mov rcx, qword [0x18008b568]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x18000a8d5
mov rax, qword [0x18008b560]
mov edx, 0x2743
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2743
jmp 0x18000a94b
mov al, 1
mov dword [rbp - 0x20], 0x2743
jmp 0x18000a94b
mov rcx, qword [0x18008b568]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x18000a90f
mov rax, qword [0x18008b560]
mov edx, 0x274d
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x274d
jmp 0x18000a94b
mov al, 1
mov dword [rbp - 0x20], 0x274d
jmp 0x18000a94b
mov rcx, qword [0x18008b568]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x18000a942
mov rax, qword [0x18008b560]
mov edx, 0x274c
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x18000a944
mov al, 1
mov dword [rbp - 0x20], 0x274c
movzx eax, al
mov qword [rbp - 0x18], rsi
add rax, 2
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
test al, 1
je 0x18000a986
cmp rax, 1
jne 0x18000aa08
cmp dword [rbx], r14d
jne 0x18000aa08
cmp rdi, 0xffffffffffffffff
jne 0x18000a9df
mov rcx, qword [0x18008b568]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x18000a9b4
mov rax, qword [0x18008b560]
mov edx, 0x2719
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x18000a9b6
mov al, 1
movzx eax, al
mov dword [rbp - 0x20], 0x2719
add rax, 2
mov qword [rbp - 0x18], rsi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x18000aa08
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov rcx, rbx
setne dl
call fcn.18000a460
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x18000afd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x50]
lea r9, [rbp - 0x18]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov dword [rbp - 0x18], r15d
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x18008b568]
lea r14, [0x18008b560]
movabs r12, 0x4d54ee85da812030
mov dword [rbp - 0x2c], r15d
add rdx, r12
mov edi, eax
cmp rdx, 1
jbe 0x18000b060
mov r8, qword [0x18008b560]
mov edx, eax
mov rcx, r14
call qword [r8 + 0x30]
jmp 0x18000b065
test edi, edi
setne al
movzx eax, al
movabs r10, 0x4800144005b3
add rax, 2
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x18000b0a3
mov eax, dword [rbx]
mov r8d, eax
jmp 0x18000b0d3
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x18000b112
mov rcx, qword [0x18008b568]
add rcx, r12
mov dword [rbp - 0x2c], r15d
cmp rcx, 1
jbe 0x18000b107
mov rax, qword [0x18008b560]
mov edx, 0x2746
mov rcx, r14
call qword [rax + 0x30]
mov dword [rbp - 0x30], 0x2746
jmp 0x18000b17f
mov al, 1
mov dword [rbp - 0x30], 0x2746
jmp 0x18000b17f
cmp r9, 1
jne 0x18000b145
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x18000b19f
mov rcx, qword [0x18008b568]
add rcx, r12
mov dword [rbp - 0x2c], r15d
cmp rcx, 1
jbe 0x18000b176
mov rax, qword [0x18008b560]
mov edx, 0x274d
mov rcx, r14
call qword [rax + 0x30]
jmp 0x18000b178
mov al, 1
mov dword [rbp - 0x30], 0x274d
movzx eax, al
mov qword [rbp - 0x28], r14
add rax, 2
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test esi, esi
je 0x18000b1aa
mov eax, 0xffffffff
jmp 0x18000b1c1
mov eax, dword [rbp - 0x18]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbp - 0x20], r15
movsd xmm0, qword [rbp - 0x20]
movsd qword [rbx + 0x10], xmm0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180061d10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18000bbd0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1800915d8], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x18000bc49
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.18000a350]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x40
pop rbx
ret
Function at 0x18000fd30
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x18000fd80
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.18000cbe0
jmp 0x18000fe18
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x18000fda0
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.18000cbe0
jmp 0x18000fe18
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r8d, r11d
mov eax, dword [rsp + 0x90]
mov rdx, r10
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x18000fe0c
cmp eax, 0x3e5
je 0x18000fe0c
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.18000cbe0
jmp 0x18000fe18
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.18000cb50
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x58
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x18000fe80
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.18000cbe0
jmp 0x18000ff31
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x18000fea3
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
call fcn.18000cbe0
jmp 0x18000ff31
mov eax, dword [rsp + 0x90]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], edx
mov r8d, r11d
mov qword [rsp + 0x28], rbx
mov rdx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x18000fef2
mov eax, 0x2746
jmp 0x18000feff
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x50]
je 0x18000ff25
cmp eax, 0x3e5
je 0x18000ff25
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.18000cbe0
jmp 0x18000ff31
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.18000cb50
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x58
pop rdi
pop rbx
ret