Function at 0x1400034e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x650], rbx
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov r12, rdx
mov r13, rcx
mov qword [rbp - 0x40], rcx
movups xmm0, xmmword [rdx]
movaps xmmword [rbp - 0x50], xmm0
mov rcx, qword [rcx + 0x258]
mov rax, qword [rcx]
lea r8, [rbp + 0x90]
lea rdx, [rbp - 0x50]
call qword [rax + 0x60]
xor edi, edi
lea r9, [rsp + 0x60]
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x7c]
mov rcx, qword [r13 + 0x28]
mov qword [rsp + 0x20], rdi
test eax, eax
jne 0x140003e6d
mov eax, dword [rbp + 0xac]
mov dword [rbp - 0x7c], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp + 0xac]
cmp eax, 0x14
je 0x140003d96
cmp eax, 0x1d
je 0x140003d96
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rdi
mov esi, edi
mov qword [rbp - 0x58], rdi
mov rcx, qword [r13 + 0x258]
test rcx, rcx
je 0x14000361a
movups xmm0, xmmword [r12]
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rcx]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
call qword [rax + 0x50]
test eax, eax
jne 0x14000361a
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
call qword [rax + 0x20]
test eax, eax
jne 0x140003610
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
call qword [rax + 0x18]
test eax, eax
jne 0x140003606
mov rdx, qword [rbp - 0x78]
mov rcx, r13
call fcn.140002420
mov rsi, rax
mov qword [rbp - 0x58], rax
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov dword [rsp + 0x68], edi
mov rcx, qword [r13 + 0x258]
test rcx, rcx
je 0x140003673
movups xmm0, xmmword [r12]
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x50]
call qword [rax + 0x50]
test eax, eax
jne 0x140003673
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [rax + 0x20]
test eax, eax
jne 0x140003668
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov qword [rbp - 0x70], rdi
mov rcx, qword [r13 + 0x258]
test rcx, rcx
je 0x1400036dd
movups xmm0, xmmword [r12]
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x50]
call qword [rax + 0x50]
test eax, eax
jne 0x1400036dd
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x20]
test eax, eax
jne 0x1400036d3
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
mov dword [rsp + 0x64], eax
test rsi, rsi
je 0x140003722
mov rax, qword [rsi]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x44]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov r9d, 0xff
lea r8, [rbp + 0xf0]
mov edx, dword [rsp + 0x70]
mov rcx, rsi
call qword [rax + 0x60]
mov eax, dword [rsp + 0x64]
add eax, eax
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rsp + 0x64]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x64]
test r8d, r8d
je 0x14000376c
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0xf0]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x68], rax
movups xmm0, xmmword [rbp + 0x90]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rbp + 0xa0]
movaps xmmword [rbp + 0x20], xmm1
movups xmm0, xmmword [r12]
movaps xmmword [rbp - 0x50], xmm0
lea r9, [rbp + 0x60]
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x50]
mov rcx, r13
call fcn.140003340
mov dword [rsp + 0x74], eax
movabs r15, 0x2aaaaaaaaaaaaaab
test rsi, rsi
je 0x140003953
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x140003953
mov qword [rsp + 0x78], rdi
mov rax, qword [rsi]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x10
lea r9, [rbp + 0xb0]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [rax + 0xa0]
test eax, eax
jne 0x140003953
mov r13, r15
nop word [rax + rax]
mov ebx, edi
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x14000390e
mov r10, qword [rbp + 0x68]
mov rsi, qword [rbp + 0x60]
nop dword [rax + rax]
mov r15d, edi
mov r8d, edi
mov rcx, r10
sub rcx, rsi
mov rax, r13
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov r9, r10
mov r11, r10
je 0x140003884
mov eax, ebx
mov r9d, dword [rbp + rax*4 + 0xb0]
mov rax, rsi
cmp r9d, dword [rax]
je 0x14000387b
inc r8d
add rax, 0x30
movsxd rcx, r8d
cmp rcx, rdx
jb 0x140003865
jmp 0x140003881
mov r15d, 1
mov r9, r10
test r15d, r15d
jne 0x1400038ff
movups xmm2, xmmword [r12]
movups xmmword [rbp + 0x30], xmm2
mov dword [rbp + 0x28], edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rbp + 0x18], xmm0
mov dword [rbp + 0x14], edi
mov eax, ebx
mov ecx, dword [rbp + rax*4 + 0xb0]
mov dword [rbp + 0x10], ecx
cmp qword [rbp + 0x70], r11
je 0x1400038de
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [r9], xmm0
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [r9 + 0x10], xmm1
movups xmmword [r9 + 0x20], xmm2
mov r10, qword [rbp + 0x68]
add r10, 0x30
mov qword [rbp + 0x68], r10
jmp 0x1400038f2
lea r8, [rbp + 0x10]
mov rdx, r10
lea rcx, [rbp + 0x60]
call fcn.140004db0
mov r10, qword [rbp + 0x68]
inc dword [rsp + 0x74]
mov rsi, qword [rbp + 0x60]
mov r14d, dword [rsp + 0x68]
inc ebx
cmp ebx, r14d
jb 0x140003830
mov rsi, qword [rbp - 0x58]
mov rax, qword [rsi]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x10
lea r9, [rbp + 0xb0]
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [rax + 0xa0]
test eax, eax
je 0x140003810
mov r13, qword [rbp - 0x40]
movabs r15, 0x2aaaaaaaaaaaaaab
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rsp + 0x74]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, edi
cmp dword [rsp + 0x74], edi
jbe 0x140003d34
nop
mov eax, r14d
lea rbx, [rax + rax*2]
shl rbx, 4
mov rdx, qword [rbp + 0x60]
mov eax, dword [rdx + rbx + 0x18]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], edi
mov rsi, rdi
mov rcx, qword [r13 + 0x258]
test rcx, rcx
je 0x140003a16
movups xmm0, xmmword [rdx + rbx + 0x20]
movaps xmmword [rbp - 0x20], xmm0
mov rax, qword [rcx]
lea r8, [rbp - 8]
lea rdx, [rbp - 0x20]
call qword [rax + 0x50]
test eax, eax
jne 0x140003a16
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
call qword [rax + 0x20]
test eax, eax
jne 0x140003a0c
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
call qword [rax + 0x18]
test eax, eax
jne 0x140003a02
mov rdx, qword [rbp - 0x58]
mov rcx, r13
call fcn.140002420
mov rsi, rax
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 8]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x20], rdi
mov rcx, qword [r13 + 0x258]
test rcx, rcx
je 0x140003a79
movups xmm0, xmmword [rbx + rax + 0x20]
movaps xmmword [rbp + 0x10], xmm0
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x10]
call qword [rax + 0x50]
test eax, eax
jne 0x140003a79
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
lea rdx, [rbp]
call qword [rax + 0x20]
test eax, eax
jne 0x140003a6f
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
call qword [rax + 0x18]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rsi, rsi
je 0x140003b16
mov dword [rbp - 0x60], edi
mov r10, qword [rsi]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xff
lea r9, [rbp + 0x2f0]
lea r8, [rbp - 0x38]
mov rax, qword [rbp + 0x60]
mov edx, dword [rbx + rax]
mov rcx, rsi
call qword [r10 + 0x1c8]
movzx eax, byte [rbp - 0x5c]
and al, 0x10
jne 0x140003b0f
mov rax, qword [rbp + 0x60]
cmp qword [rbx + rax + 8], 0
jne 0x140003b16
cmp qword [rbx + rax + 0x10], 0
jne 0x140003b16
cmp dword [rbx + rax + 4], 0
jne 0x140003b16
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x68], eax
mov rdx, qword [rbp + 0x60]
add rdx, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp + 0x60]
add rdx, 4
add rdx, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rbp - 0x5c]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x6c]
add eax, eax
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rsp + 0x6c]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x6c]
test r8d, r8d
je 0x140003be7
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0x2f0]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x64], edi
mov qword [rbp - 0x78], rdi
mov rax, qword [rbp + 0x60]
cmp qword [rbx + rax + 8], 0
jne 0x140003c07
cmp qword [rbx + rax + 0x10], 0
je 0x140003cd8
movups xmm0, xmmword [rbx + rax + 8]
movaps xmmword [rbp + 0x10], xmm0
mov rcx, qword [r13 + 0x258]
mov rax, qword [rcx]
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x10]
call qword [rax + 0x50]
test eax, eax
jne 0x140003cd8
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140003cd8
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
call qword [rax + 0x20]
test eax, eax
jne 0x140003cce
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x20]
test eax, eax
jne 0x140003cce
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [rax + 0x18]
test eax, eax
jne 0x140003cc4
mov rdx, qword [rbp - 0x70]
mov rcx, r13
call fcn.140002420
test rax, rax
je 0x140003cba
mov r10, qword [rax]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov r9d, 0xff
lea r8, [rbp + 0xf0]
mov edx, dword [rsp + 0x70]
mov rcx, rax
call qword [r10 + 0x60]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, dword [rsp + 0x64]
add eax, eax
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rsp + 0x64]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x64]
test r8d, r8d
je 0x140003d26
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0xf0]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc r14d
cmp r14d, dword [rsp + 0x74]
jb 0x140003980
mov r8, qword [rbp + 0x60]
test r8, r8
je 0x140003e7a
mov rcx, qword [rbp + 0x70]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x140003d89
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003ea4
mov rcx, r8
call fcn.14000575c
jmp 0x140003e7a
movups xmm0, xmmword [r12]
movaps xmmword [rbp + 0x10], xmm0
mov rcx, qword [r13 + 0x258]
mov rax, qword [rcx]
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x10]
call qword [rax + 0x58]
test eax, eax
jne 0x140003e2a
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x70]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rbp + 0x7c]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rbp + 0x78]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rbp + 0x74]
mov rcx, qword [r13 + 0x28]
jmp 0x140003e74
mov ecx, 0x10
call fcn.1400124b0
mov rbx, rax
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, 0x10
mov rdx, rax
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140012204
jmp 0x140003e7a
mov dword [rbp - 0x7c], 0xffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400056d0
mov rbx, qword [rsp + 0x650]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140012438
int3