joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f05b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x00939a40]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x6f05f0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x6f0658
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x6f0670
mov r13d, dword [0x009faa58]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x6f06e8
mov r14, qword [r13]
cmp r14, rbx
jb 0x6f0730
lea r13, [r13 + rbx*8]
mov rax, qword [r13]
test rax, rax
jne 0x6f05d9
mov rcx, r12
call fcn.006f04b0
mov qword [r13], rax
jmp 0x6f05d9
call fcn.006f04b0
mov qword [r12 + 0x10], rax
jmp 0x6f05d9
mov r10d, dword [r13]
test r10d, r10d
je 0x6f0792
mov r9d, dword [0x0086b280]
test r9d, r9d
je 0x6f07c0
lock add dword [0x009faa60], 1
jne 0x6f07f4
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x6f07a0
mov eax, dword [r13]
test eax, eax
je 0x6f05f9
mov eax, 0xffffffff
lock xadd dword [0x009faa60], eax
sub eax, 1
js 0x6f05f9
mov rcx, qword [0x009faa68]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x6f05f9
lea rcx, [rbx + 0x21]
mov edx, 8
lea rdi, [rbx + 0x20]
call sym.calloc
mov r13, rax
test rax, rax
je 0x6f081b
mov qword [rax], rdi
mov ecx, dword [0x009faa58]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x6f0637
call rsi
jmp 0x6f0637
lea rdi, [r14 + r14]
lea rax, [rbx + 0x20]
mov rcx, r13
cmp rbx, rdi
cmova rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov r13, rax
test rax, rax
je 0x6f081b
mov qword [rax], rdi
sub rdi, r14
lea rcx, [rax + r14*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x6f0709
call fcn.006f0550
mov dword [0x0086b280], 1
mov edx, dword [r13]
test edx, edx
jne 0x6f068d
mov rbx, qword [r12 + 0x10]
test rbx, rbx
jne 0x6f05f9
mov rax, qword [0x009faa50]
lea rbx, [rax + 1]
mov qword [0x009faa50], rbx
mov qword [r12 + 0x10], rbx
jmp 0x6f06a9
lock add dword [0x0086b284], 1
je 0x6f0777
mov r8d, dword [0x0086b280]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x0086b280]
test r8d, r8d
jne 0x6f0786
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x6f07e8
jmp 0x6f0786
mov rcx, qword [0x009faa68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6f069b
lock sub dword [0x009faa60], 1
jmp 0x6f069b
call sym.abort
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x7614b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbx, rcx
mov dword [rsp + 0x30], 0
call method.boost::system.system_category__
mov rbx, qword [rbx + 0x10]
mov qword [rsp + 0x38], rax
xor eax, eax
lock xadd dword [rbx + 0x30], eax
test eax, eax
je 0x761600
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rbx
mov ecx, dword [0x0086d580]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov ecx, dword [0x0086d580]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, r13
call rdi
xor r12d, r12d
lea rsi, [rsp + 0x30]
jmp 0x76153e
cmp r12, 0xffffffffffffffff
je 0x7615c8
add r12, 1
mov r8, rsi
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
jne 0x761530
mov ecx, dword [0x0086d580]
mov rdx, qword [rsp + 0x50]
call rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x76156f
call sym.operator_delete_void_
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x761616
mov rcx, r13
lea rdx, [0x00878df0]
mov rsi, qword [rsp + 0x38]
call method.std::runtime_error.runtime_error_char_const_
lea rax, method.boost::system::system_error.system_error__
mov rcx, r13
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x70], 0
call method.void_boost::throw_exception_boost::system.system_error__boost::system::system_error_const_
nop dword [rax]
mov r8, rsi
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
je 0x761553
mov r8, rsi
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
jne 0x7615c8
jmp 0x761553
mov eax, 1
mov edx, eax
xchg dword [rbx + 0x34], edx
test edx, edx
je 0x761628
call method.boost::system.system_category__
xor r12d, r12d
mov rax, r12
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
xchg dword [rbx + 0x38], eax
test eax, eax
jne 0x76160e
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x76160e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call method.boost::system.system_category__
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
test ebx, ebx
je 0x76160e
lea rcx, [rsp + 0x40]
lea rdx, [0x0087ae0f]
call method.boost::asio::detail.do_throw_error_boost::system::error_code_const__char_const_
mov rcx, r13
mov r12, rax
call method.boost::system::system_error.system_error__
mov rcx, r12
call sym._Unwind_Resume
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x0086d580]
mov r12, rax
call rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x761679
call sym.operator_delete_void_
jmp 0x761679
Function at 0x7628f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, qword [rcx + 0x18]
mov dword [rsp + 0x30], 0
call method.boost::system.system_category__
mov rbx, qword [rbx + 0x10]
mov qword [rsp + 0x38], rax
xor eax, eax
lock xadd dword [rbx + 0x30], eax
test eax, eax
je 0x7629f0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rbx
mov ecx, dword [0x0086d580]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
mov ecx, dword [0x0086d580]
lea rdx, [rsp + 0x40]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rdi
xor esi, esi
lea r12, [rsp + 0x30]
jmp 0x76297a
cmp rsi, 0xffffffffffffffff
je 0x7629c0
add rsi, 1
mov r8, r12
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
jne 0x762970
mov ecx, dword [0x0086d580]
mov rdx, qword [rsp + 0x50]
call rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x7629ab
call sym.operator_delete_void_
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x762a04
mov rcx, r12
call method.boost::asio::detail.do_throw_error_boost::system::error_code_const_
nop dword [rax + rax]
mov r8, r12
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
je 0x76298f
mov r8, r12
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
jne 0x7629c0
jmp 0x76298f
mov eax, 1
mov edx, eax
xchg dword [rbx + 0x34], edx
test edx, edx
je 0x762a10
call method.boost::system.system_category__
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
ret
xchg dword [rbx + 0x38], eax
test eax, eax
jne 0x7629fe
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x7629fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call method.boost::system.system_category__
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
test ebx, ebx
je 0x7629fe
lea rcx, [rsp + 0x40]
lea rdx, str.pqcs
call method.boost::asio::detail.do_throw_error_boost::system::error_code_const__char_const_
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x0086d580]
mov r12, rax
call rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x762a75
call sym.operator_delete_void_
mov rcx, r12
call sym._Unwind_Resume
mov r12, rax
jmp 0x762a66
Function at 0x763890
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x60
mov rbx, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rax, qword [rdx + 0x48]
movdqu xmm0, xmmword [rdx + 0x38]
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov r12, rdx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
mov ecx, dword [0x0086d580]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
movups xmmword [rsp + 0x40], xmm0
call rbx
test rax, rax
je 0x7638f0
mov rax, qword [rax + 8]
test rax, rax
je 0x7638f0
cmp qword [rax], 0
je 0x763970
mov rcx, r12
call sym.operator_delete_void_
mov qword [rsp + 0x28], 0
test rsi, rsi
je 0x763963
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rcx, qword [rsp + 0x50]
test al, 1
je 0x763921
mov rdx, qword [rcx]
mov rax, qword [rdx + rax - 1]
call rax
cmp qword [rsp + 0x30], 0
mov r12, qword [rsp + 0x28]
je 0x763939
mov qword [rsp + 0x30], 0
test r12, r12
je 0x763963
mov ecx, dword [0x0086d580]
call rbx
test rax, rax
je 0x76395a
mov rax, qword [rax + 8]
test rax, rax
je 0x76395a
cmp qword [rax], 0
je 0x763988
mov rcx, r12
call sym.operator_delete_void_
nop
add rsp, 0x60
pop rbx
pop rsi
pop r12
ret
movzx edx, byte [r12 + 0x50]
mov byte [r12], dl
mov qword [rax], r12
jmp 0x7638f8
movzx edx, byte [r12 + 0x50]
mov byte [r12], dl
mov qword [rax], r12
jmp 0x763963

Function at 0x7639c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x7639d9
mov qword [rcx + 0x10], 0
mov r12, qword [rbx + 8]
test r12, r12
je 0x763a12
mov ecx, dword [0x0086d580]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x763a02
mov rax, qword [rax + 8]
test rax, rax
je 0x763a02
cmp qword [rax], 0
je 0x763a20
mov rcx, r12
call sym.operator_delete_void_
mov qword [rbx + 8], 0
add rsp, 0x28
pop rbx
pop r12
ret
movzx edx, byte [r12 + 0x50]
mov byte [r12], dl
mov qword [rax], r12
jmp 0x763a0a
Function at 0x7643e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rcx
mov rbx, rdx
mov ecx, dword [0x0086d580]
call rsi
test rax, rax
jne 0x764419
jmp 0x764458
mov rax, qword [rax + 0x10]
test rax, rax
je 0x764458
cmp rdi, qword [rax]
jne 0x764410
cmp qword [rax + 8], 0
je 0x764458
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
add rcx, qword [rbx + 0x10]
test al, 1
jne 0x764448
call rax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rdx, qword [rcx]
mov rax, qword [rdx + rax - 1]
jmp 0x764434
mov qword [rsp + 0x28], 0
mov ecx, dword [0x0086d580]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rbx
call rsi
test rax, rax
je 0x7644b0
mov rax, qword [rax + 8]
test rax, rax
je 0x7644b0
mov r12, qword [rax]
test r12, r12
je 0x7644b0
mov qword [rax], 0
movzx eax, byte [r12]
cmp al, 0x4f
jbe 0x7644a8
mov byte [r12 + 0x50], al
jmp 0x7644c1
mov rcx, r12
call sym.operator_delete_void_
mov ecx, 0x51
call sym.operator_new_unsigned_long_long_
mov byte [rax + 0x50], 0x50
mov r12, rax
lea rax, [sym._ZN5boost4asio6detail18completion_handlerINS_3_bi6bind_tIbNS_4_mfi3mf0IbN10cryptonote10BlockchainEEENS3_5list1INS3_5valueIPS8_]
mov qword [rsp + 0x28], r12
mov qword [r12 + 0x10], 0
mov qword [r12], 0
mov qword [r12 + 8], 0
mov qword [r12 + 0x28], rax
mov qword [r12 + 0x18], 0
mov qword [r12 + 0x20], 0
mov dword [r12 + 0x30], 0
movdqu xmm0, xmmword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x30], r12
movups xmmword [r12 + 0x38], xmm0
mov qword [r12 + 0x48], rax
lock add dword [rdi + 0x30], 1
xor r8d, r8d
xor edx, edx
mov dword [r12 + 0x30], 1
mov r9, r12
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x764436
lea r13, [rdi + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [r12 + 0x20], 0
mov rax, qword [rdi + 0x98]
test rax, rax
je 0x764590
mov qword [rax + 0x20], r12
mov qword [rdi + 0x98], r12
mov eax, 1
xchg dword [rdi + 0x58], eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x764436
mov qword [rdi + 0x98], r12
mov qword [rdi + 0x90], r12
jmp 0x764574

Function at 0x772100
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x77212c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x772da0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x0086eaa0], 0
jne 0x772eaa
mov byte [0x0086eaa0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x772e80
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x772e71
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x00936d01]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x772e6c
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x772e3b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x772f3f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x772ea5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x772ea5

Function at 0x7dda10
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x7dda37
call rbp
cmp dword [rax], 4
jne 0x7dda54
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x7dda30
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x85bc60
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x60
call method.boost::system.generic_category__
call method.boost::system.generic_category__
call method.boost::system.system_category__
call method.boost::system.system_category__
call method.boost::system.system_category__
call method.boost::system.system_category__
movzx eax, byte [0x0086b8c0]
test al, al
je 0x85bceb
lea rcx, [sym.__tcf_3_1]
call dbg.atexit
mov eax, 1
lock xadd dword [0x0086d590], eax
test eax, eax
je 0x85bd55
lea rcx, [0x009cc510]
call fcn.008374e0
lea rcx, [sym.__tcf_4_1]
call dbg.atexit
cmp byte [0x0086b460], 0
je 0x85bd18
cmp byte [0x0086b4d0], 0
je 0x85bd40
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
lea rcx, [0x0086b8c0]
call sym.__cxa_guard_acquire
test eax, eax
je 0x85bc94
lea rcx, [0x0086b8c0]
call sym.__cxa_guard_release
lea rcx, [sym.__tcf_0]
call dbg.atexit
jmp 0x85bc94
mov byte [0x0086b460], 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
je 0x85bd6e
lea rcx, [sym.__tcf_5]
mov dword [0x0086d580], ebx
call dbg.atexit
jmp 0x85bcd6
lea rcx, [sym.__tcf_6_5]
mov byte [0x0086b4d0], 1
call dbg.atexit
jmp 0x85bcdf
xor r8d, r8d
mov edx, 2
lea rcx, [0x0086d590]
call fcn.0048d190
jmp 0x85bcb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call method.boost::system.system_category__
mov rdi, rax
test esi, esi
je 0x85bd2c
lea r12, [rsp + 0x20]
lea rdx, [0x00885d39]
mov rcx, r12
call method.std::runtime_error.runtime_error_char_const_
lea rax, method.boost::system::system_error.system_error__
mov rcx, r12
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
call method.void_boost::throw_exception_boost::system.system_error__boost::system::system_error_const_
mov r13, rax
mov rcx, r12
call method.boost::system::system_error.system_error__
mov rcx, r13
call sym._Unwind_Resume
nop
nop
Function at 0x85f190
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rcx, [0x009f6108]
call fcn.008374e0
lea rcx, [sym.__tcf_0_9]
call dbg.atexit
cmp qword [0x0086e6c0], 0
je 0x85f276
lea rdi, [rsp + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rdi
call rsi
mov r8, qword [0x0086e6c0]
imul rax, qword [rsp + 0x28], 0x3b9aca00
cqo
idiv r8
mov r12, rax
rdtsc
shl rdx, 0x20
mov eax, eax
lea rbp, [0x0086e6c0]
mov rbx, rdx
or rbx, rax
jmp 0x85f228
mov rcx, rdi
call rsi
mov r8, qword [0x0086e6c0]
imul rax, qword [rsp + 0x28], 0x3b9aca00
cqo
idiv r8
sub rax, r12
mov rcx, rax
cmp rax, 0x3b9aca00
ja 0x85f240
test r8, r8
jne 0x85f200
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x85f200
rdtsc
mov eax, eax
shl rdx, 0x20
or rdx, rax
mov eax, 1
sub rdx, rbx
shl rdx, 8
cmp rcx, rdx
ja 0x85f264
mov rax, rdx
xor edx, edx
div rcx
mov qword [0x009f6100], rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [0x0086e6c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x85f1c0

Function at 0x85f420
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Write file on windows

Disassembly:
sub rsp, 0x48
xor r8d, r8d
xor edx, edx
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x85f477
mov rcx, qword [rsp + 0x38]
lea r8, [0x009f6260]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x85f4d5
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x85f4a6
add rsp, 0x48
ret
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x61
mov edx, 1
lea rcx, str.Failed:_CryptAcquireContext_prov__NULL__NULL__PROV_RSA_FULL__CRYPT_VERIFYCONTEXT__CRYPT_SILENT_
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym._exit
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x24
mov edx, 1
lea rcx, str.Failed:_CryptReleaseContext_prov__0_
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym._exit
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2e
mov edx, 1
lea rcx, str.Failed:_CryptGenRandom_prov___DWORD_n__result_
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x861000
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm8
movups xmmword [rsp + 0x80], xmm10
mov ebx, dword [rcx + 0x1c]
mov rdi, rbx
mov rbp, rcx
mov rsi, rdx
mov ecx, 2
mov rdx, rbx
mov qword [rsp + 0x40], 0
lea r13, [rsp + 0x40]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call sym.calloc
mov r12, rax
test rax, rax
je 0x8611c3
mov r8, qword [rsi + 0x70]
mov r9, qword [rsi + 0x78]
mov ecx, 8
add edi, edi
movdqu xmm4, xmmword [rsi]
mov qword [rax], 0
mov eax, 8
movdqu xmm2, xmmword [rsi + 0x10]
mov rdx, qword [rsi + 0x80]
mov word [r12 + 0xa], ax
lea rax, [r12 + rbx]
movdqu xmm6, xmmword [rsi + 0x20]
movdqu xmm0, xmmword [rsi + 0x50]
movups xmmword [r12 + 0x10], xmm4
movdqu xmm8, xmmword [rsi + 0x30]
movdqu xmm10, xmmword [rsi + 0x40]
mov qword [r12 + 0x80], r8
mov r11, qword [rsi + 0x68]
mov r10, qword [rsi + 0x60]
mov qword [r12 + 0x88], r9
mov qword [r12 + 0x90], rdx
mov qword [r12 + 0x70], r10
mov qword [r12 + 0x78], r11
movups xmmword [r12 + 0x20], xmm2
movups xmmword [r12 + 0x30], xmm6
movups xmmword [r12 + 0x40], xmm8
movups xmmword [r12 + 0x50], xmm10
movups xmmword [r12 + 0x60], xmm0
mov word [rax + 0xa], cx
mov qword [rax], 1
movups xmmword [rax + 0x10], xmm4
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x40], xmm8
movups xmmword [rax + 0x50], xmm10
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], r10
mov rcx, qword [rbp]
mov qword [rax + 0x80], r8
mov r8d, edi
mov qword [rax + 0x88], r9
lea r9, [rsp + 0x3c]
mov qword [rax + 0x90], rdx
mov rdx, r12
mov qword [rax + 0x78], r11
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x8611b8
cmp edi, dword [rsp + 0x3c]
mov r13d, 0
mov eax, 0x1c
cmovne r13d, eax
mov rcx, r12
call sym.free
nop
movups xmm6, xmmword [rsp + 0x60]
movups xmm8, xmmword [rsp + 0x70]
mov eax, r13d
movups xmm10, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
jmp 0x861185
mov r13d, 0xc
jmp 0x86118e
Function at 0x8628c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov edx, 0x110
mov rsi, rcx
mov ecx, 1
call sym.calloc
mov rbx, rax
test rax, rax
je 0x862933
mov dword [rax + 0x24], 0x7e
movabs rax, 0x200000002
mov qword [rbx + 0x2c], rax
mov qword [rbx], 0xffffffffffffffff
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x20]
mov dword [rbx + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [rsi], rbx
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
ret
mov eax, 0xc
jmp 0x86292c