Function at 0x140003650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14001e018]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov eax, dword [0x14001ea10]
lea r9, [rbp - 0x69]
mov rcx, qword [0x14001ea18]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x65], 0
mov dword [rsp + 0x20], 8
call qword [0x14001fd30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rbp - 0x71]
mov dword [rbp - 0x71], 0x64
lea rcx, [rbp - 0x49]
mov r14, rax
call qword [0x14001fd80]
mov dword [rsp + 0x30], 1
mov rsi, qword [0x14001ea18]
lea rcx, [0x140020020]
xor edi, edi
nop dword [rax + rax]
mov r8d, 4
movsxd rdx, edi
add rdx, rcx
sub r8d, edi
mov rcx, rsi
xor r9d, r9d
call qword [0x14001fd58]
cmp eax, 0xffffffff
je 0x14000379f
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x14000378e
lea rcx, [0x140020020]
cmp edi, 4
jl 0x140003720
add byte [0x140020020], 0xfd
mov eax, 1
add byte [0x140020021], 0xfd
add byte [0x140020022], 0xfd
add byte [0x140020023], 0xfd
mov dword [0x14001ffc4], 0
jmp 0x1400037a4
mov dword [0x14001ffc4], 0
mov eax, 0xfffffffd
jmp 0x1400037a4
mov eax, 0xffffffff
mov ecx, 0x190
mov dword [0x14001fe08], eax
call qword [0x14001fdc8]
cmp dword [0x14001fe08], 0
jle 0x14000411c
mov ecx, 4
call fcn.140005ae8
test r12, r12
je 0x140004141
movzx eax, byte [0x14001bb72]
movsd xmm0, qword [str.terminate_n]
movzx r13d, word [0x14001bb70]
mov ebx, dword [str.exit]
movzx r15d, byte [0x14001bb78]
mov byte [rsp + 0x34], al
mov eax, dword [0x140020020]
dec eax
movsd qword [rbp - 0x61], xmm0
mov dword [rsp + 0x38], 0
cmp eax, 0x62
ja case.0x140003839.5
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x41bc]
mov ecx, dword [r8 + rax*4 + 0x418c]
add rcx, r8
jmp rcx
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003839.5
add byte [r14], 0xfd
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
nop dword [rax]
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400038ad
cmp edi, 4
jl 0x140003860
add byte [r14], 3
add byte [r14 + 1], 3
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov dword [0x14001ffc4], 0
mov edx, dword [rsp + 0x30]
mov rax, r12
xorps xmm0, xmm0
mov ecx, 8
nop word [rax + 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 0x1400038d0
lea rax, [r14 + 2]
add ecx, 4
mov dword [rax - 2], 0
lea rax, [rax + 4]
cmp ecx, 4
jb 0x140003900
test edx, edx
je 0x140004145
jmp 0x14000370b
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003839.5
nop
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003981
cmp edi, 4
jl 0x140003930
add byte [r14], 0xfd
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
mov eax, dword [r14]
mov dword [0x14001ea10], eax
jmp 0x1400038ad
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003839.5
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400039f2
cmp edi, 4
jl 0x1400039a1
add byte [r14], 0xfd
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
mov eax, dword [r14]
mov dword [0x14001ea14], eax
jmp 0x1400038ad
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003839.5
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003a71
cmp edi, 4
jl 0x140003a20
add byte [r14], 0xfd
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
mov r8d, dword [r14]
mov rdx, r12
mov dword [0x14001ffc4], 0
call fcn.140002120
cmp eax, 0xffffffff
je case.0x140003839.5
cmp dword [r12], ebx
jne 0x140003aa0
cmp byte [r12 + 4], r15b
je case.0x140003839.5
mov rcx, r12
call fcn.140004220
jmp case.0x140003839.5
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003839.5
nop
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003b11
cmp edi, 4
jl 0x140003ac0
add byte [r14], 0xfd
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
mov r8d, dword [r14]
mov rdx, r12
mov dword [0x14001ffc4], 0
call fcn.140002120
cmp eax, 0xffffffff
je case.0x140003839.5
cmp dword [r12], ebx
jne 0x140003b40
cmp byte [r12 + 4], r15b
je case.0x140003839.5
mov rcx, r12
call fcn.140004940
jmp case.0x140003839.5
mov eax, dword [0x14001ea10]
lea r9, [rbp - 0x79]
mov rcx, qword [0x14001ea18]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rbp - 0x79], eax
mov dword [rbp - 0x75], 0
mov dword [rsp + 0x20], 8
call qword [0x14001fd30]
call fcn.140005070
test eax, eax
jne 0x140003bd5
mov rcx, qword [0x140020420]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je case.0x140003839.5
mov rcx, qword [0x14001fe18]
xor edx, edx
call qword [0x14001fd90]
test eax, eax
jne case.0x140003839.5
mov rcx, qword [0x14001fe18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001ffb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x140003839.5
movzx r15d, byte [rsp + 0x34]
mov rax, qword [rbp - 0x61]
cmp qword [r12], rax
jne 0x140003c00
cmp word [r12 + 8], r13w
jne 0x140003c00
cmp byte [r12 + 0xa], r15b
je 0x140003de3
nop dword [rax + rax]
mov rax, r12
xorps xmm0, xmm0
mov ecx, 8
nop dword [rax + 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 0x140003c10
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je 0x140003de3
nop
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je 0x140003de3
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003ca1
cmp edi, 4
jl 0x140003c50
add byte [r14], 0xfd
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
mov r8d, dword [r14]
mov dword [0x14001ffc4], 0
cmp r8d, 0xffffffff
je 0x140003bdb
mov rdx, r12
call fcn.140002120
cmp eax, 0xffffffff
je 0x140003de3
mov rcx, r12
call fcn.140001e40
add eax, eax
xor r9d, r9d
mov ecx, r9d
mov dword [0x140020428], eax
mov rax, r12
mov edx, r9d
cmp word [r12], r9w
je 0x140003cff
nop dword [rax]
inc ecx
lea rax, [rax + 2]
inc rdx
cmp word [rax], r9w
jne 0x140003cf0
add rdx, rdx
lea r8d, [rcx + rcx]
mov rax, r9
test rdx, rdx
jle 0x140003d39
nop
cmp byte [rax + r12], r9b
lea rdi, [rax + r12]
jne 0x140003d31
cmp rax, rdx
jge 0x140003d2b
mov rcx, rdx
lea rsi, [rdi + 1]
sub rcx, rax
rep movsb byte [rdi], byte [rsi]
dec r8d
dec rdx
inc rax
cmp rdx, rax
jg 0x140003d10
lea esi, [r8 + 1]
mov byte [rdx + r12], 0xa
mov rbx, qword [0x140020420]
mov edi, r9d
mov dword [rbp - 0x7d], r9d
test esi, esi
je 0x140003da1
cmp rbx, 0xffffffffffffffff
je 0x140003de3
mov r8d, esi
mov qword [rsp + 0x20], r9
movsxd rdx, edi
lea r9, [rbp - 0x7d]
sub r8d, edi
add rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003de3
mov eax, dword [0x14001ffc4]
xor r9d, r9d
add edi, dword [rbp - 0x7d]
inc eax
mov dword [rbp - 0x7d], r9d
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003ddc
cmp esi, edi
ja 0x140003d54
movabs rax, 0x74616e696d726574
mov dword [0x14001ffc4], r9d
cmp qword [r12], rax
jne 0x140003dce
cmp word [r12 + 8], 0xa65
jne 0x140003dce
cmp byte [r12 + 0xa], 0
je 0x140003bdb
call fcn.140005300
test eax, eax
je 0x140003de3
jmp 0x140003bdb
mov dword [0x14001ffc4], r9d
mov rcx, qword [0x140020420]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140003e21
mov rcx, qword [0x14001fe18]
xor edx, edx
call qword [0x14001fd90]
test eax, eax
jne 0x140003e21
mov rcx, qword [0x14001fe18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001ffb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x140020428], 0
jmp case.0x140003839.5
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003839.5
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fd58]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003e90
cmp edi, 4
jl 0x140003e50
nop
mov dword [0x14001ffc4], 0
lea rax, [r14 + 2]
xor ecx, ecx
add ecx, 4
mov dword [rax - 2], 0
lea rax, [rax + 4]
cmp ecx, 4
jb 0x140003ea0
mov rsi, qword [0x14001ea18]
xor edi, edi
mov dword [r14], 6
add byte [r14 + 1], 0xfd
add byte [r14 + 2], 0xfd
add byte [r14 + 3], 0xfd
mov byte [r14], 3
nop word [rax + rax]
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400038ad
cmp edi, 4
jl 0x140003ee0
mov eax, dword [0x14001ea10]
lea r9, [rbp - 0x79]
add byte [r14], 3
mov edx, 0xffff
add byte [r14 + 1], 3
mov r8d, 0x1006
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov rcx, qword [0x14001ea18]
mov dword [rbp - 0x79], eax
mov dword [0x14001ffc4], 0
mov dword [rbp - 0x75], 0
mov dword [rsp + 0x20], 8
call qword [0x14001fd30]
jmp case.0x140003839.5
xor edx, edx
mov dword [0x14001ffc0], 1
mov dword [rsp + 0x30], edx
jmp 0x1400038bb
call fcn.1400032c0
jmp case.0x140003839.5
call fcn.140002460
mov rsi, qword [0x14001ea18]
xor edi, edi
mov dword [rsp + 0x38], eax
add byte [rsp + 0x38], 0xfd
add byte [rbp - 0x80], 0xfd
add byte [rbp - 0x7f], 0xfd
add byte [rbp - 0x7e], 0xfd
mov dword [r12], eax
nop
mov r8d, 4
movsxd rax, edi
lea rdx, [rsp + 0x38]
sub r8d, edi
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400038ad
cmp edi, 4
jl 0x140003fc0
add byte [rsp + 0x38], 3
add byte [rbp - 0x80], 3
add byte [rbp - 0x7f], 3
add byte [rbp - 0x7e], 3
jmp 0x1400038ad
mov dword [rsp + 0x28], 0
lea r8, [rbp - 0x49]
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test eax, eax
je 0x1400040a4
inc eax
movsxd rdi, eax
add rdi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400040a4
mov dword [rsp + 0x28], esi
lea r8, [rbp - 0x49]
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400040a6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov rdx, rdi
call fcn.140002800
mov rsi, qword [0x14001ea18]
xor edi, edi
mov dword [rsp + 0x38], eax
add byte [rsp + 0x38], 0xfd
add byte [rbp - 0x80], 0xfd
add byte [rbp - 0x7f], 0xfd
add byte [rbp - 0x7e], 0xfd
mov dword [r12], eax
mov r8d, 4
movsxd rax, edi
lea rdx, [rsp + 0x38]
sub r8d, edi
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je case.0x140003839.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400038ad
cmp edi, 4
jl 0x1400040d0
jmp 0x140004007
mov rcx, qword [0x14001ea18]
mov edx, 1
call qword [0x14001fd68]
mov rcx, qword [0x14001ea18]
call qword [0x14001fd38]
call qword [0x14001fd98]
mov edx, dword [rsp + 0x30]
cmp dword [0x14001ffc0], 1
je 0x140004184
test edx, edx
je 0x140004184
call fcn.140003080
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140005ac0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001e30
int3