joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ba70
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 0x14005baa2
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 0x140062b10
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 0x140062bf5
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x140062c7b
cmp qword [rsi + 0x80], 0xffffffffffffffff
je 0x140062c72
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 0x140062bab
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140062ba3
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jl 0x140062b64
mov rax, rbx
jmp 0x140062c89
test rbx, rbx
jne 0x140062ba3
lea edx, [rbx - 1]
lea rcx, [rsp + 0x78]
call fcn.140053800
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140059d10
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140062c63
cmp eax, 0xffffffff
je 0x140062c72
sub eax, 1
mov dword [rcx], eax
jne 0x140062c72
mov rcx, qword [rsp + 0x78]
jmp 0x140062c63
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
je 0x140062c7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140062c7b
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140062c7b
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.140053970
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140059d10
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
test edx, edx
je 0x140062c63
cmp edx, 0xffffffff
je 0x140062c72
sub edx, 1
mov dword [rcx], edx
jne 0x140062c72
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140016170
mov rax, 0xffffffffffffffff
jmp 0x140062c89
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14005bac0
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 0x14005bac0
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 0x14005bc43
xor ebx, ebx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
cmp qword [rcx + 0x78], rbx
je 0x14005bb99
nop dword [rax]
mov r9, qword [r14 + 0x78]
lea rcx, [rbx + r15]
mov r8, rbp
mov edx, 1
sub r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [r14 + 0x78]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
setne al
test al, al
je 0x14005bb34
test rsi, rsi
je 0x14005bb66
lea rdi, [rsi + rbx]
mov rbx, rdi
test al, al
jne 0x14005bc29
test rsi, rsi
jne 0x14005bb58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14005bb60
xor ecx, ecx
cmp rdi, rbp
setl cl
test ecx, ecx
jne 0x14005bb00
jmp 0x14005bbda
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [r14 + 0x78]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
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 0x14005bbdf
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 qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
test eax, eax
jle 0x14005bbd5
add rbx, rcx
cmp rbx, rbp
jl 0x14005bba2
cmp ecx, 0xffffffff
jne 0x14005bc29
test rbx, rbx
jne 0x14005bc29
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.140053970
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r12
call fcn.140059d10
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx]
test edx, edx
je 0x14005bc1b
cmp edx, ebx
je 0x14005bc29
sub edx, 1
mov dword [rcx], edx
jne 0x14005bc29
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
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.140053970
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.140059d10
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14005bc7e
cmp eax, 0xffffffff
je 0x14005bc8c
sub eax, 1
mov dword [rcx], eax
jne 0x14005bc8c
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x14005cd70
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, r8
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov rbx, rax
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x58]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14005cde8
cmp eax, 0xffffffff
je 0x14005cdf6
sub eax, 1
mov dword [rcx], eax
jne 0x14005cdf6
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005ce12
cmp eax, 0xffffffff
je 0x14005ce20
sub eax, 1
mov dword [rcx], eax
jne 0x14005ce20
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test bl, bl
jne 0x14005ce3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14005ce60
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rsi
movzx esi, dl
lea rdx, [rbp + 0x28]
call fcn.140059f40
mov rax, qword [rbp + 0x28]
cmp dword [rax + 4], 0
jne 0x14005ce8e
lea rdx, str.Empty_filename_passed_to_function
jmp 0x14005ceaf
xor ebx, ebx
lea rcx, [rbp + 0x28]
xor r8d, r8d
movzx edx, bx
lea r9d, [rbx + 1]
call fcn.14001d1b0
cmp eax, 0xffffffff
je 0x14005cee6
lea rdx, str.Broken_filename_passed_to_function
xorps xmm0, xmm0
mov qword [rbp - 0x30], 2
lea rax, str.default
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], rax
movdqu xmmword [rbp - 0x28], xmm0
call fcn.140015ec0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor bl, bl
mov dword [rax], 0x16
jmp 0x14005cfef
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x50], rdi
lea rcx, [rbp - 0x38]
call fcn.14003a110
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14003ba30
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rax]
mov qword [rbp + 0x28], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005cf2c
cmp eax, 0xffffffff
je 0x14005cf3a
sub eax, 1
mov dword [rcx], eax
jne 0x14005cf3a
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rbp - 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005cf54
cmp eax, 0xffffffff
je 0x14005cf62
sub eax, 1
mov dword [rcx], eax
jne 0x14005cf62
mov rcx, qword [rbp - 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.1400622a0
lea rcx, [rbp + 0x30]
call fcn.140022520
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x30]
mov ebx, eax
mov edx, dword [rcx]
test edx, edx
je 0x14005cfab
cmp edx, 0xffffffff
je 0x14005cfb9
sub edx, 1
mov dword [rcx], edx
jne 0x14005cfb9
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test dil, dil
mov rdi, qword [rsp + 0x50]
je 0x14005cfc7
mov bl, 1
jmp 0x14005cfef
test sil, sil
jne 0x14005cfd0
xor bl, bl
jmp 0x14005cfef
lea rcx, [rbp + 0x28]
cmp ebx, 0xb7
jne 0x14005cfe5
xor edx, edx
call fcn.14005eae0
jmp 0x14005cfec
xor edx, edx
call fcn.14005d030
movzx ebx, al
mov rcx, qword [rbp + 0x28]
mov rsi, qword [rsp + 0x70]
mov edx, dword [rcx]
test edx, edx
je 0x14005d00e
cmp edx, 0xffffffff
je 0x14005d01c
sub edx, 1
mov dword [rcx], edx
jne 0x14005d01c
mov rcx, qword [rbp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
movzx eax, bl
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x14005d030
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 2
lea rax, [0x1400a06a4]
mov qword [rsp + 0x28], rax
movzx edi, dl
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov r8d, 1
movdqa xmmword [rsp + 0x20], xmm0
mov rbx, rcx
call fcn.140021650
test al, al
je 0x14005d097
lea rcx, [rsp + 0x50]
call fcn.14003b2f0
mov r8d, 1
mov rcx, rbx
movzx edx, word [rax]
call fcn.14001c320
cmp eax, 3
jle 0x14005d21c
mov rcx, qword [rbx]
cmp dword [rcx + 4], 2
jne 0x14005d0b0
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
je 0x14005d21c
test dil, dil
je 0x14005d119
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400622a0
lea rcx, [rsp + 0x50]
call fcn.140022520
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x50]
test eax, eax
setne dil
mov eax, dword [rcx]
test eax, eax
je 0x14005d0f9
cmp eax, 0xffffffff
je 0x14005d107
sub eax, 1
mov dword [rcx], eax
jne 0x14005d107
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test dil, dil
je 0x14005d119
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.14003b2f0
mov r9d, 1
mov rcx, rbx
movzx edx, word [rax]
lea r8d, [r9 - 2]
call fcn.14001d700
cmp eax, 1
jl 0x14005d21c
mov r8d, eax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001d740
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.14005d030
test al, al
je 0x14005d1dd
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400622a0
lea rcx, [rsp + 0x50]
call fcn.140022520
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x50]
test eax, eax
setne dil
mov eax, dword [rcx]
test eax, eax
je 0x14005d1a5
cmp eax, 0xffffffff
je 0x14005d1b3
sub eax, 1
mov dword [rcx], eax
jne 0x14005d1b3
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test dil, dil
je 0x14005d1bc
mov bl, 1
jmp 0x14005d1df
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x50], 0
mov rcx, rbx
call fcn.14005eae0
test al, al
je 0x14005d1dd
cmp byte [rsp + 0x50], 0
je 0x14005d1dd
mov bl, 1
jmp 0x14005d1df
xor bl, bl
mov rcx, qword [rsp + 0x58]
mov r9d, dword [rcx]
test r9d, r9d
je 0x14005d200
cmp r9d, 0xffffffff
je 0x14005d20e
sub r9d, 1
mov dword [rcx], r9d
jne 0x14005d20e
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14005eae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400fa448]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword [rcx]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov r8d, dword [rax]
lea ecx, [r8 + 1]
cmp ecx, 1
jbe 0x14005eb21
lea ecx, [r8 + 1]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
cmp dword [rax + 4], 2
jne 0x14005eb91
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x14005eb91
cmp dword [rax], 1
ja 0x14005eb44
mov ecx, dword [rax + 8]
btr ecx, 0x1f
cmp ecx, 4
jae 0x14005eb5b
mov r8b, 1
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.14001f120
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
movsxd rdx, dword [rax + 4]
lea r8, [rcx + rdx*2]
mov ecx, 0x5c
mov word [r8 + rax], cx
mov rax, qword [rsp + 0x20]
inc dword [rax + 4]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
movsxd rdx, dword [rax + 4]
lea r8, [rcx + rdx*2]
xor ecx, ecx
mov word [r8 + rax], cx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400622a0
lea rcx, [rsp + 0x28]
call fcn.140022520
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14005ebf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14005ebca
cmp eax, 0x20
jne 0x14005ebf9
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rcx
mov edx, dword [rcx]
lea eax, [rdx + 1]
cmp eax, 1
jbe 0x14005ebe3
lea eax, [rdx + 1]
mov dword [rcx], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14005e150
test al, al
cmovne ebx, dword [rsp + 0x40]
test rdi, rdi
je 0x14005ec06
cmp ebx, 0xffffffff
setne al
mov byte [rdi], al
cmp ebx, 0xffffffff
jne 0x14005ec0f
xor bl, bl
jmp 0x14005ec15
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14005ec31
cmp eax, 0xffffffff
je 0x14005ec3f
sub eax, 1
mov dword [rcx], eax
jne 0x14005ec3f
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005ec5b
cmp eax, 0xffffffff
je 0x14005ec69
sub eax, 1
mov dword [rcx], eax
jne 0x14005ec69
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140065ad0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x14005f5c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.14005ec90
test al, al
je 0x14005f62b
lea rdx, str.Empty_filename_passed_to_function
lea rax, str.default
mov qword [rsp + 0x20], 2
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.140015ec0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], rbp
mov rcx, rdi
call fcn.14005a4d0
xor ebx, ebx
xor r8d, r8d
movzx edx, bx
mov rcx, rax
lea r9d, [rbx + 1]
call fcn.14001d1b0
mov rcx, qword [rsp + 0x60]
cmp eax, 0xffffffff
setne bpl
mov eax, dword [rcx]
test eax, eax
je 0x14005f674
cmp eax, 0xffffffff
je 0x14005f682
sub eax, 1
mov dword [rcx], eax
jne 0x14005f682
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test bpl, bpl
mov rbp, qword [rsp + 0x50]
je 0x14005f698
lea rdx, str.Broken_filename_passed_to_function
jmp 0x14005f5e5
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
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 0x14005f6d7
cmp eax, 0xffffffff
je 0x14005f6e5
sub eax, 1
mov dword [rcx], eax
jne 0x14005f6e5
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test bl, bl
jne 0x14005f703
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], 2
mov rcx, qword [rsp + 0x60]
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14005f720
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14005ec90
test al, al
je 0x14005f785
xorps xmm0, xmm0
mov qword [rbp - 0x28], 2
lea rax, str.default
lea rdx, str.Empty_filename_passed_to_function
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x28]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140015ec0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor al, al
jmp 0x14005f934
lea rdx, [rbp + 0x38]
mov qword [rsp + 0x70], r14
mov rcx, rsi
call fcn.14005a4d0
xor ebx, ebx
xor r8d, r8d
movzx edx, bx
mov rcx, rax
lea r9d, [rbx + 1]
call fcn.14001d1b0
mov rcx, qword [rbp + 0x38]
cmp eax, 0xffffffff
setne r14b
mov eax, dword [rcx]
test eax, eax
je 0x14005f7cb
cmp eax, 0xffffffff
je 0x14005f7d9
sub eax, 1
mov dword [rcx], eax
jne 0x14005f7d9
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test r14b, r14b
jne 0x14005f847
mov rcx, rdi
call fcn.14005ec90
test al, al
je 0x14005f7f3
lea rdx, str.Empty_filename_passed_to_function
jmp 0x14005f84e
lea rdx, [rbp + 0x38]
mov rcx, rdi
call fcn.14005a4d0
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14001d1b0
mov rcx, qword [rbp + 0x38]
cmp eax, 0xffffffff
setne r14b
mov eax, dword [rcx]
test eax, eax
je 0x14005f834
cmp eax, 0xffffffff
je 0x14005f842
sub eax, 1
mov dword [rcx], eax
jne 0x14005f842
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test r14b, r14b
je 0x14005f885
lea rdx, str.Broken_filename_passed_to_function
lea rax, str.default
mov qword [rbp - 0x28], 2
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x28]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140015ec0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor al, al
jmp 0x14005f92f
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
lea rdx, [rbp + 0x38]
mov rcx, rsi
mov rbx, rax
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rbp + 0x38]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14005f8db
cmp eax, 0xffffffff
je 0x14005f8e9
sub eax, 1
mov dword [rcx], eax
jne 0x14005f8e9
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005f903
cmp eax, 0xffffffff
je 0x14005f911
sub eax, 1
mov dword [rcx], eax
jne 0x14005f911
mov rcx, qword [rbp - 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test bl, bl
jne 0x14005f92c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x38], eax
mov dword [rbp + 0x3c], 2
mov rcx, qword [rbp + 0x38]
mov qword [r15], rcx
movzx eax, bl
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x14005f950
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14005ec90
test al, al
je 0x14005f9b5
xorps xmm0, xmm0
mov qword [rbp - 0x28], 2
lea rax, str.default
lea rdx, str.Empty_filename_passed_to_function
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x28]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140015ec0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor al, al
jmp 0x14005fb6a
lea rdx, [rbp + 0x38]
mov qword [rsp + 0x70], r14
mov rcx, rsi
call fcn.14005a4d0
xor ebx, ebx
xor r8d, r8d
movzx edx, bx
mov rcx, rax
lea r9d, [rbx + 1]
call fcn.14001d1b0
mov rcx, qword [rbp + 0x38]
cmp eax, 0xffffffff
setne r14b
mov eax, dword [rcx]
test eax, eax
je 0x14005f9fb
cmp eax, 0xffffffff
je 0x14005fa09
sub eax, 1
mov dword [rcx], eax
jne 0x14005fa09
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test r14b, r14b
jne 0x14005fa77
mov rcx, rdi
call fcn.14005ec90
test al, al
je 0x14005fa23
lea rdx, str.Empty_filename_passed_to_function
jmp 0x14005fa7e
lea rdx, [rbp + 0x38]
mov rcx, rdi
call fcn.14005a4d0
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14001d1b0
mov rcx, qword [rbp + 0x38]
cmp eax, 0xffffffff
setne r14b
mov eax, dword [rcx]
test eax, eax
je 0x14005fa64
cmp eax, 0xffffffff
je 0x14005fa72
sub eax, 1
mov dword [rcx], eax
jne 0x14005fa72
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test r14b, r14b
je 0x14005fab5
lea rdx, str.Broken_filename_passed_to_function
lea rax, str.default
mov qword [rbp - 0x28], 2
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x28]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140015ec0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor al, al
jmp 0x14005fb65
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
lea rdx, [rbp + 0x38]
mov rcx, rsi
mov rbx, rax
call fcn.14005a4d0
mov rcx, rax
call fcn.140022520
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, qword [rbp + 0x38]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14005fb11
cmp eax, 0xffffffff
je 0x14005fb1f
sub eax, 1
mov dword [rcx], eax
jne 0x14005fb1f
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005fb39
cmp eax, 0xffffffff
je 0x14005fb47
sub eax, 1
mov dword [rcx], eax
jne 0x14005fb47
mov rcx, qword [rbp - 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
test bl, bl
jne 0x14005fb62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x38], eax
mov dword [rbp + 0x3c], 2
mov rcx, qword [rbp + 0x38]
mov qword [r15], rcx
movzx eax, bl
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret