joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040fb0
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 [0x140312328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040ffe
cmp qword [rax], rbx
je 0x140041057
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140040ff0
call fcn.1400456a0
mov qword [rax + 0x20], rbp
lea rcx, [0x14004bad0]
mov qword [rax + 0x28], rcx
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x30], ebp
mov rcx, qword [rdi]
mov qword [rax + 0x38], rcx
mov qword [rdi], rbp
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.1400235c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp qword [rax + 8], rbp
je 0x140040ffe
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], rbp
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14004daa0
nop
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004108c
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x140041042

Function at 0x1400456a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140312328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400456e4
mov rax, qword [rax + 8]
test rax, rax
je 0x1400456e4
mov rcx, qword [rax]
test rcx, rcx
je 0x1400456e4
mov qword [rax], 0
movzx eax, byte [rcx]
cmp al, 0x12
jb 0x1400456df
mov byte [rcx + 0x48], al
mov rax, rcx
add rsp, 0x28
ret
call fcn.1402193d4
mov ecx, 0x49
call fcn.140219078
mov byte [rax + 0x48], reloc.WS2_32.dll_select
add rsp, 0x28
ret
Function at 0x140055590
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov edx, 0x208
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140055762
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140054a60
nop
mov qword [rsp + 0x50], r14
movdqa xmm0, xmmword [0x1402c5750]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov qword [rsp + 0x30], r14
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], rdx
mov ecx, 7
mov qword [rsp + 0x40], rcx
mov eax, dword [str.cmd.exe]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1402b85f4]
mov word [rsp + 0x34], ax
movzx eax, byte [0x1402b85f6]
mov byte [rsp + 0x36], al
mov byte [rsp + 0x37], r14b
lea rbx, [rsp + 0x30]
add rbx, rcx
lea rdi, [rsp + 0x30]
call fcn.1400c97c0
mov r9, rax
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.1400c88f0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400556b2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400556ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400556ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
nop
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14005a020
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400c9430
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005571a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055715
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055715
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
movdqa xmm0, xmmword [0x1402c5750]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
lea rcx, [rsp + 0x70]
call fcn.14005a170
mov rax, rsi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140218dc0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400550e0
int3
Function at 0x140055b90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor edi, edi
lea rbp, [0x1403044e8]
mov rbx, rcx
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], rbp
lea rsi, [rdi - 1]
cmp byte [rcx + 0x28], dil
je 0x140055cd6
cmp byte [rcx + 0x29], dil
jne 0x140055cd6
mov rax, qword [rcx + 0x18]
mov ecx, dword [rax]
nop
cmp ecx, 0x103
jne 0x140055cd6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140055d40
test al, al
je 0x140055cd6
mov rax, qword [rbx]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140055cca
cmp byte [rbx + 0x29], dil
jne 0x140055cd2
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
nop
cmp ecx, 0x103
jne 0x140055cd2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140055c58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbp
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
mov eax, dword [rsp + 0x20]
jmp 0x140055c5e
mov eax, edi
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x60]
cmp ecx, 0x103
jne 0x140055c6e
mov cl, 1
jmp 0x140055c72
mov edi, ecx
xor cl, cl
test eax, eax
jne 0x140055c96
test cl, cl
jne 0x140055c9e
cmp byte [rbx + 0x29], cl
jne 0x140055cd2
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
nop
cmp ecx, 0x103
jne 0x140055cd2
mov rax, qword [rbx + 0x18]
xchg dword [rax], edi
jmp 0x140055cd2
test cl, cl
je 0x140055cce
test eax, eax
jne 0x140055cd6
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140055d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbp
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x140055cd6
mov byte [rbx + 0x29], 1
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je case.default.0x140055d27
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne case.default.0x140055d27
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne case.default.0x140055d27
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
jmp 0x140055cd2
xor dword [rbx], esi
invalid
jne 0x1405243ce
xor ah, byte [rax]
or dword [0x17886a815], esp
invalid
xor al, 0x38
invalid
Function at 0x140058740
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x710]
sub rsp, 0x810
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov rdi, rcx
lea rcx, [rbp + 0x308]
call fcn.140058950
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rbp + 0x1c8]
call fcn.140058950
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x1c8]
lea rcx, [rbp + 0x88]
call fcn.140058950
lea rax, [rbp + 0x88]
mov qword [rsp + 0x30], rax
mov qword [rbp + 0x5b0], rdi
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x5b8]
call fcn.140058950
nop
lea rcx, [rbp + 0x198]
call fcn.140034440
lea rcx, [rbp + 0xb8]
call fcn.140034440
nop
lea rcx, [rbp + 0x2d8]
call fcn.140034440
lea rcx, [rbp + 0x1f8]
call fcn.140034440
nop
lea rax, [0x140058b80]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x5b0]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x5b8]
lea rcx, [rsp + 0x48]
call fcn.140058950
nop
lea rcx, [rbp + 0x6c8]
call fcn.140034440
lea rcx, [rbp + 0x5e8]
call fcn.140034440
nop
lea rcx, [rbx + 0x110]
call fcn.140034440
lea rcx, [rbx + 0x30]
call fcn.140034440
movups xmm0, xmmword [rdi + 0x318]
movaps xmmword [rbp + 0x450], xmm0
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x460]
call fcn.14005aa40
lea rcx, [rbp + 0x58]
call fcn.140034440
lea rcx, [rsp + 0x78]
call fcn.140034440
nop
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rbp + 0x460]
mov ecx, 0x198
call fcn.1400227f0
mov r9, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x14005b750]
mov qword [r9 + 0x28], rax
mov qword [r9], rcx
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], rcx
mov dword [r9 + 0x30], ecx
movaps xmm0, xmmword [rbp + 0x450]
movups xmmword [r9 + 0x38], xmm0
lea rcx, [r9 + 0x48]
lea rdx, [rbp + 0x460]
call fcn.14005aa40
mov rcx, qword [0x140311f88]
lock inc dword [rcx + 0x30]
mov rdx, r9
call fcn.1400235c0
nop
lea rcx, [rbp + 0x580]
call fcn.140034440
lea rcx, [rbp + 0x4a0]
call fcn.140034440
mov rcx, qword [rbp + 0x700]
xor rcx, rsp
call fcn.140218dc0
lea r11, [rsp + 0x810]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005ca40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x228], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x78], rax
add rdx, 0x20
lea rcx, [rbp - 0x80]
call fcn.140058950
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0xc0], xmm0
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 0xd0]
call fcn.14005aa40
nop
mov rsi, qword [rdi]
mov rbx, qword [rdi + 8]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005cad8
cmp qword [rax], rbx
je 0x14005cc2f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005cac6
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
mov ecx, 0x2e8
call fcn.1400227f0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.14005d6c0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x70]
call fcn.14005aa40
movaps xmm2, xmmword [rbp + 0xc0]
movups xmmword [rcx + 0x150], xmm2
add rcx, 0x160
lea rdx, [rbp + 0xd0]
call fcn.14005aa40
mov r8, rbx
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140025350
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
test al, al
je 0x14005cbdb
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbx
call fcn.14005d6c0
nop
lea rcx, [rsp + 0x38]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x1f0]
call fcn.140034440
lea rcx, [rbp + 0x110]
call fcn.140034440
lea rcx, [rbp + 0x90]
call fcn.140034440
lea rcx, [rbp - 0x50]
call fcn.140034440
mov rcx, qword [rbp + 0x228]
xor rcx, rsp
call fcn.140218dc0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14005cad8
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14005da10
nop
nop
jmp 0x14005cbdb
Function at 0x140069800
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 0x14006984c
lea rax, [0x1402b2c88]
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 0x1400698a6
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, [0x1402b2c88]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x1400698a4
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 0x1400698c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
lea rsi, [0x1402b2c88]
mov edx, dword [rdx]
mov rbx, rcx
sub edx, 0x79
je 0x140069918
sub edx, 0x450
je 0x14006990f
sub edx, 6
je 0x140069906
cmp edx, 1
jne 0x14006992e
mov dword [rbp - 0x10], 0x2751
jmp 0x14006991f
mov dword [rbp - 0x10], 0x2743
jmp 0x14006991f
mov dword [rbp - 0x10], 0x274d
jmp 0x14006991f
mov dword [rbp - 0x10], 0x274c
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
jne 0x14006999e
cmp rbx, 0xffffffffffffffff
jne 0x140069946
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x140069993
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rsi
setne byte [rbp - 0xc]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14006999e
mov dword [rbp - 0x10], ebx
mov byte [rbp - 0xc], bl
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x140069a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x80], ebp
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, [0x1402b2c88]
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 0x140069b20
mov dword [rsp + 0x40], 0x2746
jmp 0x140069b30
cmp ecx, 0x4d2
jne 0x140069b44
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 0x140069b54
cmp ecx, 0x2738
je 0x140069b6a
cmp ecx, 0xea
je 0x140069b6a
test ebx, ebx
je 0x140069b6a
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], bpl
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140069ba0
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x210]
mov rax, r8
mov qword [rsp + 0x30], rax
movzx r13d, dl
mov qword [rsp + 0x50], r9
mov r12, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140069c11
lea rdi, [0x1402b2c88]
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 0x140069d92
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
movzx r15d, r13b
and r15b, 0x10
cmp byte [rbp + 0x208], 0
je 0x140069c5f
test r15b, r15b
je 0x140069c5f
xor r14d, r14d
lea rdi, [0x1402b2c88]
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 0x140069d82
mov r8, r9
mov qword [rsp + 0x2e8], rsi
mov rdx, rax
mov qword [rsp + 0x20], rbx
call fcn.140069a80
test eax, eax
jg 0x140069d78
lea rdi, [0x1402b2c88]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r15b, r15b
je 0x140069ca0
test eax, eax
je 0x140069db0
test r13b, 1
jne 0x140069e01
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x140069cbe
cmp eax, 0x4d5
jne 0x140069e01
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x140069e01
xor ecx, ecx
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r12 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rbp - 0x80]
xor r8d, r8d
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 + 0x58], eax
mov qword [rsp + 0x60], rdi
setne byte [rsp + 0x5c]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x140069d36
mov dword [rsp + 0x68], r14d
mov byte [rsp + 0x6c], r14b
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x140069d59
jle 0x140069d51
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
jmp 0x140069d59
test esi, esi
js 0x140069e01
mov r8, qword [rsp + 0x50]
mov rcx, r12
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.140069a80
test eax, eax
jle 0x140069c89
mov eax, eax
mov rsi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140218dc0
add rsp, 0x2b0
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rax, qword [0x1403044e0]
lea rdi, [0x1403044d8]
mov dword [rsp + 0x40], 2
cmp rax, rcx
je 0x140069dee
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140069dee
mov rax, qword [0x1403044d8]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x140069df0
mov al, 1
mov byte [rsp + 0x44], al
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x140069d7a
Function at 0x140069f80
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x140304470]
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 r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140069ff1
lea rdi, [0x1402b2c88]
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 0x14006a14c
cmp byte [rbp + 0x1f8], 0
mov qword [rsp + 0x290], r14
je 0x14006a030
test r12b, 0x10
je 0x14006a030
xor r14d, r14d
lea rdi, [0x1402b2c88]
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 0x14006a144
mov r8, rax
mov qword [rsp + 0x2d8], rsi
mov rdx, r13
mov qword [rsp + 0x20], rbx
call fcn.140023f40
test eax, eax
jns 0x14006a13a
and r12b, 1
lea rdi, [0x1402b2c88]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x14006a16c
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x14006a085
cmp eax, 0x4d5
jne 0x14006a16c
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x14006a16c
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 0x14006a0fe
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 0x14006a11d
jle 0x14006a119
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 0x14006a11d
test esi, esi
js 0x14006a16c
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.140023f40
test eax, eax
js 0x14006a05e
mov eax, eax
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140218dc0
add rsp, 0x298
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x14006a13c