Function at 0x140003580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14003a0c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov edi, edx
mov rbx, rcx
cmp qword [rcx + 0x30], 0xffffffffffffffff
jne 0x1400038ab
xor esi, esi
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400035cf
cmp qword [rbx + 0x10], rsi
ja 0x1400035d2
mov rcx, rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140003631
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140003611
cmp eax, 0x50
jne 0x140003622
mov edi, 3
cmp qword [rbx + 0x30], 0xffffffffffffffff
je 0x1400035c0
jmp 0x1400038ab
mov qword [rbx + 0x30], 0xffffffffffffffff
xor al, al
jmp 0x1400038ad
cmp edi, 1
jne 0x14000388f
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003649
cmp qword [rbx + 0x10], rsi
ja 0x14000364c
mov rcx, rsi
call fcn.140002bc0
mov word [rbp + 0x27], 0xfeff
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x27]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
lea r15, [0x14002e968]
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0x104
mov word [rbp - 0x11], si
lea r14, str.Nilesoft_Shell
mov rax, r14
mov rdi, rsi
lea rax, [rax + 2]
inc rdi
cmp word [rax], 0
jne 0x1400036b0
test rdi, rdi
je 0x14000370e
mov r8b, 1
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.1400031f0
mov r8, rdi
mov rcx, qword [rbp - 0x31]
mov rax, qword [rbp - 0x29]
lea rdx, [rcx + rax*2]
test rdx, rdx
je 0x14000370a
mov eax, 0x4e
sub r14, rdx
nop dword [rax]
mov word [rdx], ax
lea rdx, [rdx + 2]
sub r8, 1
je 0x140003707
movzx eax, word [r14 + rdx]
test ax, ax
jne 0x1400036f0
mov word [rdx], si
mov qword [rbp - 0x29], rdi
mov dword [rsp + 0x20], 0xa
mov r9d, 9
lea r8d, [r9 - 8]
lea rdx, str._r_nversion__d._d._d
lea rcx, [rbp - 0x39]
call fcn.140003160
lea r8, str.64_bit
lea rdx, str.__s_r_n
lea rcx, [rbp - 0x39]
call fcn.140003160
lea r8, str.support_nilesoft.org
lea rdx, str._s_r_n
lea rcx, [rbp - 0x39]
call fcn.140003160
lea r8, str.https:__nilesoft.org
lea rdx, str._s_r_n
lea rcx, [rbp - 0x39]
call fcn.140003160
mov ecx, dword [0x14003a968]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14003a6f8], ecx
jg 0x1400038d0
mov r9, qword [0x14003a670]
test r9, r9
je 0x1400037b2
cmp qword [0x14003a678], 0
ja 0x1400037b5
mov r9, rsi
mov r8, qword [0x14003a640]
test r8, r8
je 0x1400037cb
cmp qword [0x14003a648], 0
ja 0x1400037ce
mov r8, rsi
lea rdx, str._r_n_s__version__s_r_n
lea rcx, [rbp - 0x39]
call fcn.140003160
mov qword [rbp - 9], r15
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], 0x104
mov word [rbp + 0x1f], si
xor r8d, r8d
lea edx, [r8 + 0x50]
lea rcx, [rbp - 9]
call fcn.1400031f0
mov qword [rbp + 7], 0x50
mov r14, qword [rbp - 1]
test r14, r14
je 0x14000382e
mov eax, 0x2d
movzx eax, ax
mov rdi, r14
mov ecx, 0x50
rep stosw word [rdi], ax
mov r8, r14
lea rdx, str._s_r_n
lea rcx, [rbp - 0x39]
call fcn.140003160
nop
mov qword [rbp - 9], r15
test r14, r14
je 0x140003853
mov rcx, r14
call fcn.1400119f8
mov byte [0x14003a4b0], 0
mov rdi, qword [rbp - 0x31]
test rdi, rdi
je 0x14000386d
cmp qword [rbp - 0x29], 0
jbe 0x14000386d
mov rsi, rdi
mov r8, rsi
mov edx, 5
mov rcx, rbx
call fcn.140002df0
nop
mov qword [rbp - 0x39], r15
test rdi, rdi
je 0x14000388f
mov rcx, rdi
call fcn.1400119f8
mov byte [0x14003a4b0], 1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140011e80
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14003a6f8]
call fcn.140011cf0
cmp dword [0x14003a6f8], 0xffffffff
jne 0x14000379c
xor edx, edx
mov r8d, 0x108
lea rcx, [0x14003a5f0]
call sub.msvcrt.dll_memset
lea rcx, [0x14003a5f0]
call fcn.1400017b0
lea rcx, [0x14002d5b0]
call fcn.140011c30
nop
lea rcx, [0x14003a6f8]
call fcn.140011c84
jmp 0x14000379c