Function at 0x1400082a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140065ec0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x19], 7
xor r12d, r12d
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x31]
call fcn.140003080
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.1400085d0
lea r8, [rdi + 0xa0]
movabs rax, 0x1111111111111111
mov qword [r8], rax
mov qword [r8 + 8], rax
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rax
lea r9, [rdi + 0xc0]
xor eax, eax
mov qword [r9], rax
mov byte [r9 + 8], al
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov byte [rbp + 0x2f], al
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea edx, [r12 + 0x20]
mov rcx, qword [rdi + 0x70]
call qword [rdi + 0x28]
mov ebx, eax
test eax, eax
jne 0x14000854e
mov qword [rbp - 0x19], 0xf
mov qword [rbp - 0x21], r12
mov byte [rbp - 0x31], r12b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1f]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x31]
call fcn.140002a30
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.1400143b0
nop
mov rdx, rax
mov rcx, rsi
call fcn.1400046d0
nop
cmp qword [rbp + 0xf], 8
jb 0x1400083ba
mov rcx, qword [rbp - 9]
call fcn.14002747c
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], r12
mov word [rbp - 0x59], r12w
lea rcx, [rbp - 0x59]
call fcn.1400148e0
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r12
mov word [rbp - 9], r12w
mov r8d, 0x10
lea rdx, str.UniqueKeyTmp.txt
lea rcx, [rbp - 9]
call fcn.140002b50
nop
lea r8, [rbp - 9]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.140014680
mov rdi, rax
lea rax, [rbp - 0x59]
cmp rax, rdi
je 0x14000847b
cmp qword [rbp - 0x41], 8
jb 0x140008429
mov rcx, qword [rbp - 0x59]
call fcn.14002747c
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], r12
mov word [rbp - 0x59], r12w
cmp qword [rdi + 0x18], 8
jae 0x140008459
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.140027770
jmp 0x140008463
mov rax, qword [rdi]
mov qword [rbp - 0x59], rax
mov qword [rdi], r12
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x49], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x41], rax
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
cmp qword [rbp - 0x19], 8
jb 0x14000848b
mov rcx, qword [rbp - 0x31]
call fcn.14002747c
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
cmp qword [rbp + 0xf], 8
jb 0x1400084ac
mov rcx, qword [rbp - 9]
call fcn.14002747c
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, 2
lea rdx, [0x140050aec]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, 0x11
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x41], 8
jb 0x14000854c
mov rcx, qword [rbp - 0x59]
call fcn.14002747c
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400274a0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret