joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019970
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x1400199e6
xor ecx, ecx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x1400199e6
cmp eax, 0x2733
je 0x1400199b4
cmp eax, 0x4d5
jne 0x1400199e6
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a560
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
lea r15, [0x14004dd00]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x14001a692
test r8b, r8b
je 0x14001a5d9
movzx eax, byte [rdx]
test al, 8
je 0x14001a5d9
or al, 8
mov dword [rsp + 0x60], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x14001a692
mov ecx, dword [rdi]
movabs rdx, 0x8fafd21e25c5e09b
cmp ecx, 0x2733
jne 0x14001a630
mov rax, qword [rdi + 8]
cmp qword [rax + 8], rdx
je 0x14001a642
cmp ecx, 0x4d5
jne 0x14001a6a8
mov rax, qword [rdi + 8]
cmp qword [rax + 8], rdx
jne 0x14001a6a8
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14001a6a8
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001aa90
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001aadc
lea rax, [0x14004dd00]
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x28], rax
mov eax, ecx
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r9], xmm0
jmp 0x14001ab36
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
lea rax, [0x14004dd00]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x14001ab34
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x24], dil
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001abb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x14001ac00
mov rax, qword [rax + 8]
test rax, rax
je 0x14001ac00
mov rdx, qword [rax]
test rdx, rdx
je 0x14001ac00
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14001abf8
mov byte [rdx + 0x48], al
jmp 0x14001ac11
mov rcx, rdx
call fcn.14004970c
mov ecx, 0x49
call fcn.140049320
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x14001ae40]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rax, qword [rdi + 0x18]
mov r8b, 1
mov rcx, qword [rax + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14001c5b0
Function at 0x14001ad20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x18]
mov r8, qword [rax + 0x10]
lea rbx, [r8 + 0x28]
xor ebp, ebp
test r8, r8
cmove rbx, rbp
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ad6e
cmp qword [rax], rbx
je 0x14001ad9f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001ad60
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001adde
mov rax, qword [rax + 8]
test rax, rax
je 0x14001adde
mov rdx, qword [rax]
test rdx, rdx
je 0x14001adde
mov qword [rax], rbp
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14001add6
mov byte [rdx + 0x48], al
jmp 0x14001adef
cmp qword [rax + 8], rbp
je 0x14001ad6e
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], rbp
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140017190
nop
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001add4
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x14001ae2a
mov rcx, rdx
call fcn.14004970c
mov ecx, 0x49
call fcn.140049320
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rbp
lea rax, [0x14001ae40]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], rbp
mov dword [rdx + 0x30], ebp
mov rax, qword [rdi]
mov qword [rdx + 0x38], rax
mov qword [rdi], rbp
mov rax, qword [rsi + 0x18]
xor r8d, r8d
mov rcx, qword [rax + 0x10]
call fcn.14001c5b0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x50
pop rbx
ret
Function at 0x14001c500
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x14001c550
mov rax, qword [rax + 8]
test rax, rax
je 0x14001c550
mov rdx, qword [rax]
test rdx, rdx
je 0x14001c550
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14001c548
mov byte [rdx + 0x48], al
jmp 0x14001c561
mov rcx, rdx
call fcn.14004970c
mov ecx, 0x49
call fcn.140049320
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x14001ae40]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rax, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rax + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14001c5b0

Function at 0x14001c640
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001c66f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14001c667
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14001c6c4
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b4
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001c6b4
cmp qword [rcx], 0
jne 0x14001c6b4
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.14004970c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001cff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14001d050
call fcn.14001d840
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
lea rax, [0x14004dd00]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
lea rax, [rcx + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14001af90
test rax, rax
je 0x14001d0d4
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14001af90
test rax, rax
jne 0x14001d0b0
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x14008fd40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001d0f5
call fcn.14004970c
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001d104
call fcn.14004970c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001d113
call fcn.14004970c
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, rcx
mov ebx, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r14d, r14d
lea r9, [rsp + 0x88]
mov qword [rsp + 0x30], r14
mov r8d, edi
mov qword [rsp + 0x28], r14
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x88], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x90]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x14004dd00]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov edx, dword [rcx]
cmp edx, 0x40
jne 0x14001d1c6
mov dword [rsp + 0x40], 0x2746
jmp 0x14001d1d6
cmp edx, 0x4d2
jne 0x14001d1e8
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
test ebx, ebx
je 0x14001d1f3
mov eax, 0xffffffff
jmp 0x14001d211
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14001d5b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, ebx
mov dword [rsp + 0x20], 0
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rdi, [0x14004dd00]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x14001d62a
mov rax, rbx
jmp 0x14001d672
cmp esi, 0x17
jne 0x14001d654
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
mov rax, rbx
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14001d690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
lea r15, [0x14004dd00]
test rax, rax
jne 0x14001d702
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001d80f
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14001d751
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001d821
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x14001dbf0]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14001d7c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14001d7a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14001d7b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001d7fd
test rdi, rdi
je 0x14001d7e4
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1400077e0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1400077e0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1400077e0
int3
Function at 0x14001d8b0
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r13
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14008e1c0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, qword [rbp + 0x200]
mov rax, r9
mov qword [rsp + 0x30], rax
mov r13, r8
movzx edi, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001d91e
lea rdi, [0x14004dd00]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x14001da93
cmp byte [rbp + 0x1f8], 0
mov qword [rsp + 0x290], r14
je 0x14001d95d
test dil, 0x10
je 0x14001d95d
xor r14d, r14d
lea rdi, [0x14004dd00]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x14001da8b
mov qword [rsp + 0x2d8], rsi
mov r8, rax
mov qword [rsp + 0x298], r12
mov rdx, r13
mov r12d, dword [rbp + 0x1f0]
mov r9d, r12d
mov qword [rsp + 0x20], rbx
call fcn.14001d130
test eax, eax
jns 0x14001da79
test dil, 1
jne 0x14001dab1
lea rdi, [0x14004dd00]
xor r14d, r14d
mov eax, dword [rbx]
movabs rcx, 0x8fafd21e25c5e09b
cmp eax, 0x2733
je 0x14001d9c1
cmp eax, 0x4d5
jne 0x14001dab1
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x14001dab1
xor ecx, ecx
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rdi
setne byte [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x14001da3a
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r14b
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
jmp 0x14001da59
jle 0x14001da55
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
jmp 0x14001da59
test esi, esi
js 0x14001dab1
mov r8, qword [rsp + 0x30]
mov r9d, r12d
mov rdx, r13
mov qword [rsp + 0x20], rbx
mov rcx, r15
call fcn.14001d130
test eax, eax
js 0x14001d9a3
mov eax, eax
mov r12, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400496c0
add rsp, 0x2a0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x14001da7b
Function at 0x14001e050
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400905a0]
test rax, rax
jne 0x14001e0ee
lea rdx, [0x1400585fc]
mov qword [rsp + 0x20], rdi
lea rcx, str.precomp.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x14001e0a7
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cannot_open_precomp.bin_n
call fcn.14000d240
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x4000000
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rdi
mov edx, 1
mov rcx, rax
mov r8d, 0x4000000
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov qword [0x1400905a0], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14001f460
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov rdi, rcx
mov rcx, qword [rcx]
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x14001f58e
mov qword [rsp + 0x30], r14
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x14001f4ad
mov rdx, qword [rdi + 8]
lea r8, [rdi + 0x28]
mov r9b, 1
mov rcx, rax
call fcn.14001ac60
mov r14, qword [rdi + 8]
lea rsi, [0x14004dd00]
cmp r14, 0xffffffffffffffff
je 0x14001f56e
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rsi
setne byte [rsp + 0x24]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
je 0x14001f56e
cmp eax, 0x2733
je 0x14001f508
cmp eax, 0x4d5
jne 0x14001f587
movabs rax, 0x8fafd21e25c5e09b
cmp qword [0x14004dd08], rax
jne 0x14001f587
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rdi + 0x10], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rsi
setne byte [rsp + 0x24]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
jne 0x14001f587
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], rsi
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rsp + 0x30]
jmp 0x14001f5ae
mov dword [rsp + 0x20], ebp
lea rsi, [0x14004dd00]
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x24], bpl
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov byte [rdi + 0x10], 0
mov rsi, 0xffffffffffffffff
mov qword [rdi + 8], rsi
mov rbx, qword [rdi + 0x20]
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x20], rbp
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x60]
test rbx, rbx
je 0x14001f5ff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001f5ff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14001f5ff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
cmp dword [rsp + 0x20], 0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jne 0x14001f615
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.1400077e0
int3
Function at 0x14001fbf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, rcx
mov ebx, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r14d, r14d
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x88], r14d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [rsp + 0x90]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x14004dd00]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
mov ecx, dword [rdx]
cmp ecx, 0x40
jne 0x14001fc96
mov dword [rsp + 0x40], 0x2746
jmp 0x14001fca6
cmp ecx, 0x4d2
jne 0x14001fcba
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
jmp 0x14001fcca
cmp ecx, 0x2738
je 0x14001fcd5
cmp ecx, 0xea
je 0x14001fcd5
test ebx, ebx
je 0x14001fcd5
mov eax, 0xffffffff
jmp 0x14001fcf3
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret