joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004a90
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180005020
mov qword [rsp + 0x28], 0
cmp qword [0x18000e388], 0
jne 0x180004ad8
cmp qword [0x18000e380], 0
je 0x180004ad8
mov rax, qword [0x18000e380]
mov qword [0x18000e388], rax
cmp qword [0x18000e388], 0
je 0x180004b7e
mov rax, qword [0x18000e388]
cmp qword [rax + 0x10], 0
je 0x180004b7e
mov rax, qword [0x18000e388]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004b7e
mov rax, qword [0x18000e388]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004b7e
mov rax, qword [0x18000e388]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004b44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180004b4b
xor eax, eax
jmp 0x180004cf9
mov rax, qword [0x18000e388]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004cf9
mov rax, qword [0x18000e380]
mov qword [0x18000e388], rax
jmp 0x180004ba0
mov rax, qword [0x18000e388]
mov rax, qword [rax + 8]
mov qword [0x18000e388], rax
cmp qword [0x18000e388], 0
je 0x180004bed
cmp qword [0x18000e388], 0
je 0x180004beb
mov rax, qword [0x18000e388]
cmp qword [rax + 0x10], 0
je 0x180004beb
mov rax, qword [0x18000e388]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004beb
mov rax, qword [0x18000e388]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004beb
jmp 0x180004b1c
jmp 0x180004b8e
mov rcx, qword [rsp + 0x60]
call fcn.180006c50
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004d00
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004cf7
mov rax, qword [rsp + 0x48]
mov qword [0x18000e388], rax
mov rax, qword [0x18000e388]
mov dword [rax], 0x52727464
mov rax, qword [0x18000e388]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000e388]
mov rcx, qword [0x18000e380]
mov qword [rax + 8], rcx
mov rax, qword [0x18000e388]
mov qword [0x18000e380], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000e388]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004ca8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004ce2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180004c9e
mov rax, qword [0x18000e388]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180004b1c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140003dd0
Capabilities:
Terminate process

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401d04b0
sub rsp, rax
or rax, 0xffffffffffffffff
mov rbx, rcx
test rcx, rcx
cmove rbx, rax
call fcn.140008270
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8, rbx
call fcn.140007f70
test eax, eax
je 0x140003e11
mov ecx, 0x7f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140007740
Capabilities:
Hash data using fnv

Disassembly:
mov eax, 0x18
call fcn.1401d04b0
sub rsp, rax
mov rax, qword [0x1402bdaf8]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r11, rcx
mov r9d, edx
test edx, edx
jne 0x14000777d
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1401cf6b0
add rsp, 0x18
ret
mov rcx, qword [r8]
xor edx, edx
mov qword [rsp], rcx
movzx eax, byte [rsp + 1]
movzx r8d, cl
xor r8d, 0x811c9dc5
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 2]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 3]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 4]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 5]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 6]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 7]
imul r8d, r8d, 0x1000193
xor r8d, eax
imul r8d, r8d, 0x1000193
mov eax, r8d
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x140007825
cmp qword [rax + 8], rcx
je 0x140007825
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140007814
test r10, r10
je 0x14000782d
mov dword [r10], r8d
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1401cf6b0
add rsp, 0x18
ret
Function at 0x14000bcb0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.1401d04b0
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14000bcf0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401d04b0
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000bd10
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401d04b0
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret

Function at 0x14000dce0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x20
call fcn.1401d04b0
sub rsp, rax
xor ebx, ebx
mov rsi, rcx
mov ebp, ebx
test rcx, rcx
je 0x14000ddc7
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14000ddca
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x14000dd74
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14000ddc7
add r8, r8
mov rdx, rsi
sub r8, rsi
add r8, rbp
nop word [rax + rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8 + rdx], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
dec rcx
cmp rax, rcx
jb 0x14000dda0
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14000df70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.1401d04b0
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000dfdb
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000dfd0
cmp edi, eax
jb 0x14000dfd0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140010470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x30
call fcn.1401d04b0
sub rsp, rax
mov rdi, rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140010672
mov rcx, rdi
call fcn.14000dea0
test eax, eax
jne 0x140010672
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.1400101f0
mov rbp, rax
test rax, rax
je 0x14001059d
mov qword [rsp + 0x50], r12
call fcn.14000df70
mov r12, rax
test rax, rax
je 0x14001058a
mov rcx, rbp
call fcn.14000dea0
test eax, eax
je 0x140010573
lea rax, str.system32_
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
je 0x140010546
lea rax, [rsp + 0x30]
add rbx, 8
cmp rbx, rax
jb 0x140010510
jmp 0x140010556
lea rdx, [rbp + rdi*2]
mov rcx, r12
call fcn.14000fea0
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x140010581
mov rcx, rbp
call fcn.14000df10
test eax, eax
je 0x140010581
mov rsi, rbp
xor ebp, ebp
jmp 0x140010581
mov rdx, rbp
mov rcx, r12
call fcn.14000fea0
mov rsi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x50]
jmp 0x14001063e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140010647
mov rcx, rdi
call fcn.14000f0f0
mov rbx, rax
test rax, rax
je 0x140010647
mov ecx, 0x37e4
call fcn.14000ece0
test eax, eax
je 0x1400105dc
lea rcx, [0x1402460a8]
call fcn.14000fbd0
jmp 0x1400105e1
call fcn.14000df70
mov rdi, rax
test rax, rax
je 0x140010635
mov rdx, rbx
mov rcx, rax
call fcn.14000fea0
mov rsi, rax
test rax, rax
je 0x14001062c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001060e
test al, 0x50
je 0x14001062c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140010621
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x140010647
xor ecx, ecx
jmp 0x140010654
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001065a
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140027300
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1a0
mov qword [rax - 0x118], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400273fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400cba50
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
lea rcx, [fcn.140013a20]
xor esi, esi
test ebx, ebx
cmove rcx, rsi
test rcx, rcx
je 0x1400273fa
lea rax, vtable.std::exception.0
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, [0x140249a58]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
lea rax, vtable.boost::system::system_error.0
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x80], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], sil
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x130]
call fcn.14004a380
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14004a3d0
lea rdx, [0x1402aaad0]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov eax, edi
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400274a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1402ca59c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400274d9
mov rcx, qword [rax + 8]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140027420
xor ecx, ecx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140027420

Function at 0x1400274f0
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 [0x1402ca59c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002751d
mov r8, qword [rax + 8]
jmp 0x140027520
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140027544
test r8, r8
je 0x140027544
cmp qword [r8], 0
jne 0x140027544
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.1401cfdc4
Function at 0x140027af0
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
or 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 [0x1402c98fc], eax
test eax, eax
je 0x140027b4b
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140013a20]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x140028520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14002856e
call fcn.140028630
mov dword [rsp + 0x28], ebx
call fcn.1400cba50
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x140028603
mov qword [rsp + 0x60], rbx
lea rax, [rcx + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402ca59c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x1402ca59c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.1400288f0
test rax, rax
je 0x1400285df
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov rcx, rdi
call fcn.1400288f0
test rax, rax
jne 0x1400285c0
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x1402ca59c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140028600
call fcn.1401cfdc4
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140028f90
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x200
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1402bdaf8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
lea rsi, [0x1402c9b38]
mov qword [rsp + 0x40], rsi
mov ecx, gethostname
call fcn.1401cfa10
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.140027570
mov qword [rbx + 0x28], rsi
xor edi, edi
mov qword [rbx + 0x30], rdi
mov qword [0x1402c9b38], rbx
mov eax, 1
lock xadd dword [0x1402c9900], eax
inc eax
cmp eax, 1
jne 0x14002901d
lea ecx, [rdi + 2]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1402c9904], eax
lock xadd dword [0x1402c9904], edi
test edi, edi
je 0x140029031
mov ecx, edi
call fcn.140027f40
nop
mov ecx, 0xa8
call fcn.1401cfa10
mov qword [rsp + 0x20], rax
or r8d, 0xffffffff
mov rdx, rsi
mov rcx, rax
call fcn.1400280b0
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14004f720
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, qword [0x1402c9b38]
call fcn.140027800
nop
mov qword [0x1402c9b48], rbx
mov rax, rsi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1401cf6b0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140029150
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov rbp, rdx
mov r14, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x140029286
test r8b, r8b
je 0x1400291d8
test byte [rdx], 8
je 0x1400291d8
mov dword [rsp + 0x60], r15d
call fcn.1400cba50
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
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.1400cba50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400291d8
call fcn.1400cba50
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400cba50
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 [rdi], xmm0
test esi, esi
je 0x140029286
call fcn.1400cba50
cmp qword [rdi + 8], rax
jne 0x140029221
cmp dword [rdi], 0x2733
je 0x140029234
call fcn.1400cba50
cmp qword [rdi + 8], rax
jne 0x140029282
cmp dword [rdi], 0x4d5
jne 0x140029282
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 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 esi, eax
call fcn.1400cba50
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x14002929d
mov dword [rsp + 0x30], r15d
call fcn.1400cba50
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400292c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x30], rbp
mov r8d, ebx
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x78], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.1400cba50
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]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x14002934c
mov dword [rsp + 0x40], 0x2746
jmp 0x14002935c
cmp ecx, 0x4d2
jne 0x14002936e
mov dword [rsp + 0x40], 0x274d
call fcn.1400cba50
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test edi, edi
je 0x140029377
or eax, 0xffffffff
jmp 0x140029391
mov dword [rsp + 0x40], ebp
call fcn.1400cba50
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x78]
movups xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x60]
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x40], 1
call fcn.1400cba50
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.1400cba50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x140029615
cmp eax, 0x4d2
jne 0x14002961a
call fcn.1400cba50
test ebx, ebx
jne 0x140029623
call fcn.1400cba50
add rsp, 0x50
pop rbx
ret
Function at 0x14002a4e0
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 [0x1402ca59c]
mov rbx, r8
mov rdi, rdx
lea rsi, [rax + 0x28]
cmove rsi, r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a534
cmp qword [rax], rsi
je 0x14002a567
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14002a526
mov rsi, r14
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
je 0x14002a56d
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
jne 0x14002a56d
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x14002a5e4
mov rsi, qword [rax + 8]
jmp 0x14002a537
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
je 0x14002a5a0
mov qword [rbx + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14002a589
mov qword [rcx + 0x20], rbx
jmp 0x14002a58d
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 0x14002a5e2
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 0x14002a5cb
mov qword [rcx + 0x20], rbx
jmp 0x14002a5ce
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.140028760
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 0x140037490
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400374c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400374b0
ret