joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ff80
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000fff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140148094]
test esi, esi
mov rbx, rcx
jle 0x140010120
mov rax, qword [0x140148098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001003b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400100c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140010020
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140010142
mov rax, qword [0x140148098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140148098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400100be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400100d0
add dword [0x140148094], 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 [0x140148098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400100be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140010048
mov rax, qword [0x140148098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400106b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140148100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401480e0]
test rbx, rbx
je 0x14001070c
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 0x140010703
test rsi, rsi
je 0x140010703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400106e8
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 0x140010920
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140010930
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140010940
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140010958
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140010960
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140010970
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400109bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400109b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400109bf
add rax, 0x28
cmp rax, r9
jne 0x1400109a0
xor eax, eax
ret

Function at 0x1400109c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140010a50
mov rdx, qword [0x140114320]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140010a3e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140010a3e
cmp word [rax + 0x18], 0x20b
jne 0x140010a3e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140010a50
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140010a29
add rbx, 0x28
cmp rbx, rdi
je 0x140010a50
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140010a20
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140114320]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010a80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010a88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010a80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140010add
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 0x140010ad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010a80
add rax, 0x28
cmp rax, r9
jne 0x140010ac0
xor eax, eax
ret

Function at 0x140010ae0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140114320]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140010b40
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140010b48
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140010b40
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140010b90
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140010b87
test rcx, rcx
je 0x140010b40
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140010b78
xor eax, eax
ret

Function at 0x140010ba0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140114320]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010c00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010c08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010c00
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140010c00
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140010c54
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140010c60
add rdx, 0x28
cmp r9, rdx
jne 0x140010c40
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140114320]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140010c92
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140010ca0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010c92
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140010c92
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140010c92
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140010cf5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140010d08
add rdx, 0x28
cmp rdx, r10
jne 0x140010ce0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140010d17
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140010d27
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140010cfe
test ecx, ecx
jg 0x140010d10
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140010ff0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140011020
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp sym.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140011060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140011090
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400110a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140011960
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140113650]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140011998
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140011a00
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140011a10
mov esi, dword [0x140148188]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140011a68
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140011ab0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140011987
mov rcx, rbx
call dbg.emutls_alloc
mov qword [rsi + r12*8 + 8], rax
jmp 0x140011987
call dbg.emutls_alloc
mov qword [rbx + 0x10], rax
jmp 0x140011987
mov r10d, dword [rsi]
test r10d, r10d
je 0x140011b41
mov r9d, dword [global_once]
test r9d, r9d
je 0x140011b69
lea rcx, [0x1401481a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140011b4e
mov eax, dword [rsi]
test eax, eax
je 0x1400119a1
lea rcx, [0x1401481a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400119a1
lea rcx, [r12 + 0x21]
mov edx, 8
call sym.calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140011ba4
mov qword [rax], rdi
mov ecx, dword [0x140148188]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400119db
call r13
jmp 0x1400119db
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
test rax, rax
mov rsi, rax
je 0x140011ba4
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x140011a8b
lea rcx, [0x1401481a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140011b9c
lea rdx, [dbg.emutls_destroy]
mov ecx, eax
mov dword [0x140148188], eax
call sym.__mingwthr_key_dtor
test eax, eax
jne 0x140011ba4
mov dword [global_once], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140011a2c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x1400119a1
mov rax, qword [0x140148180]
lea r12, [rax + 1]
mov qword [0x140148180], r12
mov qword [rbx + 0x10], r12
jmp 0x140011a46
lock add dword [0x140109054], 1
je 0x140011af9
mov r8d, dword [global_once]
lea rdi, [0x140109050]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x140011b37
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140011b90
jmp 0x140011b37
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011b29
call sym.abort
nop
nop word [rax + rax]
Function at 0x140012150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sym._errno
test rbx, rbx
mov dword [rax], 0
je 0x1400122b0
cmp word [rbx], 0
je 0x1400122a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400122c0
test al, 0x10
je 0x1400122a0
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
lea rdi, [0x140113060]
mov rcx, rsi
call sym._wfullpath
lea rbp, [0x140113064]
mov rcx, rsi
call sym.wcslen
mov rcx, rdi
mov rbx, rax
call sym.wcslen
mov rcx, rbp
add rbx, rax
call sym.wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sym.malloc
test rax, rax
mov rbx, rax
je 0x1400122cf
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sym.wcscpy
cmp word [rbx + 0x44c], 0
jne 0x140012268
mov rdx, rbp
mov rcx, r12
call sym.wcscat
lea rcx, [rbx + 0x238]
mov r8d, 0x208
xor edx, edx
mov qword [rbx + 0x440], 0xffffffffffffffff
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
call sym.memset
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x140012212
mov rcx, r12
call sym.wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x140012212
mov rdx, rdi
mov rcx, r12
call sym.wcscat
jmp 0x140012212
call sym._errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x140012251
call sym._errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x140012251
call sym._errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x140012251
call sym._errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x140012251
Function at 0x140012800
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
cmp ecx, 0xffffffff
mov ebp, ecx
mov rsi, rdx
je 0x140012a30
test rdx, rdx
js 0x140012a30
call sym._get_osfhandle
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140012a60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x140012a60
mov ecx, ebp
call sym._telli64
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x48], rax
je 0x140012a30
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012a60
cmp qword [rsp + 0x68], rsi
jb 0x1400128f0
xor r9d, r9d
mov qword [rsp + 0x70], rsi
mov edx, esi
mov rcx, rdi
lea r8, [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400128a9
cmp dword [rsp + 0x70], 0xffffffff
jne 0x140012a44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140012a30
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call sym._lseeki64
cmp rax, 0xffffffffffffffff
je 0x140012a30
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140012a30
mov edx, 2
mov ecx, 0x33
call sym.calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sym.calloc
test rbx, rbx
mov r12, rax
je 0x140012a60
test rax, rax
je 0x140012a60
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r13, rax
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x140012987
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x140012a18
mov r9, qword [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x140012970
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call sym.free
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call sym.free
test r12d, r12d
je 0x140012a51
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x140012881
jmp 0x140012a51
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call sym.free
jmp 0x1400129d4
mov ecx, 0x16
call sym._set_errno
mov eax, 0xffffffff
jmp 0x1400128d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x140012a30
mov ecx, 0x1b
call sym._set_errno
jmp 0x140012a3a
mov ecx, 9
call sym._set_errno
jmp 0x140012a3a
Function at 0x14001b160
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, [0x1401135c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x14001b1a8
mov rcx, rbx
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140148be0], rax
lea rax, [sym.mingw_rand_s]
jmp 0x14001b18e

Function at 0x14001d060
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x14001d0a0
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x14001d0c0
call method.std::_V2.generic_category__
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x14001d08e
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14001d0ad
xor eax, eax
jmp 0x14001d08e

Function at 0x14001e7f0
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 0x14001e81c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14001f2f0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x14010c200], 0
jne 0x14001f3f6
mov byte [0x14010c200], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001f3cc
mov rbx, qword [rax + 8]
lea r9, [rsp + 0x2c]
xor eax, eax
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001f3bd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14010d831]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001f3b8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001f387
mov ecx, 2
call qword [sym.__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 [sym.__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 0x14001f48b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001f3f1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001f3f1

Function at 0x14008ddc0
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x14008de00
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x14008de20
call method.std::_V2.generic_category__
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x14008ddee
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14008de0d
xor eax, eax
jmp 0x14008ddee
Function at 0x140092180
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
je 0x1400921ce
cmp al, 0xff
je 0x1400921e0
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400921f8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140092205
mov eax, dword [rbx]
test eax, eax
jne 0x1400921ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call method.std::_V2.system_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1400921ce
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400921a8
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400922f0
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rcx, rsi
mov rbx, r8
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 0xff
mov rdi, rax
je 0x140092350
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140092343
test al, al
jne 0x140092368
mov rdx, qword [rsi]
mov r8d, 3
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400923b0
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x14009231d
mov rdx, rbx
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rbx]
test edx, edx
jne 0x140092343
cmp dil, 2
je 0x140092398
cmp al, 2
jne 0x14009231d
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140092343
cmp al, 2
je 0x14009231d
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x140092343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1400923e5
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rdi
mov dword [rax], 0xd
jmp 0x1400923ca