Function at 0x1400013d0
Capabilities:
Move file

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0xf68]
mov eax, 0x1068
call fcn.1400028c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf50], rax
mov r15, rcx
lea r8, [0x140003364]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea r8, [0x140003330]
mov rdx, r15
lea rcx, [rsp + 0x38]
cmp ebx, 0x5f5e100
jbe 0x1400015bf
mov qword [rsp + 0x1098], rsi
mov qword [rsp + 0x10a0], r12
mov qword [rsp + 0x10a8], r13
mov qword [rsp + 0x1060], r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r14, eax
mov rsi, r14
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x1400014b6
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, al
mov byte [rsp + 0x30], bl
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x1400014d3
dec eax
or eax, 0xffffff00
inc eax
movzx r13d, al
lea rcx, str.Key_is:_0x_x_0x_x_n
mov r8d, r13d
mov byte [rsp + 0x31], r13b
mov edx, ebx
call fcn.140001060
movabs rax, 0xabcc77118461cefd
mov r12d, 0
mul rsi
mov edi, r12d
shr rdx, 0x1a
imul rax, rdx, 0x5f5e100
sub rsi, rax
je 0x140001550
mov ebx, r12d
nop word [rax + rax]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
movsxd r8, ebx
mov edx, r14d
call fcn.140001270
inc edi
add ebx, 0x5f5e100
movsxd rax, edi
cmp rax, rsi
jb 0x140001520
movzx r13d, byte [rsp + 0x31]
movzx ebx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r12d
lea r8, str._s._02x_02x.FIKS
test r13b, r13b
lea rcx, [rsp + 0x50]
mov r9, r15
mov edx, 0x1000
setne al
test bl, bl
mov dword [rsp + 0x28], eax
setne r12b
mov dword [rsp + 0x20], r12d
call fcn.1400010c0
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov r14, qword [rsp + 0x1060]
mov r13, qword [rsp + 0x10a8]
mov r12, qword [rsp + 0x10a0]
mov rsi, qword [rsp + 0x1098]
jmp 0x14000167d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x1400015f9
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, al
mov byte [rsp + 0x30], bl
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x140001616
dec eax
or eax, 0xffffff00
inc eax
movzx r8d, al
lea rcx, str.Key_is:_0x_x_0x_x_n
mov edx, ebx
mov byte [rsp + 0x31], r8b
call fcn.140001060
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, edi
call fcn.140001270
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movzx eax, byte [rsp + 0x31]
lea rdx, str._s._02x_02x.FIKS
movzx r9d, byte [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.140001b70
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.140001be0
add rsp, 0x1068
pop r15
pop rdi
pop rbx
pop rbp
ret