Function at 0x1400073c8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5f0
mov rax, qword [0x14000c380]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
xor r14d, r14d
xor esi, esi
mov r12d, r8d
mov r13, rdx
movsxd rbx, ecx
mov dword [rsp + 0x44], r14d
test r8d, r8d
jne 0x140007410
xor eax, eax
jmp 0x140007a74
test rdx, rdx
jne 0x140007443
call fcn.140005548
and dword [rax], esi
call fcn.140005520
and qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call fcn.1400054b0
or eax, 0xffffffff
jmp 0x140007a74
mov r15, rbx
mov rbp, rbx
lea rax, [0x14000f560]
sar rbp, 5
and r15d, 0x1f
mov rcx, qword [rax + rbp*8]
mov qword [rsp + 0x58], rbp
imul r15, r15, 0x38
mov edi, dword [r15 + rcx + 0xc]
and edi, 3
cmp edi, 2
je 0x140007477
cmp edi, 1
jne 0x140007480
mov eax, r12d
not eax
test al, 1
je 0x140007415
test byte [r15 + rcx + 8], 0x20
je 0x140007495
xor edx, edx
mov ecx, ebx
lea r8d, [rdx + 2]
call fcn.1400071ec
mov ecx, ebx
call fcn.140007c44
test eax, eax
je 0x14000771e
lea rax, [0x14000f560]
mov rax, qword [rax + rbp*8]
test byte [r15 + rax + 8], 0x80
je 0x14000771e
call fcn.1400040b4
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + 0xc0]
lea rax, [0x14000f560]
cmp dword [rcx + 0x14], ebx
mov rcx, qword [rax + rbp*8]
mov rcx, qword [r15 + rcx]
sete bl
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14000771e
test ebx, ebx
je 0x1400074fd
test edi, edi
je 0x14000771e
call qword [sym.imp.KERNEL32.dll_GetConsoleCP]
and dword [rsp + 0x4c], esi
mov rbx, r13
mov dword [rsp + 0x50], eax
test r12d, r12d
je 0x140007715
mov r14d, dword [rsp + 0x50]
mov ebp, 0xd
test edi, edi
jne 0x140007699
movsx ecx, byte [rbx]
xor r14d, r14d
cmp byte [rbx], 0xa
sete r14b
call fcn.1400083ac
test eax, eax
jne 0x14000758e
lea r8d, [rdi + 1]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140008350
cmp eax, 0xffffffff
jne 0x1400075b8
mov ebx, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x44]
test esi, esi
jne 0x140007a6f
test ebx, ebx
je 0x140007a34
cmp ebx, 5
jne 0x140007a28
call fcn.140005520
mov dword [rax], 9
call fcn.140005548
mov dword [rax], ebx
jmp 0x14000743b
mov rax, r12
sub rax, rbx
add rax, r13
cmp rax, 1
jle 0x140007555
lea rcx, [rsp + 0x40]
mov r8d, 2
mov rdx, rbx
call fcn.140008350
cmp eax, 0xffffffff
je 0x140007555
inc rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov r9d, 1
xor edx, edx
mov dword [rsp + 0x28], 5
inc rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test eax, eax
je 0x140007555
mov rax, qword [rsp + 0x58]
and qword [rsp + 0x20], 0
lea rcx, [0x14000f560]
mov rcx, qword [rcx + rax*8]
lea r9, [rsp + 0x4c]
lea rdx, [rsp + 0x60]
mov rcx, qword [r15 + rcx]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007708
add esi, dword [rsp + 0x4c]
cmp dword [rsp + 0x4c], ebp
jl 0x140007555
mov ebp, 0xd
test r14d, r14d
je 0x1400076f5
mov rax, qword [rsp + 0x58]
and qword [rsp + 0x20], 0
mov byte [rsp + 0x60], bpl
lea rcx, [0x14000f560]
lea r9, [rsp + 0x4c]
lea r8d, [rbp - 0xc]
mov rcx, qword [rcx + rax*8]
lea rdx, [rsp + 0x60]
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007708
cmp dword [rsp + 0x4c], 1
jl 0x140007555
inc dword [rsp + 0x44]
inc esi
jmp 0x1400076f5
cmp edi, 1
je 0x1400076a3
cmp edi, 2
jne 0x1400076ba
movzx eax, word [rbx]
xor r14d, r14d
cmp ax, 0xa
mov word [rsp + 0x40], ax
sete r14b
add rbx, 2
cmp edi, 1
je 0x1400076c4
cmp edi, 2
jne 0x1400076f5
movzx ecx, word [rsp + 0x40]
call fcn.140009964
cmp ax, word [rsp + 0x40]
jne 0x140007708
inc esi
test r14d, r14d
je 0x1400076f5
mov ecx, ebp
mov word [rsp + 0x40], bp
call fcn.140009964
cmp ax, word [rsp + 0x40]
jne 0x140007708
inc esi
inc dword [rsp + 0x44]
mov eax, ebx
sub eax, r13d
cmp eax, r12d
jae 0x140007555
jmp 0x140007521
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140007559
mov ebx, dword [rsp + 0x4c]
jmp 0x140007566
lea rax, [0x14000f560]
mov rcx, qword [rax + rbp*8]
test byte [r15 + rcx + 8], 0x80
je 0x1400079fb
xor ebx, ebx
test edi, edi
jne 0x1400077f3
mov rbp, r13
test r12d, r12d
je 0x140007a34
lea edx, [rbx + 0xd]
lea rdi, [rsp + 0x70]
xor ecx, ecx
mov eax, ebp
sub eax, r13d
cmp eax, r12d
jae 0x140007785
mov al, byte [rbp]
inc rbp
cmp al, 0xa
jne 0x140007774
mov byte [rdi], dl
inc r14d
inc rdi
inc rcx
inc rcx
mov byte [rdi], al
inc rdi
cmp rcx, 0x400
jb 0x140007755
and qword [rsp + 0x20], rbx
lea rax, [rsp + 0x70]
mov r8d, edi
sub r8d, eax
mov rax, qword [rsp + 0x58]
lea rcx, [0x14000f560]
mov rcx, qword [rcx + rax*8]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400078cc
add esi, dword [rsp + 0x48]
lea rax, [rsp + 0x70]
sub rdi, rax
movsxd rax, dword [rsp + 0x48]
cmp rax, rdi
jl 0x14000755e
mov eax, ebp
mov edx, 0xd
sub eax, r13d
cmp eax, r12d
jb 0x14000774e
jmp 0x14000755e
cmp edi, 2
jne 0x1400078d9
mov rbp, r13
test r12d, r12d
je 0x140007a34
lea edx, [rdi + 0xb]
lea rdi, [rsp + 0x70]
xor ecx, ecx
mov eax, ebp
sub eax, r13d
cmp eax, r12d
jae 0x14000785c
movzx eax, word [rbp]
add rbp, 2
cmp ax, 0xa
jne 0x140007842
cmp rcx, 0x3fd
ja 0x140007858
mov word [rdi], dx
add r14d, 2
add rdi, 2
add rcx, 2
add rcx, 2
mov word [rdi], ax
add rdi, 2
cmp rcx, 0x3ff
jae 0x14000785c
jmp 0x140007812
sub rbp, 2
and qword [rsp + 0x20], rbx
lea rax, [rsp + 0x70]
mov r8d, edi
sub r8d, eax
mov rax, qword [rsp + 0x58]
lea rcx, [0x14000f560]
mov rcx, qword [rcx + rax*8]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400078cc
movsxd rcx, dword [rsp + 0x48]
lea rax, [rsp + 0x70]
sub rdi, rax
add esi, ecx
cmp rcx, rdi
jl 0x14000755e
test ecx, ecx
je 0x14000755e
mov eax, ebp
mov edx, 0xd
sub eax, r13d
cmp eax, r12d
jb 0x14000780b
jmp 0x14000755e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000755e
mov rdi, r13
test r12d, r12d
je 0x140007a34
mov r8d, 0xd
lea rdx, [rsp + 0x480]
xor ecx, ecx
mov eax, edi
sub eax, r13d
cmp eax, r12d
jae 0x14000793b
movzx eax, word [rdi]
add rdi, 2
cmp ax, 0xa
jne 0x140007921
cmp rcx, 0x150
ja 0x140007937
mov word [rdx], r8w
add rdx, 2
add rcx, 2
add rcx, 2
mov word [rdx], ax
add rdx, 2
cmp rcx, 0x152
jae 0x14000793b
jmp 0x1400078f5
sub rdi, 2
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x480]
sub edx, eax
lea r8, [rsp + 0x480]
mov ecx, 0xfde9
mov eax, edx
mov dword [rsp + 0x28], 0x2ab
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r9d, eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14d, eax
test eax, eax
je 0x140007708
xor ebp, ebp
mov rax, qword [rsp + 0x58]
and qword [rsp + 0x20], 0
movsxd rcx, ebp
lea rdx, [rsp + rcx + 0x70]
mov r8d, r14d
lea rcx, [0x14000f560]
mov rcx, qword [rcx + rax*8]
lea r9, [rsp + 0x48]
sub r8d, ebp
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400079d1
add ebp, dword [rsp + 0x48]
cmp r14d, ebp
jg 0x14000798f
jmp 0x1400079d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp r14d, ebp
jg 0x140007559
mov esi, edi
mov r8d, 0xd
sub esi, r13d
cmp esi, r12d
jb 0x1400078eb
jmp 0x140007559
mov rcx, qword [r15 + rcx]
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, r12d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400078cc
mov esi, dword [rsp + 0x48]
xor ebx, ebx
jmp 0x14000755e
mov ecx, ebx
call fcn.140005570
jmp 0x14000743b
mov rax, qword [rsp + 0x58]
lea rcx, [0x14000f560]
mov rax, qword [rcx + rax*8]
test byte [r15 + rax + 8], 0x40
je 0x140007a57
cmp byte [r13], 0x1a
je 0x140007409
call fcn.140005520
mov dword [rax], 0x1c
call fcn.140005548
and dword [rax], 0
jmp 0x14000743b
sub esi, r14d
mov eax, esi
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.140002cb0
mov rbx, qword [rsp + 0x648]
add rsp, 0x5f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret