Function at 0x180033430
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 [0x1800f0938]
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, [0x1800c19b8]
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 + pe_nt_image_headers64]
test al, al
jne 0x1800334f2
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800334c9
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x1800334d9
mov rcx, qword [rbx + 8]
call fcn.180098980
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180033f12
mov rdi, qword [rsp + 0x48]
mov ebp, 8
test rdi, 0xfffffffffffffff8
jbe 0x1800335a8
mov al, dil
and eax, 7
mov rsi, rbp
sub rsi, rax
cmp rsi, rbp
je 0x1800335a8
lea r12, [rdi + rsi]
cmp r12, rdi
je 0x180033580
mov r14, r15
test r12, r12
je 0x180033560
mov rcx, r12
call fcn.180097720
mov r14, rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x180033560
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x18003356f
mov r8, r12
cmp rax, r12
cmovb r8, rax
mov rcx, r14
call fcn.1800999d0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18003356f
call fcn.180099070
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r12
lea r14, [0x1800c19b8]
mov rdx, r15
test rsi, rsi
je 0x1800335a5
nop
nop
mov rcx, qword [rsp + 0x50]
add rcx, rdx
mov byte [rcx + rdi], 0
add rdx, 1
cmp rdx, rsi
jb 0x180033590
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.180031e80
nop
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r15
mov word [rsp + 0x70], 0
mov r9d, 6
lea r8, [0x1800cd788]
lea edx, [r9 + 8]
lea rcx, [rsp + 0x70]
call fcn.180098b20
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 0x180033676
mov rcx, qword [rsp + 0x70]
call fcn.180098980
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r15
mov word [rsp + 0x70], 0
test rdi, rdi
jne 0x18003370e
cmp qword [rsp + 0xc0], 8
jb 0x1800336ae
mov rcx, qword [rsp + 0xa8]
call fcn.180098980
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 0x1800336e5
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x1800336f5
mov rcx, qword [rbx + 8]
call fcn.180098980
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180033f12
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 0x18003373a
call fcn.180099070
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 + pe_nt_image_headers64]
mov rsi, qword [rsp + 0x48]
test rsi, 0xfffffffffffffff8
jbe 0x1800337f8
mov al, sil
and eax, 7
sub rbp, rax
cmp rbp, 8
je 0x1800337f8
lea rdi, [rsi + rbp]
cmp rdi, rsi
je 0x1800337d6
mov r12, r15
test rdi, rdi
je 0x1800337bd
mov rcx, rdi
call fcn.180097720
mov r12, rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1800337bd
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1800337cc
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
mov rcx, r12
call fcn.1800999d0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800337cc
call fcn.180099070
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rdi
mov rdx, r15
test rbp, rbp
je 0x1800337f5
nop
mov rcx, qword [rsp + 0x50]
add rcx, rdx
mov byte [rcx + rsi], 0
add rdx, 1
cmp rdx, rbp
jb 0x1800337e0
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 0x180033860
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 0x1800338b9
test rsi, rsi
je 0x1800338af
mov rcx, rsi
call fcn.180097720
mov rdi, rax
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rsi
mov r12, qword [rsp + 0x50]
test rdi, rdi
je 0x180033e8e
test r12, r12
je 0x180033e8e
cmp esi, 4
jb 0x180033e8e
call fcn.18005d7b0
mov r11d, esi
shr r11d, 3
mov r13d, esi
and r13d, 7
mov rbp, r15
mov r14d, r11d
test r11d, r11d
jle 0x180033954
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.18005dc00
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 0x180033900
test r13d, r13d
jle 0x180033981
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 0x180033970
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.1800158b0
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.1800030f0
nop
lea edx, [r12 + 0x25]
lea rcx, [rsp + 0xc8]
call fcn.180015170
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 0x180033a25
test al, 0x10
je 0x180033a25
cmp qword [rsp + 0xe8], 8
jb 0x180033a4a
mov rcx, qword [rsp + 0xd0]
call fcn.180098980
jmp 0x180033a4a
cmp qword [rsp + 0xe8], 8
jb 0x180033a3d
mov rcx, qword [rsp + 0xd0]
call fcn.180098980
lea rcx, [rsp + 0xf0]
call fcn.180004490
lea rbp, [0x1800cdd88]
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.18003fee0
test al, al
jne 0x180033b7c
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x180033ab2
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, [0x1800cdd38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180033ad6
mov rcx, qword [rsp + 0xf8]
call fcn.180098980
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.180099070
nop
cmp qword [rsp + 0xc0], 8
jb 0x180033b15
mov rcx, qword [rsp + 0xa8]
call fcn.180098980
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800c19b8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180033b53
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180033b63
mov rcx, qword [rbx + 8]
call fcn.180098980
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180033f12
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x180033da3
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 0x180033d9e
mov eax, dword [rsp + 0x60]
cmp esi, eax
jne 0x180033d9e
cmp rax, rsi
je 0x180033cae
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x180033be4
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, [0x1800cdd38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180033c08
mov rcx, qword [rsp + 0xf8]
call fcn.180098980
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.180099070
nop
cmp qword [rsp + 0xc0], 8
jb 0x180033c47
mov rcx, qword [rsp + 0xa8]
call fcn.180098980
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800c19b8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180033c85
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180033c95
mov rcx, qword [rbx + 8]
call fcn.180098980
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180033f12
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x180033cd4
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, [0x1800cdd38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180033cf8
mov rcx, qword [rsp + 0xf8]
call fcn.180098980
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.180099070
nop
cmp qword [rsp + 0xc0], 8
jb 0x180033d37
mov rcx, qword [rsp + 0xa8]
call fcn.180098980
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800c19b8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180033d75
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180033d85
mov rcx, qword [rbx + 8]
call fcn.180098980
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
mov al, 1
jmp 0x180033f12
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rbp
cmp rcx, 0xffffffffffffffff
je 0x180033dc4
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, [0x1800cdd38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x110], 8
jb 0x180033de8
mov rcx, qword [rsp + 0xf8]
call fcn.180098980
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf8], 0
mov rcx, rdi
call fcn.180099070
nop
cmp qword [rsp + 0xc0], 8
jb 0x180033e27
mov rcx, qword [rsp + 0xa8]
call fcn.180098980
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], 0
lea rax, [0x1800c19b8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180033e65
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180033e75
mov rcx, qword [rbx + 8]
call fcn.180098980
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbx + 8], 0
xor al, al
jmp 0x180033f12
test rdi, rdi
je 0x180033e9c
mov rcx, rdi
call fcn.180099070
nop
cmp qword [rsp + 0xc0], 8
jb 0x180033eb4
mov rcx, qword [rsp + 0xa8]
call fcn.180098980
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 0x180033eee
mov rcx, r12
call fcn.180099070
mov qword [rsp + 0x50], r15
cmp qword [rbx + 0x20], 8
jb 0x180033efe
mov rcx, qword [rbx + 8]
call fcn.180098980
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.180099050
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret