joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010f00
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rdi, rcx
test rbx, rbx
je 0x140010fc4
nop dword [rax]
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14008ce28], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140010f70
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140010f92
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140010a40]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rdi]
mov rax, qword [rbx + 0x18]
mov qword [rdi], rax
test rbx, rbx
je 0x140010fb8
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rbx
call fcn.140034650
mov rbx, qword [rdi]
test rbx, rbx
jne 0x140010f20
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400111c0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov rbx, rcx
lea rax, vtable.asio::detail::win_iocp_io_context.0
mov qword [rcx], rax
xor ebp, ebp
cmp qword [rcx + 0xa8], rbp
je 0x140011299
call fcn.140011730
mov rdi, qword [rbx + 0xa8]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
lock xadd dword [0x14008ce28], eax
mov rcx, qword [rdi + 8]
test eax, eax
je 0x14001124d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001126f
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.140010a40]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
je 0x140011292
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.140034650
mov qword [rbx + 0xa8], rbp
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x1400112f6
mov rdx, rcx
lea rdi, [0x140089e50]
nop
mov rax, qword [rdx + 0x20]
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x1400112c7
mov qword [rbx + 0x98], rbp
mov qword [rdx + 0x20], rbp
mov rax, qword [rcx + 0x28]
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rdi
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rcx
xor ecx, ecx
call rax
mov rcx, qword [rbx + 0x90]
mov rdx, rcx
test rcx, rcx
jne 0x1400112b0
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001130f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbx + 0x48]
test rdi, rdi
je 0x14001132f
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.140034650
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001133e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, vtable.asio::execution_context::service.0
mov qword [rbx], rax
test sil, 1
je 0x14001135b
mov edx, 0xb0
mov rcx, rbx
call fcn.140034650
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140012750
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012777
mov r8, qword [rax + 8]
jmp 0x14001277a
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x1400127a2
test r8, r8
je 0x1400127a2
mov ecx, 2
mov eax, ecx
nop
cmp qword [r8 + rax*8], 0
je 0x1400127b4
inc ecx
inc rax
cmp rax, 4
jl 0x140012790
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140034b4c
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, ecx
mov qword [r8 + rax*8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400127d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rdi + 3]
xor esi, esi
shr rbx, 2
test rax, rax
je 0x140012874
mov r10, qword [rax + 8]
test r10, r10
je 0x140012874
mov r9d, 2
lea r8, [r10 + 0x10]
mov ecx, r9d
mov rdx, qword [r8]
test rdx, rdx
je 0x140012823
movzx eax, byte [rdx]
cmp rax, rbx
jae 0x140012848
inc ecx
add r8, 8
cmp ecx, 4
jl 0x140012813
mov rax, r9
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x140012868
inc r9d
inc rax
cmp rax, 4
jl 0x140012831
jmp 0x140012874
movsxd rcx, ecx
mov rax, rdx
mov qword [r10 + rcx*8], rsi
movzx ecx, byte [rdx]
mov byte [rdx + rdi], cl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
mov qword [r10 + rax*8], rsi
call fcn.140034b4c
lea rcx, [rbx*4 + 1]
call fcn.1400348c0
cmp rbx, 0xff
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
cmova ecx, esi
mov rsi, qword [rsp + 0x38]
mov byte [rax + rdi], cl
add rsp, 0x20
pop rdi
ret
Function at 0x140016360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rbx, qword [rcx + 0x18]
xor edi, edi
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140016397
mov rcx, rbx
call fcn.140011730
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0xa0], edi
lea rcx, [rsp + 0xa8]
call fcn.140030a18
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.140011990
test rax, rax
je 0x140016438
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.140011990
test rax, rax
jne 0x140016421
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x50]
mov edi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140016461
call fcn.140034b4c
add rbx, 8
sub rdi, 1
jne 0x140016454
lea rcx, [rsp + 0xa8]
call fcn.140030aa4
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400179d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov rdi, qword [rsp + 0xb0]
mov rbx, qword [rdi]
mov rbx, qword [rbx + 0x78]
mov qword [rax + 0x28], rbx
mov qword [rax - 0x48], rdi
mov rdx, rdi
mov ecx, 0xc0
call fcn.140010690
mov rsi, rax
mov qword [rsp + 0x48], rax
xor r13d, r13d
mov qword [rax + 0x20], r13
lea rax, [0x1400184d0]
mov qword [rsi + 0x28], rax
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov dword [rsi + 0x30], r13d
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x38], xmm0
lea rdx, [rsi + 0x48]
mov rax, qword [rdi]
mov qword [rdi], r13
mov qword [rdx], rax
lea rcx, [rsi + 0x50]
mov r8, qword [rsp + 0xb8]
call fcn.140018230
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x140017add
lea r8d, [r13 + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.1400108b0
lea rax, vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_handle_service::iocp_op_cancellation_.0
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [r14]
mov qword [rdx + 0x28], r13
lea r8, [0x140011ea0]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov qword [rdx + 0x20], r13
mov dword [rdx + 0x38], r13d
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], rsi
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x50], rax
mov qword [rbx], rdx
lea rsi, [rdx + 8]
mov rdi, qword [r12]
mov rbx, qword [r12 + 8]
cmp dword [r14 + 8], r13d
jne 0x140017af8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r14 + 8], eax
jmp 0x140017b0c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [r14 + 8], eax
je 0x140017b0c
mov dword [r14 + 8], 0xffffffff
mov rax, qword [rbp + 0x28]
lock inc dword [rax + 0x30]
cmp qword [r14], 0xffffffffffffffff
jne 0x140017b34
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.140011890
jmp 0x140017bbc
test rbx, rbx
jne 0x140017b4d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.140011890
jmp 0x140017bbc
mov dword [rsp + 0xb0], r13d
mov dword [rsi + 0x10], r15d
shr r15, 0x20
mov dword [rsi + 0x14], r15d
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xb0]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140017bb0
cmp eax, 0x3e5
je 0x140017bb0
cmp eax, 0xea
je 0x140017bb0
mov r9d, dword [rsp + 0xb0]
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.140011890
jmp 0x140017bbc
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.1400117f0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x40]
call fcn.140017fd0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140017bf0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [rdi]
mov rbx, qword [rbx + 0x78]
mov qword [rax + 0x28], rbx
mov qword [rax - 0x48], rdi
mov rdx, rdi
mov ecx, 0xc0
call fcn.140010690
mov rsi, rax
mov qword [rsp + 0x58], rax
xor r13d, r13d
mov qword [rax + 0x20], r13
lea rax, [0x140018060]
mov qword [rsi + 0x28], rax
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov dword [rsi + 0x30], r13d
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x38], xmm0
lea rdx, [rsi + 0x48]
mov rax, qword [rdi]
mov qword [rdi], r13
mov qword [rdx], rax
lea rcx, [rsi + 0x50]
mov r8, qword [rsp + 0xc8]
call fcn.140018230
mov qword [rsp + 0x60], rsi
test rbx, rbx
je 0x140017cfd
lea r8d, [r13 + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc0]
call fcn.1400108b0
lea rax, vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_handle_service::iocp_op_cancellation_.0
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [r14]
mov qword [rdx + 0x28], r13
lea r8, [0x140011ea0]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov qword [rdx + 0x20], r13
mov dword [rdx + 0x38], r13d
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], rsi
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x50], rax
mov qword [rbx], rdx
lea rsi, [rdx + 8]
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x40], xmm0
cmp dword [r14 + 8], r13d
jne 0x140017d19
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r14 + 8], eax
jmp 0x140017d2d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [r14 + 8], eax
je 0x140017d2d
mov dword [r14 + 8], 0xffffffff
mov rax, qword [rbp + 0x28]
lock inc dword [rax + 0x30]
cmp qword [r14], 0xffffffffffffffff
jne 0x140017d55
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.140011890
jmp 0x140017de4
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140017d73
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.140011890
jmp 0x140017de4
mov dword [rsp + 0xc0], r13d
mov dword [rsi + 0x10], r15d
shr r15, 0x20
mov dword [rsi + 0x14], r15d
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xc0]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140017dd8
cmp eax, 0x3e5
je 0x140017dd8
cmp eax, 0xea
je 0x140017dd8
mov r9d, dword [rsp + 0xc0]
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.140011890
jmp 0x140017de4
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.1400117f0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x50]
call fcn.140017fd0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140018640
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x40]
sub rsp, 0x140
xor edi, edi
mov dword [rbp + 0x70], edi
mov rax, qword [rdx]
mov qword [rdx], rdi
mov qword [rbp + 0x68], rax
mov rax, qword [rcx + 0x30]
mov rbx, qword [rax + 0x20]
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax + 0x18]
call rdx
lea r8, [0x14007815b]
mov rdx, rax
lea rcx, [rsp + 0x58]
call rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x38]
call fcn.1400129c0
nop
cmp qword [rsp + 0x78], rdi
je 0x1400186b1
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call rdx
nop
mov dword [rbp + 0x70], 7
mov rax, qword [rbp - 8]
mov rbx, qword [rax + 0x88]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax + 0x18]
lea rcx, [rbp - 0x38]
call rdx
lea r8, [rbp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x58]
call rbx
mov dword [rbp + 0x70], 0x47
lea rdx, [rsp + 0x58]
lea rcx, [rbp]
call fcn.1400129c0
nop
cmp qword [rsp + 0x78], 0
je 0x14001870d
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call rdx
nop
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.1400129c0
mov dword [rbp + 0x70], 0x7f
cmp qword [rbp + 0x20], 0
je 0x140018736
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
lea rcx, [rbp]
call rdx
nop
cmp qword [rbp - 0x50], 0
je 0x140018862
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140018773
lea rcx, [0x140018e70]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x68]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call rax
jmp 0x14001881b
mov rbx, qword [rcx + 0x10]
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400187ac
mov rdx, qword [rax + 8]
jmp 0x1400187af
mov rdx, rdi
mov r8d, 0x18
call fcn.140018e90
mov qword [rsp + 0x50], rdi
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x60], rdi
mov qword [rax + 8], rcx
lea rcx, [0x140019020]
mov qword [rax], rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x40]
call fcn.140018dc0
nop
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x1400187fd
mov rdx, qword [rax]
mov rcx, rdx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x70]
call rbx
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001881b
mov rax, qword [rcx]
xor edx, edx
call rax
nop
cmp qword [rbp - 0x50], 0
je 0x140018830
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
lea rcx, [rbp - 0x70]
call rdx
nop
cmp qword [rbp - 0x18], 0
je 0x140018845
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
lea rcx, [rbp - 0x38]
call rdx
nop
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x140018857
mov rdx, qword [rax]
mov rcx, rdx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x140
pop rdi
pop rbx
pop rbp
ret
lea rcx, [rsp + 0x40]
call fcn.140010780
nop
lea rcx, [rsp + 0x40]
call fcn.1400150d0
int3
Function at 0x140018920
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov r9, rdx
cmp qword [rcx + 0x20], 0
jne 0x14001895a
cmp qword [rcx + 0x58], 0
jne 0x14001895a
mov rdx, r8
mov rcx, r9
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
jmp fcn.140018ac0
lea rbx, [rcx + 0x38]
cmp qword [rbx + 0x20], 0
je 0x140018a64
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14001899e
lea rcx, [0x140019010]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], r9
lea rdx, [rbp - 0x50]
mov rcx, rbx
call rax
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rcx + 0x10]
mov rax, qword [rdx]
xor esi, esi
mov qword [rdx], rsi
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rdx + 8]
movups xmmword [rbp - 0x20], xmm0
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x40], rax
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400189e5
mov rdx, qword [rax + 8]
jmp 0x1400189e8
mov rdx, rsi
mov r8d, 0x30
call fcn.140018e90
mov qword [rbp - 0x30], rsi
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x28], rsi
mov qword [rax + 8], rcx
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rbp - 0x10]
mov qword [rax + 0x20], rcx
lea rcx, [0x140019090]
mov qword [rax], rcx
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x38], rsi
lea rcx, [rbp - 0x40]
call fcn.140018f70
nop
lea rcx, [rbp - 0x28]
call fcn.1400176f0
nop
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140018a54
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x40]
call fcn.140010780
nop
lea rcx, [rbp - 0x40]
call fcn.1400150d0
int3

Function at 0x140018c50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x78]
test rbx, rbx
je 0x140018ce6
mov rcx, qword [rbx]
test rcx, rcx
je 0x140018ce6
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018c99
mov rdx, qword [rax + 8]
jmp 0x140018c9b
xor edx, edx
mov r9, qword [rsp + 0x28]
mov rdi, rbx
mov r8, qword [rsp + 0x20]
cmp r9, 0x3fc
ja 0x140018cd2
test rdx, rdx
je 0x140018cd2
mov ecx, 6
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x140018cec
inc ecx
inc rax
cmp rax, 8
jl 0x140018cc0
mov rcx, r8
call fcn.140034b4c
mov qword [rdi], 0
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
movzx eax, byte [r9 + r8]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
mov qword [rdi], 0
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
Function at 0x140018dc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x140018df0
mov rax, qword [rax + 8]
test rax, rax
je 0x140018de8
mov rax, qword [rax]
mov rcx, rax
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140018e42
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018e32
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140018e32
mov ecx, 4
mov eax, ecx
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x140018e4d
inc ecx
inc rax
cmp rax, 6
jl 0x140018e20
mov rcx, rbx
call fcn.140034b4c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x18]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140018f70
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 0x140018f97
add rcx, 8
call fcn.1400176f0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140018fe3
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018fd3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140018fd3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140018fee
inc ecx
inc rax
cmp rax, 6
jl 0x140018fc1
mov rcx, rbx
call fcn.140034b4c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x30]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14001a4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x14001a578
test r8, r8
jle 0x14001a570
nop word [rax + rax]
mov rcx, rdi
call fcn.140013b10
test rax, rax
jle 0x14001a54e
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov rax, qword [rdi + 0x40]
mov r8, rsi
mov rcx, qword [rax]
call fcn.140036d50
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14001a568
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001a570
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14001a510
sub r14, rbx
mov rax, r14
jmp 0x14001a5f6
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x14001a591
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001a593
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14001a5eb
test ecx, ecx
jle 0x14001a5cc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140036d50
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14001a5eb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001a5eb
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14003de90
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret