Function at 0x1400038e0
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 0x140003a2f
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003a1e
lea rcx, [0x140020020]
cmp edi, 4
jl 0x1400039b0
add byte [0x140020020], 0xfd
mov eax, 1
add byte [0x140020021], 0xfd
add byte [0x140020022], 0xfd
add byte [0x140020023], 0xfd
mov dword [0x14001ffc4], 0
jmp 0x140003a34
mov dword [0x14001ffc4], 0
mov eax, 0xfffffffd
jmp 0x140003a34
mov eax, 0xffffffff
mov ecx, 0x190
mov dword [0x14001fe08], eax
call qword [0x14001fdc8]
cmp dword [0x14001fe08], 0
jle 0x1400043ac
mov ecx, 4
call fcn.140005d78
test r12, r12
je 0x1400043d1
movzx eax, byte [0x14001bbaa]
movsd xmm0, qword [str.terminate_n]
movzx r13d, word [0x14001bba8]
mov ebx, dword [str.exit]
movzx r15d, byte [0x14001bbb0]
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.0x140003ac9.5
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x444c]
mov ecx, dword [r8 + rax*4 + 0x441c]
add rcx, r8
jmp rcx
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003b3d
cmp edi, 4
jl 0x140003af0
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 0x140003b60
lea rax, [r14 + 2]
add ecx, 4
mov dword [rax - 2], 0
lea rax, [rax + 4]
cmp ecx, 4
jb 0x140003b90
test edx, edx
je 0x1400043d5
jmp 0x14000399b
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003c11
cmp edi, 4
jl 0x140003bc0
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 0x140003b3d
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003c82
cmp edi, 4
jl 0x140003c31
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 0x140003b3d
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003d01
cmp edi, 4
jl 0x140003cb0
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.0x140003ac9.5
cmp dword [r12], ebx
jne 0x140003d30
cmp byte [r12 + 4], r15b
je case.0x140003ac9.5
mov rcx, r12
call fcn.1400044b0
jmp case.0x140003ac9.5
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003da1
cmp edi, 4
jl 0x140003d50
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.0x140003ac9.5
cmp dword [r12], ebx
jne 0x140003dd0
cmp byte [r12 + 4], r15b
je case.0x140003ac9.5
mov rcx, r12
call fcn.140004bd0
jmp case.0x140003ac9.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.140005300
test eax, eax
jne 0x140003e65
mov rcx, qword [0x140020420]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je case.0x140003ac9.5
mov rcx, qword [0x14001fe18]
xor edx, edx
call qword [0x14001fd90]
test eax, eax
jne case.0x140003ac9.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.0x140003ac9.5
movzx r15d, byte [rsp + 0x34]
mov rax, qword [rbp - 0x61]
cmp qword [r12], rax
jne 0x140003e90
cmp word [r12 + 8], r13w
jne 0x140003e90
cmp byte [r12 + 0xa], r15b
je 0x140004073
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 0x140003ea0
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je 0x140004073
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 0x140004073
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003f31
cmp edi, 4
jl 0x140003ee0
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 0x140003e6b
mov rdx, r12
call fcn.140002120
cmp eax, 0xffffffff
je 0x140004073
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 0x140003f8f
nop dword [rax]
inc ecx
lea rax, [rax + 2]
inc rdx
cmp word [rax], r9w
jne 0x140003f80
add rdx, rdx
lea r8d, [rcx + rcx]
mov rax, r9
test rdx, rdx
jle 0x140003fc9
nop
cmp byte [rax + r12], r9b
lea rdi, [rax + r12]
jne 0x140003fc1
cmp rax, rdx
jge 0x140003fbb
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 0x140003fa0
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 0x140004031
cmp rbx, 0xffffffffffffffff
je 0x140004073
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 0x140004073
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 0x14000406c
cmp esi, edi
ja 0x140003fe4
movabs rax, 0x74616e696d726574
mov dword [0x14001ffc4], r9d
cmp qword [r12], rax
jne 0x14000405e
cmp word [r12 + 8], 0xa65
jne 0x14000405e
cmp byte [r12 + 0xa], 0
je 0x140003e6b
call fcn.140005590
test eax, eax
je 0x140004073
jmp 0x140003e6b
mov dword [0x14001ffc4], r9d
mov rcx, qword [0x140020420]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400040b1
mov rcx, qword [0x14001fe18]
xor edx, edx
call qword [0x14001fd90]
test eax, eax
jne 0x1400040b1
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.0x140003ac9.5
mov rsi, qword [0x14001ea18]
xor edi, edi
test r14, r14
je case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004120
cmp edi, 4
jl 0x1400040e0
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 0x140004130
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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003b3d
cmp edi, 4
jl 0x140004170
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.0x140003ac9.5
xor edx, edx
mov dword [0x14001ffc0], 1
mov dword [rsp + 0x30], edx
jmp 0x140003b4b
call fcn.140003550
jmp case.0x140003ac9.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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003b3d
cmp edi, 4
jl 0x140004250
add byte [rsp + 0x38], 3
add byte [rbp - 0x80], 3
add byte [rbp - 0x7f], 3
add byte [rbp - 0x7e], 3
jmp 0x140003b3d
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 0x140004334
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 0x140004334
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 0x140004336
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.0x140003ac9.5
add edi, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140003b3d
cmp edi, 4
jl 0x140004360
jmp 0x140004297
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 0x140004414
test edx, edx
je 0x140004414
call fcn.1400032f0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140005d50
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