Function at 0x14006d390
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rsi, rcx
mov r8d, 0x104
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], r14b
cmp byte [rbp - 0x50], r14b
jne 0x14006d3eb
mov r8d, r14d
jmp 0x14006d3fc
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x14006d3f3
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.14000d058
mov r9d, 2
or r8, 0xffffffffffffffff
lea rdx, [0x1403f4d10]
lea rcx, [rsp + 0x40]
call fcn.1400729d0
mov rbx, rax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x10
jb 0x14006d484
inc rcx
mov rdx, qword [rsp + 0x40]
cmp rcx, 0x1000
jb 0x14006d47c
test dl, 0x1f
je 0x14006d44f
call fcn.140128ff4
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14006d45e
call fcn.140128ff4
int3
sub rdx, rax
cmp rdx, 8
jae 0x14006d46d
call fcn.140128ff4
int3
cmp rdx, 0x27
jbe 0x14006d479
call fcn.140128ff4
int3
mov rdx, rax
mov rcx, rdx
call fcn.1400eb7f4
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], r14b
cmp byte [rbp - 0x50], r14b
jne 0x14006d4a2
mov r8, r14
jmp 0x14006d4b9
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x14006d4b0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.14000d058
nop
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001d670
nop
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14006d536
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x14006d531
test cl, 0x1f
je 0x14006d504
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006d513
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006d522
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14006d52e
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], 0
mov r8d, 1
lea rdx, [0x1402470a0]
lea rcx, [rsp + 0x60]
call fcn.14000bb3c
mov edx, 0x98
lea rcx, [rbp - 0x78]
call fcn.1400160a0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000ba20
nop
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x14006d5da
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x14006d5d5
test cl, 0x1f
je 0x14006d5a8
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006d5b7
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006d5c6
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14006d5d2
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
mov ebx, r14d
nop dword [rax]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006d631
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x14006d5e0
jmp 0x14006d661
mov dword [rbp + 0xe8], r14d
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xe8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x14006d6b9
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x14006d6b4
test cl, 0x1f
je 0x14006d687
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006d696
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006d6a5
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14006d6b1
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret