Function at 0x140004d10
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 [0x140024018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140024a20]
lea r9, [rsp + 0x48]
mov r12, rcx
mov dword [rsp + 0x48], eax
mov rcx, qword [0x140024a28]
xor r13d, r13d
mov edx, 0xffff
mov dword [rsp + 0x4c], r13d
mov r8d, 0x1006
mov dword [rsp + 0x20], 8
call qword [0x140025d50]
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 0x14000525f
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 [0x140024a28]
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 [0x140025dd8]
cmp eax, 0xffffffff
je 0x140005234
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x14000522d
cmp ebx, 4
jl 0x140004de0
mov rsi, qword [0x140024a28]
mov ebx, r13d
mov dword [0x140025ff4], 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 [0x140025dd8]
cmp eax, 0xffffffff
je 0x140005234
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x14000522d
cmp ebx, 4
jl 0x140004e40
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 [0x140025ff4], 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 [0x140024a28]
mov ebx, r13d
mov rdi, rax
test rax, rax
je 0x140005219
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 [0x140025d78]
cmp eax, 0xffffffff
je 0x140005219
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004f3d
cmp ebx, 4
jl 0x140004ef0
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 [0x140025ff4], 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 [0x140024a28]
mov ebx, r13d
mov rdi, rax
test rax, rax
je 0x140005219
nop dword [rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rsi
call qword [0x140025d78]
cmp eax, 0xffffffff
je 0x140005205
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004fdd
cmp ebx, 4
jl 0x140004f90
add byte [rdi], 0xfd
add byte [rdi + 1], 0xfd
add byte [rdi + 2], 0xfd
add byte [rdi + 3], 0xfd
mov dword [0x140025ff4], 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 0x140005117
nop word [rax + rax]
mov r8d, 0x400
mov rdx, rsi
call fcn.1400021a0
cmp eax, 0xffffffff
je 0x1400051f5
cmp eax, 0xfffffffd
je 0x140005219
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 0x1400050d1
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 0x1400050d1
mov eax, dword [0x140025ff4]
xor ecx, ecx
add ebx, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], ecx
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x1400050cb
cmp ebx, 0x3fc
jb 0x140005080
mov dword [0x140025ff4], 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 0x1400050e0
inc ebp
cmp r15d, ebp
jg 0x140005030
mov r8d, r13d
mov rdx, rsi
call fcn.1400021a0
cmp eax, 0xffffffff
je 0x1400051f5
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 0x1400051aa
test edi, edi
je 0x1400051a3
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 0x1400051aa
mov eax, dword [0x140025ff4]
add ebx, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], r15d
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x1400051a3
cmp edi, ebx
ja 0x140005160
mov dword [0x140025ff4], 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.140005e90
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 0x140005219
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
jmp 0x14000520e
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 [0x140025d90]
jmp 0x1400051c7
mov dword [0x140025ff4], 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 [0x140025d90]
jmp 0x1400051cf
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 [0x140024a28]
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 [0x140025dd8]
cmp eax, 0xffffffff
je 0x1400053fb
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x1400053f4
cmp ebx, 4
jl 0x1400052c0
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 [0x140024a28]
mov dword [0x140025ff4], r13d
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
mov rcx, rbp
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x1400053b5
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x1400053ae
cmp ebx, 4
jl 0x140005331
add byte [rdi], 3
add byte [rdi + 1], 3
add byte [rdi + 2], 3
add byte [rdi + 3], 3
mov dword [0x140025ff4], 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 0x1400051cf
mov dword [0x140025ff4], 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 [0x140025d90]
jmp 0x1400051cf
mov dword [0x140025ff4], 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 [0x140025d90]
jmp 0x1400051cf