Function at 0x140004bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x14001e018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x14001ea10]
lea r9, [rsp + 0x48]
mov r12, rcx
mov dword [rsp + 0x48], eax
mov rcx, qword [0x14001ea18]
xor r13d, r13d
mov edx, 0xffff
mov dword [rsp + 0x4c], r13d
mov r8d, 0x1006
mov dword [rsp + 0x20], 8
call qword [0x14001fd30]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000511f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [r13 + 8]
lea r8d, [r13 + 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, qword [0x14001ea18]
mov ebx, r13d
mov rdi, rax
mov dword [rax], 1
add byte [rax + 1], 0xfd
add byte [rax + 2], 0xfd
add byte [rax + 3], 0xfd
mov byte [rax], 0xfe
nop
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je 0x1400050f4
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400050ed
cmp ebx, 4
jl 0x140004ca0
mov rsi, qword [0x14001ea18]
mov ebx, r13d
mov dword [0x14001ffc4], r13d
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je 0x1400050f4
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400050ed
cmp ebx, 4
jl 0x140004d00
add byte [rdi], 3
add byte [rdi + 1], 3
add byte [rdi + 2], 3
add byte [rdi + 3], 3
mov qword [rsp + 0x98], r15
mov dword [0x14001ffc4], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, qword [0x14001ea18]
mov ebx, r13d
mov rdi, rax
test rax, rax
je 0x1400050d9
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je 0x1400050d9
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004dfd
cmp ebx, 4
jl 0x140004db0
add byte [rdi], 0xfd
add byte [rdi + 1], 0xfd
add byte [rdi + 2], 0xfd
add byte [rdi + 3], 0xfd
mov r15d, dword [rdi]
mov dword [0x14001ffc4], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, qword [0x14001ea18]
mov ebx, r13d
mov rdi, rax
test rax, rax
je 0x1400050d9
nop dword [rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je 0x1400050c5
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004e9d
cmp ebx, 4
jl 0x140004e50
add byte [rdi], 0xfd
add byte [rdi + 1], 0xfd
add byte [rdi + 2], 0xfd
add byte [rdi + 3], 0xfd
mov dword [0x14001ffc4], r13d
mov r13d, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ebp, ebp
mov rsi, rax
dec r15d
test r15d, r15d
jle 0x140004fd7
nop word [rax + rax]
mov r8d, 0x400
mov rdx, rsi
call fcn.140002120
cmp eax, 0xffffffff
je 0x1400050b5
cmp eax, 0xfffffffd
je 0x1400050d9
imul edx, dword [rsi], 0x3fc
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
lea rdi, [rsi + 4]
mov dword [rsp + 0x40], ecx
mov ebx, ecx
test rdi, rdi
je 0x140004f91
nop word [rax + rax]
mov r8d, 0x3fc
mov qword [rsp + 0x20], rcx
movsxd rdx, ebx
lea r9, [rsp + 0x40]
sub r8d, ebx
add rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140004f91
mov eax, dword [0x14001ffc4]
xor ecx, ecx
add ebx, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], ecx
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004f8b
cmp ebx, 0x3fc
jb 0x140004f40
mov dword [0x14001ffc4], ecx
mov rax, rsi
xorps xmm0, xmm0
mov ecx, 8
nop dword [rax]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x140004fa0
inc ebp
cmp r15d, ebp
jg 0x140004ef0
mov r8d, r13d
mov rdx, rsi
call fcn.140002120
cmp eax, 0xffffffff
je 0x1400050b5
imul edx, dword [rsi], 0x3fc
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r15d, r15d
lea rbp, [rsi + 4]
mov dword [rsp + 0x40], r15d
lea edi, [r13 - 4]
mov ebx, r15d
test rbp, rbp
je 0x14000506a
test edi, edi
je 0x140005063
nop dword [rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r15
add rdx, rbp
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000506a
mov eax, dword [0x14001ffc4]
add ebx, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], r15d
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140005063
cmp edi, ebx
ja 0x140005020
mov dword [0x14001ffc4], r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005d50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
test rsi, rsi
je 0x1400050d9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
jmp 0x1400050ce
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [0x14001fd70]
jmp 0x140005087
mov dword [0x14001ffc4], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [0x14001fd70]
jmp 0x14000508f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, qword [0x14001ea18]
mov ebx, r13d
mov rsi, rax
mov dword [rax], r13d
add byte [rax + 1], 0xfd
add byte [rax + 2], 0xfd
add byte [rax + 3], 0xfd
mov byte [rax], 0xfd
nop dword [rax + rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je 0x1400052bb
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400052b4
cmp ebx, 4
jl 0x140005180
add byte [rsi], 3
mov ebx, r13d
add byte [rsi + 1], 3
add byte [rsi + 2], 3
add byte [rsi + 3], 3
add byte [rdi], 0xfd
add byte [rdi + 1], 0xfd
add byte [rdi + 2], 0xfd
add byte [rdi + 3], 0xfd
mov rbp, qword [0x14001ea18]
mov dword [0x14001ffc4], r13d
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rbp
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je 0x140005275
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x14000526e
cmp ebx, 4
jl 0x1400051f1
add byte [rdi], 3
add byte [rdi + 1], 3
add byte [rdi + 2], 3
add byte [rdi + 3], 3
mov dword [0x14001ffc4], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000508f
mov dword [0x14001ffc4], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [0x14001fd70]
jmp 0x14000508f
mov dword [0x14001ffc4], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [0x14001fd70]
jmp 0x14000508f