joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019b904
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
and qword [rsp + 0x50], 0
lea rax, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x40], xmm0
mov rdi, rcx
mov dword [rsp + 0x70], 0x400
movabs r15, 0x4800144005b3
and qword [rsp + 0x30], 0
lea rax, [rbp + 0x3a8]
and qword [rsp + 0x28], 0
lea r9, [rbp + 0x3a0]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x70]
and dword [rbp + 0x3a0], 0
mov r8d, 1
and dword [rbp + 0x3a8], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dl, 1
lea rcx, [rsp + 0x40]
mov ebx, eax
call fcn.14019925c
mov r10, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
cmp r10, 1
je 0x14019b9b1
mov eax, r8d
jmp 0x14019b9db
mov rax, r15
mov ecx, r9d
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x14019b9e7
mov edx, 0x2746
jmp 0x14019ba28
cmp r10, 1
je 0x14019b9f2
mov eax, r8d
jmp 0x14019ba1c
mov rax, r15
mov ecx, r9d
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x4d2
jne 0x14019ba34
mov edx, 0x274d
lea rcx, [rsp + 0x40]
call fcn.140a866bc
jmp 0x14019baa8
cmp r10, 1
je 0x14019ba3f
mov eax, r8d
jmp 0x14019ba69
mov rax, r15
mov ecx, r9d
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x2738
je 0x14019baac
cmp r10, 1
jne 0x14019ba9f
mov rax, r15
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub r9d, eax
imul eax, r9d, 0x3e8
add r8d, eax
cmp r8d, 0xea
je 0x14019baac
test ebx, ebx
jne 0x14019bad9
and qword [rsp + 0x68], 0
xorps xmm0, xmm0
mov eax, dword [rbp + 0x3a0]
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [rsp + 0x68]
movsd qword [rsp + 0x50], xmm0
cmp eax, 0x400
je 0x14019b948
jmp 0x14019badc
or eax, 0xffffffff
test eax, eax
jg 0x14019bb2d
je 0x14019bb29
mov edx, 0x2733
lea rcx, [rsp + 0x58]
call fcn.140a86748
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140198d28
test al, al
jne 0x14019bb2d
mov edx, 0x4d5
lea rcx, [rsp + 0x58]
call fcn.140a86748
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140198d28
test al, al
setne al
jmp 0x14019bb2f
xor al, al
jmp 0x14019bb2f
mov al, 1
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop r15
pop rdi
pop rbp
ret
Function at 0x14019ca10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r11, r9
mov rbx, r8
mov r10, rdx
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14019ca42
xor r9d, r9d
xor r8d, r8d
jmp 0x14019ca51
cmp qword [rdx], 0xffffffffffffffff
jne 0x14019ca5f
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
jmp 0x14019cac2
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x78]
mov eax, dword [rsp + 0x70]
mov r8d, r11d
mov rsi, qword [rsp + 0x80]
mov rdx, rbx
mov rcx, qword [r10]
and dword [rsp + 0x78], 0
mov qword [rsp + 0x28], rsi
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
je 0x14019cac9
cmp eax, 0x3e5
je 0x14019cac9
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14019a6e4
jmp 0x14019cad5
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14019a650
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r11, r9
mov rsi, r8
mov r10, rdx
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14019cb1a
xor r9d, r9d
xor r8d, r8d
jmp 0x14019cb29
cmp qword [rdx], 0xffffffffffffffff
jne 0x14019cb37
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
jmp 0x14019cbb0
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
and qword [rsp + 0x30], 0
mov r8d, r11d
mov rdi, qword [rsp + 0x80]
mov rdx, rsi
mov rcx, qword [r10]
and dword [rsp + 0x78], 0
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14019cb89
mov eax, 0x2746
jmp 0x14019cb96
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x14019cbb7
cmp eax, 0x3e5
je 0x14019cbb7
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14019a6e4
jmp 0x14019cbc3
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14019a650
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140aa7fb4
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov rdi, r8
mov r14, rdx
mov rcx, rdi
lea rdx, str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11
mov r8d, 0x24
call fcn.1401562b0
cmp qword [rdi + 0x18], 0xf
mov r15, rdi
mov rsi, qword [rdi + 0x10]
jbe 0x140aa8006
mov r15, qword [rdi]
xor ebx, ebx
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
cmp rsi, 0x40
jb 0x140aa809c
lea r12, [rsi - 0x40]
lea rax, [rbx + 0x40]
cmp rbx, rax
jae 0x140aa8088
lea rdx, [r15 + 2]
mov r9d, reloc.WS2_32.dll_recv
add rdx, rbx
lea r8, [rsp + 0x60]
add rbx, 0x40
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
lea rdx, [rdx + 4]
or ecx, eax
movzx eax, byte [rdx - 3]
shl ecx, 8
or ecx, eax
mov dword [r8], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140aa8059
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140196440
cmp rbx, r12
jbe 0x140aa803a
mov r10, rsi
mov eax, reloc.WS2_32.dll_ntohs
sub r10, rbx
and dword [rsp + rax*4 + 0x60], 0
sub rax, 1
jns 0x140aa80a7
xor r9d, r9d
lea r11d, [r9 + 3]
test r10, r10
je 0x140aa80ec
add rbx, r15
movzx edx, byte [rbx + r9]
mov cl, r9b
and cl, r11b
mov r8, r9
shr r8, 2
mov eax, r11d
sub al, cl
inc r9
shl al, 3
mov cl, al
shl edx, cl
or dword [rsp + r8*4 + 0x60], edx
cmp r9, r10
jb 0x140aa80c1
mov rdx, r9
mov eax, 0x80
and r9b, r11b
shr rdx, 2
sub r11b, r9b
mov cl, r11b
shl cl, 3
shl eax, cl
or dword [rsp + rdx*4 + 0x60], eax
cmp r10, 0x38
jb 0x140aa8134
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140196440
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
lea rax, [rsi*8]
lea rdx, [rsp + 0x60]
mov dword [rbp - 0x64], eax
lea rcx, [rsp + 0x20]
call fcn.140196440
lea r8, [rsp + 0x53]
mov edx, 0xffffff80
mov r9d, reloc.WS2_32.dll_send
mov rax, r9
mov ecx, edx
sar rax, 2
and ecx, 0x18
dec r9
add edx, 8
mov eax, dword [rsp + rax*4 + 0x20]
shr eax, cl
mov byte [r8], al
dec r8
cmp edx, 0x18
jle 0x140aa815e
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140196684
mov rdx, rax
mov rcx, rdi
call fcn.140156024
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140aa81da
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140aa81d5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140aa820d
call fcn.140cba258
and dword [r14], 0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
lea rax, [0x140f4cfc0]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov qword [r14 + 8], rax
mov rax, r14
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140cd6fcc
int3
Function at 0x140ad6410
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_recv]
cdqe
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x28
ret
Function at 0x140adae20
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xe0
mov rax, qword [0x140f4c000]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x59], rdx
mov rsi, qword [rbp + 0x7f]
xor r14d, r14d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x35], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x25], xmm1
mov dword [rbp - 0x15], r14d
mov qword [rbp - 0x41], 0x408
mov dword [rbp - 0x39], 1
lea r10, [rbp + 0x2c]
test r9d, r9d
jns 0x140adaed0
neg r9d
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140adae90
dec r10
mov byte [r10], 0x2d
jmp 0x140adaefa
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140adaed0
lea r9, [rbp - 0x61]
lea r8, [rbp + 0x2c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.1401798e8
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rdx, qword [rbp - 9]
cmp qword [rbx + 0x18], 0xf
jbe 0x140adaf27
mov rbx, qword [rbx]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140adaf90
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x400
lea rbx, [0x140fde430]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140adaf72
mov rdx, rbx
mov rcx, rsi
call fcn.140156258
mov rbx, r14
mov qword [rbp - 0x51], rbx
jmp 0x140adaf94
mov rbx, qword [rbp - 0x51]
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp - 0x59], rax
mov qword [rbp + 0x17], rbx
lea rax, [rbp - 0x59]
mov qword [rbp + 0x1f], rax
mov byte [rbp + 0x27], 1
mov ecx, 0x20
call fcn.140cba3f8
mov rcx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140adaff8
mov rax, qword [rbp - 0x59]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], 1
lea rdx, vtable.std::_Ref_count_resource_struct_addrinfo____ptr64__void____cdecl___struct_addrinfo____ptr64__.0
mov qword [rcx], rdx
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rbx
jmp 0x140adaffb
mov rcx, r14
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140adb039
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140adb034
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140adb060
call fcn.140cba258
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140cbacb0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140cd6fcc
int3
Function at 0x140ae0580
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
cmp qword [rcx + 0x40], 0
mov rdi, rcx
je 0x140ae05af
mov al, 1
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
mov qword [rsp + 0x150], rsi
call fcn.140ae0490
mov rsi, rax
test rax, rax
je 0x140ae0714
mov qword [rsp + 0x148], rbx
mov ebx, dword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
xorps xmm1, xmm1
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov r8d, 0x50
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
mov rcx, rsi
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140ae0700
cmp dword [rsp + 0x40], 2
jne 0x140ae0700
cmp dword [rsp + 0x44], ebx
je 0x140ae0700
cmp qword [rsp + 0x78], rbx
je 0x140ae0700
cmp qword [rbp - 0x80], rbx
je 0x140ae0700
cmp qword [rbp - 0x78], rbx
je 0x140ae0700
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea r9, [rbp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
mov r8d, 0x50
mov qword [rbp], rbx
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
movups xmmword [rbp + 8], xmm1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140ae0700
mov rax, qword [rsp + 0x78]
mov bl, 1
mov qword [rdi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rdi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x58], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
Function at 0x140af37d0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.140cbaf80
sub rsp, rax
mov rax, qword [0x140f4c000]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x140af3807
mov eax, 0xfffffffe
jmp 0x140af3929
test rbx, rbx
je 0x140af3927
cmp r8d, 0x30
jne 0x140af3927
mov r8d, gethostbyaddr
mov rdx, rdi
call fcn.140af3690
test eax, eax
jle 0x140af3927
movdqa xmm0, xmmword [str.6666666666666666crypto_threads_win.c]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.140af3690
test eax, eax
je 0x140af3927
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140af3490
test eax, eax
je 0x140af3927
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov r8d, gethostbyaddr
mov rdx, rdi
movups xmmword [rbx + 0x24], xmm0
mov rcx, rbx
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.140af3690
test eax, eax
jle 0x140af3927
movdqa xmm0, xmmword [0x140d29ff0]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.140af3690
test eax, eax
je 0x140af3927
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140af3690
test eax, eax
je 0x140af3927
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x48]
call fcn.140001240
mov eax, 1
jmp 0x140af3929
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140cbacb0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140af3f90
Capabilities:
Hash data using sha256

Disassembly:
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x68], eax
mov eax, 1
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x6c], 0x18
ret

Function at 0x140af5380
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140cbaf80
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140af5570
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, gethostbyaddr
call fcn.140cbaf80
sub rsp, rax
mov eax, dword [0x140fde9fc]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x140af55e3
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x140fde9fc], ebx
je 0x140af55bd
cmp eax, ebx
je 0x140af55a0
mov eax, dword [0x140fde9fc]
cmp eax, 2
jne 0x140af5602
jmp 0x140af55e3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x140af5490]
xor edx, edx
xor ecx, ecx
mov dword [0x140fde9f8], eax
call fcn.140af9ad0
mov dword [0x140fde9fc], 2
mov r8d, reloc.WS2_32.dll___WSAFDIsSet
lea rdx, [0x140d2a000]
mov ecx, 0x58
call fcn.140ae49c0
mov rdi, rax
test rax, rax
jne 0x140af560d
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.140b21c20
mov qword [rdi + 0x30], rax
call fcn.140b21840
mov qword [rdi + 0x40], rax
call fcn.140b21840
mov qword [rdi + 0x50], rax
call fcn.140b21c20
mov qword [rdi + 0x38], rax
call fcn.140b21c20
mov qword [rdi + 0x48], rax
call fcn.140b21c20
cmp r13d, ebx
mov qword [rdi + 0x30], rax
mov r8d, 0x85
lea rdx, [0x140d2a000]
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.140ae49c0
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140af56b2
cmp qword [rdi + 0x40], 0
je 0x140af56b2
cmp qword [rdi + 0x50], 0
je 0x140af56b2
cmp qword [rdi + 0x30], 0
je 0x140af56b2
cmp qword [rdi + 0x38], 0
je 0x140af56b2
cmp qword [rdi + 0x48], 0
jne 0x140af570b
mov r8d, 0xa9
lea rdx, [0x140d2a000]
mov rcx, rax
call fcn.140ae4730
lea rcx, [rdi + 0x40]
call fcn.140b217a0
lea rcx, [rdi + 0x50]
call fcn.140b217a0
lea rcx, [rdi + 0x38]
call fcn.140b21bb0
lea rcx, [rdi + 0x48]
call fcn.140b21bb0
lea rcx, [rdi + 0x30]
call fcn.140b21bb0
mov r8d, 0xaf
lea rdx, [0x140d2a000]
mov rcx, rdi
call fcn.140ae4730
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
Function at 0x140af5730
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.140cbaf80
sub rsp, rax
mov rbx, rcx
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140fde9f8]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140af57c1
mov r8d, 0xde
lea rdx, [0x140d2a000]
mov ecx, 0xf0
call fcn.140ae49c0
mov r14, rax
test rax, rax
jne 0x140af57b2
mov r8d, 0xdf
lea rdx, [0x140d2a000]
lea rcx, str.assertion_failed:_data___NULL
call fcn.140ae4a00
mov ecx, dword [0x140fde9f8]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
mov rax, r14
cmp qword [rax], 0
jne 0x140af57d2
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x140af5893
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x140af57c6
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140af57f0
mov rcx, qword [rbx + 0x10]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140af5814
cmp r8d, eax
je 0x140af5872
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140af5840
mov r8d, eax
mov rax, qword [rbx + 0x10]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140af5864
cmp r8d, eax
jne 0x140af5830
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140af58b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140cbaf80
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140fde9f8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
lea rdx, [rsi + 0x10]
xor r8d, r8d
cmp qword [rdx], rdi
je 0x140af5919
inc r9d
inc r8
add rdx, 0x18
cmp r8, 0xa
jl 0x140af58f4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
lea rcx, [rax + rax*2]
add dword [rsi + rcx*8 + 8], 0xffffffff
lea rbx, [rsi + rcx*8]
jne 0x140af5968
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x140af5959
mov r8d, 0x10c
lea rdx, [0x140d2a000]
lea rcx, str.assertion_failed:_ret___0
call fcn.140ae4a00
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret