Function at 0x14002cf50
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 0x14002cfab
mov r8d, r14d
jmp 0x14002cfbc
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x14002cfb3
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.1400325e0
mov rbx, rax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x10
jb 0x14002d044
inc rcx
mov rdx, qword [rsp + 0x40]
cmp rcx, 0x1000
jb 0x14002d03c
test dl, 0x1f
je 0x14002d00f
call fcn.1400e462c
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14002d01e
call fcn.1400e462c
int3
sub rdx, rax
cmp rdx, 8
jae 0x14002d02d
call fcn.1400e462c
int3
cmp rdx, 0x27
jbe 0x14002d039
call fcn.1400e462c
int3
mov rdx, rax
mov rcx, rdx
call fcn.14007b800
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 0x14002d062
mov r8, r14
jmp 0x14002d079
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x14002d070
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 0x14002d0f6
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x14002d0f1
test cl, 0x1f
je 0x14002d0c4
call fcn.1400e462c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d0d3
call fcn.1400e462c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d0e2
call fcn.1400e462c
int3
cmp rcx, 0x27
jbe 0x14002d0ee
call fcn.1400e462c
int3
mov rcx, rax
call fcn.14007b800
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 0x14002d19a
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x14002d195
test cl, 0x1f
je 0x14002d168
call fcn.1400e462c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d177
call fcn.1400e462c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d186
call fcn.1400e462c
int3
cmp rcx, 0x27
jbe 0x14002d192
call fcn.1400e462c
int3
mov rcx, rax
call fcn.14007b800
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 0x14002d1f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x14002d1a0
jmp 0x14002d221
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 0x14002d279
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x14002d274
test cl, 0x1f
je 0x14002d247
call fcn.1400e462c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d256
call fcn.1400e462c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d265
call fcn.1400e462c
int3
cmp rcx, 0x27
jbe 0x14002d271
call fcn.1400e462c
int3
mov rcx, rax
call fcn.14007b800
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret