joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f63ec60
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x6f63ecb5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x6f63eca0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x6f63ed30
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call dbg.__pformat_emit_float
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call dbg.__pformat_putc
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.__pformat_int.isra.0
mov eax, dword [0x6f6f0170]
cmp eax, 0xffffffff
je 0x6f63ed5c
test eax, eax
je 0x6f63ed4c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x6f63ecbd
call dbg._get_output_format
test al, 1
mov edx, 3
jne 0x6f63ed3f
jmp 0x6f63ed44
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sym.getenv
test rax, rax
je 0x6f63ed84
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x6f6f0170], eax
jmp 0x6f63ed3b
xor eax, eax
jmp 0x6f63ed79

Function at 0x6f645510
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x6f6f01e8], eax
je 0x6f64552a
add rsp, 0x28
ret
call sym.abort
nop

Function at 0x6f645960
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x6f645983
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x6f64598e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
lea rbx, [rsp + 0x20]
xor eax, eax
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x6f645a17
mov eax, 0x28
jmp 0x6f6459ea
add rax, 1
cmp rax, 0x6b
je 0x6f645a09
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x6f6459e0
cmp eax, 0x6a
je 0x6f645a09
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x27
jmp 0x6f6459f7
Function at 0x6f645ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x6f78c6c0], 1
je 0x6f645ac6
call sym._pthread_once_raw.part.3.constprop.9
mov ecx, dword [0x6f6f01e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x6f645af0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x6f645ada
test rax, rax
je 0x6f645ada
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], 0xffffffffffffffff
call sym.replace_spin_keys.constprop.8
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x6f645bd9
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov ecx, dword [0x6f6f01e8]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6f645bd9
mov rbx, rsi
jmp 0x6f645ada
call sym.abort
nop
nop
Function at 0x6f645d40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x6f645d60
test r8, r8
je 0x6f645e10
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x6f645ed0
cmp edx, 3
jne 0x6f645d53
mov ecx, dword [0x6f6f01e8]
cmp ecx, 0xffffffff
je 0x6f645d53
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x6f645d53
test byte [rax + 0x40], 0x30
je 0x6f645e40
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
jne 0x6f645ef0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x6f645dce
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f645dbe
call rsi
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.replace_spin_keys.constprop.8
cmp qword [rbx + 0x1d0], 0
je 0x6f645f10
mov ecx, dword [0x6f6f01e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [0x6f78c680]
test rcx, rcx
je 0x6f645d53
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x6f78c680], 0
jmp 0x6f645d53
mov eax, dword [rax + 0xbc]
mov rcx, qword [rbx + 0x30]
test eax, eax
jne 0x6f645ea0
test rcx, rcx
je 0x6f645e59
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1d8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xbc], 1
test rcx, rcx
jne 0x6f645f00
test byte [rbx + 0x44], 4
je 0x6f645eb3
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x6f645dc6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6f645dc6
test rcx, rcx
je 0x6f645eab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.replace_spin_keys.constprop.8
jmp 0x6f645d53
lea rdx, [dbg.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x6f78c680], rax
jmp 0x6f645d53
call sym._pthread_cleanup_dest.part.6
jmp 0x6f645da1
call sym._pthread_cleanup_dest.part.6
jmp 0x6f645e7b
mov rcx, rbx
call sym.push_pthread_mem.part.1
jmp 0x6f645dee
Function at 0x6f645f20
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x28
mov qword [rbp + 0x28], rcx
lea rcx, [0x6f6f01d8]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea rbx, [rax + 0x38]
mov rcx, rbx
call dbg.pthread_mutex_lock
cmp dword [0x6f78c6c0], 1
je 0x6f645f59
call sym._pthread_once_raw.part.3.constprop.9
mov rdx, qword [rbp + 0x28]
mov ecx, dword [0x6f6f01e8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rsi, qword [rbp + 0x28]
mov rcx, rbx
mov dword [rsi + 0x70], eax
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x6f646031
lea rcx, [0x6f6f01d8]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea rbx, [rax + 0x38]
mov rcx, rbx
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x30]
mov rsi, qword [rax + 8]
test rcx, rcx
je 0x6f645fcc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x6f64608e
mov rcx, rbx
call dbg.pthread_mutex_unlock
mov rcx, rbx
call dbg.pthread_mutex_destroy
mov rax, qword [rbp + 0x28]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
lea rdi, [0x6f6f01d8]
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x6f64601d
xor ecx, ecx
call rbx
mov rcx, rdi
call dbg.pthread_mutex_unlock
test eax, eax
je 0x6f646019
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
lea rcx, [0x6f6f01d8]
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6f646087
mov rdi, qword [rbp + 0x28]
mov rcx, qword [rdi + 8]
call rax
mov rbx, rax
nop
nop
lea rcx, [0x6f6f01d8]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x6f645fa5
call sym._pthread_cleanup_dest.part.6
jmp 0x6f645fa5
mov ebx, pe_nt_image_headers64
jmp 0x6f646057
mov rax, qword [rbp + 0x28]
mov rcx, rbx
mov dword [rax], 0xdeadbeef
call dbg.pthread_mutex_unlock
mov rcx, rbx
call dbg.pthread_mutex_destroy
cmp qword [rbp + 0x28], 0
je 0x6f6460c5
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x1d0], 0
jne 0x6f6460c5
mov rcx, rax
call sym.push_pthread_mem.part.1
xor edx, edx
mov ecx, dword [0x6f6f01e8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x6f646009
Function at 0x6f646c60
Capabilities:
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call dbg.__pth_gpointer_locked
test rax, rax
mov rbx, rax
je 0x6f646c89
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x6f646ca0
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x6f646c89
lea rbp, [rbx + 0x38]
mov rcx, rbp
call dbg.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x6f646e30
mov rax, qword [rax + 0x1d8]
cmp rsi, rax
je 0x6f646d37
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
movzx eax, byte [rbx + 0x40]
je 0x6f646d90
test al, 3
jne 0x6f646d1e
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x6f78c6c8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f646d0f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
jmp 0x6f646c8e
mov rcx, rbp
call dbg.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x6f646c89
xor eax, eax
jmp 0x6f646c8e
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x6f646d1e
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x6f78c6c8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f646d5f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x6f646d0f
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop dword [rax]
test al, 0xc
jne 0x6f646d1e
test al, 0xf
jne 0x6f646c89
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x6f646d0f
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [dbg._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x6f78c6c8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f646e16
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x6f646d0f
xor eax, eax
jmp 0x6f646cd3
Function at 0x6f646e40
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, [0x6f6f01d8]
mov esi, edx
call dbg.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x6f646e6d
cmp rbx, qword [rax + 0x1d8]
je 0x6f646e85
lea rcx, [0x6f6f01d8]
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop rsi
ret
test byte [rax + 0x40], 0xc
jne 0x6f646e6d
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x6f646e6d
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x6f646e6d
lea rcx, [0x6f6f01d8]
call dbg.pthread_mutex_unlock
test esi, esi
je 0x6f646ece
sub esi, 2
mov eax, 0x16
cmp esi, 0x15
ja 0x6f646e7e
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.pthread_cancel
xor eax, eax
jmp 0x6f646e7e
Function at 0x6f647130
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, rcx
mov rbp, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x6f647341
test r13, r13
je 0x6f64716b
mov rax, qword [rax + 0x1d8]
mov qword [r13], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x6f6471e0
cmp esi, 1
je 0x6f6471d1
mov ecx, 0x14
call r14
cmp esi, 5
je 0x6f6471e0
add esi, 1
jmp 0x6f6471a2
xor ecx, ecx
call r12
jmp 0x6f6471cc
lea rdi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rdi
call sym.replace_spin_keys.constprop.8
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x6f647322
test rbp, rbp
je 0x6f647390
mov eax, dword [rbp]
mov rsi, qword [rbp + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x6f647370
mov eax, dword [rbp + 0x18]
mov edx, esi
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [dbg.pthread_create_wrapper]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x6f6472f2
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x6f6472a2
cmp eax, 0xffffffff
mov edx, 0xfffffffe
jl 0x6f6472a2
cmp eax, 0xe
mov edx, 0xf
jg 0x6f6472a2
cmp eax, 2
mov edx, 2
cmovle edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x6f647355
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f647301
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call dbg.pthread_mutex_destroy
mov rcx, rdi
call sym.replace_spin_keys.constprop.8
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r13, r13
je 0x6f64732f
mov qword [r13], 0
cmp qword [rbx + 0x1d0], 0
jne 0x6f647341
mov rcx, rbx
call sym.push_pthread_mem.part.1
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x6f6472d9
call sym.__pthread_self_lite
mov eax, dword [rax + 0xc0]
mov edx, esi
mov dword [rbx + 0xc0], eax
jmp 0x6f64723f
xor edx, edx
jmp 0x6f64723f
Function at 0x6f654d90
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
test rax, rax
jle 0x6f654dc1
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x6f6559a0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x6f6f3350], 0
jne 0x6f655a65
mov byte [0x6f6f3350], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x6f655a9e
mov rbx, qword [rax + 8]
cmp byte [rbx], 0x2a
je 0x6f655a8b
lea r9, [rsp + 0x2c]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x2c], 0xffffffff
call sym.__cxa_demangle
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x6f655a55
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rcx, [0x6f74f5a1]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x6f655a94
call sym.__cxa_rethrow
call rsi
lea rdx, [rax + 0x60]
mov rcx, rdi
call sym.fputs
jmp 0x6f655a2c
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
add rbx, 1
jmp 0x6f6559d6
mov rcx, rdi
call sym.free
jmp 0x6f655a50
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x6f655b20
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rbx, rax
call rsi
lea r9, [rax + 0x60]
lea rcx, str.__what__:
mov r8d, 0xb
mov edx, 1
call sym.fwrite
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rdx, [rax + 0x60]
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x6f655abf
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x6f655abf

Function at 0x6f6a7be0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x6f6a7c08
call r12
cmp dword [rax], 4
jne 0x6f6a7c26
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x6f6a7c00
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x6f6b9300
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
lea rdx, str.mt19937
mov rbx, rcx
mov rcx, rsi
call method.std::string.compare_char_const__const
test eax, eax
mov ecx, 0x1571
jne 0x6f6b9365
mov dword [rbx], ecx
mov edx, 1
jmp 0x6f6b9334
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x6f6b9330
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sym.strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x6f6b9389
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x6f6b9324
lea rcx, str.random_device::random_device_const_std::string_
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x18000b680
Capabilities:
Read file on windows

Disassembly:
mov r8d, SHSetInstanceExplorer
jmp fcn.18004ac60
Function at 0x180011a40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx ebx, byte [rsp + 0x70]
lea r14d, [rcx + 0xe0]
mov r12, r8
mov rbp, rdx
mov edi, ecx
cmp ecx, r14d
jae 0x180011b51
mov rsi, qword [rsp + 0x88]
lea rdx, [0x180000000]
mov r15, qword [rsp + 0x88]
xor r13d, r13d
nop dword [rax + rax]
lea eax, [rdi - 0xa2]
cmp eax, 0x5c
ja case.0x180011ab1.170
movzx eax, byte [rdx + rax + 0x11bf8]
mov ecx, dword [rdx + rax*4 + 0x11bd4]
add rcx, rdx
jmp rcx
mov eax, reloc.SHELL32.dll_PathMakeUniqueName
nop dword [rax + rax]
cmp eax, 0x2f
je 0x180011bd0
add eax, 0x758
cmp eax, 0x758
jbe 0x180011ac0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x40], r13d
jmp case.0x180011ab1.170
mov eax, 1
mov rsi, rbp
xchg dword [rbp + 0x120], eax
jmp case.0x180011ab1.170
mov rax, r15
xchg qword [0x1800a2160], rax
jmp case.0x180011ab1.170
mov edi, 0xec
mov eax, edi
sub eax, 0xec
je 0x180011b20
cmp eax, 1
jne 0x180011b2d
lea ecx, [rax + 9]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180011b2d
xor eax, eax
lock cmpxchg dword [rsi + 0x120], r13d
je 0x180011b39
inc edi
cmp edi, 0xee
jb 0x180011b07
jmp case.0x180011ab1.165
mov edi, 0xc2
lea rdx, [0x180000000]
add edi, 0x1c
cmp edi, r14d
jb 0x180011a90
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x28], r13
lea r8, [0x18002ce20]
mov r9, rbp
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
jne 0x180011b3e
mov ecx, 0x125
mov eax, ecx
sub eax, 0x124
je 0x180011b51
cmp eax, 1
jne 0x180011ba4
xor bl, bl
dec ecx
cmp ecx, 0x123
ja 0x180011b94
jmp 0x180011b3e
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
jmp case.0x180011ab1.170
mov qword [0x1800a2158], rbp
mov qword [rbp + 0x80], r12
jmp case.0x180011ab1.170
mov al, 1
jmp 0x180011b54
Function at 0x18004ab90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, qword [rsp + 0x50]
lea esi, [rdx + 0x1d4]
mov edi, edx
mov r14, rcx
cmp edx, esi
jae 0x18004ac3c
mov rdx, qword [rsp + 0x50]
xor ebp, ebp
mov eax, edi
sub eax, 0x95
je 0x18004ac32
sub eax, 0x4e
je 0x18004ac25
sub eax, 0x4e
je 0x18004ac02
sub eax, 0x4e
je 0x18004abe0
cmp eax, 0x4e
je 0x18004ac3c
jmp 0x18004ac35
movzx eax, byte [rsp + 0x49]
lea rbx, [rdx + rdx*2]
movzx ecx, byte [rsp + 0x48]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4a]
shl ecx, 8
or ecx, eax
mov dword [r14], ecx
jmp 0x18004ac35
mov edx, 3
mov dword [r14], ebp
mov r9, qword [0x1800a21d0]
lea rcx, [rsp + 0x48]
lea r8d, [rdx - 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdx, rax
jmp 0x18004ac35
xor eax, eax
mov word [rsp + 0x48], ax
mov byte [rsp + 0x4a], al
jmp 0x18004ac35
mov rdx, rbp
add edi, 0x4e
cmp edi, esi
jb 0x18004abc1
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180053900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea edi, [rdx - 3]
mov ebx, edx
mov rsi, rcx
cmp edx, edi
jbe 0x180053957
nop dword [rax + rax]
mov eax, ebx
sub eax, 0x8d
je 0x180053944
cmp eax, 2
jne 0x180053951
mov eax, 0x55
cmp eax, 0x55
je 0x18005396c
add eax, 0x40
cmp eax, 0x95
jb 0x180053933
jmp 0x180053951
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 0x47]
call fcn.18007ec60
dec ebx
cmp ebx, edi
ja 0x180053920
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [0x1800a21d0]
mov edx, 1
mov r8d, edx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]