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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov ebp, r8d
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x18003c1c4
mov dword [rsp + 0x20], 0x2719
call fcn.1800030bc
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
or eax, 0xffffffff
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rcx], xmm0
jmp 0x18003c21f
mov r8, rsi
mov edx, ebp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
test eax, eax
js 0x18003c1f8
mov rcx, qword [rsp + 0x60]
and dword [rcx], 0
cmp ebp, 0x8004667e
jne 0x18003c21d
cmp dword [rsi], 0
mov cl, byte [rbx]
je 0x18003c1f3
or cl, 1
mov byte [rbx], cl
jmp 0x18003c21d
and cl, 0xfc
jmp 0x18003c1ef
call fcn.1800030bc
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rax], 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 0x18003df14
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
and dword [rax - 0x64], 0
mov rbx, rcx
and dword [rax - 0x68], 0
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
mov dword [rax - 0x60], 0x67452301
mov dword [rax - 0x5c], 0xefcdab89
mov dword [rax - 0x58], 0x98badcfe
mov dword [rax - 0x54], 0x10325476
jb 0x18003df54
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
call fcn.18003dd5c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.18003de5c
and qword [rbx], 0
xor r8d, r8d
and qword [rbx + 0x10], 0
mov rcx, rbx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
lea edx, [r8 + 0x10]
call fcn.18002a1d4
cmp qword [rbx + 0x18], 0x10
mov rax, rbx
jb 0x18003df9a
mov rax, qword [rbx]
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rax], xmm0
mov rax, rbx
add rsp, 0x90
pop rbx
ret

Function at 0x18003f450
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x370]
sub rsp, 0x470
and dword [rbp + 0x3a0], 0
lea rax, [rbp + 0x3a0]
and dword [rbp + 0x3a4], 0
lea r9, [rsp + 0x50]
mov rbx, rdx
mov qword [rbp + 0x168], rcx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
inc ecx
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rbp + 0x160], 1
lea r8, [rbp + 0x160]
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x18003f530
and dword [rbp + 0x390], 0
lea rax, [rbp + 0x3a8]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rax
mov r9d, 0x1007
lea rax, [rbp + 0x390]
mov qword [rbp + 0x3a8], 4
mov r8d, 0xffff
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.1800361a4
test eax, eax
jne 0x18003f52e
cmp dword [rbp + 0x390], eax
je 0x18003f52b
call fcn.1800030bc
mov ecx, dword [rbp + 0x390]
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
jmp 0x18003f52e
and dword [rbx], 0
mov al, 1
add rsp, 0x470
pop rdi
pop rbx
pop rbp
ret
Function at 0x180044dd8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x19], 0
mov rbp, r9
mov rsi, r8
mov rdi, rcx
jge 0x180044e42
mov r10, qword [rcx + 0x80]
xor ecx, ecx
mov r8, qword [r10 + 0x10]
mov dword [rsp + 0x50], r8d
test rsi, rsi
je 0x180044e2c
mov rax, rcx
and eax, 3
mov al, byte [rsp + rax + 0x50]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, rsi
jb 0x180044e10
mov r10, qword [rdi + 0x80]
mov rax, rsi
and eax, 3
je 0x180044e3e
lea ecx, [rax*8]
ror r8, cl
mov qword [r10 + 0x10], r8
mov rax, qword [rdi + 0x80]
mov r8, rsi
mov rbx, qword [rax]
add rbx, 0x50
mov rcx, rbx
mov r14, qword [rbx + 0x10]
call fcn.180002b88
mov rcx, qword [rdi + 0x80]
mov rax, qword [rcx]
cmp dword [rax + 0x70], 1
jne 0x180044ec1
cmp qword [rbx + 0x18], 0x10
lea r9, [rcx + 0x18]
mov rcx, rbx
jb 0x180044e80
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
add r8, rcx
cmp qword [rbx + 0x18], 0x10
jb 0x180044e91
mov rbx, qword [rbx]
lea rdx, [r14 + rbx]
mov rcx, r9
call fcn.1800141f4
test al, al
jne 0x180044ec1
mov dword [rsp + 0x20], shutdown
call fcn.180034d4c
mov qword [rsp + 0x28], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rbp], xmm0
jmp 0x180044ec8
sub qword [rdi + 0x30], rsi
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
and qword [r11 - 0x28], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x30], 0
and dword [rsp + 0x78], 0
mov dword [r11 + 0x18], r9d
lea r9, [r11 + 0x20]
mov qword [r11 - 0x38], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.1800030bc
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
cmp dword [rbx], 0x40
jne 0x180045fa6
mov dword [rsp + 0x40], 0x2746
jmp 0x180045fb6
cmp dword [rbx], 0x4d2
jne 0x180045fcb
mov dword [rsp + 0x40], 0x274d
call fcn.1800030bc
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
jmp 0x180045fdb
cmp dword [rbx], 0x2738
je 0x180045fe4
cmp dword [rbx], 0xea
je 0x180045fe4
test edi, edi
je 0x180045fe4
or eax, 0xffffffff
jmp 0x180045feb
and dword [rbx], 0
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18004668c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x1800466db
mov rbx, qword [rbx + 0x48]
test rbx, rbx
je 0x1800466d6
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800466d6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800466d6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046721
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046714
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046714
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x18004672c
inc edx
inc rax
cmp rax, 2
jl 0x180046702
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x60]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x18004671c

Function at 0x18004673c
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 0x18004675e
xor edx, edx
call fcn.180022910
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800467a4
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046797
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046797
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x1800467af
inc edx
inc rax
cmp rax, 2
jl 0x180046785
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0xc0]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x18004679f

Function at 0x1800467c0
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 0x1800467e4
add rcx, 0x40
call fcn.180020174
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18004682a
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004681d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18004681d
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046835
inc edx
inc rax
cmp rax, 2
jl 0x18004680b
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0xb8]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046825
Function at 0x180046848
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 0x18004686c
add rcx, 0x38
call fcn.18001eb18
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800468b2
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800468a5
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800468a5
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x1800468bd
inc edx
inc rax
cmp rax, 2
jl 0x180046893
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0xe0]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x1800468ad

Function at 0x1800468d0
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 0x1800468f4
add rcx, 0x48
call fcn.180020174
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18004693a
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004692d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18004692d
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046945
inc edx
inc rax
cmp rax, 2
jl 0x18004691b
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0xc0]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046935

Function at 0x180046958
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x180046991
lea rbx, [rax + 0x38]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18004698c
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
and qword [rbx + 0x38], 0
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800469d7
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800469ca
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800469ca
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x1800469e2
inc edx
inc rax
cmp rax, 2
jl 0x1800469b8
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x80]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x1800469d2
Function at 0x1800469f4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x180046a2d
lea rbx, [rax + 0x48]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180046a28
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
and qword [rbx + 0x38], 0
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046a73
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046a66
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046a66
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046a7e
inc edx
inc rax
cmp rax, 2
jl 0x180046a54
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x90]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046a6e

Function at 0x180046a90
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 0x180046ab0
call fcn.18001ffa8
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046af6
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046ae9
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046ae9
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046b01
inc edx
inc rax
cmp rax, 2
jl 0x180046ad7
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x198]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046af1

Function at 0x180046b14
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 0x180046b34
call fcn.1800201e0
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046b7a
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046b6d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046b6d
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046b85
inc edx
inc rax
cmp rax, 2
jl 0x180046b5b
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x108]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046b75
Function at 0x180046b98
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180046bd0
lea rcx, [rbx + 0x140]
cmp qword [rcx + 0x20], 0
je 0x180046bc2
mov rax, qword [rcx + 0x18]
call qword [rax]
lea rcx, [rbx + 0x70]
call fcn.18001fbd0
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046c16
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046c09
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046c09
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046c21
inc edx
inc rax
cmp rax, 2
jl 0x180046bf7
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x178]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046c11

Function at 0x180046c34
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180046c8b
lea rcx, [rbx + 0x108]
cmp qword [rcx + 0x20], 0
je 0x180046c5e
mov rax, qword [rcx + 0x18]
call qword [rax]
lea rcx, [rbx + 0xb0]
call fcn.180020174
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180046c86
or eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180046c86
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046cd1
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046cc4
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046cc4
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046cdc
inc edx
inc rax
cmp rax, 2
jl 0x180046cb2
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x140]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046ccc

Function at 0x180046cf0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180046d44
lea rcx, [rbx + 0x110]
cmp qword [rcx + 0x20], 0
je 0x180046d1a
mov rax, qword [rcx + 0x18]
call qword [rax]
lea rcx, [rbx + 0x60]
call fcn.18001ff40
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180046d3f
or eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180046d3f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046d8a
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046d7d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046d7d
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046d95
inc edx
inc rax
cmp rax, 2
jl 0x180046d6b
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x148]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046d85
Function at 0x180046da8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180046dff
lea rcx, [rbx + 0x210]
cmp qword [rcx + 0x20], 0
je 0x180046dd2
mov rax, qword [rcx + 0x18]
call qword [rax]
lea rcx, [rbx + 0x150]
call fcn.1800202a0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180046dfa
or eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180046dfa
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046e45
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046e38
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046e38
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046e50
inc edx
inc rax
cmp rax, 2
jl 0x180046e26
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x248]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046e40

Function at 0x180046e64
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180046ebb
lea rcx, [rbx + 0x218]
cmp qword [rcx + 0x20], 0
je 0x180046e8e
mov rax, qword [rcx + 0x18]
call qword [rax]
lea rcx, [rbx + 0x150]
call fcn.180020308
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180046eb6
or eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180046eb6
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180046f01
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180046ef4
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180046ef4
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180046f0c
inc edx
inc rax
cmp rax, 2
jl 0x180046ee2
mov rcx, rbx
call fcn.18005d538
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x250]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180046efc
Function at 0x1800473d4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rsi, rdx
mov rdi, rcx
xor eax, eax
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x180047423
call fcn.18004b108
and dword [rbp - 0x39], 0
lea rax, [0x1800c1050]
mov qword [rbp - 0x31], rax
xor eax, eax
movups xmm0, xmmword [rbp - 0x39]
movdqu xmmword [rsi], xmm0
jmp 0x1800474e1
and dword [rbp + 0x37], 0
lea rcx, [rbp + 0x3f]
call fcn.18005283c
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x50]
call fcn.180056d30
lea rdx, [rdi + 0x28]
mov rax, rdi
neg rax
lea rax, [rbp - 0x19]
sbb rcx, rcx
mov qword [rbp - 0x31], rax
and rcx, rdx
mov qword [rbp - 0x39], rcx
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1800c6a7c]
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ebx, ebx
jmp 0x18004748e
cmp rbx, 0xffffffffffffffff
lea rax, [rbx + 1]
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rbp - 0x19]
or edx, 0xffffffff
mov rcx, rdi
call fcn.180031f18
test rax, rax
jne 0x18004747f
mov rdx, qword [rbp - 0x29]
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdi, [rbp - 0x19]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800474cb
call fcn.18005d538
add rdi, 8
sub rsi, 1
jne 0x1800474be
lea rcx, [rbp + 0x3f]
call fcn.1800528c8
mov rax, rbx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
and qword [rax - 0x28], 0
and qword [rax - 0x30], 0
and dword [rax + 0x20], 0
mov dword [rax - 0x38], r9d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.1800030bc
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
cmp dword [rbx], 0x40
jne 0x180048215
mov dword [rsp + 0x40], 0x2746
jmp 0x180048225
cmp dword [rbx], 0x4d2
jne 0x180048238
mov dword [rsp + 0x40], 0x274d
call fcn.1800030bc
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
test edi, edi
je 0x180048241
or eax, 0xffffffff
jmp 0x180048248
and dword [rbx], 0
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180049388
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx ebx, r8b
mov rdi, r9
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1800493bb
mov dword [rsp + 0x20], 0x2719
call fcn.1800030bc
mov qword [rsp + 0x28], rax
jmp 0x18004941c
test r8b, r8b
jne 0x1800493cf
test byte [rdx], 1
je 0x1800493cf
mov dword [rsp + 0x20], 0x2726
jmp 0x1800493af
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x180049405
and dword [rdi], 0
mov al, 1
mov dl, byte [rsi]
mov cl, dl
or dl, 2
and cl, 0xfd
movzx edx, dl
test bl, bl
movzx ecx, cl
cmove edx, ecx
mov byte [rsi], dl
jmp 0x180049427
call fcn.1800030bc
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
xor al, al
movdqu xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18004a01c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
or rbx, 0xffffffffffffffff
mov r10d, r9d
mov r11d, r8d
mov r9, rdx
cmp rcx, rbx
jne 0x18004a062
mov dword [rsp + 0x30], 0x2719
call fcn.1800030bc
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rcx], xmm0
mov eax, ebx
jmp 0x18004a13b
cmp r11d, 0xa5100000
jne 0x18004a0d1
cmp r10d, 2
jne 0x18004a096
mov dword [rsp + 0x30], 0x2726
call fcn.1800030bc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rax], xmm0
jmp 0x18004a05b
cmp r10d, 1
jne 0x18004a0e6
cmp qword [rsp + 0x78], 4
jne 0x18004a071
mov cl, byte [rdx]
mov rax, qword [rsp + 0x70]
mov edx, dword [rax]
mov al, cl
and al, 0xfb
or cl, 4
movzx eax, al
test edx, edx
movzx ecx, cl
cmove ecx, eax
mov rax, qword [rsp + 0x80]
mov byte [r9], cl
and dword [rax], 0
xor eax, eax
jmp 0x18004a13b
cmp r11d, 0xffff
jne 0x18004a0e6
cmp r10d, 0x80
jne 0x18004a0e6
or byte [rdx], 8
mov eax, dword [rsp + 0x78]
mov r8d, r10d
mov r9, qword [rsp + 0x70]
mov edx, r11d
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
test eax, eax
jne 0x18004a111
mov rcx, qword [rsp + 0x80]
and dword [rcx], eax
jmp 0x18004a139
call fcn.1800030bc
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rax], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret