Function at 0x1400642c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14034e010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x64], 0
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140360448], eax
jle 0x140064378
lea rcx, [0x140360448]
call fcn.140269f64
cmp dword [0x140360448], 0xffffffff
jne 0x140064378
lea rax, [0x140360450]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [0x140360450]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov rcx, rax
call fcn.14002f340
lea rax, [0x140360450]
mov qword [rsp + 0x1e0], rax
lea rcx, [0x140310570]
call fcn.140269d88
lea rcx, [0x140360448]
call fcn.140269f04
lea rax, [0x140360450]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0x123
jae 0x1400644a7
mov byte [rsp + 0x20], 1
lea rax, [0x140360450]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
xor rax, 0xaac
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0xb8], rax
movzx eax, byte [rsp + 0x2b]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x22], al
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xb8]
movzx edx, byte [rsp + 0x22]
lea rcx, [rsp + 0x108]
call fcn.140182f70
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
lea rcx, [0x140360450]
call fcn.140167a20
jmp 0x1400644b3
lea rcx, [0x140360450]
call fcn.140167980
lea rdx, [0x140329145]
lea rcx, [rsp + 0x260]
call fcn.14001ea10
nop
lea rax, [rsp + 0x23]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x23]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0x25]
mov byte [rsp + 0x40], al
movabs rax, 0xa42dc74ad9936b39
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x1d0], rax
movabs rax, 0x2e538acfc342b66c
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x1d8], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0xc8], rax
movabs rax, 0xa42dc74ad993094b
mov qword [rsp + 0x280], rax
movabs rax, 0x2e538acfc342b66c
mov qword [rsp + 0x288], rax
lea rax, [rsp + 0x26]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x26]
mov byte [rsp + 0x48], al
movdqa xmm0, xmmword [rsp + 0x280]
movdqa xmmword [rsp + 0x220], xmm0
mov rax, qword [rsp + 0x88]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x210], xmm0
movdqa xmm0, xmmword [rsp + 0x210]
pxor xmm0, xmmword [rsp + 0x220]
movdqa xmmword [rsp + 0x230], xmm0
mov rax, qword [rsp + 0x88]
movdqa xmm0, xmmword [rsp + 0x230]
movdqu xmmword [rax], xmm0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x18], 0x10
jb 0x140064668
mov dword [rsp + 0x68], 1
jmp 0x140064670
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x27]
test eax, eax
je 0x1400646a5
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call fcn.1402dce78
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140064af3
movsxd rax, dword [0x14034ed2c]
movsxd rcx, dword [0x14034ed44]
add rcx, 0x95d0
imul rcx, rcx, 0x95d0
add rcx, 2
movsxd rdx, dword [0x14034ed44]
add rdx, 8
imul rcx, rdx
lea rax, [rax + rcx + 0x95d8]
mov rcx, rax
call fcn.14002ff10
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1402dd17c
mov rcx, qword [rsp + 0x50]
call fcn.1402dcd80
cdqe
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x138], 0x1e6e8
mov rax, qword [rsp + 0x138]
xor rax, 0xc
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x140], 0xc
mov rax, qword [0x14034ed70]
xor rax, 0x95d0
imul rax, rax, 9
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x158], 0x1e6e4
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x148]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
sub rax, rcx
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
xor edx, edx
div rcx
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov dword [rsp + 0x84], eax
mov rax, qword [0x14034ed78]
xor rax, 0x95d0
imul rax, rax, 0
imul rax, rax, 9
mov qword [rsp + 0x178], rax
imul rcx, qword [0x14034ed70], 0x95d0
xor edx, edx
mov rax, rcx
mov ecx, 0xc
div rcx
mov rcx, qword [rsp + 0x178]
add rcx, rax
mov rax, rcx
xor rax, 0xc
mov rcx, rax
call fcn.14002ffc0
mov dword [rsp + 0x80], eax
mov r8d, dword [rsp + 0x84]
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call fcn.1402dd17c
lea rdx, [0x140331cd4]
lea rcx, [rsp + 0x240]
call fcn.14001ea10
nop
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x180], rax
cmp qword [rsp + 0x180], 0xc
jae 0x1400648f4
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x188], rax
cmp qword [rsp + 0x188], 0
jne 0x1400648c3
mov dword [rsp + 0x58], 1
jmp 0x1400648cb
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
test eax, eax
jne 0x1400648f4
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x240]
call fcn.14001e8e0
jmp 0x140064904
xor edx, edx
lea rcx, [rsp + 0x240]
call fcn.1400294e0
nop
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x190], rax
cmp qword [rsp + 0x190], 0
jne 0x140064929
mov dword [rsp + 0x5c], 1
jmp 0x140064931
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x29], al
movzx eax, byte [rsp + 0x29]
test eax, eax
je 0x1400649bf
mov edx, 7
lea rcx, [rsp + 0x240]
call fcn.140168970
lea rax, str.Cleaner
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x14006496d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
mov r8, qword [rsp + 0x1a8]
lea rdx, str.Cleaner
lea rcx, [rsp + 0x240]
call fcn.140021ce0
nop
lea rcx, [rsp + 0x240]
call fcn.140021a50
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0x78], rax
ja 0x1400649ff
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x260]
call fcn.1400294e0
jmp 0x140064a25
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140029540
lea rax, [rsp + 0x260]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x18], 0x10
jb 0x140064a5e
mov dword [rsp + 0x60], 1
jmp 0x140064a66
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x2a], al
movzx eax, byte [rsp + 0x2a]
test eax, eax
je 0x140064a9b
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x1c0], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x78]
mov edx, 1
mov rcx, rax
call fcn.1402dd6b8
mov rcx, qword [rsp + 0x50]
call fcn.1402dcf08
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x2b0]
call fcn.14001e950
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x260]
call fcn.140021a50
nop
mov rcx, qword [rsp + 0x2b8]
call fcn.140021a50
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140269770
add rsp, 0x2a0
pop rdi
ret