Function at 0x140001f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x3c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r15d, dword [rsp + 0x410]
mov r12d, r9d
mov r14, r8
mov ebp, edx
mov rdi, rcx
lea eax, [r15 - 2]
cmp eax, 1
jbe 0x140001fba
cmp r15d, 1
jne 0x140001fb0
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je 0x140001f9d
mov rcx, qword [rcx]
call fcn.140004d10
mov rbx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rbx + 8]
jl 0x1400020f1
mov eax, 0x10000
jmp 0x1400020c5
mov eax, dword [rcx + 8]
cmp r15d, 3
jne 0x140001f90
cmp ebp, eax
je 0x140002075
cmp eax, 0xffffffff
je 0x140001fd8
mov rcx, qword [rcx]
call fcn.140004d10
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rcx + 8]
jge 0x140001fb0
cmp ebp, dword [rcx + 0x14]
jge 0x140001ff1
call fcn.140004db0
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jge 0x140002063
xor esi, esi
nop dword [rax + rax]
test rbx, rbx
je 0x14000205b
cmp dword [rbx + 0x1c], esi
je 0x14000205b
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x14000205b
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x40], esi
add eax, 0x2e
add ecx, eax
mov qword [rsp + 0x38], rsi
add dword [rbx + 0x18], ecx
mov rcx, rbx
mov dword [rbx + 0x14], edx
lea rdx, [rbx + 0x2c]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call fcn.140005c30
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jl 0x140002000
mov rdx, qword [rdi + 0x140]
mov rcx, rbx
call fcn.140005090
mov dword [rdi + 8], ebp
mov rcx, qword [rdi]
lea r9, [rsp + 0x50]
mov r8d, r12d
mov rdx, r14
call fcn.140005600
mov ebx, eax
test eax, eax
jg 0x14000209d
mov rcx, qword [rdi]
call fcn.140004d10
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x50], 0
jne 0x1400021f8
test ebx, ebx
jle 0x1400020b3
mov eax, 0x600
jmp 0x1400020c5
cmp ebx, 0xffffff96
mov esi, 0x5000000
mov eax, 0x1000
cmove esi, eax
mov eax, esi
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.14000ce70
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor esi, esi
cmp ebp, dword [rbx + 0x14]
jge 0x140002139
test rbx, rbx
je 0x140002139
mov eax, dword [rbx + 0x28]
lea r8, [rbx + 0x7c]
mov dword [rsp + 0x40], esi
lea rdx, [rbx + 0x2c]
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov dword [rsp + 0x30], esi
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x14], esi
call fcn.140005c30
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jge 0x1400021a4
test rbx, rbx
je 0x14000219c
cmp dword [rbx + 0x1c], esi
je 0x14000219c
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x14000219c
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x40], esi
add eax, 0x2e
add ecx, eax
mov qword [rsp + 0x38], rsi
add dword [rbx + 0x18], ecx
mov rcx, rbx
mov dword [rbx + 0x14], edx
lea rdx, [rbx + 0x2c]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call fcn.140005c30
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jl 0x140002141
lea r8, [rsp + 0x60]
mov edx, ebp
mov rcx, rdi
call fcn.1400013b0
test byte [rsp + 0x168], 0x10
je 0x1400021ff
cmp r15d, 1
je 0x1400021f8
movzx eax, byte [r14]
cmp al, 0x2f
je 0x1400021de
cmp al, 0x5c
je 0x1400021de
test al, al
je 0x1400021da
cmp byte [r14 + 1], 0x3a
je 0x1400021de
xor cl, cl
jmp 0x1400021e0
mov cl, 1
test cl, cl
lea rax, [rdi + 0x150]
mov rdx, r14
cmove rsi, rax
mov rcx, rsi
call fcn.140001120
xor eax, eax
jmp 0x1400020c5
cmp r15d, 1
je 0x140002329
movzx ecx, byte [r14]
mov r9, r14
mov rax, r14
test cl, cl
je 0x140002234
cmp cl, 0x2f
je 0x140002226
cmp cl, 0x5c
je 0x140002226
inc rax
jmp 0x14000222d
lea r9, [rax + 1]
mov rax, r9
movzx ecx, byte [rax]
test cl, cl
jne 0x140002217
lea rdx, [rsp + 0x190]
mov rcx, r14
sub rdx, r14
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140002242
cmp r9, r14
jne 0x14000225f
mov byte [rsp + 0x190], sil
jmp 0x140002297
mov rax, r9
sub rax, r14
cmp rax, 0x104
jae 0x140002415
mov byte [rsp + rax + 0x190], sil
movzx eax, byte [rsp + 0x190]
cmp al, 0x2f
je 0x1400022c5
cmp al, 0x5c
je 0x1400022c5
test al, al
je 0x140002297
cmp byte [rsp + 0x191], 0x3a
je 0x1400022c5
mov qword [rsp + 0x20], r9
lea rbx, [rdi + 0x150]
mov r8, rbx
lea r9, [rsp + 0x190]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x1400022e5
lea r8, [rsp + 0x190]
lea rdx, str._s_s
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rbx, rsi
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.140001120
mov eax, dword [rsp + 0x168]
lea rcx, [rsp + 0x2a0]
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 r14, 0xffffffffffffffff
jne 0x140002339
mov eax, 0x200
jmp 0x1400020c5
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140005090
cmp qword [rdi + 0x148], rsi
jne 0x140002370
mov ecx, 0x4000
call fcn.14000cb38
mov qword [rdi + 0x148], rax
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x50]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.140005600
mov ebx, eax
cmp eax, 0xffffff96
je 0x1400023f4
test eax, eax
js 0x1400023c3
jle 0x1400023b8
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x54]
mov r8d, eax
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400023ca
cmp byte [rsp + 0x50], sil
jne 0x1400023d1
test ebx, ebx
jne 0x140002370
mov esi, 0x5000000
jmp 0x1400023f9
mov esi, 0x400
jmp 0x1400023f9
lea r9, [rsp + 0x17c]
mov rcx, r14
lea r8, [rsp + 0x16c]
lea rdx, [rsp + 0x174]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1400023f9
mov esi, 0x1000
cmp r15d, 1
je 0x140002408
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140004d10
jmp 0x1400020c3
call fcn.14000cc48
int3