joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013bb10
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 2
lea rax, [0x1401eac88]
mov qword [rsp + 0x28], rax
movzx esi, dl
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov r8d, 1
movdqa xmmword [rsp + 0x20], xmm0
mov rdi, rcx
call fcn.14018eef0
test al, al
je 0x14013bb7c
lea rcx, [rsp + 0x50]
call fcn.140154350
mov r8d, 1
mov rcx, rdi
movzx edx, word [rax]
call fcn.140186230
cmp eax, 3
jle 0x14013bd2f
mov rbx, qword [rdi]
cmp dword [rbx + 4], 2
jne 0x14013bbbd
mov rax, qword [rbx + 0x10]
test rax, rax
js 0x14013bbad
cmp rax, 0x18
jae 0x14013bbad
mov r8d, 0x3c
lea rdx, str.C:ciqt_main_1660099987651workqtqtbaseincludeQtCore.._.._src_corelib_tools_qarraydata.h
lea rcx, str.size__0__offset___0__size_t_offset____sizeof_QArrayData_
call fcn.140160ea0
mov rax, qword [rbx + 0x10]
cmp word [rax + rbx + 2], 0x3a
je 0x14013bd2f
test sil, sil
je 0x14013bc29
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14015d560
lea rcx, [rsp + 0x50]
call fcn.140190810
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x50]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14013bc05
cmp eax, 0xffffffff
je 0x14013bc13
sub eax, 1
mov dword [rcx], eax
jne 0x14013bc13
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
test bl, bl
je 0x14013bc29
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.140154350
mov r9d, 1
mov rcx, rdi
movzx edx, word [rax]
lea r8d, [r9 - 2]
call fcn.1401885a0
cmp eax, 1
jl 0x14013bd2f
mov r8d, eax
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1401887f0
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.14013bb10
test al, al
je 0x14013bceb
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14015d560
lea rcx, [rsp + 0x50]
call fcn.140190810
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x50]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14013bcb4
cmp eax, 0xffffffff
je 0x14013bcc2
sub eax, 1
mov dword [rcx], eax
jne 0x14013bcc2
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
test bl, bl
je 0x14013bcca
mov bl, 1
jmp 0x14013bced
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x50], 0
mov rcx, rdi
call fcn.14013daf0
test al, al
je 0x14013bceb
cmp byte [rsp + 0x50], 0
je 0x14013bceb
mov bl, 1
jmp 0x14013bced
xor bl, bl
mov rcx, qword [rsp + 0x58]
mov r9d, dword [rcx]
test r9d, r9d
je 0x14013bd0e
cmp r9d, 0xffffffff
je 0x14013bd1c
sub r9d, 1
mov dword [rcx], r9d
jne 0x14013bd1c
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14013daf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1402ad418]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [rcx]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov rdi, rdx
cmp rcx, rax
jne 0x14013db42
mov r8d, 0x446
lea rdx, str.C:ciqt_main_1660099987651workqtqtbaseincludeQtCore.._.._src_corelib_text_qstring.h
lea rcx, str.other___this
call fcn.140160ea0
mov rbx, qword [rsp + 0x20]
mov ecx, dword [rbx]
lea eax, [rcx + 1]
cmp eax, 1
jbe 0x14013db56
lea eax, [rcx + 1]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x20]
cmp dword [rbx + 4], 2
jne 0x14013dba2
mov rax, qword [rbx + 0x10]
mov rcx, rax
test rax, rax
js 0x14013db8b
cmp rax, 0x18
jae 0x14013db8b
mov r8d, 0x3c
lea rdx, str.C:ciqt_main_1660099987651workqtqtbaseincludeQtCore.._.._src_corelib_tools_qarraydata.h
lea rcx, str.size__0__offset___0__size_t_offset____sizeof_QArrayData_
call fcn.140160ea0
mov rcx, qword [rbx + 0x10]
cmp word [rcx + rbx + 2], 0x3a
jne 0x14013dba2
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.140004150
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14015d560
lea rcx, [rsp + 0x28]
call fcn.140190810
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14013dc0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14013dbdb
cmp eax, 0x20
jne 0x14013dc0a
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rcx
mov edx, dword [rcx]
lea eax, [rdx + 1]
cmp eax, 1
jbe 0x14013dbf4
lea eax, [rdx + 1]
mov dword [rcx], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14013cd10
test al, al
cmovne ebx, dword [rsp + 0x40]
test rdi, rdi
je 0x14013dc17
cmp ebx, 0xffffffff
setne al
mov byte [rdi], al
cmp ebx, 0xffffffff
jne 0x14013dc20
xor bl, bl
jmp 0x14013dc26
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14013dc42
cmp eax, 0xffffffff
je 0x14013dc50
sub eax, 1
mov dword [rcx], eax
jne 0x14013dc50
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14013dc6c
cmp eax, 0xffffffff
je 0x14013dc7a
sub eax, 1
mov dword [rcx], eax
jne 0x14013dc7a
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401bc2c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x14013e880
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
call fcn.14013dca0
test al, al
je 0x14013e8f6
lea rax, str.C:ciqt_main_1660099987651workqtqtbase_srccorelibioqfilesystemengine_win.cpp
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x28], rax
lea rdx, str.Empty_filename_passed_to_function
lea rax, str.bool___cdecl_QFileSystemEngine::removeFile_const_class_QFileSystemEntry__class_QSystemError__
mov dword [rsp + 0x24], 0x5f9
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, str.default
mov qword [rsp + 0x38], rax
call fcn.1401b6890
call fcn.1401c934c
mov dword [rax], 0x16
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], rsi
mov rcx, rbx
call fcn.140139f70
xor ecx, ecx
xor r8d, r8d
movzx edx, cx
lea r9d, [rcx + 1]
mov rcx, rax
call fcn.140187b20
mov rcx, qword [rsp + 0x60]
cmp eax, 0xffffffff
setne sil
mov eax, dword [rcx]
test eax, eax
je 0x14013e93f
cmp eax, 0xffffffff
je 0x14013e94d
sub eax, 1
mov dword [rcx], eax
jne 0x14013e94d
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
test sil, sil
mov rsi, qword [rsp + 0x50]
je 0x14013e9b4
lea rax, str.C:ciqt_main_1660099987651workqtqtbase_srccorelibioqfilesystemengine_win.cpp
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x28], rax
lea rdx, str.Broken_filename_passed_to_function
lea rax, str.bool___cdecl_QFileSystemEngine::removeFile_const_class_QFileSystemEntry__class_QSystemError__
mov dword [rsp + 0x24], 0x5f9
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, str.default
mov qword [rsp + 0x38], rax
call fcn.1401b6890
call fcn.1401c934c
mov dword [rax], 0x16
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140139f70
mov rcx, rax
call fcn.140190810
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x60]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14013e9f3
cmp eax, 0xffffffff
je 0x14013ea01
sub eax, 1
mov dword [rcx], eax
jne 0x14013ea01
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
test bl, bl
jne 0x14013ea1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], 2
mov rcx, qword [rsp + 0x60]
mov qword [rdi], rcx
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14013efb0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.14015d560
mov rcx, rax
call fcn.140190810
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x38]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14013eff5
cmp eax, 0xffffffff
je 0x14013f003
sub eax, 1
mov dword [rcx], eax
jne 0x14013f003
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
movzx eax, bl
add rsp, 0x20
pop rbx
ret

Function at 0x14013f0b0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x60
xor eax, eax
mov qword [rsp + 0x28], 0xffffffffffffffff
mov r8d, 0x440000
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov rbx, rcx
call fcn.14013c230
mov eax, dword [rsp + 0x24]
bt eax, 0x16
jae 0x14013f18c
bt eax, 0x12
jae 0x14013f18c
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401393b0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140154ff0
mov rcx, rax
call fcn.140190810
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x78]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14013f140
cmp eax, 0xffffffff
je 0x14013f14e
sub eax, 1
mov dword [rcx], eax
jne 0x14013f14e
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rcx, qword [rsp + 0x80]
mov r9d, dword [rcx]
test r9d, r9d
je 0x14013f175
cmp r9d, 0xffffffff
je 0x14013f183
sub r9d, 1
mov dword [rcx], r9d
jne 0x14013f183
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
movzx eax, bl
add rsp, 0x60
pop rbx
ret
xor al, al
add rsp, 0x60
pop rbx
ret
Function at 0x140141fc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x140141ff2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14015de60
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x78]
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14015df45
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x14015dfc8
cmp qword [rsi + 0x80], 0xffffffffffffffff
je 0x14015dfbf
xor r12d, r12d
mov rdi, r8
mov ebx, r12d
mov rcx, qword [rsi + 0x80]
lea rdx, [rbx + r14]
mov r8d, 0x2000000
mov qword [rsp + 0x20], r12
cmp rdi, r8
lea r9, [rsp + 0x60]
cmovl r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015defb
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14015def3
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jl 0x14015deb4
mov rax, rbx
jmp 0x14015dfd6
test rbx, rbx
jne 0x14015def3
lea edx, [rbx - 1]
lea rcx, [rsp + 0x78]
call fcn.140192a00
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.14015c0f0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14015dfb0
cmp eax, 0xffffffff
je 0x14015dfbf
sub eax, 1
mov dword [rcx], eax
jne 0x14015dfbf
mov rcx, qword [rsp + 0x78]
jmp 0x14015dfb0
call fcn.1401cd584
mov ecx, eax
call fcn.1401c9974
cmp rax, 0xffffffffffffffff
je 0x14015dfc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14015dfc8
mov rcx, qword [rsi + 0x78]
call fcn.1401c6418
test eax, eax
je 0x14015dfc8
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.140192b70
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14015c0f0
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
test edx, edx
je 0x14015dfb0
cmp edx, 0xffffffff
je 0x14015dfbf
sub edx, 1
mov dword [rcx], edx
jne 0x14015dfbf
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140143660
mov rax, 0xffffffffffffffff
jmp 0x14015dfd6
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140142010
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140142010
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov r12, qword [rcx + 0x18]
mov rbp, r8
mov r15, rdx
mov r14, rcx
test r8, r8
js 0x140142190
xor ebx, ebx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
cmp qword [rcx + 0x78], rbx
je 0x1401420e4
nop dword [rax]
mov r9, qword [r14 + 0x78]
lea rcx, [rbx + r15]
mov r8, rbp
mov edx, 1
sub r8, rbx
call fcn.1401c6888
mov rcx, qword [r14 + 0x78]
mov rsi, rax
call fcn.1401c6418
test eax, eax
setne al
test al, al
je 0x140142082
test rsi, rsi
je 0x1401420b3
lea rdi, [rsi + rbx]
mov rbx, rdi
test al, al
jne 0x140142176
test rsi, rsi
jne 0x1401420a5
call fcn.1401c934c
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x1401420ad
xor ecx, ecx
cmp rdi, rbp
setl cl
test ecx, ecx
jne 0x140142050
jmp 0x140142127
mov rcx, qword [r14 + 0x78]
call fcn.1401ca61c
mov rcx, qword [r14 + 0x78]
mov edx, eax
xor r8d, r8d
call fcn.1401ca120
mov rdi, qword [rsp + 0x60]
mov rax, rbx
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
cmp dword [rcx + 0xa0], 0xffffffff
je 0x14014212c
nop dword [rax]
mov ecx, dword [r14 + 0xa0]
lea rdx, [rbx + r15]
mov r8d, 0x7fffffff
mov rax, rbp
sub rax, rbx
cmp rax, r8
cmovb r8d, eax
call fcn.1401c81c4
movsxd rcx, eax
test eax, eax
jle 0x140142122
add rbx, rcx
cmp rbx, rbp
jl 0x1401420f0
cmp ecx, 0xffffffff
jne 0x140142176
test rbx, rbx
jne 0x140142176
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.140192b70
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r12
call fcn.14015c0f0
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx]
test edx, edx
je 0x140142168
cmp edx, ebx
je 0x140142176
sub edx, 1
mov dword [rcx], edx
jne 0x140142176
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rdi, qword [rsp + 0x60]
mov rax, rbx
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov edx, 0x16
lea rcx, [rsp + 0x50]
call fcn.140192b70
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.14015c0f0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1401421cb
cmp eax, 0xffffffff
je 0x1401421d9
sub eax, 1
mov dword [rcx], eax
jne 0x1401421d9
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x14015d7a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov eax, dword [rcx + 0x38]
mov r13, r8
mov rsi, qword [rcx + 0x18]
mov rbx, rdx
mov rdi, rcx
test eax, eax
jne 0x14015d7d2
lea edx, [rax + 5]
jmp 0x14015d88c
test rbx, rbx
jne 0x14015d7f4
test r13, r13
jne 0x14015d7f4
lea edx, [rbx + 0x57]
lea rcx, [rsp + 0x90]
call fcn.140192a00
lea edx, [rbx + 8]
jmp 0x14015d89e
xor r14d, r14d
lea r15d, [r14 + 4]
test r9b, 1
je 0x14015d807
lea ebp, [r14 + 1]
jmp 0x14015d81b
test al, 2
je 0x14015d812
mov ebp, 2
jmp 0x14015d81b
test al, 1
mov ebp, r14d
cmovne ebp, r15d
cmp qword [rcx + 0x88], r14
jne 0x14015d8e7
mov rax, qword [rcx + 0x80]
cmp rax, 0xffffffffffffffff
jne 0x14015d857
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14015d850
call fcn.1401cd584
mov ecx, eax
call fcn.1401c9974
cmp rax, 0xffffffffffffffff
jne 0x14015d857
mov edx, 5
jmp 0x14015d88c
test byte [rdi + 0x38], 2
mov r8d, 2
mov qword [rsp + 0x28], r14
mov rcx, rax
cmovne r8d, r15d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x88], rax
test rax, rax
jne 0x14015d8e7
lea edx, [rax - 1]
lea rcx, [rsp + 0x90]
call fcn.140192a00
mov edx, 0xd
mov r8, rax
mov rcx, rsi
call fcn.14015c0f0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
je 0x14015d8d3
cmp eax, 0xffffffff
je 0x14015d9eb
sub eax, 1
mov dword [rcx], eax
jne 0x14015d9eb
mov rcx, qword [rsp + 0x90]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140143660
jmp 0x14015d9eb
mov qword [rsp + 0x98], r12
lea rcx, [rsp + 0x30]
mov r12, rbx
sar r12, 0x20
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov r14d, ebx
dec eax
and r14d, eax
je 0x14015d913
not eax
and ebx, eax
mov rcx, qword [rdi + 0x88]
lea rax, [r14 + r13]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8d, r12d
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, qword [rsp + 0x98]
test rax, rax
je 0x14015d969
lea rbx, [r14 + rax]
lea rcx, [rdi + 0x90]
mov qword [rsp + 0x90], rbx
lea rdx, [rsp + 0x90]
call fcn.14015c120
mov dword [rax], r14d
mov rax, rbx
jmp 0x14015d9ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xffffffff
lea rcx, [rsp + 0x90]
cmp eax, 5
je 0x14015d98d
call fcn.140192a00
mov edx, 8
jmp 0x14015d997
call fcn.140192a00
mov edx, 0xd
mov r8, rax
mov rcx, rsi
call fcn.14015c0f0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
je 0x14015d9c4
cmp eax, 0xffffffff
je 0x14015d9d3
sub eax, 1
mov dword [rcx], eax
jne 0x14015d9d3
mov rcx, qword [rsp + 0x90]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140143660
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x88], 0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14015de60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x140141ff2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14015de60
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x78]
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14015df45
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x14015dfc8
cmp qword [rsi + 0x80], 0xffffffffffffffff
je 0x14015dfbf
xor r12d, r12d
mov rdi, r8
mov ebx, r12d
mov rcx, qword [rsi + 0x80]
lea rdx, [rbx + r14]
mov r8d, 0x2000000
mov qword [rsp + 0x20], r12
cmp rdi, r8
lea r9, [rsp + 0x60]
cmovl r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015defb
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14015def3
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jl 0x14015deb4
mov rax, rbx
jmp 0x14015dfd6
test rbx, rbx
jne 0x14015def3
lea edx, [rbx - 1]
lea rcx, [rsp + 0x78]
call fcn.140192a00
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.14015c0f0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14015dfb0
cmp eax, 0xffffffff
je 0x14015dfbf
sub eax, 1
mov dword [rcx], eax
jne 0x14015dfbf
mov rcx, qword [rsp + 0x78]
jmp 0x14015dfb0
call fcn.1401cd584
mov ecx, eax
call fcn.1401c9974
cmp rax, 0xffffffffffffffff
je 0x14015dfc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14015dfc8
mov rcx, qword [rsi + 0x78]
call fcn.1401c6418
test eax, eax
je 0x14015dfc8
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.140192b70
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14015c0f0
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
test edx, edx
je 0x14015dfb0
cmp edx, 0xffffffff
je 0x14015dfbf
sub edx, 1
mov dword [rcx], edx
jne 0x14015dfbf
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140143660
mov rax, 0xffffffffffffffff
jmp 0x14015dfd6
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140142010
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14015e4f0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rax + 0x80]
cmp rdi, 0xffffffffffffffff
jne 0x14015e65f
cmp dword [rax + 0xa0], edi
jne 0x14015e633
cmp qword [rax + 0x78], 0
jne 0x14015e633
lea rcx, [rax + 0x20]
mov rax, qword [rax + 0x20]
cmp dword [rax + 4], 0
jne 0x14015e54d
mov rax, qword [rcx + 8]
cmp dword [rax + 4], 0
je 0x14015e621
lea rdx, [rsp + 0x40]
call fcn.1401393b0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401584f0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14015e580
cmp eax, 0xffffffff
je 0x14015e58e
sub eax, 1
mov dword [rcx], eax
jne 0x14015e58e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov edx, 3
lea rcx, [rsp + 0x20]
call fcn.140159240
lea rcx, [rsp + 0x20]
test al, al
je 0x14015e61c
mov rdx, rsi
call fcn.140159fe0
movzx edi, al
test al, al
jne 0x14015e5fe
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140163340
mov r8, rax
mov edx, 0xc
mov rcx, rbx
call fcn.14015c0f0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14015e5f0
cmp eax, 0xffffffff
je 0x14015e5fe
sub eax, 1
mov dword [rcx], eax
jne 0x14015e5fe
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
lea rcx, [rsp + 0x20]
call fcn.140158620
movzx eax, dil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140158620
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp rdi, 0xffffffffffffffff
jne 0x14015e65f
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x14015e649
call fcn.1401cd584
jmp 0x14015e64f
mov eax, dword [rax + 0xa0]
mov ecx, eax
call fcn.1401c9974
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14015e621
mov rax, qword [rbx]
mov rcx, rbx
mov qword [rsp + 0x48], rbp
call qword [rax + 0x30]
mov r8, qword [rbx]
mov rdx, rsi
mov rcx, rbx
mov rbp, rax
call qword [r8 + 0x38]
test al, al
je 0x14015e6a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14015e6a5
mov rax, qword [rbx]
cmp rbp, rsi
mov rcx, rbx
cmovl rsi, rbp
mov rdx, rsi
call qword [rax + 0x38]
mov al, 1
jmp 0x14015e6b3
mov rax, qword [rbx]
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x38]
xor al, al
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret