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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1801ffb90], eax
test eax, eax
je 0x180017c8b
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x180017cac
mov rdx, qword [rbx + 8]
lea rcx, [fcn.180006ed0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret

Function at 0x180018484
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r14, rdx
mov rbx, rcx
xor eax, eax
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x180018536
lea edi, [rax + 1]
mov eax, edi
xchg dword [rcx + 0x34], eax
test eax, eax
jne 0x180018510
xchg dword [rcx + 0x38], edi
test edi, edi
jne 0x180018510
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x180018510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1800159e0
mov r8, rax
mov edx, ebx
lea rcx, [rbp - 0x31]
call fcn.1800164a8
lea rdx, str.pqcs
lea rcx, [rbp - 0x31]
call fcn.1800173c0
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
and qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [r14], xmm0
movsd xmm1, qword [rbp - 0x59]
movsd qword [r14 + 0x10], xmm1
jmp 0x1800185f8
and dword [rbp + 0x37], 0
lea rcx, [rbp + 0x3f]
call fcn.18010efe4
nop
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x19]
call fcn.1801530a0
nop
mov rax, rbx
lea rdx, [rbx + 0x28]
neg rax
sbb rcx, rcx
and rcx, rdx
mov qword [rbp - 0x51], rcx
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x51]
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
xor esi, esi
jmp 0x1800185a4
lea rax, [rsi + 1]
cmp rsi, 0xffffffffffffffff
cmove rax, rsi
mov rsi, rax
mov r9, r14
lea r8, [rbp - 0x19]
mov rcx, rbx
call fcn.1800189e8
test rax, rax
jne 0x180018595
mov rdx, qword [rbp - 0x41]
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x19]
mov edi, 1
lea r14d, [rdi + 9]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800185e3
call fcn.18002c160
add rbx, 8
sub r14, rdi
jne 0x1800185d6
lea rcx, [rbp + 0x3f]
call fcn.18010f078
mov rax, rsi
lea r11, [rsp + 0xe0]
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
Function at 0x180018674
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rax, [rcx + 0x28]
neg rcx
sbb rbx, rbx
and rbx, rax
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x1800186af
cmp qword [rax], rbx
je 0x1800186b6
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800186a6
jmp 0x1800186bc
mov rbx, qword [rax + 8]
jmp 0x1800186be
xor ebx, ebx
test rbx, rbx
je 0x18001877b
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x180018754
cmp ecx, 1
jne 0x18001877b
mov dword [rbx + 0x50], 2
lea rax, [rbp - 0x28]
mov qword [rbp + 0x10], rax
lea rdx, [rbx + 0x58]
lea rcx, [rbp - 0x48]
call fcn.18010ef38
lea rax, [rbp - 0x48]
mov qword [rbp + 0x18], rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x28], rax
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea rax, vtable.boost::asio::multiple_exceptions.0
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x10]
call fcn.18010ef38
nop
lea rcx, [rbp - 0x48]
call fcn.18010f078
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x38]
call fcn.18001ba8c
nop
mov rdx, rax
lea rcx, [rbx + 0x58]
call fcn.18010ef30
nop
jmp 0x180018772
mov dword [rbx + 0x50], 1
lea rcx, [rbp - 0x38]
call fcn.180014fe4
nop
lea rcx, [rbx + 0x58]
mov rdx, rax
call fcn.18010ef30
nop
lea rcx, [rbp - 0x38]
call fcn.18010f078
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x18001955c
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.1800193f4
mov rdi, rax
mov rdx, rbx
mov rcx, rsi
call fcn.18001c430
nop
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.18001c430
nop
cmp qword [rdi + 0x18], 0x10
jb 0x1800195bb
mov rcx, qword [rdi]
jmp 0x1800195be
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov eax, 0x2000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x18001966b
mov r8, rdi
lea rdx, str.create_named_pipe_
lea rcx, [rbp - 0x18]
call fcn.180011b58
nop
lea r8, str.__failed
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.18000e534
mov rbx, rax
lea rcx, [rbp - 0x38]
call fcn.180015910
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.18000786c
nop
lea rax, vtable.std::system_error.0
mov qword [rsp + 0x78], rax
lea rax, vtable.boost::process::process_error.0
mov qword [rsp + 0x78], rax
lea rdx, [0x1801e5960]
lea rcx, [rsp + 0x78]
call fcn.180153440
nop
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.18001aa08
cmp qword [rdi + 0x18], 0x10
jb 0x180019681
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x1800196f4
lea rcx, [rbp - 0x28]
call fcn.180015910
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
lea r8, str.create_file___failed
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1800079f4
nop
lea rax, vtable.boost::process::process_error.0
mov qword [rbp - 0x60], rax
lea rdx, [0x1801e5960]
lea rcx, [rbp - 0x60]
call fcn.180153440
int3
lea rdx, [rbp + 0x60]
lea rcx, [rsi + 0x60]
call fcn.18001aa08
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180019720
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800060dc
mov qword [rsp + 0x68], SafeArrayLock
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x50], bl
mov rax, rsi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180019878
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rcx
and dword [rax - 0x30], 0
call fcn.180015834
nop
mov qword [rsp + 0x30], rax
cmp byte [rbx + 0x28], 0
je 0x18001994c
cmp byte [rbx + 0x29], 0
jne 0x18001994c
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
cmp ecx, 0x103
jne 0x18001994c
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1800199a4
nop
test al, al
je 0x18001994c
mov rax, qword [rbx]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x180019941
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1800199a4
nop
test al, al
je 0x180019941
cmp dword [rsp + 0x28], 0
jne 0x18001994c
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
test eax, eax
jne 0x180019928
lea rcx, [rsp + 0x38]
call fcn.180015910
nop
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x28], xmm0
jmp 0x180019941
and dword [rsp + 0x28], 0
call fcn.180015834
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
or qword [rbx], 0xffffffffffffffff
cmp dword [rsp + 0x28], 0
jne 0x18001994c
mov byte [rbx + 0x29], 1
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180019982
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x180019982
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
nop
or eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x180019982
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x180019a8c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rcx
and dword [rax - 0x18], 0
xor edx, edx
lea r8d, [rdx + 0x30]
call fcn.1801530a0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea rcx, [0x18001a9e4]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x10]
call fcn.18001c630
nop
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x28], rax
mov dword [rsp + 0x20], 1
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18001bd00
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
mov ecx, 0x20
call fcn.18013133c
mov rdi, rax
mov qword [rsp + 0x80], 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 rcx, qword [rsp + 0x88]
mov qword [rdi + 0x18], rcx
xor r9d, r9d
xor r8d, r8d
lea r15d, [r9 + 1]
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rdi + 8], rax
test rax, rax
jne 0x18001bdb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rdi]
mov edx, r15d
mov rcx, rdi
call qword [r8]
call fcn.1800159e0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1800164a8
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x38]
call fcn.1800173c0
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
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 0x18001be12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rdi]
mov edx, r15d
mov rcx, rdi
call qword [r8]
call fcn.1800159e0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1800164a8
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x38]
call fcn.1800173c0
and dword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x180017cb4]
xor edx, edx
xor ecx, ecx
call fcn.180154f70
mov qword [rbp + 8], rax
test rax, rax
jne 0x18001be9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rdi]
mov edx, r15d
mov rcx, rdi
call qword [r8]
test rsi, rsi
je 0x18001be6a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x18001be79
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1800159e0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1800164a8
lea rdx, str.thread
lea rcx, [rsp + 0x38]
call fcn.1800173c0
test rsi, rsi
je 0x18001beb8
or 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
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001c150
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x68], r8
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x78], rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rax, qword [rbx + 0x30]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x38]
call fcn.18001f5c0
nop
mov r8, rax
lea rdx, [rbp - 0x70]
call fcn.18001f5f8
mov rsi, rax
mov rbx, qword [rdi]
mov qword [rbp + 0x38], rbx
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18001c204
lea rcx, [0x180021f78]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call rax
jmp 0x18001c288
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18001c224
mov rdx, qword [rax + 8]
jmp 0x18001c226
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.180022244
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18001c253
mov qword [rax + 8], rbx
lea rcx, [0x1800226bc]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.180021e3c
nop
mov rax, qword [rsi + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x18001c288
xor edx, edx
mov rcx, rax
call qword [rax]
nop
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x58]
call qword [rax]
nop
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x20]
call qword [rax]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x68]
call qword [rax]
add rsp, 0x108
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18001c2c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x68], r8
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x78], rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rax, qword [rbx + 0x30]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x38]
call fcn.18001f5c0
nop
mov r8, rax
lea rdx, [rbp - 0x70]
call fcn.18001f5f8
mov rsi, rax
mov rbx, qword [rdi]
mov qword [rbp + 0x38], rbx
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18001c374
lea rcx, [0x180021fb8]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call rax
jmp 0x18001c3f8
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18001c394
mov rdx, qword [rax + 8]
jmp 0x18001c396
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.180022244
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18001c3c3
mov qword [rax + 8], rbx
lea rcx, [0x180022774]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.180021e3c
nop
mov rax, qword [rsi + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x18001c3f8
xor edx, edx
mov rcx, rax
call qword [rax]
nop
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x58]
call qword [rax]
nop
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x20]
call qword [rax]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x68]
call qword [rax]
add rsp, 0x108
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180020e84
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rsi, qword [rcx + 0x60]
mov qword [rbp - 0x18], r8
lea rdx, [r8 + 0x30]
mov ecx, 0xb8
call fcn.180017790
mov rdi, rax
mov qword [rbp - 0x10], rax
xor ecx, ecx
mov qword [rbp - 8], rcx
mov qword [rbp + 0x40], rax
test rax, rax
je 0x180020f4b
mov qword [rax + 0x20], rcx
lea rax, [0x180022db4]
mov qword [rdi + 0x28], rax
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rcx
mov dword [rdi + 0x30], ecx
movups xmm0, xmmword [r15]
movdqu xmmword [rdi + 0x38], xmm0
mov rax, qword [r14 + 8]
mov qword [rdi + 0x50], rax
movups xmm0, xmmword [r14 + 0x10]
movups xmmword [rdi + 0x58], xmm0
movsd xmm1, qword [r14 + 0x20]
movsd qword [rdi + 0x68], xmm1
mov eax, dword [r14 + 0x28]
mov dword [rdi + 0x70], eax
mov rax, qword [r14 + 0x30]
mov qword [rdi + 0x78], rax
lea rcx, [rdi + 0x80]
mov qword [rbp + 0x48], rcx
lea r9, [rbx + 0x88]
call fcn.180023020
nop
xor ecx, ecx
jmp 0x180020f4e
mov rdi, rcx
mov qword [rbp - 8], rdi
movups xmm0, xmmword [r15]
movdqu xmmword [rbp - 0x28], xmm0
cmp dword [rbx + 0x70], ecx
jne 0x180020f6b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x70], eax
jmp 0x180020f7a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x70], eax
je 0x180020f7a
or dword [rbx + 0x70], 0xffffffff
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx + 0x68], 0xffffffffffffffff
jne 0x180020fa3
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.180018928
xor r14d, r14d
jmp 0x180021014
mov rax, qword [rbp - 0x20]
xor r14d, r14d
test rax, rax
jne 0x180020fb7
xor r9d, r9d
xor r8d, r8d
jmp 0x180020ffa
mov dword [rbp + 0x40], r14d
mov qword [rdi + 0x10], r14
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
mov r8d, eax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x180021008
cmp eax, 0x3e5
je 0x180021008
cmp eax, 0xea
je 0x180021008
mov r9d, dword [rbp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.180018928
jmp 0x180021014
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.180018888
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], r14
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180021034
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov rsi, qword [rcx]
mov qword [rbp - 0x18], r8
lea rdx, [r8 + 0x30]
mov ecx, 0xf0
call fcn.180017790
mov rdi, rax
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov qword [rbp - 8], r13
mov qword [rbp + 0x40], rax
test rax, rax
je 0x1800210d9
mov qword [rax + 0x20], r13
lea rax, [0x180022c1c]
mov qword [rdi + 0x28], rax
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x30], r13d
movups xmm0, xmmword [r14]
movdqu xmmword [rdi + 0x38], xmm0
lea rcx, [rdi + 0x48]
mov rdx, r15
call fcn.180022f3c
nop
lea rcx, [rdi + 0xb8]
mov qword [rbp + 0x48], rcx
lea r9, [rbx + 0x28]
call fcn.180023020
nop
jmp 0x1800210dc
mov rdi, r13
mov qword [rbp - 8], rdi
movups xmm0, xmmword [r14]
movdqu xmmword [rbp - 0x28], xmm0
cmp dword [rbx + 0x10], r13d
jne 0x1800210fa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x10], eax
jmp 0x180021109
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
je 0x180021109
or dword [rbx + 0x10], 0xffffffff
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x180021123
xor r9d, r9d
mov r8d, 0x2719
jmp 0x180021177
mov rax, qword [rbp - 0x20]
test rax, rax
jne 0x180021134
xor r9d, r9d
xor r8d, r8d
jmp 0x180021177
mov dword [rbp + 0x40], r13d
mov qword [rdi + 0x10], r13
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
mov r8d, eax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x180021185
cmp eax, 0x3e5
je 0x180021185
cmp eax, 0xea
je 0x180021185
mov r9d, dword [rbp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.180018928
jmp 0x180021191
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.180018888
mov qword [rbp - 8], r13
mov qword [rbp - 0x10], r13
lea rcx, [rbp - 0x18]
call fcn.180022b84
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180021d98
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x180021dbb
and qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x180021e17
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
test rax, rax
je 0x180021ddc
mov rcx, qword [rax + 8]
jmp 0x180021dde
xor ecx, ecx
test rcx, rcx
je 0x180021e09
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180021dfb
inc edx
inc rax
cmp rax, 2
jl 0x180021de7
jmp 0x180021e09
mov al, byte [rdi + 0x50]
mov byte [rdi], al
movsxd rax, edx
mov qword [rcx + rax*8], rdi
jmp 0x180021e12
mov rcx, rdi
call fcn.18002c160
nop
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180021e3c
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x180021e5f
and qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x180021ebe
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
test rax, rax
je 0x180021e80
mov rcx, qword [rax + 8]
jmp 0x180021e82
xor ecx, ecx
test rcx, rcx
je 0x180021eb0
mov edx, 4
mov eax, edx
cmp qword [rcx + rax*8], 0
je 0x180021ea2
inc edx
inc rax
cmp rax, 6
jl 0x180021e8e
jmp 0x180021eb0
mov al, byte [rdi + 0x18]
mov byte [rdi], al
movsxd rax, edx
mov qword [rcx + rax*8], rdi
jmp 0x180021eb9
mov rcx, rdi
call fcn.18002c160
nop
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180021ecc
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x180021f07
mov qword [rsp + 0x40], rax
mov r8, qword [rax + 0x38]
test r8, r8
je 0x180021f02
xor edx, edx
mov rcx, r8
call qword [r8]
and qword [rbx + 0x10], 0
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x180021f61
mov ecx, dword [0x1801ffc20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180021f27
mov rcx, qword [rax + 8]
jmp 0x180021f29
xor ecx, ecx
test rcx, rcx
je 0x180021f54
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x180021f46
inc edx
inc rax
cmp rax, 2
jl 0x180021f32
jmp 0x180021f54
mov al, byte [rdi + 0x48]
mov byte [rdi], al
movsxd rax, edx
mov qword [rcx + rax*8], rdi
jmp 0x180021f5c
mov rcx, rdi
call fcn.18002c160
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret