joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14000f177
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000f198
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000f19a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000f1f3
test ecx, ecx
jle 0x14000f1d3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000f1f3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000f1f3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000f220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000f251
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000f26f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f290
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f292
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f2c4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x14000f361
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000f302
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rdi, 0xfff
jbe 0x14000f341
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14000f382
cmp rdi, rax
ja 0x14000f310
test rbx, rbx
je 0x14000f361
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x14000f364
Function at 0x14000f7a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000f7cd
xor eax, eax
jmp 0x14000f922
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14000f7f8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14000f7f8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000f922
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000f915
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000f83b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000f866
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000f91a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f8d5
sub eax, 1
je 0x14000f8d5
cmp eax, 2
jne 0x14000f915
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000f91a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000f903
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000f915
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14000f91a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140010c40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140010d13
cmp byte [rcx + 0x71], 0
je 0x140010d13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140010d0f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140010cd4
sub eax, 1
je 0x140010cd8
cmp eax, 2
jne 0x140010d0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076f70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140010d06
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140010d0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140010cbc
xor al, al
jmp 0x140010cbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076f70
add rsp, 0x60
pop rbx
ret
Function at 0x1400121c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rbp, rcx
xor r15d, r15d
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
lea ecx, [r15 + 0x20]
call fcn.140076f90
mov rdi, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.boost::asio::detail::win_thread::func_base.0
mov qword [rdi], rax
lea rax, vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov qword [rdi], rax
mov qword [rdi + 0x18], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rdi + 8], rax
lea r14, [0x1400ccf38]
test rax, rax
jne 0x140012260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rdi]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [r8]
mov dword [rsp + 0x30], ebx
test ebx, ebx
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r14
test ebx, ebx
jne 0x14001236f
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400122af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
mov dword [rsp + 0x30], ebx
test ebx, ebx
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r14
test ebx, ebx
jne 0x140012381
mov dword [rsp + 0x80], r15d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x140004fb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14001232d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
test rsi, rsi
je 0x14001230a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140012319
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
test ebx, ebx
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r14
test ebx, ebx
jne 0x14001235d
test rsi, rsi
je 0x140012349
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140002b70
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140002b70
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140002b70
int3
Function at 0x140014090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rbx, qword [rcx + 0x18]
xor edi, edi
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x1400140c7
mov rcx, rbx
call fcn.1400057b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
mov dword [rsp + 0x60], edi
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x48]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140005b90
test rax, rax
je 0x14001415c
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x48]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140005b90
test rax, rax
jne 0x140014140
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x48]
mov edi, 3
mov rcx, qword [rbx]
test rcx, rcx
je 0x140014185
call fcn.140077250
add rbx, 8
sub rdi, 1
jne 0x140014178
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x14001aad0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
xor esi, esi
mov dword [rbp - 0x69], esi
lea rdx, [rbp - 0x39]
call fcn.14001ca40
mov rbx, rax
mov qword [rbp - 0x59], rax
mov rcx, qword [rax + 0x10]
mov qword [rbp + 7], rcx
mov rcx, qword [rax + 0x20]
mov qword [rbp + 0x17], rcx
lea rax, fcn.140004c70
mov qword [rbx + 0x10], rax
lea rax, [0x1400cd820]
mov qword [rbx + 0x20], rax
mov rdx, rbx
lea rcx, [rbp - 9]
mov rax, qword [rbp + 7]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], rsi
mov rax, qword [rbx + 0x28]
mov qword [rbp + 0x1f], rax
lea rax, [0x1400cd590]
mov qword [rbx + 0x28], rax
mov rax, qword [rbx + 0x10]
mov rdx, qword [rax]
lea rax, [fcn.140004c70]
cmp rdx, rax
je 0x14001ab7c
mov rcx, rbx
call rdx
mov ebx, 2
mov dword [rbp - 0x69], ebx
and ebx, 0xfffffffd
mov dword [rbp - 0x69], ebx
or ebx, 1
mov dword [rbp - 0x69], ebx
mov rax, qword [rbp + 0x17]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x14001abc5
lea rax, [0x14001d080]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rdi
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call r8
jmp 0x14001ac60
movups xmm6, xmmword [rdi]
movups xmm7, xmmword [rdi + 0x10]
lea rax, [rbp - 0x65]
mov qword [rbp - 0x59], rax
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ac10
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001ac10
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14001ac10
mov qword [rcx + 0x10], rsi
movzx ecx, byte [rax]
cmp cl, 0xc
jb 0x14001ac08
mov byte [rax + 0x30], cl
jmp 0x14001ac1e
mov rcx, rax
call fcn.140077250
mov ecx, Ordinal_50
call fcn.140076f90
mov byte [rax + 0x30], ntohl
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rsi
movups xmmword [rax + 8], xmm6
movups xmmword [rax + 0x18], xmm7
lea rcx, [0x14001d440]
mov qword [rax], rcx
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x51], rsi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 9]
mov rax, qword [rbp + 0x17]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x14001ac60
xor edx, edx
mov rcx, rax
call qword [rax]
and ebx, 0xfffffffe
mov dword [rbp - 0x69], ebx
lea rcx, [rbp - 9]
mov rax, qword [rbp + 7]
call qword [rax]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140076f70
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001ccc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x14001ccdc
mov qword [rcx + 0x10], 0
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x14001cd33
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001cd23
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001cd23
cmp qword [rcx + 0x10], 0
jne 0x14001cd23
movzx eax, byte [rbx + 0x30]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140077250
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001cd40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14001cd74
mov qword [rsp + 0x30], rax
mov r8, qword [rax + 0x38]
test r8, r8
je 0x14001cd6c
xor edx, edx
mov rcx, r8
call qword [r8]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14001cdc9
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001cdb9
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001cdb9
cmp qword [rcx], 0
jne 0x14001cdb9
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140077250
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d7e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x20], r8
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x14001d844
mov rax, qword [rax + 8]
test rax, rax
je 0x14001d844
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14001d844
mov qword [rax + 0x10], rsi
movzx eax, byte [rdx]
cmp al, 0x1e
jb 0x14001d83c
mov byte [rdx + 0x78], al
jmp 0x14001d855
mov rcx, rdx
call fcn.140077250
mov ecx, 0x79
call fcn.140076f90
mov rdx, rax
mov byte [rax + 0x78], reloc.WLDAP32.dll_Ordinal_30
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdx
lea rcx, [rdx + 8]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov rax, qword [rbx]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], rsi
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm1
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbx + 0x10], 0
mov eax, dword [rbx + 0x30]
mov dword [rcx + 0x30], eax
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x38], rax
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm0
mov rax, qword [rbx + 0x60]
mov qword [rcx + 0x60], rax
lea rax, [0x14001dad0]
mov qword [rdx], rax
mov qword [rdi], rdx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x50], rbx
mov rdx, qword [rbx + 0x28]
cmp rdx, 0x10
jb 0x14001d920
inc rdx
mov rcx, qword [rbx + 0x10]
cmp rdx, 0x1000
jb 0x14001d91b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d948
mov rcx, r8
call fcn.14007721c
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbx + 0x10], 0
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076f70
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x14001d960
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001d99a
mov qword [rsp + 0x30], rcx
add rcx, 8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
add rcx, 0x10
call fcn.1400034a0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14001d9f1
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d9e1
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001d9e1
cmp qword [rcx + 0x10], 0
jne 0x14001d9e1
movzx eax, byte [rbx + 0x78]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140077250
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001da50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x14001da6c
mov qword [rcx + 0x10], 0
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x14001dac3
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dab3
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001dab3
cmp qword [rcx + 0x10], 0
jne 0x14001dab3
movzx eax, byte [rbx + 0x60]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140077250
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e270
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
mov rdx, qword [rcx + 8]
movzx esi, r8w
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001e2ef
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, si
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14001e310
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14001df00
mov rdx, qword [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001e3b9
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret