joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003a20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003af3
cmp byte [rcx + 0x71], 0
je 0x140003af3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003aef
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 0x140003ab4
sub eax, 1
je 0x140003ab8
cmp eax, 2
jne 0x140003aef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004780
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003ae6
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 0x140003aef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003a9c
xor al, al
jmp 0x140003a9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004780
add rsp, 0x60
pop rbx
ret

Function at 0x140003d40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003e15
cmp byte [rcx + 0x72], 0
je 0x140003e15
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140003e11
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003dd6
sub eax, 1
je 0x140003dda
cmp eax, 2
jne 0x140003e11
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004780
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003e08
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 0x140003e11
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140003dbe
xor al, al
jmp 0x140003dbe
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004780
add rsp, 0x60
pop rbx
ret
Function at 0x1400051f8
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14000f970], rbx
je 0x140006ac7
cmp rax, rbx
jne 0x140006aba
mov edi, 1
mov esi, edi
jmp 0x140006acc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140006a9f
mov edi, 1
mov eax, dword [0x14000f978]
cmp eax, edi
jne 0x140006ae4
mov ebx, 0x1f
mov ecx, ebx
call fcn.1400b8000
jmp 0x140006b5a
mov eax, dword [0x14000f978]
test eax, eax
jne 0x140006b4f
mov dword [0x14000f978], edi
lea r15, [0x140008a00]
lea rbx, [0x1400089e8]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140006b41
test eax, eax
jne 0x140006b45
cmp qword [rbx], r14
je 0x140006b36
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140008958]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140006b0e
test eax, eax
je 0x140006b55
mov eax, 0xff
jmp 0x140006cbb
mov dword [0x14000d2a4], edi
mov ebx, 0x1f
mov eax, dword [0x14000f978]
cmp eax, edi
jne 0x140006b81
lea rdx, [0x1400089e0]
lea rcx, [0x140008970]
call sub.msvcrt.dll__initterm
mov dword [0x14000f978], 2
test esi, esi
jne 0x140006b8f
mov rax, r14
xchg qword [0x14000f970], rax
cmp qword [0x14000f980], r14
je 0x140006bcc
lea rcx, [0x14000f980]
call fcn.140006f00
test eax, eax
je 0x140006bcc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f980]
mov r9, qword [0x140008958]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140006be5
mov eax, 0xff
jmp 0x140006cbb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006c6c
test ax, ax
je 0x140006c00
test edx, edx
jne 0x140006c6c
sub ax, di
cmp ax, bx
ja 0x140006c16
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140006c00
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001304
mov dword [0x14000d2a0], eax
cmp dword [0x14000d2c0], r14d
jne 0x140006c55
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d2a4], r14d
jne 0x140006c6a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d2a0]
jmp 0x140006cbb
cmp ax, 0x22
jne 0x140006c80
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140006bee
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140006f94
add rsp, 0x28
jmp 0x140006a60
Function at 0x140047a24
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0xf], 0x5284eac3
mov qword [rbp + 7], r9
or rdi, 0xffffffffffffffff
mov rax, rdi
xor ebx, ebx
inc rax
cmp word [r9 + rax*2], bx
jne 0x140047a74
add ax, ax
mov word [rbp - 1], ax
add ax, 2
mov word [rbp + 1], ax
test rsi, rsi
je 0x140047bea
mov edx, select
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400952dc], eax
jle 0x140047bc0
lea rcx, [0x1400952dc]
call fcn.1400690e8
cmp dword [0x1400952dc], edi
jne 0x140047bc0
movups xmm0, xmmword [str._GXyYXSLJPXSZ.5]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [0x140085268]
movups xmmword [rbp - 0x21], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x140047b20
mov r8, rbx
movabs rax, 0x97b425ed097b425f
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, 0x32
xor byte [rbp + r8 - 0x31], al
inc r8
cmp r8, 0x20
jb 0x140047af4
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
lea rax, [rbp - 0x31]
inc rdi
cmp byte [rax + rdi], bl
jne 0x140047b33
mov r8, rdi
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x51]
call fcn.14004bc48
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x140095028]
mov rcx, r14
call fcn.1400469b8
mov qword [0x140095290], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140047ba4
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047b9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047b9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069480
movdqa xmm0, xmmword [0x140086f50]
movdqu xmmword [rbp - 0x41], xmm0
mov byte [rbp - 0x51], bl
lea rcx, [0x1400952dc]
call fcn.14006907c
cmp qword [0x140095290], rbx
je 0x140047bea
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.14004b5ec
neg al
sbb rbx, rbx
and rbx, qword [rbp - 0x59]
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140069020
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140050778
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13c0
call fcn.14006a4d0
sub rsp, rax
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov ebx, edx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
or dword [rsp + 0x13a4], 0xffffffff
mov edx, 0x270
mov dword [rsp + 0x24], eax
mov r8d, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x24], eax
inc r8
cmp r8, rdx
jb 0x1400507bc
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x20]
cmp ebx, 4
jne 0x1400507f0
call fcn.140067124
mov ecx, eax
jmp 0x14005082a
add ebx, 0xfffffffc
call fcn.140067124
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x140050826
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140050826
lea rcx, [rsp + 0x20]
call fcn.140067124
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140050812
shr rcx, 0x20
lea eax, [rcx + 5]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x13d0]
add rsp, 0x13c0
pop rdi
ret
Function at 0x140050850
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbp, rax
mov edx, dword [0x140085e88]
mov dword [rsp + 0x20], edx
movzx edx, word [0x140085e8c]
mov word [rsp + 0x24], dx
mov cl, byte [0x140085e8e]
mov byte [rsp + 0x26], cl
xor r8d, r8d
movabs rax, 0x97b425ed097b425f
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, 0x32
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 7
jb 0x1400508a5
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400508de
mov rdi, qword [rbx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140050955
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140050955
mov r14d, dword [r10 + 0x20]
dec r9d
lea rcx, [r14 + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov r11d, 0x1d01a102
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140050950
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140050931
cmp r11d, 0x32c2f85
je 0x14005095a
test r9d, r9d
jne 0x140050914
mov rax, qword [rax]
jmp 0x1400508ef
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [r10 + 0x24]
add rax, r8
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r8
xor r9d, r9d
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call r10
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x1400509fc
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400509fc
mov esi, dword [r10 + 0x20]
dec r9d
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov r11d, 0x2203e778
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x1400509f7
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400509d8
cmp r11d, 0x5a6cc9c8
je 0x140050a01
test r9d, r9d
jne 0x1400509bb
mov rax, qword [rax]
jmp 0x140050996
mov edx, dword [r10 + 0x1c]
add rdx, r8
mov eax, dword [r10 + 0x24]
add rax, r8
movzx eax, word [rax + r9*2]
mov edx, dword [rdx + rax*4]
add rdx, r8
mov ecx, 1
call rdx
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140050a58
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140050a53
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050a88
mov rcx, r8
call fcn.140069480
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140054244
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140054306
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [0x140093510]
lea rsi, [0x140093508]
and dword [rsp + 0x3c], 0
mov edi, eax
movabs rax, 0x4d54ee85da812030
add rdx, rax
cmp rdx, 1
jbe 0x1400542b6
mov rcx, qword [0x140093508]
mov edx, edi
mov r8, qword [rcx + 0x30]
mov rcx, rsi
call r8
jmp 0x1400542bb
test edi, edi
setne al
lea rcx, str.C:Users_ntoskrnlDesktopSDK_boost_asio_182_0_boost_asiodetail_throw_error.hpp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rax
lea rcx, str.win_tss_ptr_create
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x34], 5
test al, 1
je 0x140054306
cmp rax, 1
jne 0x140054325
test edi, edi
jne 0x140054325
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, [0x140086984]
lea rcx, [rsp + 0x38]
call fcn.140054178
int3

Function at 0x140054834
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140093028]
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
or 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 [0x140095224], eax
test eax, eax
je 0x14005489a
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400548bb
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140002004]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140069020
add rsp, 0x40
pop rbx
ret
Function at 0x140055c3c
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
mov rsi, r9
mov r14, rdx
mov rdi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x140055d3c
test r8b, r8b
je 0x140055cad
mov al, byte [rdx]
test al, 8
je 0x140055cad
or al, 8
mov dword [rsp + 0x60], ebp
mov byte [rdx], al
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rsp + 0x30]
setne dl
call fcn.140055b8c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rsi
mov ebx, eax
setne dl
call fcn.140055b8c
test ebx, ebx
je 0x140055d3c
mov edx, 0x2733
lea rcx, [rsp + 0x48]
call fcn.140063450
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140053704
test al, al
jne 0x140055d09
mov edx, 0x4d5
lea rcx, [rsp + 0x30]
call fcn.140063450
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140053704
test al, al
je 0x140055d3c
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
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, rsi
mov ebx, eax
setne dl
call fcn.140055b8c
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140069020
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140055d58
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x60], rax
and qword [r11 - 0x48], 0
lea r9, [r11 - 0x20]
and qword [r11 - 0x50], 0
and dword [rsp + 0x20], 0
mov rbx, qword [rsp + 0xa0]
and dword [rsp + 0x58], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov dl, 1
mov rcx, rbx
mov edi, eax
call fcn.140055b8c
cmp qword [rbx + 0x10], 1
movabs r9, 0x4800144005b3
je 0x140055dbd
mov ecx, dword [rbx]
mov r8d, ecx
jmp 0x140055ded
mov rcx, qword [rbx + 8]
mov rax, r9
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 ecx, ecx, 0x3e8
add ecx, r8d
cmp ecx, 0x40
jne 0x140055df9
mov edx, 0x2746
jmp 0x140055e3b
cmp qword [rbx + 0x10], 1
jne 0x140055e2d
mov rcx, qword [rbx + 8]
mov rax, r9
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 0x140055e43
mov edx, 0x274d
mov rcx, rbx
call fcn.1400633c4
test edi, edi
je 0x140055e4c
or eax, 0xffffffff
jmp 0x140055e67
and qword [rsp + 0x50], 0
xorps xmm0, xmm0
mov eax, dword [rsp + 0x58]
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x50]
movsd qword [rbx + 0x10], xmm0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret
Function at 0x140061f74
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov bl, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x140095318], eax
inc eax
cmp eax, 1
jne 0x140061fc5
lea ecx, [rax + 1]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14009531c], eax
test bl, bl
je 0x140062052
xor ebx, ebx
lock xadd dword [0x14009531c], ebx
test ebx, ebx
je 0x140062052
and dword [rsp + 0x3c], 0
lea rsi, [0x140093508]
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x140093510]
cmp rcx, 1
jbe 0x14006200f
mov rax, qword [0x140093508]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140062011
mov al, 1
lea rcx, str.C:Users_ntoskrnlDesktopSDK_boost_asio_182_0_boost_asiodetail_throw_error.hpp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rax
lea rcx, str.throw_on_error
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x34], 5
test al, 1
jne 0x14006207a
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140069020
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, str.winsock
lea rcx, [rsp + 0x38]
call fcn.140054178
int3

Function at 0x140062854
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov rdi, r9
mov rcx, qword [rcx + 8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x140062891
mov edx, 0x2719
mov rcx, r9
call fcn.1400633c4
jmp 0x1400628c0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, eax
mov rcx, rdi
shr edx, 0x1f
mov ebx, eax
call fcn.140055b8c
test ebx, ebx
js 0x1400628c0
or byte [rbp + 0x10], 2
movups xmm0, xmmword [rdi]
mov rax, rsi
movups xmmword [rsi], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rsi + 0x10], xmm1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140064b10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
and qword [rbp - 0x49], 0
mov rbx, qword [rcx + 0x18]
xor eax, eax
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140064b5d
mov rcx, rbx
call fcn.1400552e4
jmp 0x140064c15
and dword [rbp + 0x27], 0
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll_memset
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rax
mov rax, rbx
lea rdx, [rbx + 0x28]
neg rax
sbb rcx, rcx
and rcx, rdx
mov qword [rbp - 0x41], rcx
lea rax, [rbp - 0x29]
mov qword [rbp - 0x39], rax
mov ecx, dword [0x140095324]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x41]
mov ecx, dword [0x140095324]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.1400553fc
test rax, rax
jne 0x140064bc5
mov rdx, qword [rbp - 0x31]
mov ecx, dword [0x140095324]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x29]
mov edi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140064c01
call fcn.1400699b0
add rbx, 8
sub rdi, 1
jne 0x140064bf4
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140069020
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret