Function at 0x140001808
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x380], rax
cmp qword [0x140085660], 0
mov rbx, rdx
je 0x140001acb
xor eax, eax
lea rcx, [0x14006a232]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
mov eax, dword [rdx + 4]
movups xmmword [rsp + 0x58], xmm0
cmp eax, 9
ja 0x1400018fe
je 0x1400018f5
sub eax, 1
je 0x1400018ec
sub eax, 1
je 0x1400018e0
sub eax, 1
je 0x1400018d4
sub eax, 1
je 0x1400018c8
sub eax, 1
je 0x1400018bc
sub eax, 1
je 0x1400018b0
sub eax, 1
je 0x1400018a4
cmp eax, 1
jne 0x14000196c
lea rcx, [0x140068e48]
jmp 0x14000196c
lea rcx, [0x140068e38]
jmp 0x14000196c
lea rcx, [0x140068e28]
jmp 0x14000196c
lea rcx, [0x140068e18]
jmp 0x14000196c
lea rcx, str.HardLinkFile
jmp 0x14000196c
lea rcx, [0x140068df8]
jmp 0x14000196c
lea rcx, [0x140068de8]
jmp 0x14000196c
lea rcx, [0x140068dd8]
jmp 0x14000196c
lea rcx, [0x140068e60]
jmp 0x14000196c
sub eax, 0xa
je 0x140001965
sub eax, 1
je 0x14000195c
sub eax, 1
je 0x140001953
sub eax, 1
je 0x14000194a
sub eax, 1
je 0x140001941
sub eax, 1
je 0x140001938
sub eax, 2
je 0x14000192f
cmp eax, 2
jne 0x14000196c
lea rcx, str.SetKeyInfos
jmp 0x14000196c
lea rcx, [0x140068ee0]
jmp 0x14000196c
lea rcx, [0x140068ec8]
jmp 0x14000196c
lea rcx, [0x140068eb0]
jmp 0x14000196c
lea rcx, [0x140068ea0]
jmp 0x14000196c
lea rcx, [0x140068e90]
jmp 0x14000196c
lea rcx, [0x140068e80]
jmp 0x14000196c
lea rcx, [0x140068e70]
mov eax, dword [rdx + 8]
lea r8, str._llx:__lx___lx___Ix___lx___s__
mov r9, qword [0x140085658]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], eax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov eax, dword [rdx]
mov edx, 0x400
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x92c
call qword [sym.imp.ntdll.dll_sprintf_s]
nop dword [rax + rax]
lea rcx, [rbx + 0x18]
mov edi, eax
lea rdx, [rsp + 0x58]
call fcn.1400583e0
mov rcx, qword [rsp + 0x58]
mov eax, 0xffffffff
cmp rcx, rax
mov dword [rsp + 0x50], eax
cmova rcx, rax
or dword [rsp + 0x54], 0xffffffff
mov qword [rsp + 0x58], rcx
cmp edi, 0xffffffff
je 0x140001abc
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [0x140085660]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp - 0x80]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [0x140085660]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov eax, dword [rsp + 0x58]
xor edx, edx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [0x140085660]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [0x140068f20]
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001acb
call fcn.14005d7ac
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140063da0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret