Function at 0x140041cc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11e8]
mov eax, 0x12e8
call fcn.1400c20d0
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x11d0], rax
mov qword [rbp - 0x70], r9
mov qword [rsp + 0x68], r8
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor esi, esi
mov qword [rsp + 0x58], rsi
xor r11d, r11d
xor r10d, r10d
mov dword [rsp + 0x34], r10d
mov qword [rsp + 0x78], r10
lea r15, [rdx + 0x54]
mov qword [rbp - 0x58], r15
mov rcx, r8
mov qword [rsp + 0x60], rcx
lea rdx, [rbp - 0x2c]
mov qword [rbp - 0x68], rdx
movabs r12, 0x2aaaaaaaaaaaaaab
movzx ebx, byte [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
nop dword [rax + rax]
xor r8d, r8d
mov qword [rbp - 0x60], r8
mov r9, rdx
mov qword [rbp - 0x78], rdx
mov r14, rcx
mov qword [rbp - 0x80], rcx
nop word [rax + rax]
mov dword [r9 - 4], r11d
mov rcx, qword [r14 + 8]
sub rcx, qword [r14]
mov rax, r12
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rax, rdx
inc eax
mov dword [r9], eax
mov rcx, r15
cmp dword [r15], eax
cmovl rcx, r9
mov eax, dword [rcx]
mov dword [r15], eax
mov r9, qword [r14]
mov rcx, qword [r14 + 8]
sub rcx, r9
mov rax, r12
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
add r11d, edx
mov dword [rsp + 0x70], r11d
xor r13d, r13d
test rdx, rdx
je 0x140041fdd
xor r8d, r8d
nop dword [rax + rax]
lea rax, [r8 + r8*2]
lea r12, [r9 + rax*8]
mov r15, qword [r12 + 8]
sub r15, qword [r12]
sar r15, 3
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x3c], r15d
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
cmp rax, rdi
jae 0x140041ed1
lea rax, [rsp + 0x38]
cmp rcx, rax
ja 0x140041ed1
lea r14, [rsp + 0x38]
sub r14, rcx
sar r14, 3
cmp rdi, rsi
jne 0x140041ebc
mov rax, rsi
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x140041ebc
sub rdi, rcx
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14004203a
inc rdi
sub rsi, rcx
sar rsi, 3
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rsi
jae 0x140041e91
xor esi, esi
jmp 0x140041e94
add rsi, rcx
cmp rsi, rdi
cmovb rsi, rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140047c80
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r10d, dword [rsp + 0x34]
test rdi, rdi
je 0x140041ec8
mov rax, qword [rcx + r14*8]
mov qword [rdi], rax
mov r14, qword [rbp - 0x80]
jmp 0x140041f59
cmp rdi, rsi
jne 0x140041f4c
mov rax, rsi
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x140041f4c
sub rdi, rcx
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x140042047
inc rdi
sub rsi, rcx
sar rsi, 3
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rsi
jae 0x140041f26
xor esi, esi
jmp 0x140041f29
add rsi, rcx
cmp rsi, rdi
cmovb rsi, rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140047c80
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x34]
test rdi, rdi
je 0x140041f59
mov rax, qword [rsp + 0x38]
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x50], rdi
test r15d, r15d
jle 0x140041f99
mov rdx, qword [r12 + 8]
mov rcx, qword [r12]
mov r8, rdx
sub r8, rcx
sar r8, 3
movzx r9d, bl
call fcn.140047ea0
lea eax, [r13 + 4]
imul eax, r15d
mov r10d, dword [rsp + 0x34]
lea r10d, [r10 + rax*4]
mov dword [rsp + 0x34], r10d
inc r13d
mov r9, qword [r14]
mov r8d, r13d
mov rcx, qword [r14 + 8]
sub rcx, r9
movabs r12, 0x2aaaaaaaaaaaaaab
mov rax, r12
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jb 0x140041df0
mov r8, qword [rbp - 0x60]
mov r11d, dword [rsp + 0x70]
mov r15, qword [rbp - 0x58]
inc r8
mov qword [rbp - 0x60], r8
add r14, 0x18
mov qword [rbp - 0x80], r14
mov r9, qword [rbp - 0x78]
add r9, 8
mov qword [rbp - 0x78], r9
cmp r8, 0x18
jl 0x140041d80
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rdx, qword [rbp - 0x68]
add rdx, 0xc0
mov qword [rbp - 0x68], rdx
mov rcx, qword [rsp + 0x60]
add rcx, 0x240
mov qword [rsp + 0x60], rcx
cmp rax, 0x18
jge 0x140042054
jmp 0x140041d60
lea rcx, str.vector_T__too_long
call fcn.1400bbc18
int3
lea rcx, str.vector_T__too_long
call fcn.1400bbc18
int3
mov r15, qword [rsp + 0x48]
sub rdi, r15
sar rdi, 3
lea edx, [rdi*8]
xor eax, eax
test rdi, rdi
je 0x14004207d
xor ecx, ecx
add dword [r15 + rcx*8], edx
inc eax
mov ecx, eax
cmp rcx, rdi
jb 0x140042070
lea rcx, [rsp + 0x38]
call fcn.14006d290
nop
mov dword [rsp + 0x20], 2
mov r9d, 2
mov r8d, 0x40000000
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x38]
call fcn.14006fad0
test al, al
je 0x140042397
mov dword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140042112
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400420eb
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x58
mov rdx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140042112
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x1200
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
test rdi, rdi
je 0x14004215a
xor eax, eax
nop dword [rax + rax]
lea rdx, [r15 + rax*8]
test rbx, rbx
je 0x140042151
test rdx, rdx
je 0x140042151
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140042151
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
mov eax, esi
cmp rax, rdi
jb 0x140042120
mov qword [rsp + 0x60], 0x18
mov r10, qword [rsp + 0x68]
movabs r15, 0x2aaaaaaaaaaaaaab
nop dword [rax]
nop word [rax + rax]
mov r13d, 0x18
nop word [rax + rax]
xor r12d, r12d
mov r9, qword [r10]
mov rcx, qword [r10 + 8]
sub rcx, r9
mov rax, r15
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400422d4
xor r8d, r8d
nop word [rax + rax]
lea rax, [r8 + r8*2]
lea r14, [r9 + rax*8]
xor esi, esi
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400422a7
xor edx, edx
mov rdi, qword [rcx + rdx*8]
test rbx, rbx
je 0x140042217
test rdi, rdi
je 0x140042217
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140042217
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 8
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rdi]
shr r8d, 1
and r8d, 0x3f
add r8d, r8d
mov rdx, qword [rdi + 0x10]
test rbx, rbx
je 0x14004224f
test rdx, rdx
je 0x14004224f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14004224f
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rdi]
shr r8d, 1
and r8d, 0x3f
add r8d, r8d
mov rdx, qword [rdi + 0x18]
test rbx, rbx
je 0x140042287
test rdx, rdx
je 0x140042287
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140042287
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
mov rcx, qword [r14]
mov edx, esi
mov rax, qword [r14 + 8]
sub rax, rcx
sar rax, 3
cmp rdx, rax
jb 0x1400421e3
mov r10, qword [rsp + 0x68]
inc r12d
mov r9, qword [r10]
mov r8d, r12d
mov rcx, qword [r10 + 8]
sub rcx, r9
mov rax, r15
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jb 0x1400421c0
add r10, 0x18
mov qword [rsp + 0x68], r10
dec r13
jne 0x140042190
mov qword [rsp + 0x68], r10
dec qword [rsp + 0x60]
jne 0x140042180
test rbx, rbx
mov r15, qword [rsp + 0x48]
je 0x14004231a
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14004231a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14004231a
mov qword [rbx], 0xffffffffffffffff
mov r14, qword [rbp - 0x70]
mov rcx, r14
call fcn.1400638d0
mov rdi, rax
test eax, eax
jle 0x140042397
movsxd rsi, eax
lea rdx, [0x140174806]
mov rcx, rsi
call fcn.1400beea0
mov rbx, rax
test rax, rax
je 0x140042397
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400c2130
mov r9d, edi
mov r8, rbx
mov rdx, r14
call fcn.1400456d0
test al, al
jne 0x140042370
mov rcx, rbx
call fcn.1400bd2dc
jmp 0x140042397
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x2cd8]
mov rax, qword [rcx]
mov r9d, edi
mov r8, rbx
mov rdx, r14
call qword [rax + 0x10]
movzx edi, al
mov rcx, rbx
call fcn.1400bd2dc
jmp 0x14004239a
xor dil, dil
lea rcx, [rsp + 0x38]
call fcn.14006fa80
nop
test r15, r15
je 0x1400423c4
mov rcx, r15
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 0
movzx eax, dil
mov rcx, qword [rbp + 0x11d0]
xor rcx, rsp
call fcn.1400bcae0
add rsp, 0x12e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret