joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e30a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00532a40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x45e2ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00467120]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x45e2de
mov edi, 1
lea rsi, [0x00467120]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0048c0f8]
lea rsi, [0x0048be78]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x2fc4d955c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d95da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d95d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d95d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d95ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d95a4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f75248
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f75252
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f7527b
pop rbp
sub rbp, 0x33
sub rbp, 0xf75248
sub rsp, 0x20
jmp 0x140f7529a
mov rax, 0xf75248
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x56b0ba50
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f752b9
jmp 0x140f752d0
sbb cl, bl
mov ecx, 0x506cd9db
push rax
push rax
sbb cl, dl
xchg ecx, eax
pop rax
push rcx
push rax
push rax
sbb byte [rcx - 0x47], dl
sbb byte [rdi + 0x50505890], dl
push rax
sbb byte [rdi + 0x50507892], dl
push rax
sbb byte [rdi - 0x6eaee74e], ah
fcmovnbe st(0), st(1)
pop rsp
push rax
push rax
push rax
sbb byte [rcx - 0x48], dl
add byte [rax], al
sbb al, ch
test byte [rdx + 0x50505079], al
push rax
push rax
sbb cl, ch
and dword [rdi], ebp
popfq
push rax
push rax
push rax
push rax
push rax
sbb byte [rcx - 0x47], dl
sbb dl, ch
invalid
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14003c490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14003c4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14001c350
jmp 0x14000123c
mov rax, qword [0x14003c4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14003c4a0]
mov dword [rax], 1
mov rax, qword [0x14003c4e0]
mov rdx, rax
mov rax, qword [0x14003c4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140040024], 1
mov rax, qword [0x14003c4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14003c4c0]
mov rdx, rax
mov rax, qword [0x14003c4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14003c4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14003c490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14003c3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14003c3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14001b5d8
mov rax, qword [0x14003c520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14003c480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14001add0
mov eax, dword [0x140040004]
lea rdx, [0x140040008]
mov ecx, eax
call fcn.14000147c
call fcn.14001ab67
mov rax, qword [0x14003c410]
mov rax, qword [rax]
mov rdx, qword [0x140040010]
mov qword [rax], rdx
mov rcx, qword [0x140040010]
mov rdx, qword [0x140040008]
mov eax, dword [0x140040004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004001c], eax
mov eax, dword [0x140040020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004001c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140040024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004001c]
add rsp, 0x70
pop rbp
ret
Function at 0x14001ade0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14001c140
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14001bab2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140040168]
test eax, eax
je 0x14001bb4a
lea rax, [0x140040140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140040170]
mov qword [rbp - 8], rax
jmp 0x14001bb2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001bb22
cmp qword [rbp - 0x10], 0
je 0x14001bb22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001bae8
lea rax, [0x140040140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001bb4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001bc50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001bc78
mov eax, 0
jmp 0x14001bcc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001bca1
mov eax, 0
jmp 0x14001bcc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001bcc1
mov eax, 0
jmp 0x14001bcc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001bccc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001bd4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001bd41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001bd41
mov rax, qword [rbp - 8]
jmp 0x14001bd5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001bd14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001734
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rdi, 0xffffffffffffffff
mov rsi, rax
cmp rax, rdi
je 0x140001884
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
xor r12d, r12d
mov ebx, eax
test eax, eax
jne 0x140001788
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001884
btr ebx, 0xf
cmp ebx, 2
jne 0x1400017da
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x1400017b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x1400017da
inc rdi
cmp word [rbp + rdi*2], r12w
jne 0x1400017b1
mov r8, rdi
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140001884
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov qword [rsp + 0x38], r12
mov r9d, edi
mov qword [rsp + 0x30], r12
mov ecx, eax
mov dword [rsp + 0x28], r12d
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], r12
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14d, eax
test eax, eax
je 0x140001884
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140001884
mov qword [rsp + 0x38], r12
mov r9d, edi
mov qword [rsp + 0x30], r12
mov r8, rbp
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140001870
lea r8d, [rax - 1]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140001fb0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, r8
and qword [rax - 0x28], r14
mov r15, rdx
and dword [rax - 0x30], r14d
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
lea r8d, [r14 + 1]
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002058
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000203f
cmp ebx, 5
je 0x14000201b
lea eax, [rbx - 0x20]
cmp eax, 1
ja 0x140002023
mov rcx, rdi
call fcn.140002260
mov r9d, ebx
lea rdx, str.Failed_to_open_file__s_for_read__Error_code___x
mov r8, rdi
mov ecx, 4
call fcn.14000b134
jmp 0x140002180
mov r8, rdi
lea rdx, str.Unable_to_open_file__s_for_read_because_the_file_or_path_does_not_exist
mov ecx, 2
call fcn.14000b134
jmp 0x140002180
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400020a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x14000207f
add eax, 0xffffffe0
cmp eax, 1
ja 0x140002087
mov rcx, rdi
call fcn.140002260
lea rdx, str.Failed_to_get_file_size_for__s__Error_code___x
mov r8, rdi
mov r9d, ebx
mov ecx, 4
call fcn.14000b134
jmp 0x140002177
cmp dword [rsp + 0x7c], r14d
je 0x1400020c6
mov ebx, 0x57
lea rdx, str.File__s_is_too_large_
mov r8, rdi
lea ecx, [rbx - 0x53]
call fcn.14000b134
jmp 0x140002177
mov eax, dword [rsp + 0x78]
xor r9d, r9d
and qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], eax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
jne 0x140002116
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x140002102
add eax, 0xffffffe0
cmp eax, 1
ja 0x14000210a
mov rcx, rdi
call fcn.140002260
lea rdx, str.CreateFileMapping__s__failed__Error_code___x
jmp 0x14000208e
mov eax, dword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbp
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x14000218a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x14000214f
lea ecx, [rax - 0x20]
cmp ecx, 1
ja 0x140002157
mov rcx, rdi
call fcn.140002260
mov r9d, ebx
lea rdx, str.MapViewOfFile__s__failed__Error_code___x
mov r8, rdi
mov ecx, 4
call fcn.14000b134
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000219c
mov eax, dword [rsp + 0x78]
mov dword [r15], eax
mov qword [rbx], rsi
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], r14
mov rbx, qword [rsp + 0x60]
mov rax, r14
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000261c
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rsi
push rdi
sub rsp, 0x20
and qword [r11 + 0x18], 0
lea rax, str.SeDebugPrivilege
mov rsi, rdx
mov qword [r11 + 0x20], rax
mov r8d, ecx
lea r9, [r11 + 0x18]
mov edx, 1
lea rcx, [r11 + 0x20]
call fcn.14000b46c
mov edi, eax
test eax, eax
je 0x140002665
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.14000b2a0
mov edi, eax
cmp qword [rsp + 0x40], 0
je 0x140002683
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140002c20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, rcx
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x140002c68
lea ecx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140002d09
mov r8d, 0x104
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x140002cf5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140002ca8
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140002cf5
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140002cdb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x140002cf5
mov rbx, rbp
jmp 0x140002cf5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140002cdf
dec eax
cmp word [rbx + rax*2], 0x5c
jne 0x140002cf5
mov word [rbx + rax*2], bp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002d28
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x28], 0
xor r9d, r9d
mov eax, ecx
mov rcx, qword [0x140036080]
mov qword [r11 + 0x20], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x18]
mov dword [r11 - 0x38], r8d
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
add rsp, 0x68
ret
Function at 0x1400047b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r12d, r8d
mov r14, rdx
mov rsi, rcx
test rcx, rcx
je 0x14000488f
test rdx, rdx
je 0x14000488f
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000488f
test al, 0x50
jne 0x14000488f
lea edx, [rbx + 0x5c]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14000481c
add rax, 2
jmp 0x14000481f
mov rax, rsi
lea rdx, str.bootmgr
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov r15d, ebx
mov edi, 1
test eax, eax
mov rcx, r14
mov ebp, ebx
cmove r15d, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004852
test al, 0x50
cmove ebp, edi
mov edx, r15d
mov rcx, rsi
call fcn.14000c000
test rax, rax
jne 0x14000486a
test ebp, ebp
cmovne edi, r12d
jmp 0x14000488d
mov rsi, qword [0x1400367f8]
mov edx, r15d
cmp rax, rsi
mov rcx, r14
cmova rsi, rax
call fcn.14000c000
test rax, rax
je 0x14000488d
cmp rsi, rax
jb 0x14000488f
mov ebx, edi
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140004c9c
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1400366d0]
test eax, eax
jne 0x140004ce5
xor r9d, r9d
lea r8d, [rax + 0x20]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x5a]
lea ebx, [rax + 1]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140004ce3
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001fbe0
add rsp, 0x50
pop rbx
ret

Function at 0x140004d00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, 0x80
mov edi, edx
mov rbx, rcx
cmp edx, esi
je 0x140004d44
test edx, 0xffffff78
je 0x140004d44
xor esi, esi
mov r9, rcx
mov r8d, edx
lea rdx, str.Invalid_attributes___x__specified_for__s_file_
lea ecx, [rsi + 4]
call fcn.14000b134
lea ecx, [rsi + 0x57]
jmp 0x140004df2
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp eax, 0xffffffff
jne 0x140004d98
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 5
je 0x140004d68
add eax, 0xffffffe0
cmp eax, 1
ja 0x140004d70
mov rcx, rbx
call fcn.140002260
mov ecx, 2
mov r8, rbx
cmp edi, ecx
je 0x140004d8a
lea rdx, str.GetFileAttributes__s__failed__Last_Error___x.
mov ecx, 3
jmp 0x140004de8
lea rdx, str.GetFileAttributes__s__failed:_File_not_found.
call fcn.14000b134
jmp 0x140004df0
and edx, 0x3120
mov rcx, rbx
or edx, edi
mov eax, edx
btr edx, 7
or eax, esi
cmp eax, esi
cmove edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test eax, eax
jne 0x140004df8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 5
je 0x140004dd1
lea ecx, [rax - 0x20]
cmp ecx, 1
ja 0x140004dd9
mov rcx, rbx
call fcn.140002260
mov r8, rbx
lea rdx, str.SetFileAttributes__s__failed__Last_Error___x.
mov ecx, 4
mov r9d, edi
call fcn.14000b134
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140008fec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ebx, 0x43
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
test eax, eax
jne 0x14000902b
lea rdx, str.Failed_to_enumerate_logical_drives
lea ecx, [rbx - 0x3f]
call fcn.14000b134
jmp 0x14000913a
mov ecx, 2
lea r8d, [rcx - 1]
mov eax, edx
shr eax, cl
test r8b, al
je 0x140009053
add ecx, r8d
add bx, r8w
cmp ecx, 0x1a
jl 0x140009034
mov eax, 0xc0000225
jmp 0x14000915a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x14000908c
lea rdx, str.Failed_to_allocate_memory_for_mount_location
lea ecx, [rax + 4]
call fcn.14000b134
mov eax, 0xc000009a
jmp 0x14000915a
movzx ebx, bx
lea rdx, str.Found_potential_mount_location_at__C
mov r8d, ebx
mov ecx, 2
call fcn.14000b134
mov r9d, ebx
lea r8, str._C:_
mov edx, 3
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_swprintf_s]
mov r8, rbp
mov qword [rdi], rbp
lea rdx, str.Attempting_to_mount_at_letter__ws
mov ecx, 2
call fcn.14000b134
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x1400090fd
mov r9, qword [rdi]
lea rdx, str.Mounted__ws_at__ws
mov r8, rsi
mov ecx, 2
call fcn.14000b134
xor eax, eax
jmp 0x14000915a
mov rbx, qword [rdi]
test rbx, rbx
je 0x140009119
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
lea rdx, str.Attempt_to_mount_volume__ws_failed_Error__u
mov r9d, eax
mov ecx, 4
call fcn.14000b134
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14000914c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000915a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0xc0070000
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret