joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b6e0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jb 0x14002b70a
mov eax, 0x10
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea ecx, [r8*8]
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], pe_nt_image_headers64
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x38
jbe 0x14002b755
cmp eax, 0x40
jae 0x14002b740
nop dword [rax + rax]
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x40
jb 0x14002b730
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.14002b8a0
mov dword [rbx + 0x28], 0
jmp 0x14002b760
jae 0x14002b771
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
cmp dword [rbx + 0x28], 0x38
jb 0x14002b760
movzx eax, byte [rbx + 7]
lea rdx, [rbx + 0x2c]
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.14002b8a0
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rbx, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14003dfe0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov r10, rcx
mov dword [rcx + 0x10], eax
mov r11d, r9d
mov eax, dword [rdx + 4]
lea r9, str.expand_32_byte_k
mov dword [rcx + 0x14], eax
cmp r8d, 0x20
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, str.expand_16_byte_k
cmovne r9, rax
lea rcx, [rdx + 0x10]
cmovne rcx, rdx
test r11d, r11d
mov eax, dword [rcx]
mov dword [r10 + 0x20], eax
mov eax, dword [rcx + 4]
mov dword [r10 + 0x24], eax
mov eax, dword [rcx + 8]
mov dword [r10 + 0x28], eax
mov eax, dword [rcx + 0xc]
mov dword [r10 + 0x2c], eax
mov eax, dword [r9]
mov dword [r10], eax
mov eax, dword [r9 + 4]
mov dword [r10 + 4], eax
mov eax, dword [r9 + 8]
mov dword [r10 + 8], eax
mov eax, dword [r9 + 0xc]
mov dword [r10 + 0xc], eax
mov eax, 0x14
cmovne eax, r11d
mov dword [r10 + 0x84], 0
mov dword [r10 + 0x88], eax
xor eax, eax
ret

Function at 0x14003e0a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
test r8d, r8d
je 0x14003e11c
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.14004af40
movzx r9d, byte [rsi]
movzx r10d, byte [rsi + 4]
inc r9b
lea rbx, [rbx + 1]
movzx edx, r9b
movzx r8d, byte [rdx + rsi + 8]
add r10b, r8b
movzx ecx, r10b
movzx eax, byte [rcx + rsi + 8]
mov byte [rdx + rsi + 8], al
mov byte [rcx + rsi + 8], r8b
add r8b, byte [rdx + rsi + 8]
movzx eax, r8b
movzx ecx, byte [rax + rsi + 8]
xor byte [rbx - 1], cl
add edi, 0xffffffff
jne 0x14003e0d3
movzx eax, r9b
mov dword [rsi], eax
movzx eax, r10b
mov dword [rsi + 4], eax
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003f1d0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov rbx, rcx
mov dword [rcx], edi
mov r10, rdx
mov eax, dword [rcx + 0x48]
mov dword [rcx + 4], eax
mov eax, dword [rcx + 0x4c]
mov dword [rcx + 8], eax
mov eax, dword [rcx + 0x50]
mov dword [rcx + 0xc], eax
mov esi, dword [rcx + 0x54]
mov dword [rcx + 0x10], esi
mov eax, dword [rcx + 0x58]
mov dword [rcx + 0x14], eax
mov eax, dword [rcx + 0x5c]
mov dword [rcx + 0x18], eax
mov eax, dword [rcx + 0x60]
mov dword [rcx + 0x1c], eax
mov eax, dword [rcx + 0x64]
mov dword [rcx + 0x20], eax
mov eax, dword [rcx + 0x68]
mov dword [rcx + 0x24], eax
mov eax, dword [rcx + 0x6c]
mov dword [rcx + 0x28], eax
mov eax, dword [rcx + 0x70]
mov dword [rcx + 0x2c], eax
mov eax, dword [rcx + 0x74]
mov dword [rcx + 0x30], eax
mov eax, dword [rcx + 0x78]
mov dword [rcx + 0x34], eax
mov eax, dword [rcx + 0x7c]
mov dword [rcx + 0x38], eax
mov ecx, dword [rcx + 0x80]
mov dword [rbx + 0x3c], ecx
mov eax, dword [rbx + 0x84]
mov dword [rbx + 0x40], eax
test r8b, 3
je 0x14003f26b
mov eax, 3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
test r8d, r8d
je 0x14003f2f4
lea r11, [0x140000000]
nop dword [rax]
mov ecx, dword [rdx + r10]
add edx, 4
add dword [rbx + 0x3c], ecx
mov ecx, 0x10
movzx eax, byte [rbx + 3]
shl edi, 8
xor edi, dword [r11 + rax*4 + 0x7a940]
xor edi, dword [rbx + 0x3c]
xor edi, esi
lea rsi, [rbx + 4]
mov dword [rbx], edi
mov eax, edi
mov rdi, rbx
rep movsd dword [rdi], dword [rsi]
mov dword [rbx + 0x40], eax
mov edi, dword [rbx]
lea ecx, [rdi + rax]
mov eax, ecx
shr rax, 0x18
xor ecx, dword [r11 + rax*4 + 0x7ad40]
ror ecx, 8
add ecx, dword [rbx + 4]
xor ecx, dword [rbx + 0x88]
add ecx, dword [rbx + 0x18]
mov eax, ecx
shr rax, 0x18
xor ecx, dword [r11 + rax*4 + 0x7ad40]
add ecx, dword [rbx + 0x34]
xor dword [rbx + 0x10], ecx
mov esi, dword [rbx + 0x10]
cmp edx, r8d
jb 0x14003f280
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + r8]
mov rcx, rbx
mov dword [rbx + 0x3c], eax
call fcn.14003e1e0
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov dword [rbx + 0x90], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400789f0
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 [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140078a29
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d6db0
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d6db0

Function at 0x140078a40
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 [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140078a70
mov r9, qword [rax + 8]
jmp 0x140078a73
mov r9, r8
cmp rdi, 0x3fc
ja 0x140078a97
test r9, r9
je 0x140078a97
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140078aa7
inc r8d
inc rax
cmp rax, 2
jl 0x140078a84
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140078e20
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 [0x140c73924], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140078e7d
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.140009110]
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 0x1400798d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x140079916
call fcn.140079a90
xorps xmm0, xmm0
mov dword [rsp + 0x30], ebx
movups xmmword [rsi], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rsi + 0x10], xmm0
xor eax, eax
jmp 0x140079a19
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140079e00
test rax, rax
je 0x1400799d4
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140079e00
test rax, rax
jne 0x1400799b0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400799fe
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rdi, 8
sub rsi, 1
jne 0x1400799f0
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rax, rbx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140079b70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140c739a4]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079cb0
cmp qword [rax], rbx
je 0x140079bac
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140079b98
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140079cb0
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140079c70
cmp ecx, 1
jne 0x140079cb0
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
xorps xmm0, xmm0
lea rax, vtable.boost::asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x1404605b0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x140079c96
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret
Function at 0x1400d3d10
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x140c73990], eax
inc eax
cmp eax, 1
jne 0x1400d3d5d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140c73994], eax
test bl, bl
je 0x1400d3de6
xor ebx, ebx
lock xadd dword [0x140c73994], ebx
test ebx, ebx
je 0x1400d3de6
mov rax, qword [0x14048a968]
movabs rcx, 0x8fafd21e25c5e09b
mov qword [rsp + 0x200], rsi
lea rsi, [0x14048a960]
mov dword [rsp + 0x24], 0
cmp rax, rcx
je 0x1400d3dc0
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400d3dc0
mov rax, qword [0x14048a960]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400d3dc2
mov al, 1
movzx eax, al
add eax, 2
mov qword [rsp + 0x28], rsi
mov rsi, qword [rsp + 0x200]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], ebx
cmp eax, 1
je 0x1400d3e0a
test al, 1
jne 0x1400d3e0a
mov rax, rdi
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14028bc60
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rdi
ret
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
call fcn.1400786b0
int3
Function at 0x1400d76c0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x30
mov rdi, r8
lea r12, [0x140c78a40]
sub rdi, r12
mov r15, rcx
sar rdi, 2
test rdi, rdi
je 0x1400d78a4
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], rsi
sar rbx, 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
cmp rdi, 0x26f
jb 0x1400d7716
mov eax, listen
jmp 0x1400d7744
cmp rdi, 0x44
jb 0x1400d7723
mov eax, 7
jmp 0x1400d7744
cmp rdi, 0x27
jb 0x1400d7730
mov eax, 5
jmp 0x1400d7744
cmp rdi, 7
jb 0x1400d773d
mov eax, 3
jmp 0x1400d7744
lea rax, [rdi - 1]
shr rax, 1
mov rsi, rdi
lea r14, [rbx + 1]
sub rsi, rax
shr rsi, 1
lea r13, [rsi + rax]
cmp rdi, rbx
jbe 0x1400d775d
mov r14, rdi
mov r8, rdi
mov qword [rsp + 0x58], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r14, r14
je 0x1400d780a
xor edx, edx
lea rax, [rcx + rsi]
div rdi
mov r11d, dword [r12 + rdx*4]
lea r10, [r12 + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [r12 + rdx*4]
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
mov r8d, dword [r12 + rdx*4]
xor r8d, dword [rbp]
xor r8d, r11d
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x1400d77ce
mov rax, rbx
jmp 0x1400d77e2
cmp rcx, rbx
ja 0x1400d77df
mov rax, qword [r15]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x1400d77e2
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [r12 + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r14
jb 0x1400d7781
add r14, rdi
cmp rcx, r14
jae 0x1400d788b
inc rsi
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [rsi + rbp]
div rdi
mov r10d, dword [r12 + rdx*4]
lea r11, [r12 + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [r12 + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [r12 + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [r12 + rdx*4], r8d
mov dword [r12 + r9*4], r8d
cmp rax, r14
jb 0x1400d7820
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
Function at 0x1400ff070
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 0x1400ff09f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400ff097
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400ff0e9
mov ecx, dword [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ff0d8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400ff0d8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1400ff0f4
inc ecx
inc rax
cmp rax, 2
jl 0x1400ff0c6
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 + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401028f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rdx
xor esi, esi
mov rcx, qword [rdx + 0x18]
mov qword [rbp - 8], rcx
mov rax, qword [rdx + 0x28]
mov qword [rbp + 8], rax
mov rax, qword [rcx + 8]
add rdx, 8
lea rcx, [rbp - 0x18]
call rax
nop
mov rax, qword [rdi + 0x30]
mov qword [rbp + 0x10], rax
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140108f30
nop
mov rax, qword [rbp + 0x10]
mov rbx, qword [rax + 0x20]
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x18]
lea rcx, [rbp - 0x18]
call rdx
lea r8, [0x1403f7ec8]
mov rdx, rax
lea rcx, [rsp + 0x50]
call rbx
nop
mov rcx, qword [rsp + 0x60]
mov qword [rbp + 0x28], rcx
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x38], rax
lea rax, fcn.140009110
mov qword [rsp + 0x60], rax
lea rax, [0x1404048f8]
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x18]
call rax
mov qword [rsp + 0x68], rsi
mov rax, qword [rsp + 0x78]
mov qword [rbp + 0x40], rax
lea rax, [0x140403eb0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
lea rax, [fcn.140009110]
cmp rdx, rax
je 0x1401029f1
lea rcx, [rsp + 0x50]
call rdx
nop
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0x48]
call fcn.1400fdc50
mov rdi, rax
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140102a35
lea rcx, [0x14010b320]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rax
jmp 0x140102ac0
mov r14, qword [rcx + 0x10]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x80]
call fcn.140108f30
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140102a67
mov rsi, qword [rax + 8]
mov r8d, 0x78
mov rdx, rsi
call fcn.140100af0
mov rbx, rax
lea rcx, [rax + 8]
lea rdx, [rbp - 0x80]
call fcn.140108f30
lea rax, [0x14010bd90]
mov qword [rbx], rax
mov qword [rsp + 0x30], rbx
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
lea rcx, [rbp - 0x78]
call rdx
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call r14
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102ac0
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
lea rcx, [rbp + 0x48]
call rdx
nop
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
lea rcx, [rbp + 0x18]
call rdx
nop
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax]
lea rcx, [rbp + 0x88]
call rdx
nop
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
lea rcx, [rbp - 0x18]
call rdx
nop
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14028bc60
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140103c60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rbp + 0xf8], rax
mov rdi, rdx
xor esi, esi
mov rax, qword [rcx + 0x28]
mov rbx, qword [rax + 0x40]
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x18]
call rdx
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x40]
call rbx
nop
mov rcx, qword [rsp + 0x50]
mov qword [rbp + 0xd8], rcx
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0xe8], rax
lea rax, fcn.140009110
mov qword [rsp + 0x50], rax
lea rax, [0x1404048f8]
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xc8]
call rax
mov qword [rsp + 0x58], rsi
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0xf0], rax
lea rax, [0x140403eb0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
lea rax, [fcn.140009110]
cmp rdx, rax
je 0x140103d30
lea rcx, [rsp + 0x40]
call rdx
nop
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140103d64
lea rcx, [0x14010b460]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xc8]
call rax
jmp 0x140103e65
mov r14, qword [rcx + 0x10]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400f9e60
movups xmm0, xmmword [rdi + 0x138]
movups xmmword [rbp + 0xa8], xmm0
movsd xmm1, qword [rdi + 0x148]
movsd qword [rbp + 0xb8], xmm1
mov rax, qword [rdi + 0x150]
mov qword [rbp + 0xc0], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140c739a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140103dc0
mov rsi, qword [rax + 8]
mov r8d, 0x168
mov rdx, rsi
call fcn.140100af0
mov rdi, rax
lea rdx, [rsp + 0x70]
lea rcx, [rax + 8]
call fcn.1400f9e60
movups xmm0, xmmword [rbp + 0xa8]
movups xmmword [rdi + 0x140], xmm0
movsd xmm1, qword [rbp + 0xb8]
movsd qword [rdi + 0x150], xmm1
mov rcx, qword [rbp + 0xc0]
mov qword [rdi + 0x158], rcx
lea rax, [0x14010be30]
mov qword [rdi], rax
mov qword [rsp + 0x20], rdi
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140103e38
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x140103e38
mov rax, qword [rcx]
call qword [rax + select]
lea rcx, [rsp + 0x70]
call fcn.1400f0e80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0xc8]
call r14
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140103e65
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rax, qword [rbp + 0xd8]
mov rdx, qword [rax]
lea rcx, [rbp + 0xc8]
call rdx
nop
mov rcx, qword [rbp + 0xf8]
xor rcx, rsp
call fcn.14028bc60
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret