joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009b1b0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rcx
add rcx, 0x28
mov qword [rsp + 0x68], rcx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14009b1da
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
xor edi, edi
cmp qword [rbx + 0x78], rdi
je 0x14009b1f1
mov eax, 3
lock cmpxchg dword [rbx + 0x80], edi
jmp 0x14009b26e
mov eax, edi
xchg dword [rbx + 0x80], eax
mov ecx, reloc.WS2_32.dll_recv
call fcn.1401ec268
mov rsi, rax
mov qword [rsp + 0x60], rax
mov ecx, 8
call fcn.1401ec268
mov qword [rax], rbx
mov qword [rsp + 0x70], rax
lea r14, [rsi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14009b5d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x14009b30c
mov rcx, qword [rbx + 0x78]
mov qword [rbx + 0x78], rsi
test rcx, rcx
je 0x14009b26e
cmp dword [rcx + 8], 0
je 0x14009b264
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, reloc.WS2_32.dll_recv
call fcn.1401ec5cc
mov eax, dword [rbx + 0x80]
nop
test eax, eax
jne 0x14009b2f6
movabs rbp, 0x7fffffffffffb1df
movabs rsi, 0x7fffffffffffffff
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x14009b2af
imul rax, rax, 0x64
jmp 0x14009b2ca
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
cmp rax, rbp
jge 0x14009b2dc
add rax, 0x4e20
mov qword [rsp + 0x60], rax
jmp 0x14009b2e1
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.14005ecd0
mov eax, dword [rbx + 0x80]
nop
test eax, eax
je 0x14009b291
mov rcx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov dword [r14], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14009b6b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
mov rsi, rcx
cmp rdi, 0xffffffffffffffff
je 0x14009b734
xor ecx, ecx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x14009b72d
cmp eax, 0x2733
je 0x14009b6fb
cmp eax, 0x4d5
jne 0x14009b72d
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsi], 0xffffffffffffffff
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009f1b0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
sub rsp, 0x48
mov rdi, rcx
lea r8, [rcx + 0x50]
mov rcx, qword [rcx + 0x48]
lea rax, [0x140275440]
xor ebp, ebp
mov qword [rsp + 0x28], rax
add rcx, 0x28
mov dword [rsp + 0x20], ebp
lea r9, [rsp + 0x20]
mov byte [rsp + 0x24], bpl
lea rdx, [rsp + 0x30]
call fcn.140068410
cmp dword [rsp + 0x20], ebp
jne 0x14009f323
mov qword [rsp + 0x70], rbx
mov rbx, qword [rdi + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x14009f2fc
xor ecx, ecx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea edx, [rbp + 2]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp qword [rdi + 0x50], 0xffffffffffffffff
mov rcx, qword [rdi + 0x48]
je 0x14009f2b0
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x14009f249
mov rdx, qword [rdi + 0x50]
mov rcx, rax
call fcn.140023bb0
mov rsi, qword [rdi + 0x50]
cmp rsi, 0xffffffffffffffff
je 0x14009f2b0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x14009f2b0
cmp eax, 0x2733
je 0x14009f27e
cmp eax, 0x4d5
jne 0x14009f2b0
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rdi + 0x58], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [rdi + 0x58], bpl
mov rsi, 0xffffffffffffffff
mov qword [rdi + 0x50], rsi
mov rbx, qword [rdi + 0x68]
mov qword [rdi + 0x60], rbp
mov qword [rdi + 0x68], rbp
test rbx, rbx
je 0x14009f2f7
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009f2f7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14009f2f7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x38]
mov rbx, qword [rsp + 0x70]
test rcx, rcx
je 0x14009f31c
mov eax, dword [rdi + 0x40]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], eax
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
add rsp, 0x48
pop rdi
pop rbp
ret
lea rdx, str.cancel
lea rcx, [rsp + 0x20]
call fcn.140021e50
int3
Function at 0x1400a7ed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rcx + 8]
xor ebp, ebp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
mov qword [rsp + 0x38], 2
mov rdi, rdx
movdqu xmmword [rsp + 0x40], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x1400a7f7b
mov dword [rsp + 0x20], 0x2719
lea rax, [0x140275440]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 1
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov qword [rdi], 2
cmp dword [rsp + 0x20], ebp
jne 0x1400a803e
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401ebfb0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rsi, dword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
lea rax, [0x140275440]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
jne 0x1400a7f3a
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
cmp rsi, 0x80
ja 0x1400a8016
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x50]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov dword [rdi + 0x18], eax
jmp 0x1400a7f4c
mov dword [rsp + 0x20], 0x2726
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x24], 1
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140021e10
int3
lea rdx, str.local_endpoint
lea rcx, [rsp + 0x20]
call fcn.140021e50
int3
Function at 0x1400a9710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a9762
nop dword [rax]
cmp qword [rax], rbx
je 0x1400a98ce
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400a9750
mov qword [rbp + 0x27], rdi
mov rdx, rdi
mov ecx, 0x68
call fcn.140021f90
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x1400a9900]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rbx + 0x48], xmm1
movups xmm0, xmmword [rdi + 0x18]
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [rdi + 0x28]
mov qword [rbx + 0x60], rax
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024b00
mov qword [rbp + 0x37], r15
mov qword [rbp + 0x2f], r15
test al, al
je 0x1400a98b1
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rdi, qword [r14 + 0x28]
mov qword [rbp - 0x19], rdi
mov rax, qword [rsi]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbx + 0x48]
movsd qword [rbp + 7], xmm1
movups xmm0, xmmword [rbx + 0x50]
movups xmmword [rbp + 0xf], xmm0
mov rax, qword [rbx + 0x60]
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x31], rax
test rbx, rbx
je 0x1400a986b
mov qword [rbp - 0x21], r15
lea r8, [rbp - 9]
lea edx, [r15 + 0x68]
mov rcx, rbx
call fcn.140022020
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x1400a987f
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400aa360
nop
nop
test rbx, rbx
je 0x1400a9896
lea r8, [rbp - 9]
mov edx, 0x68
mov rcx, rbx
call fcn.140022020
nop
lea rcx, [rbp - 0x19]
call fcn.1400248e0
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400a9762
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400aa360
nop
nop
jmp 0x1400a98b1
Function at 0x1400a99b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x1400a9a0d
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1400a9a05
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a9a00
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400a9a00
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400a9a64
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a9a54
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400a9a54
cmp qword [rcx + 0x10], 0
jne 0x1400a9a54
movzx eax, byte [rbx + 0x50]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.1401ec5c4
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a9b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov r8, rdx
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x39], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x1400a9b9d
lock inc dword [rdx + 8]
mov rdx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdx
movups xmm0, xmmword [r8]
movups xmmword [rbp - 0x19], xmm0
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a9be2
nop dword [rax]
cmp qword [rax], rbx
je 0x1400a9d2e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400a9bd0
lea rax, [rbp - 0x39]
mov qword [rbp + 0x1f], rax
lea rdx, [rbp - 0x39]
mov ecx, 0x68
call fcn.140021f90
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400aa9f0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rbp - 0x39]
mov qword [rbx + 0x38], rcx
mov rax, qword [rbp - 0x31]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov rax, qword [rbp - 0x29]
mov qword [rbx + 0x48], rax
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbx + 0x58], xmm0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140024b00
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x27], r14
test al, al
je 0x1400a9cdc
mov rax, qword [rdi]
mov qword [rbp - 9], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
mov qword [rbp - 1], rax
lea rdx, [rbp - 9]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rbp + 0xf], rcx
mov rax, qword [rdi]
mov qword [rbp + 0x17], rax
xor r9d, r9d
lea r8, [rbp + 0x37]
mov rdx, rbx
call fcn.1400aa9f0
nop
lea rcx, [rbp + 0xf]
call fcn.1400248e0
nop
mov rdx, qword [rbp + 7]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1400a9d11
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a9d11
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400a9d11
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400a9be2
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.1400aae00
nop
nop
jmp 0x1400a9cdc
Function at 0x1400aa390
Capabilities:
Get thread local storage value
Set 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, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400aa3e2
nop word [rax + rax]
cmp qword [rax], rbx
je 0x1400aa542
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400aa3d0
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0x98
call fcn.140021f90
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400aa820]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rdi]
mov qword [rbx + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x48], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x80], r14
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x78], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
mov qword [rdi + 0x40], r14
mov qword [rdi + 0x48], r14
movups xmm0, xmmword [rdi + 0x50]
movups xmmword [rbx + 0x88], xmm0
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140024b00
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x1400aa524
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.1400aa820
nop
lea rcx, [rsp + 0x20]
call fcn.1400248e0
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x1400aa3e2
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400aaed0
nop
nop
jmp 0x1400aa524
Function at 0x1400aaed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rcx, 0x20
lea rdx, [rcx + 0x30]
add rsp, 0x28
jmp fcn.1400a9b50

Function at 0x1400aaf00
Capabilities:
Get thread local storage value
Set 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, 0x80
mov rdi, rdx
mov rbp, qword [r8]
lea rsi, [r8 + 8]
mov rbx, qword [rsi]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400aaf52
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x1400ab0bd
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400aaf40
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0xd0
call fcn.140021f90
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400ab120]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rbx + 0x48], xmm1
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
movsd xmm1, qword [rdi + 0x30]
movsd qword [rbx + 0x68], xmm1
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x70], eax
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x78], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
movups xmm0, xmmword [rdi + 0x58]
movups xmmword [rbx + 0x90], xmm0
movups xmm0, xmmword [rdi + 0x68]
movups xmmword [rbx + 0xa0], xmm0
movsd xmm1, qword [rdi + 0x78]
movsd qword [rbx + 0xb0], xmm1
movups xmm0, xmmword [rdi + 0x80]
movups xmmword [rbx + 0xb8], xmm0
mov rax, qword [rdi + 0x90]
mov qword [rbx + 0xc8], rax
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140024b00
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x1400ab09f
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.1400ab120
nop
lea rcx, [rsp + 0x20]
call fcn.1400248e0
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x1400aaf52
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400ab240
nop
nop
jmp 0x1400ab09f
Function at 0x1400b3c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400b3c84
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400b3ca5
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.1400b3b20
jmp 0x1400b3e1d
mov edx, r14d
mov rcx, rsi
call fcn.1400b39f0
mov r12d, eax
xor ebp, ebp
bt r14d, 0xa
jae 0x1400b3dda
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400b3ccd
mov rdx, qword [rsi]
mov qword [rsp + 0x48], rbp
movdqa xmm0, xmmword [0x140280500]
movdqu xmmword [rsp + 0x58], xmm0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1400b3cf0
lea rcx, [rsp + 0x48]
call fcn.140057140
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400b3d86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b3d81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b3d81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
movdqa xmm0, xmmword [0x140280500]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
cmp rbx, 0xffffffffffffffff
jne 0x1400b3db0
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.1400b3b20
nop
jmp 0x1400b3e1d
mov rcx, rsi
call fcn.1400b3910
test al, al
jne 0x1400b3dd1
mov dword [rdi], 9
mov dword [rdi + 4], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b3e1d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x1400b3df2
mov dword [r15], ebp
mov byte [r15 + 4], 0
lea rax, [0x140275440]
mov qword [r15 + 8], rax
and r14d, 0x10
je 0x1400b3dfe
mov eax, dword [rsp + 0x40]
jmp 0x1400b3e06
mov eax, r12d
mov r12d, dword [rsp + 0x40]
test r14d, r14d
setne bpl
add ebp, 2
mov dword [rdi], ebp
test r14d, r14d
cmove r12d, eax
mov dword [rdi + 4], r12d
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401ebfb0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14010d8d0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401ecd70
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 0x140118820
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401ecd70
sub rsp, rax
lea rcx, [0x1402c49f8]
add rsp, 0x28
jmp fcn.14010d730
Function at 0x14012d110
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14012d137
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x14012d120
movzx eax, r9b
ret