Function at 0x140003210
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 0x140003b9d
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 0x140003ac6
cmp eax, 0x1d
je 0x140003ac6
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 0x14000334a
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 0x14000334a
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
call qword [rax + 0x20]
test eax, eax
jne 0x140003340
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
call qword [rax + 0x18]
test eax, eax
jne 0x140003336
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 0x1400033a3
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 0x1400033a3
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [rax + 0x20]
test eax, eax
jne 0x140003398
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 0x14000340d
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 0x14000340d
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x20]
test eax, eax
jne 0x140003403
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 0x140003452
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 0x14000349c
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.140003070
mov dword [rsp + 0x74], eax
movabs r15, 0x2aaaaaaaaaaaaaab
test rsi, rsi
je 0x140003683
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x140003683
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 0x140003683
mov r13, r15
nop word [rax + rax]
mov ebx, edi
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x14000363e
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 0x1400035b4
mov eax, ebx
mov r9d, dword [rbp + rax*4 + 0xb0]
mov rax, rsi
cmp r9d, dword [rax]
je 0x1400035ab
inc r8d
add rax, 0x30
movsxd rcx, r8d
cmp rcx, rdx
jb 0x140003595
jmp 0x1400035b1
mov r15d, 1
mov r9, r10
test r15d, r15d
jne 0x14000362f
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 0x14000360e
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 0x140003622
lea r8, [rbp + 0x10]
mov rdx, r10
lea rcx, [rbp + 0x60]
call fcn.140004c30
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 0x140003560
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 0x140003540
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 0x140003a64
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 0x140003746
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 0x140003746
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
call qword [rax + 0x20]
test eax, eax
jne 0x14000373c
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
call qword [rax + 0x18]
test eax, eax
jne 0x140003732
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 0x1400037a9
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 0x1400037a9
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
lea rdx, [rbp]
call qword [rax + 0x20]
test eax, eax
jne 0x14000379f
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 0x140003846
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 0x14000383f
mov rax, qword [rbp + 0x60]
cmp qword [rbx + rax + 8], 0
jne 0x140003846
cmp qword [rbx + rax + 0x10], 0
jne 0x140003846
cmp dword [rbx + rax + 4], 0
jne 0x140003846
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 0x140003917
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 0x140003937
cmp qword [rbx + rax + 0x10], 0
je 0x140003a08
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 0x140003a08
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140003a08
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
call qword [rax + 0x20]
test eax, eax
jne 0x1400039fe
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x20]
test eax, eax
jne 0x1400039fe
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [rax + 0x18]
test eax, eax
jne 0x1400039f4
mov rdx, qword [rbp - 0x70]
mov rcx, r13
call fcn.140002420
test rax, rax
je 0x1400039ea
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 0x140003a56
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 0x1400036b0
mov r8, qword [rbp + 0x60]
test r8, r8
je 0x140003baa
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 0x140003ab9
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003bd4
mov rcx, r8
call fcn.1400055dc
jmp 0x140003baa
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 0x140003b5a
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 0x140003ba4
mov ecx, 0x10
call fcn.140012410
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.140012164
jmp 0x140003baa
mov dword [rbp - 0x7c], 0xffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140005550
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.140012398
int3