Function at 0x140007400
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x3b8
mov rax, qword [0x14023ea70]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov rbx, r8
mov esi, edx
test rcx, rcx
jne 0x140007430
mov ebx, 0x10000
jmp 0x1400076f9
cmp dword [rcx], 1
je 0x140007449
mov dword [0x140240c50], 0x80000
mov eax, 0x80000
jmp 0x140007701
mov qword [rsp + 0x3b0], rdi
mov rdi, qword [rcx + 8]
cmp dword [rdi + 8], 0xffffffff
je 0x140007463
mov rcx, qword [rdi]
call fcn.140004bf0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp esi, dword [rcx + 8]
jl 0x14000747c
mov ebx, 0x10000
jmp 0x1400076f1
cmp esi, dword [rcx + 0x14]
jge 0x140007486
call fcn.140004830
mov rax, qword [rdi]
cmp dword [rax + 0x14], esi
jge 0x1400074a1
nop
mov rcx, qword [rdi]
call fcn.140004890
mov r11, qword [rdi]
cmp dword [r11 + 0x14], esi
jl 0x140007490
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rdi
call fcn.140004e10
test byte [rsp + 0x158], 0x10
movzx eax, byte [rbx]
je 0x1400074f6
cmp al, 0x2f
je 0x1400074e5
cmp al, 0x5c
je 0x1400074e5
test al, al
je 0x1400074cf
cmp byte [rbx + 1], 0x3a
je 0x1400074e5
lea rcx, [rdi + 0x150]
mov rdx, rbx
call fcn.1400053e0
xor ebx, ebx
jmp 0x1400076f1
xor ecx, ecx
mov rdx, rbx
call fcn.1400053e0
xor ebx, ebx
jmp 0x1400076f1
mov qword [rsp + 0x3d8], rbp
mov r9, rbx
mov rcx, rbx
test al, al
je 0x14000751f
cmp al, 0x2f
je 0x140007510
cmp al, 0x5c
jne 0x140007514
lea r9, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140007508
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 0x140007530
cmp r9, rbx
jne 0x14000754c
mov byte [rsp + 0x180], al
jmp 0x140007578
mov rax, r9
sub rax, rbx
mov byte [rsp + rax + 0x180], 0
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x1400075aa
cmp al, 0x5c
je 0x1400075aa
test al, al
je 0x140007578
cmp byte [rsp + 0x181], 0x3a
je 0x1400075aa
mov qword [rsp + 0x20], r9
lea r8, [rdi + 0x150]
lea rdx, [0x1401adafc]
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x1400075c9
lea r8, [rsp + 0x180]
lea rdx, [0x1401adaf4]
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rsp + 0x180]
call fcn.1400053e0
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 0x14000761c
mov ebx, 0x200
jmp 0x1400076e9
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140006cd0
cmp qword [rdi + 0x148], rbx
jne 0x140007650
mov ecx, 0x4000
call fcn.140007850
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.140006ef0
mov esi, eax
cmp eax, 0xffffff96
je 0x1400076d3
test eax, eax
js 0x1400076a2
jle 0x140007698
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 0x1400076a9
cmp byte [rsp + 0x40], bl
jne 0x1400076b0
test esi, esi
jne 0x140007650
mov ebx, 0x5000000
jmp 0x1400076d8
mov ebx, 0x400
jmp 0x1400076d8
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1400076d8
mov ebx, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140004bf0
mov rbp, qword [rsp + 0x3d8]
mov rdi, qword [rsp + 0x3b0]
mov eax, ebx
mov dword [0x140240c50], ebx
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140141c90
add rsp, 0x3b8
pop rsi
pop rbx
ret