Function at 0x140004940
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 0x140004e8f
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 0x140004e64
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004e5d
cmp ebx, 4
jl 0x140004a10
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 0x140004e64
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004e5d
cmp ebx, 4
jl 0x140004a70
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 0x140004e49
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 0x140004e49
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004b6d
cmp ebx, 4
jl 0x140004b20
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 0x140004e49
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 0x140004e35
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004c0d
cmp ebx, 4
jl 0x140004bc0
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 0x140004d47
nop word [rax + rax]
mov r8d, 0x400
mov rdx, rsi
call fcn.140002120
cmp eax, 0xffffffff
je 0x140004e25
cmp eax, 0xfffffffd
je 0x140004e49
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 0x140004d01
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 0x140004d01
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 0x140004cfb
cmp ebx, 0x3fc
jb 0x140004cb0
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 0x140004d10
inc ebp
cmp r15d, ebp
jg 0x140004c60
mov r8d, r13d
mov rdx, rsi
call fcn.140002120
cmp eax, 0xffffffff
je 0x140004e25
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 0x140004dda
test edi, edi
je 0x140004dd3
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 0x140004dda
mov eax, dword [0x14001ffc4]
add ebx, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], r15d
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004dd3
cmp edi, ebx
ja 0x140004d90
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.140005ac0
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 0x140004e49
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
jmp 0x140004e3e
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 0x140004df7
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 0x140004dff
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 0x14000502b
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140005024
cmp ebx, 4
jl 0x140004ef0
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 0x140004fe5
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004fde
cmp ebx, 4
jl 0x140004f61
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 0x140004dff
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 0x140004dff
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 0x140004dff