joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062820
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800abe68], eax
je 0x18006283b
mov eax, 0x10dd
jmp 0x180062960
mov rax, qword [0x1800abe80]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800628e5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800628b0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800628b0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180061470
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180064c44
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180062847
mov qword [0x1800abe80], 0
call fcn.180061ed0
mov rax, qword [0x1800abe78]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180062949
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180064c44
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180062901
mov qword [0x1800abe78], 0
mov dword [0x1800abe68], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180062e90
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800abe6c], 0
je 0x180062ead
mov eax, dword [0x1800abe6c]
jmp 0x180062f73
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180062ec0
xor eax, eax
jmp 0x180062f73
mov ecx, 0x10
call fcn.180064890
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180062f2e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180062f13
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180064c44
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800abe6c], eax
mov qword [0x1800abe70], 0
mov eax, dword [rsp + 0x20]
jmp 0x180062f73
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180062f48
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180062ee9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800abe78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800abe78], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180064430
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18006446a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18006446f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800644b8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800689f0]
cmp byte [rcx + rax], 0
je 0x1800644b8
dec r8
sub rdx, 1
jne 0x18006449e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000b2b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140015990
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000b320
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140825094]
test esi, esi
mov rbx, rcx
jle 0x14000b450
mov rax, qword [0x140825098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b36b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b3f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b350
mov rcx, rbx
call fcn.14000bd90
test rax, rax
mov rdi, rax
je 0x14000b472
mov rax, qword [0x140825098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bed0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140825098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b457
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b3ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b400
add dword [0x140825094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140825098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b3ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b2b0
nop dword [rax]
xor esi, esi
jmp 0x14000b378
mov rax, qword [0x140825098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b2b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000b2b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000b9e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140825100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1408250e0]
test rbx, rbx
je 0x14000ba3c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000ba33
test rsi, rsi
je 0x14000ba33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000bc50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bc88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bc90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000bc60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bc88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bc90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000bc70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bc88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bc90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000bd90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1407fed30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bdb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bdb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bdb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000be0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000be04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bdb0
add rax, 0x28
cmp rax, r9
jne 0x14000bdf0
xor eax, eax
ret

Function at 0x14000be10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1407fed30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000be2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000bed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1407fed30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000beef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bef8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14000cb40
Capabilities:
Allocate thread local storage
Create thread
Resume thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [str._P_f_]
mov rsi, r8
mov r8d, dword [rax]
mov rdi, rcx
mov rbp, rdx
test r8d, r8d
je 0x14000cb70
mov ecx, dword [0x1400c5030]
test ecx, ecx
je 0x14000cbf0
mov ecx, 0x18
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea r8, [0x14000cb00]
xor ecx, ecx
xor edx, edx
mov qword [rax], rbp
mov rbx, rax
mov r9, rax
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rcx, rax
mov qword [rbx + 0x10], rax
je 0x14000cbd0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbx + 0x10]
mov qword [rdi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
lock add dword [0x1400c5034], 1
jne 0x14000cc30
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000cc60
mov rdx, qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, eax
mov dword [0x1400c5038], eax
call fcn.140015f00
test eax, eax
jne 0x14000cc68
mov dword [0x1400c5030], 1
jmp 0x14000cb70
mov edx, dword [0x1400c5030]
lea rbx, [0x1400c5030]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
test edx, edx
jne 0x14000cb70
nop dword [rax]
xor ecx, ecx
call r12
mov eax, dword [rbx]
test eax, eax
je 0x14000cc50
jmp 0x14000cb70
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000cc19
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
Function at 0x140016120
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140027cc0
mov rdx, rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
call rax
test eax, eax
sete al
test al, al
je 0x1400161f3
lea rax, str.Error:_Could_not_start_process.
mov rdx, rax
mov rax, qword [0x1407fe760]
mov rcx, rax
call fcn.1400bf7d0
mov rcx, rax
mov rax, qword [0x1407fe740]
mov rdx, rax
call fcn.14008d000
jmp 0x140016232
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe8
pop rdi
pop rbp
ret

Function at 0x140016240
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.140027cc0
mov rcx, rax
lea rax, [0x1400c9002]
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400162bf
lea rax, [0x1400c9008]
mov rdx, rax
mov rax, qword [0x1407fe760]
mov rcx, rax
call fcn.1400bf7d0
mov rcx, rax
mov rax, qword [rbp + 0x28]
mov rdx, rax
call fcn.1400bfb80
mov rcx, rax
mov rax, qword [0x1407fe740]
mov rdx, rax
call fcn.14008d000
jmp 0x14001638c
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.140015f20
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140026f20
test al, al
je 0x14001631d
lea rax, str.Error:_Invalid_hexadecimal_input.
mov rdx, rax
mov rax, qword [0x1407fe700]
mov rcx, rax
call fcn.1400bf4c0
mov rcx, rax
mov rax, qword [0x1407fe730]
mov rdx, rax
call fcn.140072900
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov ebx, 0
jmp 0x140016360
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140026ee0
mov rbx, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.14009fde0
mov rdx, qword [rbp - 8]
mov r9, rdx
mov r8, rbx
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov ebx, 1
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400a2ee0
cmp ebx, 1
jmp 0x14001638c
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x140016530
Capabilities:
Enumerate system firmware tables

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r8d, 0
mov edx, 0
mov ecx, 0x41435049
mov rax, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rax
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x20], 0
cmp dword [rbp - 0x14], 0
jne 0x14001656c
mov eax, 1
jmp 0x1400166f3
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14001658c
mov eax, 1
jmp 0x1400166f3
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x20]
mov r8d, edx
mov rdx, rax
mov ecx, 0x41435049
mov rax, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x1400165c6
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 1
jmp 0x1400166f3
mov byte [rbp - 1], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x10], 0
jmp 0x14001669c
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2f], 0
mov dword [rbp - 0x2c], 0
mov rax, qword [rbp - 0x28]
lea rdx, [rax + 0xa]
lea rax, [rbp - 0x2f]
mov r8d, 6
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rbp - 0x2f]
mov r8d, 4
lea rdx, str.WAET
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x140016648
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0
jmp 0x1400166f3
movzx eax, byte [rbp - 1]
test eax, eax
jne 0x140016671
lea rax, [rbp - 0x2f]
mov r8d, 4
lea rdx, str.HPET
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x140016671
mov byte [rbp - 1], 1
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x10]
mov eax, eax
test rax, rax
jne 0x140016693
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0
jmp 0x1400166f3
add dword [rbp - 8], 1
add qword [rbp - 0x10], 1
mov eax, dword [rbp - 0x14]
shr eax, 2
mov eax, eax
cmp qword [rbp - 0x10], rax
jb 0x1400165de
cmp dword [rbp - 8], 7
jg 0x1400166c7
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0
jmp 0x1400166f3
movzx eax, byte [rbp - 1]
test eax, eax
jne 0x1400166e2
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0
jmp 0x1400166f3
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x1400797e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x140079828
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400797fa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14009dfd0
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
movdqu xmm0, xmmword [rdx]
pxor xmm1, xmm1
mov rdi, qword [rdx]
movups xmmword [rdx], xmm1
movq rsi, xmm0
mov rcx, qword [rsi + 0x10]
movups xmmword [rdi + 8], xmm0
test rcx, rcx
je 0x14009de7c
mov rdx, qword [rcx + 8]
lea r8, [rcx + 8]
movabs rax, 0x100000001
cmp rdx, rax
je 0x14009dea0
mov rax, qword [str._P_f_]
mov eax, dword [rax]
test eax, eax
jne 0x14009ded0
mov eax, dword [rcx + 8]
lea edx, [rax - 1]
mov dword [rcx + 8], edx
cmp eax, 1
je 0x14009dee0
lea rdx, [0x1400c3a30]
mov r8, rsi
mov rcx, rbx
call fcn.14000cb40
test eax, eax
jne 0x14009df09
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rcx]
lea r8, [0x140092b40]
mov qword [rcx + 8], 0
mov rdx, qword [rax + 0x10]
cmp rdx, r8
jne 0x14009def8
mov rdx, qword [rax + 0x18]
lea r8, [0x140095130]
cmp rdx, r8
jne 0x14009def0
call qword [rax + 8]
jmp 0x14009de7c
mov eax, 0xffffffff
lock xadd dword [r8], eax
jmp 0x14009de77
call fcn.140095200
jmp 0x14009de7c
call rdx
jmp 0x14009de7c
mov qword [rsp + 0x28], rcx
call rdx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
jmp 0x14009debb
mov rcx, qword [rsi + 0x10]
pxor xmm0, xmm0
movups xmmword [rdi + 8], xmm0
test rcx, rcx
je 0x14009df27
mov dword [rsp + 0x28], eax
call fcn.140095140
mov eax, dword [rsp + 0x28]
mov ecx, eax
call fcn.1400c4db0
nop
nop
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
mov rax, qword [str._P_f_]
mov eax, dword [rax]
test eax, eax
je 0x14009df6e
mov r8, qword [rdx]
lea rdx, [0x1400c39f0]
call fcn.14000cb40
test eax, eax
jne 0x14009df67
mov qword [rbx], 0
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.1400c4db0
mov ecx, 0x20
call fcn.1400c2ef0
mov rbx, rax
call fcn.140099c80
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], 1
lea r8, str.Enable_multithreading_to_use_std::thread
mov qword [rsp + 0x28], rax
call fcn.14007aa40
lea r8, [fcn.14007b2c0]
mov rcx, rbx
lea rdx, [0x140800ca0]
call fcn.1400c3750
mov rsi, rax
mov rcx, rbx
call fcn.1400c31e0
mov rcx, rsi
call fcn.14000c870
nop
nop
nop
nop
nop
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor edx, edx
test eax, eax
cmovs eax, edx
add rsp, 0x58
ret

Function at 0x1400c3230
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c80a0]
jmp 0x14000cf50
Function at 0x1400c3240
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c80a0]
jmp 0x14000cf50
Function at 0x140003210
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x290
movdqa xmmword [rsp + 0x2f0], xmm6
movdqa xmmword [rsp + 0x300], xmm7
movdqa xmmword [rsp + 0x310], xmm8
movdqa xmmword [rsp + 0x320], xmm9
movdqa xmmword [rsp + 0x330], xmm10
movdqa xmmword [rsp + 0x340], xmm11
movdqa xmmword [rsp + 0x350], xmm12
movdqa xmmword [rsp + 0x360], xmm13
movdqa xmmword [rsp + 0x370], xmm14
movdqa xmmword [rsp + 0x380], xmm15
mov eax, dword [0x1401b4578]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x290]
mov qword [rdx + 8], r8
call fcn.1400afc90
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x1401b4578]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x1400033a0
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x1400033bc
cmp rcx, r8
jl 0x1400033af
mov qword [rdx + 0x80], rcx
test dword [0x1401abcf0], 1
je 0x1400033eb
cmp byte [rsp + 0xd0], 0
je 0x1400033eb
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x140002f10
mov rsp, r8
jmp rax