joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071100
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x14019ee34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007112d
mov r8, qword [rax + 8]
jmp 0x140071130
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140071154
test r8, r8
je 0x140071154
cmp qword [r8], 0
jne 0x140071154
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1401058b8

Function at 0x1400723a0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov ecx, 0x38
call fcn.140105848
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rax
mov rcx, rbx
call fcn.140071170
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], 0
mov qword [rdi], rbx
mov eax, 1
lock xadd dword [0x14019ed38], eax
inc eax
cmp eax, 1
jne 0x14007242c
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14019ed3c], eax
xor ebx, ebx
lock xadd dword [0x14019ed3c], ebx
test ebx, ebx
jne 0x1400724a1
mov ecx, 0xa8
call fcn.140105848
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xa8
mov rcx, rax
call fcn.140109a40
mov r8d, 0xffffffff
mov rdx, rdi
mov rcx, rbx
call fcn.140071690
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400724d0
mov qword [rdi + 0x10], rax
mov rax, rdi
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rdi
ret
mov dword [rsp + 0x34], 0
call fcn.140107820
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
lea rdx, str.winsock
lea rcx, [rsp + 0x30]
call fcn.140013ee0
int3
Function at 0x140072600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
call fcn.140107820
mov qword [rsp + 0x28], rax
mov rdi, qword [rdi + 0x10]
mov eax, ebx
lock xadd dword [rdi + 0x30], eax
test eax, eax
jne 0x140072670
mov rcx, rdi
call fcn.140071b10
mov dword [rsp + 0x20], ebx
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
jmp 0x140072731
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x14019ee34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x14019ee34]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140071d50
test rax, rax
je 0x140072701
nop dword [rax]
nop dword [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140071d50
test rax, rax
jne 0x1400726e0
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x14019ee34]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140072722
call fcn.1401058b8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140072731
call fcn.1401058b8
cmp dword [rsp + 0x20], 0
jne 0x140072753
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rcx, [rsp + 0x20]
call fcn.140071020
int3
Function at 0x140072830
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rsi, r9
mov rbp, rdx
mov r14, rcx
mov edi, r15d
cmp rcx, 0xffffffffffffffff
je 0x14007296d
test r8b, r8b
je 0x1400728bf
test byte [rdx], 8
je 0x1400728bf
mov dword [rsp + 0x40], r15d
call fcn.140107820
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140107820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400728bf
call fcn.140107820
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.140107820
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
test edi, edi
je 0x14007296d
call fcn.140107820
cmp qword [rsi + 8], rax
jne 0x140072908
cmp dword [rsi], 0x2733
je 0x14007291b
call fcn.140107820
cmp qword [rsi + 8], rax
jne 0x140072984
cmp dword [rsi], 0x4d5
jne 0x140072984
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.140107820
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
test edi, edi
jne 0x140072984
mov dword [rsp + 0x30], r15d
call fcn.140107820
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400729b0
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 rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400729f4
mov dword [rsp + 0x20], 0x2719
call fcn.140107820
mov qword [rsp + 0x28], rax
mov eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x140072a48
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.140107820
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x140072a46
mov dword [rsp + 0x20], esi
call fcn.140107820
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140072a60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov edx, dword [rdx]
sub edx, 0x79
je 0x140072aa7
sub edx, 0x450
je 0x140072a9d
sub edx, 6
je 0x140072a93
cmp edx, 1
jne 0x140072ac1
mov dword [rsp + 0x30], 0x2751
jmp 0x140072aaf
mov dword [rsp + 0x30], 0x2743
jmp 0x140072aaf
mov dword [rsp + 0x30], 0x274d
jmp 0x140072aaf
mov dword [rsp + 0x30], 0x274c
call fcn.140107820
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp dword [rsi], 0
jne 0x140072b4a
cmp rbx, 0xffffffffffffffff
jne 0x140072ada
mov dword [rsp + 0x30], 0x2719
jmp 0x140072b38
xor ecx, ecx
mov qword [rsp + 0x50], rdi
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 edi, eax
call fcn.140107820
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
test edi, edi
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jne 0x140072b4a
mov dword [rsp + 0x30], 0
call fcn.140107820
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x140072c10
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, edi
mov dword [rsp + 0x20], 0
mov edx, ebx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140107820
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x140072c88
mov rax, rdi
jmp 0x140072cd0
cmp esi, 0x17
jne 0x140072cb2
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.140107820
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140105820
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140072f80
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test rax, rax
je 0x14007313c
cmp dword [rax + 8], 0
je 0x14007313c
test r8, r8
je 0x140072fba
cmp byte [r8], 0
jne 0x140072fbc
xor edi, edi
test rbx, rbx
je 0x140072fc7
cmp byte [r9], 0
jne 0x140072fc9
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x68]
mov rdx, rbx
mov r8, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
cmp eax, 0x273f
jg 0x1400730a0
je 0x140073084
test eax, eax
je 0x140073068
sub edx, 8
je 0x14007304c
sub edx, 0x271e
je 0x140073030
cmp edx, 0x16
jne 0x1400730ba
mov dword [rsp + 0x20], 0x273c
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x2726
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohl
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x273f
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
sub edx, 0x277d
je 0x140073123
sub edx, 0x37c
je 0x14007310a
sub edx, 1
je 0x1400730f1
cmp edx, 1
je 0x1400730d8
call fcn.140107820
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x2afb
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x2afa
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x2af9
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x277d
call fcn.140107820
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140073153
mov dword [rsp + 0x20], 0x3e3
call fcn.140107820
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm0
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140073af0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.140107820
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x44], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.140107820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x140073b74
cmp eax, 0x4d2
jne 0x140073b79
call fcn.140107820
test ebx, ebx
jne 0x140073b82
call fcn.140107820
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140105820
add rsp, 0x60
pop rbx
ret

Function at 0x140073f40
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x140073f7f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.140073a70
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.1400734d0
add rsp, 0x28
ret
Function at 0x140074bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x140074c40
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.140071cb0
jmp 0x140074cd8
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x140074c60
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.140071cb0
jmp 0x140074cd8
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r8d, r11d
mov eax, dword [rsp + 0x90]
mov rdx, r10
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x140074ccc
cmp eax, 0x3e5
je 0x140074ccc
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.140071cb0
jmp 0x140074cd8
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.140071c20
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140105820
add rsp, 0x58
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x140074d40
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.140071cb0
jmp 0x140074df1
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x140074d63
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
call fcn.140071cb0
jmp 0x140074df1
mov eax, dword [rsp + 0x90]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], edx
mov r8d, r11d
mov qword [rsp + 0x28], rbx
mov rdx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x140074db2
mov eax, 0x2746
jmp 0x140074dbf
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x50]
je 0x140074de5
cmp eax, 0x3e5
je 0x140074de5
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.140071cb0
jmp 0x140074df1
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.140071c20
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140105820
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x140075470
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x28]
xor r14d, r14d
test rax, rax
mov rbp, rcx
mov ecx, dword [0x14019ee34]
mov rsi, r8
mov rdi, rdx
lea rbx, [rax + 0x28]
cmove rbx, r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400754b5
cmp qword [rax], rbx
je 0x1400754de
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400754a7
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
je 0x14007553d
mov qword [rsi + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14007551b
mov qword [rcx + 0x20], rsi
jmp 0x14007551f
mov rcx, qword [rdi]
mov rbx, qword [rax + 8]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x1400754c2
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
jne 0x1400754c2
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rax + 0x68], rsi
mov qword [rax + 0x70], rsi
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
mov qword [rsi + 0x20], r14
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x140075567
mov qword [rcx + 0x20], rsi
jmp 0x14007556b
mov qword [rax + 0x78], rsi
mov qword [rax + 0x80], rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x28]
lock inc dword [rcx + 0x30]
call fcn.140071ba0
xor al, al
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140075da0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov rax, qword [rdx + 0x10]
mov qword [rcx], rax
add rcx, 8
call fcn.140071170
nop
mov ecx, 0x18
call fcn.140105848
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
lea ecx, [rax + 0x38]
call fcn.140105848
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rax
mov rcx, rbx
call fcn.140071170
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], 0
mov qword [rdi], rbx
mov eax, 1
lock xadd dword [0x14019ed38], eax
inc eax
cmp eax, 1
jne 0x140075e5e
lea ecx, [rax + 1]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14019ed3c], eax
xor ebx, ebx
lock xadd dword [0x14019ed3c], ebx
test ebx, ebx
jne 0x140075eff
mov ecx, 0xa8
call fcn.140105848
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xa8
mov rcx, rax
call fcn.140109a40
mov r8d, 0xffffffff
mov rdx, rdi
mov rcx, rbx
call fcn.140071690
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400724d0
mov qword [rdi + 0x10], rax
mov qword [rsi + 0x30], rdi
mov rcx, qword [rdi + 0x10]
mov qword [rsi + 0x38], rcx
mov qword [rsi + 0x40], rdi
mov byte [rsi + 0x48], 1
mov rcx, qword [rdi + 0x10]
lock inc dword [rcx + 0x30]
mov qword [rsi + 0x50], 0
mov rax, rsi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140105820
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov dword [rsp + 0x3c], 0
call fcn.140107820
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rax
lea rdx, str.winsock
lea rcx, [rsp + 0x38]
call fcn.140013ee0
int3
Function at 0x1400782a0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 0x67452301
mov dword [rsp + 0x4c], 0xefcdab89
mov dword [rsp + 0x50], 0x98badcfe
mov dword [rsp + 0x54], 0x10325476
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400782ff
mov rax, qword [rdx]
mov r8, qword [rdx + 0x10]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140077f90
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.1400780a0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x20], 0
mov r9d, setsockopt
xor r8d, r8d
mov edx, r9d
mov rcx, rbx
call fcn.14001c900
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140078365
mov rax, qword [rbx]
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rax], xmm0
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
Function at 0x14007aeb0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x14007af85
test edx, edx
jne 0x14007aef6
mov rcx, qword [rcx + 0x58]
mov rcx, qword [rcx + 0x10]
call fcn.140071b10
mov rcx, qword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140071350
mov rax, qword [rcx + 0x58]
mov rcx, qword [rax + 0x10]
xor eax, eax
xchg dword [rcx + 0x34], eax
mov ecx, 0x18
call fcn.140105848
mov rsi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov rbx, qword [rdi + 0x58]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
lea ecx, [rax + 0x20]
call fcn.140105848
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
lea rcx, vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::resolver_service_base::work_io_context_runner_.0
mov qword [rax], rcx
mov qword [rax + 0x18], rbx
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.140071400
nop
mov rbx, qword [rdi + 0x78]
test rbx, rbx
je 0x14007af81
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.140105840
mov qword [rdi + 0x78], rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret