joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180067600
Capabilities:
Connect socket

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x180067634
mov dword [rsp + 0x20], 0x2719
call fcn.180046bf0
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x50], rsi
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
jne 0x180067652
mov rsi, qword [rsp + 0x50]
mov dword [rdi], eax
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
call fcn.180046bf0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
add rsp, 0x30
pop rdi
ret

Function at 0x18006a500
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], r8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x18006a558
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0xd8]
mov rcx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0xc8], r14
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x90]
call fcn.180046960
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18006a5b0
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x70], r14
mov rbp, qword [rbx + 0xd0]
mov ecx, dword [0x1800c7fa4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18006a5da
mov rdx, qword [rax + 8]
jmp 0x18006a5dd
mov rdx, r14
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x20]
call fcn.1800478d0
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x18006b470]
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
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x38], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x40], rax
lea rcx, [rbx + 0x48]
mov qword [rcx + 0x38], r14
lea rdx, [rsp + 0x90]
call fcn.180046960
mov rcx, qword [rbp + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rbx
call fcn.18004cd50
nop
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x18006a677
mov rax, qword [rcx]
lea rdx, [rsp + 0x90]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov dword [rsi], r14d
lea rax, [0x1800c3050]
mov qword [rsi + 8], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x18006a69f
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r14
mov rax, rsi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180097330
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180078dc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x68]
xor eax, eax
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x68], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.180046bf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x180078e20
cmp eax, 0x4d2
jne 0x180078e25
call fcn.180046bf0
add rsp, 0x58
ret

Function at 0x18007b000
Capabilities:
Encode data using xor

Disassembly:
cmp qword [r8 + 0x18], 0xf
mov dword [rsp + 0x20], r9d
mov r9, r8
jbe 0x18007b012
mov r9, qword [r8]
cmp qword [rdx + 0x18], 0xf
mov rax, qword [rdx + 0x10]
jbe 0x18007b025
add rax, qword [rdx]
mov rdx, qword [rdx]
jmp 0x18007b028
add rax, rdx
xor r8d, r8d
cmp rdx, rax
je 0x18007b05b
sub r9, rdx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsp + r8 + 0x20]
xor cl, byte [rdx]
inc r8
mov byte [r9 + rdx], cl
and r8d, 3
inc rdx
cmp rdx, rax
jne 0x18007b040
ret
Function at 0x180084c40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
cmp byte [rcx + 0x19], 0
mov r12, r9
mov rdi, r8
mov r11, rdx
mov rbp, rcx
jge 0x180084cc9
mov rbx, qword [rcx + 0x80]
xor r10d, r10d
mov r8, qword [rbx + 0x10]
mov dword [rsp + 0x60], r8d
test rdi, rdi
je 0x180084c9e
mov rax, r10
and eax, 3
movzx eax, byte [rsp + rax + 0x60]
xor byte [rdx + r10], al
inc r10
cmp r10, rdi
jb 0x180084c80
mov rbx, qword [rcx + 0x80]
mov rdx, rdi
and edx, 3
je 0x180084cc5
mov rax, r8
lea rdx, [rdx*8]
mov ecx, 0x40
sub rcx, rdx
shl rax, cl
mov rcx, rdx
shr r8, cl
or r8, rax
mov qword [rbx + 0x10], r8
mov rax, qword [rbp + 0x80]
mov r8, rdi
mov rdx, r11
mov rbx, qword [rax]
add rbx, 0x50
mov r15, qword [rbx + 0x10]
lea r14, [rbx + 0x10]
mov rcx, rbx
call fcn.180046a40
mov r10, qword [rbp + 0x80]
mov rax, qword [r10]
cmp dword [rax + 0x70], 1
jne 0x180084d8a
cmp qword [rbx + 0x18], 0xf
jbe 0x180084d13
mov rdx, qword [rbx]
mov rbx, rdx
add rdx, qword [r14]
jmp 0x180084d19
mov rdx, qword [r14]
add rdx, rbx
lea rax, [r15 + rbx]
cmp rax, rdx
je 0x180084d8a
lea rbx, [0x18009f990]
nop dword [rax]
cmp dword [r10 + 0x18], 0
movzx r8d, byte [rax]
mov r9d, r8d
movzx r11d, byte [r8 + rbx]
je 0x180084d53
mov ecx, dword [r10 + 0x1c]
and r9d, 0x3f
shl ecx, 6
or r9d, ecx
jmp 0x180084d62
mov r8d, 0xff
mov ecx, r11d
sar r8d, cl
and r9d, r8d
mov dword [r10 + 0x1c], r9d
mov ecx, dword [r10 + 0x18]
add ecx, 0x10
shl ecx, 4
add ecx, r11d
movzx r8d, byte [rcx + rbx]
mov dword [r10 + 0x18], r8d
cmp r8d, 1
je 0x180084da8
inc rax
cmp rax, rdx
jne 0x180084d30
sub qword [rbp + 0x30], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], select
call fcn.18006ebc0
mov qword [rsp + 0x28], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r12], xmm0
jmp 0x180084d91

Function at 0x180086be0
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 0x180086c07
add rcx, 0x40
call fcn.180046780
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180086c53
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180086c42
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180086c42
xor ecx, ecx
xor eax, eax
nop
cmp qword [rdx + rax*8], 0
je 0x180086c5e
inc ecx
inc rax
cmp rax, 2
jl 0x180086c30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x90]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x180086c90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x180086ced
mov rbx, qword [rbx + 0x50]
test rbx, rbx
je 0x180086ce5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180086ce0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180086ce0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x180086d37
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180086d26
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180086d26
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180086d42
inc ecx
inc rax
cmp rax, 2
jl 0x180086d14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x68]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret

Function at 0x180086d70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x180086de3
mov qword [rsp + 0x30], rbp
lea rbp, [rax + 0x40]
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x180086dce
mov qword [rsp + 0x38], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180086dc9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180086dc9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x38]
mov rcx, rbp
call fcn.18005ea70
mov rbp, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180086e33
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180086e22
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180086e22
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x180086e3e
inc ecx
inc rax
cmp rax, 2
jl 0x180086e10
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xc0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x180086e70
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 0x180086e97
add rcx, 0x40
call fcn.18005ea70
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180086ee3
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180086ed2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180086ed2
xor ecx, ecx
xor eax, eax
nop
cmp qword [rdx + rax*8], 0
je 0x180086eee
inc ecx
inc rax
cmp rax, 2
jl 0x180086ec0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xb8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x180086f20
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 0x180086f47
add rcx, 0x38
call fcn.18005d3d0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180086f93
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180086f82
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180086f82
xor ecx, ecx
xor eax, eax
nop
cmp qword [rdx + rax*8], 0
je 0x180086f9e
inc ecx
inc rax
cmp rax, 2
jl 0x180086f70
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xe0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x180086fd0
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 0x180086ff7
add rcx, 0x48
call fcn.18005ea70
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087043
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087032
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087032
xor ecx, ecx
xor eax, eax
nop
cmp qword [rdx + rax*8], 0
je 0x18008704e
inc ecx
inc rax
cmp rax, 2
jl 0x180087020
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xc0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x180087080
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 0x1800870bf
mov rcx, qword [rax + 0x70]
lea rbx, [rax + 0x38]
test rcx, rcx
je 0x1800870b7
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087109
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800870f8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800870f8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180087114
inc ecx
inc rax
cmp rax, 2
jl 0x1800870e6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x80]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x180087140
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 0x18008717f
lea rbx, [rax + 0x48]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180087177
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800871c9
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800871b8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800871b8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1800871d4
inc ecx
inc rax
cmp rax, 2
jl 0x1800871a6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x90]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x180087200
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 0x180087227
add rcx, 8
call fcn.18005e630
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087274
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087263
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087263
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x18008727f
inc ecx
inc rax
cmp rax, 6
jl 0x180087251
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xf0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x1800872b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x180087323
mov qword [rsp + 0x30], rbp
lea rbp, [rax + 0x20]
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x18008730e
mov qword [rsp + 0x38], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180087309
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180087309
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x38]
mov rcx, rbp
call fcn.18005ea70
mov rbp, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087373
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087362
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087362
mov ecx, 4
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x18008737e
inc ecx
inc rax
cmp rax, 6
jl 0x180087350
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xa0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1800873b0
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 0x1800873d7
add rcx, 0x58
call fcn.18005ea70
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087424
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087413
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087413
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x18008742f
inc ecx
inc rax
cmp rax, 6
jl 0x180087401
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xd0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x180087460
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 0x180087487
add rcx, 8
call fcn.18005e9b0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800874d4
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800874c3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800874c3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1800874df
inc ecx
inc rax
cmp rax, 6
jl 0x1800874b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xd8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x180087510
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 0x180087537
add rcx, 8
call fcn.18005d4a0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087584
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087573
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087573
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x18008758f
inc ecx
inc rax
cmp rax, 6
jl 0x180087561
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xc0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1800875c0
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 0x1800875e7
add rcx, 8
call fcn.18005edc0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087634
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087623
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087623
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x18008763f
inc ecx
inc rax
cmp rax, 6
jl 0x180087611
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xe8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x180087670
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 0x180087697
add rcx, 8
call fcn.18005ee30
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800876e4
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800876d3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800876d3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1800876ef
inc ecx
inc rax
cmp rax, 6
jl 0x1800876c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xf0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x180087720
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x1800877e1
mov rcx, qword [rdi + 0x190]
test rcx, rcx
je 0x18008775c
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, [rdi + 0x158]
cmp qword [rcx + 0x20], 0
je 0x180087771
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
mov rbx, qword [rdi + 0x148]
mov esi, 0xffffffff
test rbx, rbx
je 0x1800877ab
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800877ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800877ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rdi + 0xe8]
call fcn.18005ea70
lea rcx, [rdi + 0x58]
call fcn.18005d210
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1800877d9
lock xadd dword [rcx + 0xc], esi
cmp esi, 1
jne 0x1800877d9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x10], 0
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x18008782b
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18008781a
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18008781a
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180087846
inc ecx
inc rax
cmp rax, 2
jl 0x180087808
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbp + 8], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
movzx eax, byte [rbx + 0x198]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
jmp 0x180087823