Function at 0x1400ac110
Capabilities:
Contain obfuscated stackstrings
Get file size
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x4d8]
sub rsp, 0x5d8
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
lea rdx, [0x140152f7c]
call fcn.1400ba6a4
test rax, rax
jne 0x1400ac192
lea rdx, [rdi + 0x14]
lea r8, [rbp - 0x80]
sub r8, rdx
nop word [rax + rax]
movzx eax, word [rdx]
mov word [r8 + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x1400ac150
mov rax, qword [rdi + 0x220]
lea rcx, [rbp - 0x80]
sub rax, rdi
sub rax, 0x14
sar rax, 1
add rax, rax
sub rax, rbx
add rcx, rax
nop
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400ac180
jmp 0x1400ac1b0
lea rcx, [rbp - 0x80]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400ac1a0
lea rcx, [rbp - 0x80]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400ac1c0
cmp rax, 5
jb 0x1400ac1f8
mov r8, qword [rdi + 0x230]
lea rax, [rsp + rax*2 + 0x78]
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400ac1f4
add rax, 2
test ecx, ecx
jne 0x1400ac1e0
test edx, edx
je 0x1400ac232
lea rcx, [rbp - 0x80]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400ac200
mov r8, qword [rdi + 0x230]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400ac220
xor ebx, ebx
mov byte [rbp + 0x4a0], 1
mov ecx, ebx
nop dword [rax]
movzx eax, word [rbp + rcx - 0x80]
mov word [rbp + rcx + 0x298], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400ac240
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ac2a6
lea rdx, str.Couldnt_create_preset_file
lea rcx, [rbp - 0x80]
call fcn.14009ebd0
add rsp, 0x5d8
pop r14
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x600], rsi
xor edx, edx
mov rsi, qword [0x1401a9710]
mov r8d, 0x820
mov qword [rsp + 0x5d0], r12
mov qword [rsp + 0x5c8], r13
mov qword [rsp + 0x5c0], r15
lea rcx, [rsi + 0x19b]
call fcn.1400ba240
mov r15, rbx
mov r13, rbx
mov r12, rbx
mov ebx, 0xa
nop
lea rdi, [rsi + r13]
mov r9d, 0xffffffff
lea rcx, [rsi + 0x19b]
mov r8d, pe_nt_image_headers64
add rcx, r12
lea rdx, [rdi + 0xbe4]
call fcn.14008f180
mov rcx, qword [0x1401a9710]
lea rdx, [rdi + 0xce4]
add rcx, 0x21b
mov r9d, 0xffffffff
add rcx, r12
mov r8d, pe_nt_image_headers64
call fcn.14008f180
mov eax, dword [rdi + 0xd64]
lea r15, [r15 + 0xd0]
mov rsi, qword [0x1401a9710]
lea r13, [r13 + 0x18c]
add r12, 0xd0
mov dword [r15 + rsi + 0x18b], eax
mov eax, dword [rdi + 0xd68]
mov dword [r15 + rsi + 0x18f], eax
movzx eax, byte [rdi + 0xd6c]
mov byte [r15 + rsi + 0x193], al
sub rbx, 1
jne 0x1400ac2f0
lea rdx, [rsi + 0x9ca]
mov r8d, 0x104
lea rcx, [rsi + 0x33]
lea r9d, [rbx - 1]
call fcn.14008f180
lea r9, [rsp + 0x68]
mov dword [rbp + 0x510], ebx
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x510]
lea rcx, [0x1401a9708]
call fcn.140023350
mov r13, qword [rsp + 0x5c8]
test al, al
je 0x1400ac423
nop dword [rax]
mov rdx, qword [0x1401a9710]
mov rcx, qword [rsp + 0x68]
add rdx, 0xbe4
call fcn.1400f579c
test eax, eax
je 0x1400ac470
inc dword [rbp + 0x510]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x510]
lea rcx, [0x1401a9708]
call fcn.140023350
test al, al
jne 0x1400ac3e0
mov rdx, qword [0x1401a9710]
lea r9, [rdx + 0x14d]
mov r8, r9
lea rcx, [rdx + 0x21b]
sub r8, rcx
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ac440
mov ecx, dword [rdx + 0x25b]
mov dword [rdx + 0x149], ecx
mov eax, dword [rdx + 0x25f]
mov dword [rdx + 8], eax
cmp ecx, 1
jne 0x1400ac481
mov esi, 0x1000000
jmp 0x1400ac491
mov rdx, qword [0x1401a9710]
mov eax, dword [rbp + 0x510]
mov dword [rdx], eax
jmp 0x1400ac42a
cmp ecx, 2
mov esi, 0x7000000
mov eax, 0x2000000
cmove esi, eax
lea rdx, [0x14012f1c8]
mov rcx, r9
call fcn.140104fa4
test eax, eax
jne 0x1400ac4ac
or esi, 1
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f1f8]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac4d2
or esi, 2
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, str.PCM_12_bit
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac4f8
or esi, 4
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, str.PCM_20_bit
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac51e
or esi, 8
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f1d8]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac544
or esi, 0x10
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f1e8]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac56a
or esi, 0x20
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f260]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac590
or esi, 0x40
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f270]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac5b4
bts esi, 7
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f280]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac5d8
bts esi, 8
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14012f288]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac5fc
bts esi, 9
jmp 0x1400ac61e
mov rcx, qword [0x1401a9710]
lea rdx, [0x14013f6e0]
add rcx, 0x14d
call fcn.140104fa4
test eax, eax
jne 0x1400ac61e
bts esi, 0xb
mov rdi, qword [0x1401a9710]
mov dword [rdi + 4], esi
cmp byte [rdi + 0xbe1], bl
jne 0x1400ac63f
mov byte [rdi + 0x13c], bl
mov byte [rdi + 0x19], bl
mov byte [rdi + 0x9be], bl
cmp byte [rdi + 0xf], bl
je 0x1400ac77c
movzx esi, byte [rdi + 0x194]
movaps xmmword [rsp + 0x5b0], xmm6
movss xmm6, dword [rdi + 0xbd8]
test sil, sil
je 0x1400ac688
movaps xmm0, xmm6
mulss xmm0, dword [0x140150fe4]
cvtps2pd xmm1, xmm0
movsd xmm0, qword [0x14012f310]
call fcn.1400f6df0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
jmp 0x1400ac68b
movaps xmm1, xmm6
mulss xmm1, dword [0x14014b2f4]
movsxd rax, dword [rdi + 0xbd4]
movss dword [rdi + 0x141], xmm1
cmp eax, 0x16
ja case.0x1400ac6bc.4
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xacb80]
add rcx, rdx
jmp rcx
mov dword [rdi + 0x10], 4
jmp case.0x1400ac6bc.4
test sil, sil
je 0x1400ac6e1
xorps xmm0, xmm0
ucomiss xmm6, xmm0
je 0x1400ac6ea
mov eax, 7
jmp 0x1400ac771
ucomiss xmm6, dword [0x14012c8dc]
jne 0x1400ac6d7
mov eax, ebx
jmp 0x1400ac771
mov dword [rdi + 0x10], 1
jmp case.0x1400ac6bc.4
mov dword [rdi + 0x10], 2
jmp case.0x1400ac6bc.4
cmp byte [rdi + 0xbdc], bl
mov eax, ebx
setne al
add eax, 5
mulss xmm1, dword [0x1401545e0]
movss dword [rdi + 0x141], xmm1
jmp 0x1400ac771
cmp byte [rdi + 0xbdc], bl
mov eax, ebx
setne al
add eax, 8
jmp 0x1400ac711
cmp byte [rdi + 0xbdc], bl
mov eax, ebx
mulss xmm1, dword [0x1401314a4]
setne al
add eax, 0xa
movss dword [rdi + 0x141], xmm1
jmp 0x1400ac771
mulss xmm1, dword [0x1401314a4]
movss dword [rdi + 0x141], xmm1
cmp byte [rdi + 0xbdc], bl
mov eax, ebx
setne al
add eax, 0xc
mov dword [rdi + 0x10], eax
movaps xmm6, xmmword [rsp + 0x5b0]
lea r9, [rbp + 0x510]
mov qword [rsp + 0x48], 0x46464952
mov r8d, 8
mov dword [rsp + 0x58], 0x50417741
lea rdx, [rsp + 0x48]
mov dword [rbp + 0x510], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp + 0x510]
mov dword [rbp + 0x510], ebx
mov r8d, 4
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp + 0x510]
mov dword [rsp + 0x48], 0x36414141
mov r8d, 8
mov dword [rsp + 0x4c], 0xbde
lea rdx, [rsp + 0x48]
mov dword [rbp + 0x510], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x4c]
lea r9, [rsp + 0x5c]
mov rdx, qword [0x1401a9710]
mov rcx, r14
mov dword [rsp + 0x5c], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x1401a9710]
cmp byte [rax + 0xbe0], bl
je 0x1400acae5
mov r15d, ebx
mov edi, 0x1b60
nop dword [rax]
mov rsi, qword [0x1401a9710]
cmp qword [rdi + rsi + 8], rbx
je 0x1400acad4
movsx ecx, word [rdi + rsi]
sub ecx, 1
je 0x1400ac885
cmp ecx, 1
jne 0x1400acad4
mov rcx, qword [0x14018d178]
mov dword [rsp + 0x48], 0x53444141
jmp 0x1400ac894
mov rcx, qword [0x14018d230]
mov dword [rsp + 0x48], 0x53564141
test rcx, rcx
je 0x1400acad4
mov rax, qword [rcx]
movsx edx, word [rdi + rsi + 2]
call qword [rax + 0x20]
test rax, rax
je 0x1400acad4
mov r9d, 0xffffffff
lea rcx, [rbp + 0x190]
mov r8d, 0xf0
mov rdx, rax
call fcn.14008f180
mov r9d, 1
mov qword [rsp + 0x40], rbx
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r12, 0xffffffffffffffff
mov dword [rsp + 0x4c], ebx
test eax, eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 8
cmovne r12, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbp + 0x190]
mov byte [rbp + 0x510], 4
mov rax, 0xffffffffffffffff
mov byte [rbp + 0x511], r15b
mov byte [rbp + 0x512], 1
inc rax
cmp byte [rcx + rax], bl
jne 0x1400ac940
inc al
mov dword [rsp + 0x40], ebx
lea r9, [rsp + 0x40]
mov byte [rbp + 0x513], al
mov r8d, 4
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x510]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx r8d, byte [rbp + 0x513]
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x190]
mov dword [rsp + 0x40], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x60], rbx
lea r8, [rbp + 0x518]
mov dword [rbp + 0x518], ebx
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400ac9f8
mov r8d, dword [rbp + 0x518]
test r8d, r8d
je 0x1400ac9f8
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
call fcn.1400b60a4
jmp 0x1400ac9fe
mov byte [rbp + 0x512], bl
mov r9d, 1
mov qword [rsp + 0x40], rbx
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
mov rcx, 0xffffffffffffffff
cmovne rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
test cl, 1
je 0x1400aca5a
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov r8d, 1
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [rsp + 0x50]
lea r9, [rsp + 0x40]
sub eax, r12d
mov dword [rsp + 0x40], ebx
sub eax, 8
mov qword [rsp + 0x20], rbx
mov r8d, 8
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov r8d, 4
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x510]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
inc r15d
add rdi, 0x10
cmp r15d, 6
jl 0x1400ac850
lea rdx, [rbp + 0x510]
mov dword [rsp + 0x48], 0x46464952
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, ebx
mov rdx, rbx
test eax, eax
cmovne ecx, dword [rbp + 0x510]
xor r9d, r9d
sub ecx, 8
xor r8d, r8d
mov dword [rsp + 0x4c], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rbp + 0x510]
mov dword [rbp + 0x510], ebx
mov r8d, 8
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x5c0]
mov r12, qword [rsp + 0x5d0]
mov rsi, qword [rsp + 0x600]
cmp byte [rbp + 0x4a0], bl
je 0x1400acb70
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x5d8
pop r14
pop rdi
pop rbx
pop rbp
ret