joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039c70
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 0x140039cb7
sub edx, 0x450
je 0x140039cad
sub edx, 6
je 0x140039ca3
cmp edx, 1
jne 0x140039cd1
mov dword [rsp + 0x30], 0x2751
jmp 0x140039cbf
mov dword [rsp + 0x30], 0x2743
jmp 0x140039cbf
mov dword [rsp + 0x30], 0x274d
jmp 0x140039cbf
mov dword [rsp + 0x30], 0x274c
call fcn.140046d00
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp dword [rsi], 0
jne 0x140039d91
cmp rbx, 0xffffffffffffffff
jne 0x140039d05
mov dword [rsp + 0x30], 0x2719
call fcn.140046d00
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
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.140046d00
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 0x140039d91
lea rbx, [0x1403d4c88]
mov dword [rsp + 0x30], 0
mov r8, rbx
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140039d9c
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
call fcn.14028ff34
int3

Function at 0x140039ea0
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 0x140039ee4
mov dword [rsp + 0x20], 0x2719
call fcn.140046d00
mov qword [rsp + 0x28], rax
mov eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x140039f54
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.140046d00
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 0x140039f52
lea rbx, [0x1403d4c88]
mov dword [rsp + 0x20], esi
mov r8, rbx
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140039f69
mov qword [rsp + 0x28], rbx
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
call fcn.14028ff34
int3
Function at 0x14003c570
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov edi, r8d
mov rbx, rdx
mov ecx, r8d
call fcn.1400ddda4
nop
mov esi, eax
test eax, eax
jne 0x14003c529
lea rsi, [0x1403d4c88]
mov r8, rsi
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
nop
test eax, eax
je 0x14003c56a
mov dword [rbx], edi
mov qword [rbx + 8], rsi
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdi, [0x1403d4c70]
mov r8, rdi
lea rdx, [0x14001ae80]
lea rcx, [0x1403d4c68]
call fcn.1400ddbc4
nop
test eax, eax
je 0x14003c564
mov dword [rbx], esi
mov qword [rbx + 8], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.14028ff34
nop
call fcn.14028ff34
nop
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x14003c5a8
mov rdx, qword [rax + 8]
jmp 0x14003c5ab
mov rdx, rsi
mov r8d, 0x48
movzx ecx, byte [rsp + 0x40]
call fcn.14001cd10
mov qword [rax + 0x20], rsi
lea rcx, [0x14003f140]
mov qword [rax + 0x28], rcx
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov dword [rax + 0x30], esi
mov rcx, qword [rbx]
mov qword [rax + 0x38], rcx
mov qword [rbx], rsi
mov rcx, qword [rdi + 0x18]
mov rcx, qword [rcx + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.1400557e0
Function at 0x14003c6d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x138], rbx
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x31], r8
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
xor r15d, r15d
mov qword [rbp - 0x41], r15
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x14003c735
mov rax, qword [rcx]
lea rdx, [rbp - 0x79]
call qword [rax]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0xd8]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x19]
call fcn.140024980
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14003c777
mov rax, qword [rcx]
lea rdx, [rbp - 0x79]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x41], r15
mov r14, qword [rbx + 0xd0]
mov rbx, qword [rbp - 0x21]
mov ecx, dword [0x1403d4d0c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c7a1
cmp qword [rax], rbx
je 0x14003c7a1
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14003c793
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x19]
mov ecx, 0x88
call fcn.140035ee0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov qword [rax + 0x20], r15
lea rcx, [0x14003e1c0]
mov qword [rax + 0x28], rcx
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x30], r15d
lea rcx, [rax + 0x38]
mov qword [rsp + 0x20], rcx
movaps xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx], xmm0
add rcx, 0x10
lea rdx, [rbp - 0x19]
call fcn.140024980
mov rcx, qword [r14 + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, qword [rsp + 0x30]
call fcn.1400557e0
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14003c82d
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov dword [rsi], r15d
lea rbx, [0x1403d4c88]
mov r8, rbx
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x14003c895
mov qword [rsi + 8], rbx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14003c86f
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r15
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14028ff34
nop
int3
Function at 0x14003c8a0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x18]
mov r8, qword [rax + 0x10]
lea rbx, [r8 + 0x28]
xor ebp, ebp
test r8, r8
cmove rbx, rbp
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c8fe
nop word [rax + rax]
cmp qword [rax], rbx
je 0x14003c915
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14003c8f0
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c94a
mov rdx, qword [rax + 8]
jmp 0x14003c94d
cmp qword [rax + 8], rbp
je 0x14003c8fe
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], rbp
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14001de20
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14003c948
xor edx, edx
mov rcx, rax
call qword [rax]
nop
jmp 0x14003c99c
mov rdx, rbp
mov r8d, 0x48
movzx ecx, byte [rsp + 0x40]
call fcn.14001cd10
mov qword [rax + 0x20], rbp
lea rcx, [0x14003f140]
mov qword [rax + 0x28], rcx
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x30], ebp
mov rcx, qword [rdi]
mov qword [rax + 0x38], rcx
mov qword [rdi], rbp
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.1400557e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400411c0
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 rax, qword [rcx + 0x28]
xor r14d, r14d
test rax, rax
mov rbp, rcx
mov ecx, dword [0x1403d4cf4]
mov rbx, r8
mov rdi, rdx
lea rsi, [rax + 0x28]
cmove rsi, r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140041214
cmp qword [rax], rsi
je 0x140041247
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140041206
mov rsi, r14
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
je 0x14004124d
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
jne 0x14004124d
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1400412c4
mov rsi, qword [rax + 8]
jmp 0x140041217
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
je 0x140041280
mov qword [rbx + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x140041269
mov qword [rcx + 0x20], rbx
jmp 0x14004126d
mov qword [rax + 0x68], rbx
mov qword [rax + 0x70], rbx
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400412c2
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
add rax, 0x78
mov qword [rbx + 0x20], r14
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400412ab
mov qword [rcx + 0x20], rbx
jmp 0x1400412ae
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x28]
lock inc dword [rcx + 0x30]
call fcn.1400557e0
xor al, al
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
Function at 0x14004ffb0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov byte [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 1
lea rcx, [0x1403d4c80]
mov qword [rsp + 0x48], rax
lea r8, [0x1403d4c88]
lea rdx, [0x14001aea0]
call fcn.1400ddbc4
test eax, eax
je 0x140050075
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x70], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.140046d00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x140050042
cmp eax, 0x4d2
jne 0x140050047
call fcn.140046d00
test ebx, ebx
jne 0x140050069
lea r8, [0x1403d4c88]
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x14005006f
add rsp, 0x50
pop rbx
ret
call fcn.14028ff34
int3
call fcn.14028ff34
int3

Function at 0x140050080
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rsi, rcx
test rbx, rbx
je 0x140050149
mov qword [rsp + 0x40], rdi
nop
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1403d4cf8], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400500f0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140050112
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.14000c1a0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsi]
mov rbx, qword [rdi + 0x18]
mov qword [rsi], rbx
test rdi, rdi
je 0x14005013b
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.140171af0
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1400500a0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

Function at 0x140050160
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1403d4cf8], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400501bd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.14000c1a0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x140052100
Capabilities:
Encode data using xor

Disassembly:
cmp qword [r8 + 0x18], 0x10
mov dword [rsp + 0x20], r9d
mov r9, rdx
jb 0x140052112
mov r8, qword [r8]
mov rdx, qword [rdx + 0x18]
mov rcx, r9
cmp rdx, 0x10
jb 0x140052122
mov rcx, qword [r9]
mov rax, qword [r9 + 0x10]
add rax, rcx
cmp rdx, 0x10
jb 0x140052132
mov r9, qword [r9]
xor ecx, ecx
mov r10, rax
sub r10, r9
cmp r9, rax
cmova r10, rcx
test r10, r10
je 0x14005216b
mov edx, ecx
nop dword [rax + rax]
movzx eax, byte [rdx + r9]
xor al, byte [rsp + rcx + 0x20]
inc rcx
mov byte [rdx + r8], al
and ecx, 3
inc rdx
cmp rdx, r10
jne 0x140052150
ret

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

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x140053b0f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.140039b00
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.1400546e0
add rsp, 0x28
ret
Function at 0x14005b270
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 r14
sub rsp, 0x30
cmp byte [rcx + 0x19], 0
mov rbp, r9
mov rdi, r8
mov r11, rdx
mov rsi, rcx
jge 0x14005b2f9
mov rbx, qword [rcx + 0x80]
xor r10d, r10d
mov r8, qword [rbx + 0x10]
mov dword [rsp + 0x50], r8d
test rdi, rdi
je 0x14005b2ce
nop dword [rax]
mov rax, r10
and eax, 3
movzx eax, byte [rsp + rax + 0x50]
xor byte [r10 + rdx], al
inc r10
cmp r10, rdi
jb 0x14005b2b0
mov rbx, qword [rcx + 0x80]
mov rdx, rdi
and edx, 3
je 0x14005b2f5
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 [rsi + 0x80]
mov r8, rdi
mov rdx, r11
mov rbx, qword [rax]
add rbx, 0x50
mov rcx, rbx
mov r14, qword [rbx + 0x10]
call fcn.1400130b0
mov r11, qword [rsi + 0x80]
mov rax, qword [r11]
cmp dword [rax + 0x70], 1
jne 0x14005b3b8
mov r8, qword [rbx + 0x18]
mov rcx, rbx
cmp r8, 0x10
jb 0x14005b33d
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
add rdx, rcx
cmp r8, 0x10
jb 0x14005b34d
mov rbx, qword [rbx]
lea rax, [r14 + rbx]
cmp rax, rdx
je 0x14005b3b8
mov r10d, dword [r11 + 0x18]
lea r14, [0x1402ed500]
movzx r8d, byte [rax]
mov r9d, r8d
movzx ebx, byte [r8 + r14]
test r10d, r10d
je 0x14005b383
mov r8d, dword [r11 + 0x1c]
and r9d, 0x3f
shl r8d, 6
or r8d, r9d
jmp 0x14005b391
mov r8d, 0xff
mov ecx, ebx
sar r8d, cl
and r8d, r9d
mov dword [r11 + 0x1c], r8d
mov ecx, dword [r11 + 0x18]
add ecx, 0x10
shl ecx, 4
add ecx, ebx
movzx r10d, byte [rcx + r14]
mov dword [r11 + 0x18], r10d
cmp r10d, 1
je 0x14005b3d2
inc rax
cmp rax, rdx
jne 0x14005b361
sub qword [rsi + 0x30], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], setsockopt
call fcn.140045a40
mov qword [rsp + 0x28], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp], xmm0
jmp 0x14005b3bf
Function at 0x14005d920
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 0x14005d993
mov qword [rsp + 0x30], rbp
lea rbp, [rax + 0x20]
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x14005d97e
mov qword [rsp + 0x38], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14005d979
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14005d979
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x38]
mov rcx, rbp
call fcn.140029e10
mov rbp, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14005d9ed
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005d9dd
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14005d9dd
cmp qword [rcx + 0x10], 0
jne 0x14005d9dd
movzx eax, byte [rbx + 0xa0]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.14016a3b0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005dd60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14005dd9a
mov r8, qword [rax + 0x38]
test r8, r8
je 0x14005dd92
xor edx, edx
mov rcx, r8
call qword [r8]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14005ddef
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005dddf
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14005dddf
cmp qword [rcx], 0
jne 0x14005dddf
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.14016a3b0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14005ebb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14005ec22
call fcn.1400622c0
mov dword [rsp + 0x28], ebx
lea rbx, [0x1403d4c88]
mov r8, rbx
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x14005ecf2
mov qword [rsp + 0x30], rbx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbp], xmm0
xor eax, eax
jmp 0x14005ecdc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
lea rax, [rcx + 0x28]
test rsi, rsi
cmove rax, rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rdi, rbx
mov r8, rbp
mov edx, 0xffffffff
mov rcx, rsi
call fcn.140042740
test rax, rax
je 0x14005ecb4
nop word [rax + rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r8, rbp
mov edx, 0xffffffff
mov rcx, rsi
call fcn.140042740
test rax, rax
jne 0x14005ec90
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x1403d4cf4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + rbx*8 + 0x50]
call fcn.14016a3b0
inc rbx
cmp rbx, 3
jl 0x14005ecc6
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14028ff34
int3

Function at 0x1400617a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, ebx
mov dword [rsp + 0x20], 0
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140046d00
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 0x140061814
mov rax, rdi
jmp 0x140061878
cmp esi, 0x17
jne 0x14006183e
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 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]
lea rbx, [0x1403d4c88]
mov dword [rsp + 0x30], 0
mov r8, rbx
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x14006188d
mov qword [rsp + 0x38], rbx
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14028ff34
int3