Function at 0x14002cf60
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 0x14002cfbb
mov r8d, r14d
jmp 0x14002cfcc
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x14002cfc3
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400080d0
mov r9d, 2
or r8, 0xffffffffffffffff
lea rdx, [0x14012fd98]
lea rcx, [rsp + 0x40]
call fcn.1400325f0
mov rbx, rax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x10
jb 0x14002d054
inc rcx
mov rdx, qword [rsp + 0x40]
cmp rcx, 0x1000
jb 0x14002d04c
test dl, 0x1f
je 0x14002d01f
call fcn.1400e463c
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14002d02e
call fcn.1400e463c
int3
sub rdx, rax
cmp rdx, 8
jae 0x14002d03d
call fcn.1400e463c
int3
cmp rdx, 0x27
jbe 0x14002d049
call fcn.1400e463c
int3
mov rdx, rax
mov rcx, rdx
call fcn.14007b810
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 0x14002d072
mov r8, r14
jmp 0x14002d089
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x14002d080
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400080d0
nop
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000d170
nop
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14002d106
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x14002d101
test cl, 0x1f
je 0x14002d0d4
call fcn.1400e463c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d0e3
call fcn.1400e463c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d0f2
call fcn.1400e463c
int3
cmp rcx, 0x27
jbe 0x14002d0fe
call fcn.1400e463c
int3
mov rcx, rax
call fcn.14007b810
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], 0
mov r8d, 1
lea rdx, [0x14012d6b0]
lea rcx, [rsp + 0x60]
call fcn.14000ca90
mov edx, __WSAFDIsSet
lea rcx, [rbp - 0x78]
call fcn.140024260
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140007fa0
nop
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x14002d1aa
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x14002d1a5
test cl, 0x1f
je 0x14002d178
call fcn.1400e463c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d187
call fcn.1400e463c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d196
call fcn.1400e463c
int3
cmp rcx, 0x27
jbe 0x14002d1a2
call fcn.1400e463c
int3
mov rcx, rax
call fcn.14007b810
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 0x14002d201
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x14002d1b0
jmp 0x14002d231
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 0x14002d289
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x14002d284
test cl, 0x1f
je 0x14002d257
call fcn.1400e463c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d266
call fcn.1400e463c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d275
call fcn.1400e463c
int3
cmp rcx, 0x27
jbe 0x14002d281
call fcn.1400e463c
int3
mov rcx, rax
call fcn.14007b810
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret