Function at 0x140008494
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x78], 0xffffffff
mov eax, dword [rsp + 0x1e8]
cmp dword [rsp + 0x78], eax
jne 0x1400084e1
mov dword [rsp + 0x5c], 1
jmp 0x1400084e9
mov dword [rsp + 0x5c], 0
mov al, byte [rsp + 0x5c]
mov byte [rsp + 0x42], al
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x140008567
mov dword [rsp + 0x7c], 0xffffffff
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x1e8], eax
je 0x14000851c
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x64], eax
jmp 0x14000854b
mov dword [rsp + 0x80], 0xffffffff
cmp dword [rsp + 0x80], 0
jne 0x14000853b
mov dword [rsp + 0x60], 1
jmp 0x140008543
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
jmp 0x140008b4e
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x14000864c
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x58]
movsxd rcx, dword [rcx]
add rcx, qword [rax]
mov rax, rcx
cmp qword [rsp + 0xc0], rax
jae 0x14000864c
mov al, byte [rsp + 0x1e8]
mov byte [rsp + 0x43], al
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc8]
mov cl, byte [rsp + 0x43]
mov byte [rax], cl
mov eax, dword [rsp + 0x1e8]
jmp 0x140008b4e
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x80], 0
jne 0x140008675
mov dword [rsp + 0x88], 0xffffffff
mov eax, dword [rsp + 0x88]
jmp 0x140008b4e
mov rcx, qword [rsp + 0x1e0]
call fcn.140009100
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x68], 0
jne 0x140008719
mov al, byte [rsp + 0x1e8]
mov byte [rsp + 0x44], al
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0xd0], rax
movsx eax, byte [rsp + 0x44]
mov rdx, qword [rsp + 0xd0]
mov ecx, eax
call fcn.140295648
cmp eax, 0xffffffff
je 0x1400086da
mov dword [rsp + 0x68], 1
jmp 0x1400086e2
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x1400086f8
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x50], eax
jmp 0x14000870b
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x50]
jmp 0x140008b4e
mov dword [rsp + 0xac], 8
mov al, byte [rsp + 0x1e8]
mov byte [rsp + 0x40], al
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x1a0]
call fcn.14000abcc
nop
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x1a0]
call fcn.1400102fc
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
add rax, 0x10
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x1a0]
call fcn.1400102fc
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x41]
mov r8, qword [rsp + 0x1e0]
add r8, 0x74
mov qword [rsp + 0x118], r8
lea r9, [rsp + 0x130]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x118]
mov rdx, rcx
mov rcx, qword [rsp + 0xa0]
call qword [rax + gethostname]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x140008b0f
cmp dword [rsp + 0x54], 1
jle 0x1400088aa
cmp dword [rsp + 0x54], 3
je 0x140008a75
jmp 0x140008b0f
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x1a0]
call fcn.1400102fc
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x140008988
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x1a0]
call fcn.1400102fc
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x1e0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x140]
call fcn.14029a098
cmp qword [rsp + 0x70], rax
je 0x140008988
mov dword [rsp + 0x8c], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x8c]
jmp 0x140008b4e
mov rax, qword [rsp + 0x1e0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x148], rax
je 0x1400089d0
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x90], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x90]
jmp 0x140008b4e
cmp qword [rsp + 0x70], 0
jbe 0x1400089dd
jmp 0x140008a70
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
add rax, 0x10
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0x20
jae 0x140008a46
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x1a0]
call fcn.14000ae34
jmp 0x140008a70
mov dword [rsp + 0x94], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x94]
jmp 0x140008b4e
jmp 0x140008b36
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x170], rax
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x48], al
movsx eax, byte [rsp + 0x48]
mov rdx, qword [rsp + 0x170]
mov ecx, eax
call fcn.140295648
cmp eax, 0xffffffff
je 0x140008ab7
mov dword [rsp + 0x6c], 1
jmp 0x140008abf
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
test eax, eax
je 0x140008ad5
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x58], eax
jmp 0x140008ae8
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x58], 0xffffffff
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x98], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x98]
jmp 0x140008b4e
mov dword [rsp + 0x9c], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x9c]
jmp 0x140008b4e
jmp 0x140008745
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140286010
add rsp, 0x1d8
ret