Function at 0x180034e70
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800fca30]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov qword [r11 - 0x60], rdx
mov r13, qword [rcx + 0xa0]
test r8, r8
cmovne r13, r8
lea r14, [0x1800cb770]
mov qword [rsp + 0x40], r14
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov rax, qword [r13]
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [rax + 0x108]
test al, al
jne 0x180034f32
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180034f09
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180034f19
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180035952
mov rdi, qword [rsp + 0x48]
mov ebp, 8
test rdi, 0xfffffffffffffff8
jbe 0x180034fe8
mov al, dil
and eax, 7
mov rsi, rbp
sub rsi, rax
cmp rsi, rbp
je 0x180034fe8
lea r12, [rdi + rsi]
cmp r12, rdi
je 0x180034fc0
mov r14, r15
test r12, r12
je 0x180034fa0
mov rcx, r12
call fcn.1800a09e0
mov r14, rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x180034fa0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x180034faf
mov r8, r12
cmp rax, r12
cmovb r8, rax
mov rcx, r14
call fcn.1800a2480
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180034faf
call fcn.1800a22f0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r12
lea r14, [0x1800cb770]
mov rdx, r15
test rsi, rsi
je 0x180034fe5
nop
nop
mov rcx, qword [rsp + 0x50]
add rcx, rdx
mov byte [rcx + rdi], 0
add rdx, 1
cmp rdx, rsi
jb 0x180034fd0
mov rdi, r12
mov rdx, qword [rsp + 0x50]
add rdx, 0x2b
mov byte [rsp + 0x120], 0
xor eax, eax
mov qword [rsp + 0x121], rax
mov dword [rsp + 0x129], eax
mov word [rsp + 0x12d], ax
mov byte [rsp + 0x12f], al
lea r9, [rsp + 0x120]
lea r8d, [rdi - 0x2b]
lea rcx, [rsp + 0xa0]
call fcn.180031900
nop
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r15
mov word [rsp + 0x70], 0
mov r9d, 6
lea r8, [0x1800d7f90]
lea edx, [r9 + 8]
lea rcx, [rsp + 0x70]
call fcn.1800a1c40
mov qword [rsp + 0x80], 3
lea rax, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rax, qword [rsp + 0x70]
mov word [rax + 6], 0
mov rax, qword [r13]
lea rdx, [rsp + 0x68]
mov rcx, r13
call qword [rax + 0x18]
mov rdi, rax
cmp qword [rsp + 0x88], 8
jb 0x1800350b6
mov rcx, qword [rsp + 0x70]
call fcn.1800a2030
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r15
mov word [rsp + 0x70], 0
test rdi, rdi
jne 0x18003514e
cmp qword [rsp + 0xc0], 8
jb 0x1800350ee
mov rcx, qword [rsp + 0xa8]
call fcn.1800a2030
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180035125
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180035135
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180035952
mov rax, qword [r13]
lea r8, [rsp + 0xa0]
mov rdx, rdi
mov rcx, r13
call qword [rax + 0xe0]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18003517a
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov rax, qword [r13]
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [rax + 0x108]
mov rsi, qword [rsp + 0x48]
test rsi, 0xfffffffffffffff8
jbe 0x180035238
mov al, sil
and eax, 7
sub rbp, rax
cmp rbp, 8
je 0x180035238
lea rdi, [rsi + rbp]
cmp rdi, rsi
je 0x180035216
mov r12, r15
test rdi, rdi
je 0x1800351fd
mov rcx, rdi
call fcn.1800a09e0
mov r12, rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1800351fd
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x18003520c
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
mov rcx, r12
call fcn.1800a2480
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18003520c
call fcn.1800a22f0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rdi
mov rdx, r15
test rbp, rbp
je 0x180035235
nop
mov rcx, qword [rsp + 0x50]
add rcx, rdx
mov byte [rcx + rsi], 0
add rdx, 1
cmp rdx, rbp
jb 0x180035220
mov rsi, rdi
mov dword [rsp + 0xc8], 0x454d4147
mov dword [rsp + 0xcc], 0x2d52474d
mov dword [rsp + 0xd0], 0x2d333231
mov dword [rsp + 0xd4], 0x2d363534
mov dword [rsp + 0xd8], 0x2d393837
mov dword [rsp + 0xdc], 0x2d323130
mov dword [rsp + 0xe0], 0x2d353433
mov dword [rsp + 0xe4], 0x2d383736
mov r8d, r15d
mov rdx, r15
nop
nop
nop
mov eax, dword [rsp + rdx*4 + 0xc8]
lea ecx, [r8 + rax*2]
mov dword [rsp + rdx*4 + 0xc8], ecx
add r8d, 1
add rdx, 1
cmp rdx, 8
jl 0x1800352a0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r15
mov rdi, r15
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r15
test rsi, rsi
je 0x1800352f9
test rsi, rsi
je 0x1800352ef
mov rcx, rsi
call fcn.1800a09e0
mov rdi, rax
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rsi
mov r12, qword [rsp + 0x50]
test rdi, rdi
je 0x1800358ce
test r12, r12
je 0x1800358ce
cmp esi, 4
jb 0x1800358ce
call fcn.1800601e0
mov r11d, esi
shr r11d, 3
mov r13d, esi
and r13d, 7
mov rbp, r15
mov r14d, r11d
test r11d, r11d
jle 0x180035394
nop
nop
nop
mov eax, dword [r12 + rbp*8]
mov dword [rsp + 0x90], eax
mov eax, dword [r12 + rbp*8 + 4]
mov dword [rsp + 0x94], eax
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x90]
call fcn.180060630
mov r11d, dword [rsp + 0x120]
mov dword [rdi + rbp*8], r11d
mov eax, dword [rsp + 0x124]
mov dword [rdi + rbp*8 + 4], eax
add rbp, 1
cmp rbp, r14
jl 0x180035340
test r13d, r13d
jle 0x1800353c1
movsxd rdx, r13d
lea rcx, [rdi + r14*8]
sub r12, rdi
nop
nop
nop
nop
movzx eax, byte [r12 + rcx]
mov byte [rcx], al
add rcx, 1
sub rdx, 1
jne 0x1800353b0
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.180019a00
nop
mov qword [rsp + 0xe8], 7
mov qword [rsp + 0xe0], r15
mov word [rsp + 0xd0], 0
or r12, 0xffffffffffffffff
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xc8]
call fcn.1800030a0
nop
lea edx, [r12 + 0x25]
lea rcx, [rsp + 0xc8]
call fcn.1800192c0
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180035465
test al, 0x10
je 0x180035465
cmp qword [rsp + 0xe8], 8
jb 0x18003548a
mov rcx, qword [rsp + 0xd0]
call fcn.1800a2030
jmp 0x18003548a
cmp qword [rsp + 0xe8], 8
jb 0x18003547d
mov rcx, qword [rsp + 0xd0]
call fcn.1800a2030
lea rcx, [rsp + 0xf0]
call fcn.18000c6b0
lea rbp, [0x1800d85c8]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov r9d, 2
mov r8d, 0x40000000
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180043470
test al, al
jne 0x1800355bc
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1800354f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmovne rcx, r12
mov qword [rsp + 0x38], rcx
lea rax, [0x1800d8578]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180035516
mov rcx, qword [rsp + 0xf8]
call fcn.1800a2030
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.1800a22f0
nop
cmp qword [rsp + 0xc0], 8
jb 0x180035555
mov rcx, qword [rsp + 0xa8]
call fcn.1800a2030
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800cb770]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180035593
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x1800355a3
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180035952
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1800357e3
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800357de
mov eax, dword [rsp + 0x60]
cmp esi, eax
jne 0x1800357de
cmp rax, rsi
je 0x1800356ee
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x180035624
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmovne rcx, r12
mov qword [rsp + 0x38], rcx
lea rax, [0x1800d8578]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180035648
mov rcx, qword [rsp + 0xf8]
call fcn.1800a2030
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.1800a22f0
nop
cmp qword [rsp + 0xc0], 8
jb 0x180035687
mov rcx, qword [rsp + 0xa8]
call fcn.1800a2030
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800cb770]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800356c5
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x1800356d5
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180035952
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x180035714
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmovne rcx, r12
mov qword [rsp + 0x38], rcx
lea rax, [0x1800d8578]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180035738
mov rcx, qword [rsp + 0xf8]
call fcn.1800a2030
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.1800a22f0
nop
cmp qword [rsp + 0xc0], 8
jb 0x180035777
mov rcx, qword [rsp + 0xa8]
call fcn.1800a2030
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800cb770]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800357b5
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x1800357c5
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
mov al, 1
jmp 0x180035952
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rbp
cmp rcx, 0xffffffffffffffff
je 0x180035804
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmovne rcx, r12
mov qword [rsp + 0x38], rcx
lea rax, [0x1800d8578]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180035828
mov rcx, qword [rsp + 0xf8]
call fcn.1800a2030
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.1800a22f0
nop
cmp qword [rsp + 0xc0], 8
jb 0x180035867
mov rcx, qword [rsp + 0xa8]
call fcn.1800a2030
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800cb770]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800358a5
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x1800358b5
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180035952
test rdi, rdi
je 0x1800358dc
mov rcx, rdi
call fcn.1800a22f0
nop
cmp qword [rsp + 0xc0], 8
jb 0x1800358f4
mov rcx, qword [rsp + 0xa8]
call fcn.1800a2030
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
mov qword [rsp + 0x40], r14
mov r12, qword [rsp + 0x50]
test r12, r12
je 0x18003592e
mov rcx, r12
call fcn.1800a22f0
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x18003593e
mov rcx, qword [rbx + 8]
call fcn.1800a2030
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800a3210
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret