Function at 0x1000ae628
Capabilities:
Contain obfuscated stackstrings
Delete file
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rcx
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rbx, rdx
lea rdx, [0x100002840]
repne scasb al, byte [rdi]
mov r13, r9
mov qword [rsp + 0x40], r9
not rcx
mov r15d, r8d
lea rdi, [rcx - 1]
call fcn.10007b104
mov r12, rax
test rax, rax
jne 0x1000ae692
mov eax, 0x8007000e
jmp 0x1000ae9eb
lea r8, [rdi + 1]
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x30], 0
mov edi, 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000ae6df
mov edi, 0x8876038f
jmp 0x1000ae93d
lea rdx, [rsp + 0x180]
mov ecx, 0xf6
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000ae9cc
lea r9, [rsp + 0x70]
lea rdx, [0x10002e4f0]
lea rcx, [rsp + 0x180]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1000ae9cc
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0xc000100
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000ae76c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x88760395
jmp 0x1000ae93d
test dil, r15b
je 0x1000ae894
lea r9, [rsp + 0x70]
lea rdx, [0x10002e4f0]
lea rcx, [rsp + 0x180]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1000ae7bb
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x80004005
jmp 0x1000ae93d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0xc000100
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1000ae7fa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000ae750
lea rdx, [0x100002840]
mov ecx, 0x88
call fcn.10007b104
xor ecx, ecx
mov rdi, rax
cmp rax, rcx
je 0x1000ae87a
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], r14
lea rax, [0x10002e5c0]
mov qword [rdi], rax
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x30], 0x64
mov qword [rdi + 0x40], rcx
mov qword [rdi + 0x48], rcx
mov qword [rdi + 0x58], rcx
mov qword [rdi + 0x50], 0xa
mov qword [rdi + 0x78], rcx
mov qword [rdi + 0x60], r13
mov qword [rdi + 0x68], rbp
mov qword [rdi + 0x70], rsi
mov byte [rdi + 0x80], r15b
mov qword [rdi + 0x18], r12
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
xor ecx, ecx
jmp 0x1000ae87d
mov rdi, rcx
cmp rdi, rcx
jne 0x1000ae94c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000ae91d
lea rdx, [0x100002840]
mov ecx, 0x88
call fcn.10007b104
xor ecx, ecx
mov rdi, rax
cmp rax, rcx
je 0x1000ae915
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], r14
lea rax, [0x10002e5c0]
mov qword [rdi], rax
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x30], 0x64
mov qword [rdi + 0x40], rcx
mov qword [rdi + 0x48], rcx
mov qword [rdi + 0x58], rcx
mov qword [rdi + 0x50], 0xa
or qword [rdi + 0x70], 0xffffffffffffffff
mov qword [rdi + 0x78], rcx
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x68], rbp
mov byte [rdi + 0x80], r15b
mov qword [rdi + 0x18], r12
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
xor ecx, ecx
jmp 0x1000ae918
mov rdi, rcx
cmp rdi, rcx
jne 0x1000ae951
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x8007000e
mov rcx, r12
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1000ae9eb
mov r13, qword [rsp + 0x40]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x5c], ecx
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], ecx
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x60]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 0x20
mov dword [rsp + 0x48], 0x20666f78
mov dword [rsp + 0x4c], 0x34303330
mov dword [rsp + 0x50], 0x206e6962
mov dword [rsp + 0x54], 0x32333030
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000ae9c4
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000ae688
mov qword [r13], rdi
xor eax, eax
jmp 0x1000ae9eb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r12
call sub.msvcrt.dll_free
mov eax, 0x80004005
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10017a260
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret