Function at 0x140025030
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x3d0
mov rax, qword [0x14006e078]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
xor esi, esi
mov r14, r8
cmp dword [rcx + 8], 0xffffffff
mov ebp, edx
mov rdi, rcx
je 0x1400250b4
mov qword [rsp + 0x408], r15
mov r15, qword [rcx]
test r15, r15
je 0x1400250ac
mov rbx, qword [r15 + 0x80]
test rbx, rbx
je 0x1400250ac
mov rcx, qword [rbx]
test rcx, rcx
je 0x140025089
call fcn.140035634
mov qword [rbx], rsi
cmp dword [rbx + 0x64], esi
je 0x14002509a
lea rcx, [rbx + 8]
call fcn.140022b80
mov rcx, rbx
mov dword [rbx + 0x64], esi
call fcn.140035634
mov qword [r15 + 0x80], rsi
mov r15, qword [rsp + 0x408]
mov rbx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rbx + 8]
jl 0x1400250cd
mov eax, 0x10000
jmp 0x1400251a9
cmp ebp, dword [rbx + 0x14]
jge 0x140025101
test rbx, rbx
je 0x140025101
mov eax, dword [rbx + 0x28]
lea r8, [rbx + 0x7c]
lea rdx, [rbx + 0x2c]
mov dword [rbx + 0x18], eax
xor r9d, r9d
mov dword [rbx + 0x14], esi
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.140023a70
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jge 0x140025161
nop dword [rax]
test rbx, rbx
je 0x140025159
cmp dword [rbx + 0x1c], esi
je 0x140025159
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x140025159
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], esi
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.140023a70
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jl 0x140025110
lea r8, [rsp + 0x60]
mov edx, ebp
mov rcx, rdi
call fcn.140024740
mov eax, dword [rsp + 0x168]
shr eax, 4
test al, 1
movzx eax, byte [r14]
je 0x1400251c7
cmp al, 0x2f
je 0x14002519c
cmp al, 0x5c
je 0x14002519c
test al, al
je 0x140025195
cmp byte [r14 + 1], 0x3a
je 0x14002519c
lea rsi, [rdi + 0x150]
mov rdx, r14
mov rcx, rsi
call fcn.140024e70
xor eax, eax
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140027270
add rsp, 0x3d0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov byte [rsp + 0x2b0], sil
mov rbx, r14
mov rcx, r14
test al, al
je 0x1400251fb
nop dword [rax]
cmp al, 0x2f
je 0x1400251ed
cmp al, 0x5c
je 0x1400251ed
inc rcx
jmp 0x1400251f4
lea rbx, [rcx + 1]
mov rcx, rbx
movzx eax, byte [rcx]
test al, al
jne 0x1400251e0
mov r8d, 0x104
lea rcx, [rsp + 0x1a0]
mov rdx, r14
call fcn.140035f50
cmp rbx, r14
jne 0x140025220
mov byte [rsp + 0x1a0], sil
jmp 0x140025258
mov rax, rbx
sub rax, r14
cmp rax, 0x104
jae 0x14002541d
mov byte [rsp + rax + 0x1a0], sil
movzx eax, byte [rsp + 0x1a0]
cmp al, 0x2f
je 0x140025285
cmp al, 0x5c
je 0x140025285
test al, al
je 0x140025258
cmp byte [rsp + 0x1a1], 0x3a
je 0x140025285
lea rbp, [rdi + 0x150]
mov qword [rsp + 0x20], rbx
mov r8, rbp
lea r9, [rsp + 0x1a0]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x2b0]
call fcn.14001fdb0
jmp 0x1400252a7
mov r9, rbx
lea r8, [rsp + 0x1a0]
lea rdx, str._s_s
lea rcx, [rsp + 0x2b0]
call fcn.14001fdb0
mov rbp, rsi
lea rdx, [rsp + 0x1a0]
mov rcx, rbp
call fcn.140024e70
mov eax, dword [rsp + 0x168]
lea rcx, [rsp + 0x2b0]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400252fb
mov eax, 0x200
jmp 0x1400251a9
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140024180
cmp qword [rdi + 0x148], rsi
jne 0x140025324
mov ecx, 0x4000
call fcn.140027568
mov qword [rdi + 0x148], rax
mov ebp, esi
nop word [rax + rax]
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x50]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.1400243c0
mov ebx, eax
cmp eax, 0xffffff96
je 0x140025394
test eax, eax
js 0x140025386
jle 0x14002537b
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x190]
mov r8d, eax
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x14002538d
cmp byte [rsp + 0x50], sil
jne 0x140025399
test ebx, ebx
jne 0x140025330
mov ebp, 0x5000000
jmp 0x140025399
mov ebp, 0x400
jmp 0x140025399
mov ebp, 0x1000
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400253dd
mov rbx, qword [rdi + 0x80]
test rbx, rbx
je 0x1400253dd
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400253ba
call fcn.140035634
mov qword [rbx], rsi
cmp dword [rbx + 0x64], esi
je 0x1400253cb
lea rcx, [rbx + 8]
call fcn.140022b80
mov rcx, rbx
mov dword [rbx + 0x64], esi
call fcn.140035634
mov qword [rdi + 0x80], rsi
mov rcx, r14
test ebp, ebp
jne 0x140025410
lea r9, [rsp + 0x17c]
lea r8, [rsp + 0x16c]
lea rdx, [rsp + 0x174]
call qword [sym.imp.KERNEL32.DLL_SetFileTime]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400251a7
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebp
jmp 0x1400251a9
call fcn.140027678
int3