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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140016ef0
ja 0x140016e08
test edx, edx
je 0x140016e88
mov eax, dword [0x140151108]
test eax, eax
je 0x140016f70
mov dword [0x140151108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140016df5
mov eax, dword [0x140151108]
test eax, eax
je 0x140016df5
lea r12, [0x140151120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140151100]
test rbx, rbx
je 0x140016e74
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 rsi, rsi
je 0x140016f98
test eax, eax
jne 0x140016f98
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016e48
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140016df5
mov eax, dword [0x140151108]
test eax, eax
jne 0x140016f08
mov eax, dword [0x140151108]
cmp eax, 1
jne 0x140016df5
mov rbx, qword [0x140151100]
test rbx, rbx
je 0x140016ec1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x140016eb0
lea rcx, [0x140151120]
mov qword [0x140151100], 0
mov dword [0x140151108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140016df5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140151120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140151100]
test rbx, rbx
je 0x140016f5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140016f88
test rsi, rsi
je 0x140016f88
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016f38
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140016e92
lea rcx, [0x140151120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x140016deb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016f38
jmp 0x140016f5c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016e48
jmp 0x140016e74

Function at 0x140016fb0
Capabilities:
Parse pe header

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

Function at 0x140016fe0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14001702d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140017024
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001702f
add rax, 0x28
cmp rax, r9
jne 0x140017010
xor eax, eax
ret
Function at 0x140017030
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400170c0
mov rdx, qword [0x140125980]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400170ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400170ae
cmp word [rax + 0x18], 0x20b
jne 0x1400170ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400170c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140017099
add rbx, 0x28
cmp rbx, rdi
je 0x1400170c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140017090
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 0x1400170d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x140125980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400170f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400170f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400170f0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140017145
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001713c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400170f0
add rax, 0x28
cmp rax, r9
jne 0x140017128
xor eax, eax
ret

Function at 0x140017150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140125980]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001716f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140017178
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001716f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140017190
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140125980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400171b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400171b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400171b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140017200
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400171f7
test rcx, rcx
je 0x1400171b0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400171e8
xor eax, eax
ret

Function at 0x140017210
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140125980]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001722f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140017238
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140017250
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140125980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140017270
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140017278
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140017270
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140017270
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]
mov rax, r8
cmp rcx, r8
jb 0x1400172c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400172d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400172b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140125980]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140017304
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140017310
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140017304
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140017304
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x140017304
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14001735c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140017370
add rdx, 0x28
cmp rdx, r10
jne 0x140017348
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140017380
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14001738e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140017365
test r8d, r8d
jg 0x140017378
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400176c0
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 0x1400176f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140017708
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140017e90
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 [0x140124f10]
mov rsi, r8
mov r8d, dword [rax]
mov rdi, rcx
mov rbp, rdx
test r8d, r8d
je 0x140017ec0
mov ecx, dword [0x14011b040]
test ecx, ecx
je 0x140017f40
mov ecx, 0x18
call sym.malloc
xor ecx, ecx
lea r8, [dbg.__gthr_win32_thread_wrapper]
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]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x140017f20
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 sym.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 [0x14011b044], 1
jne 0x140017f80
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140017fb0
mov rdx, qword [sym.free]
mov ecx, eax
mov dword [0x14011b048], eax
call sym.__mingwthr_key_dtor
test eax, eax
jne 0x140017fb8
mov dword [0x14011b040], 1
jmp 0x140017ec0
mov edx, dword [0x14011b040]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14011b040]
test edx, edx
jne 0x140017ec0
nop dword [rax]
xor ecx, ecx
call r12
mov eax, dword [rbx]
test eax, eax
je 0x140017fa0
jmp 0x140017ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017f69
call sym.abort
nop
nop
Function at 0x140018050
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [0x140124f10]
mov r8d, dword [rax]
test r8d, r8d
je 0x140018074
mov ecx, dword [0x14011b040]
test ecx, ecx
je 0x140018130
mov ebx, dword [0x14011b048]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov esi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400180b0
mov rax, qword [rbx + 0x10]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x18
mov rsi, rax
call sym.malloc
mov rbx, rax
mov qword [rax], 0
mov qword [rax + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbx + 0x10]
mov r8, rsi
mov rcx, rsi
mov dword [rsp + 0x30], 2
mov rdx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400181a8
mov ecx, dword [0x14011b048]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001809d
call rdi
jmp 0x14001809d
lock add dword [0x14011b044], 1
jne 0x140018170
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400181a0
mov rdx, qword [sym.free]
mov ecx, eax
mov dword [0x14011b048], eax
call sym.__mingwthr_key_dtor
test eax, eax
jne 0x1400181a8
mov dword [0x14011b040], 1
jmp 0x140018074
mov edx, dword [0x14011b040]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14011b040]
test edx, edx
jne 0x140018074
nop dword [rax]
xor ecx, ecx
call rsi
mov eax, dword [rbx]
test eax, eax
je 0x140018190
jmp 0x140018074
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140018159
call sym.abort
nop
nop
nop
Function at 0x140018660
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
mov dword [rax], 0
test rbx, rbx
je 0x1400187c0
cmp word [rbx], 0
je 0x1400187b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400187d0
test al, 0x10
je 0x1400187b0
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
lea rdi, [0x140124980]
lea rbp, [0x140124984]
call sym._wfullpath
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
mov rbx, rax
test rax, rax
je 0x1400187df
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sym.wcscpy
cmp word [rbx + 0x44c], 0
jne 0x140018778
mov rdx, rbp
mov rcx, r12
call sym.wcscat
lea rdx, [rbx + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
rep stosq qword [rdi], rax
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 0x140018722
mov rcx, r12
call sym.wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x140018722
mov rdx, rdi
mov rcx, r12
call sym.wcscat
jmp 0x140018722
call sym._errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x140018761
call sym._errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x140018761
call sym._errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x140018761
call sym._errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x140018761
Function at 0x140018d80
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
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x140018fb0
test rdx, rdx
js 0x140018fb0
call sym._get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140018fe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x140018fe0
mov ecx, ebp
call sym._telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140018fb0
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018fe0
cmp qword [rsp + 0x68], rsi
jb 0x140018e70
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140018e29
cmp dword [rsp + 0x70], 0xffffffff
jne 0x140018fc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140018fb0
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call sym._lseeki64
cmp rax, 0xffffffffffffffff
je 0x140018fb0
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 0x140018fb0
mov edx, 2
mov ecx, 0x33
call sym.calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sym.calloc
mov r12, rax
test rbx, rbx
je 0x140018fe0
test rax, rax
je 0x140018fe0
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x140018f07
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x140018f98
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
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 0x140018ef0
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 0x140018fd1
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x140018e01
jmp 0x140018fd1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call sym.free
jmp 0x140018f54
mov ecx, 0x16
call sym._set_errno
mov eax, 0xffffffff
jmp 0x140018e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x140018fb0
mov ecx, 0x1b
call sym._set_errno
jmp 0x140018fba
mov ecx, 9
call sym._set_errno
jmp 0x140018fba
Function at 0x140022d90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
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 0x140022dd8
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 [0x140151c80], rax
lea rax, [sym.mingw_rand_s]
jmp 0x140022dbe

Function at 0x140025850
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x14011d400], 0
jne 0x140025956
mov byte [global_terminating], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x14002592c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
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 0x14002591d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14011e1d1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140025918
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x1400258e7
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 0x1400259eb
call dbg.__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 dbg.__cxa_end_catch
jmp 0x140025951
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x140025951
Function at 0x1400b0110
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rcx
mov dword [rsp + 0x30], 0
call dbg.std::_V2::system_category()
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rax
call qword [sym.imp.msvcrt.dll__wmkdir]
mov edx, eax
mov eax, 1
test edx, edx
jne 0x1400b0150
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400b0180
call dbg.std::_V2::generic_category()
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rax
test esi, esi
jne 0x1400b0197
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rbx
call dbg.std::filesystem::status(std::filesystem::__cxx11::path const&, std::error_code&)
cmp al, 2
jne 0x1400b015d
mov esi, dword [rsp + 0x30]
jmp 0x1400b016b
mov ecx, 0x30
lea rdi, [rsp + 0x40]
call dbg.__cxa_allocate_exception
lea rdx, str.cannot_create_directory
mov rcx, rdi
mov rsi, rax
call fcn.1400fe7a0
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call dbg.std::filesystem::__cxx11::filesystem_error::filesystem_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path const&, std::error_code)
mov rcx, rdi
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()
lea r8, [dbg.std::filesystem::__cxx11::filesystem_error::~filesystem_error()]
lea rdx, [0x140126aa0]
mov rcx, rsi
call dbg.__cxa_throw
mov rbx, rax
jmp 0x1400b0204
mov rcx, rsi
call dbg.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400b0220
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 0x1400b0260
call dbg.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 0x1400b0288
call dbg.std::_V2::generic_category()
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call dbg.std::filesystem::status(std::filesystem::__cxx11::path const&, std::error_code&)
cmp al, 2
jne 0x1400b026d
xor eax, eax
jmp 0x1400b027a
Function at 0x1400b02a0
Capabilities:
Create directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, rdx
mov rdi, rcx
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x30], 0
call dbg.std::_V2::system_category()
mov rcx, qword [rbx]
mov rdx, rsi
mov qword [rsp + 0x38], rax
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x1400b0330
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400b0300
mov eax, 1
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
cmp ebx, 0x11
je 0x1400b0350
call dbg.std::_V2::generic_category()
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400b0367
xor eax, eax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
call dbg.std::_V2::generic_category()
mov rbp, rax
call qword [sym.imp.msvcrt.dll__errno]
mov qword [rsp + 0x38], rbp
mov ebx, dword [rax]
mov dword [rsp + 0x30], ebx
jmp 0x1400b031b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call dbg.std::filesystem::status(std::filesystem::__cxx11::path const&, std::error_code&)
cmp al, 2
jne 0x1400b030d
mov ebx, dword [rsp + 0x30]
jmp 0x1400b031b
mov ecx, 0x30
call dbg.__cxa_allocate_exception
lea rdx, str.cannot_create_directory
mov rcx, rsi
mov rbp, rax
call fcn.1400fe7a0
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call dbg.std::filesystem::__cxx11::filesystem_error::filesystem_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path const&, std::error_code)
mov rcx, rsi
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()
lea r8, [dbg.std::filesystem::__cxx11::filesystem_error::~filesystem_error()]
lea rdx, [0x140126aa0]
mov rcx, rbp
call dbg.__cxa_throw
mov rbx, rax
jmp 0x1400b03cf
mov rcx, rbp
call dbg.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
nop

Function at 0x1400b03e0
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rbx, r8
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x1400b0458
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400b0430
call dbg.std::_V2::system_category()
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x1400b0478
call dbg.std::_V2::generic_category()
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call dbg.std::_V2::generic_category()
mov rsi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x1400b044a
mov rdx, rbx
mov rcx, rsi
call dbg.std::filesystem::status(std::filesystem::__cxx11::path const&, std::error_code&)
cmp al, 2
jne 0x1400b043d
jmp 0x1400b0448