Function at 0x140007da0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x3b8
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov rbx, r8
mov esi, edx
test rcx, rcx
jne 0x140007dd0
mov ebx, 0x10000
jmp 0x140008099
cmp dword [rcx], 1
je 0x140007de9
mov dword [0x1402588d0], 0x80000
mov eax, 0x80000
jmp 0x1400080a1
mov qword [rsp + 0x3b0], rdi
mov rdi, qword [rcx + 8]
cmp dword [rdi + 8], 0xffffffff
je 0x140007e03
mov rcx, qword [rdi]
call fcn.140005590
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp esi, dword [rcx + 8]
jl 0x140007e1c
mov ebx, 0x10000
jmp 0x140008091
cmp esi, dword [rcx + 0x14]
jge 0x140007e26
call fcn.1400051d0
mov rax, qword [rdi]
cmp dword [rax + 0x14], esi
jge 0x140007e41
nop
mov rcx, qword [rdi]
call fcn.140005230
mov r11, qword [rdi]
cmp dword [r11 + 0x14], esi
jl 0x140007e30
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rdi
call fcn.1400057b0
test byte [rsp + 0x158], 0x10
movzx eax, byte [rbx]
je 0x140007e96
cmp al, 0x2f
je 0x140007e85
cmp al, 0x5c
je 0x140007e85
test al, al
je 0x140007e6f
cmp byte [rbx + 1], 0x3a
je 0x140007e85
lea rcx, [rdi + 0x150]
mov rdx, rbx
call fcn.140005d80
xor ebx, ebx
jmp 0x140008091
xor ecx, ecx
mov rdx, rbx
call fcn.140005d80
xor ebx, ebx
jmp 0x140008091
mov qword [rsp + 0x3d8], rbp
mov r9, rbx
mov rcx, rbx
test al, al
je 0x140007ebf
cmp al, 0x2f
je 0x140007eb0
cmp al, 0x5c
jne 0x140007eb4
lea r9, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140007ea8
lea rdx, [rsp + 0x180]
mov rcx, rbx
sub rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x140007ed0
cmp r9, rbx
jne 0x140007eec
mov byte [rsp + 0x180], al
jmp 0x140007f18
mov rax, r9
sub rax, rbx
mov byte [rsp + rax + 0x180], 0
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x140007f4a
cmp al, 0x5c
je 0x140007f4a
test al, al
je 0x140007f18
cmp byte [rsp + 0x181], 0x3a
je 0x140007f4a
mov qword [rsp + 0x20], r9
lea r8, [rdi + 0x150]
lea rdx, [0x1401bda24]
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x140007f69
lea r8, [rsp + 0x180]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rsp + 0x180]
call fcn.140005d80
mov eax, dword [rsp + 0x158]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x290]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140007fbc
mov ebx, 0x200
jmp 0x140008089
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140007670
cmp qword [rdi + 0x148], rbx
jne 0x140007ff0
mov ecx, 0x4000
call fcn.1400081f8
mov qword [rdi + 0x148], rax
nop word [rax + rax]
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
call fcn.140007890
mov esi, eax
cmp eax, 0xffffff96
je 0x140008073
test eax, eax
js 0x140008042
jle 0x140008038
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140008049
cmp byte [rsp + 0x40], bl
jne 0x140008050
test esi, esi
jne 0x140007ff0
mov ebx, 0x5000000
jmp 0x140008078
mov ebx, 0x400
jmp 0x140008078
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x140008078
mov ebx, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140005590
mov rbp, qword [rsp + 0x3d8]
mov rdi, qword [rsp + 0x3b0]
mov eax, ebx
mov dword [0x1402588d0], ebx
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x3b8
pop rsi
pop rbx
ret