Function at 0x140003a20
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 [0x140024018]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov eax, dword [0x140024a20]
lea r9, [rbp - 0x69]
mov rcx, qword [0x140024a28]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x65], 0
mov dword [rsp + 0x20], 8
call qword [0x140025d50]
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 [0x140025da0]
mov dword [rsp + 0x30], 1
mov rsi, qword [0x140024a28]
lea rcx, [0x140026050]
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 [0x140025d78]
cmp eax, 0xffffffff
je 0x140003b6f
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003b5e
lea rcx, [0x140026050]
cmp edi, 4
jl 0x140003af0
add byte [0x140026050], 0xfd
mov eax, 1
add byte [0x140026051], 0xfd
add byte [0x140026052], 0xfd
add byte [0x140026053], 0xfd
mov dword [0x140025ff4], 0
jmp 0x140003b74
mov dword [0x140025ff4], 0
mov eax, 0xfffffffd
jmp 0x140003b74
mov eax, 0xffffffff
mov ecx, 0x190
mov dword [0x140025e38], eax
call qword [0x140025de8]
cmp dword [0x140025e38], 0
jle 0x1400044ec
mov ecx, 4
call fcn.140005eb8
test r12, r12
je 0x140004511
movzx eax, byte [0x140021b0a]
movsd xmm0, qword [str.terminate_n]
movzx r13d, word [0x140021b08]
mov ebx, dword [str.exit]
movzx r15d, byte [0x140021b10]
mov byte [rsp + 0x34], al
mov eax, dword [0x140026050]
dec eax
movsd qword [rbp - 0x61], xmm0
mov dword [rsp + 0x38], 0
cmp eax, 0x62
ja case.0x140003c09.5
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x458c]
mov ecx, dword [r8 + rax*4 + 0x455c]
add rcx, r8
jmp rcx
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je case.0x140003c09.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 [0x140025dd8]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003c7d
cmp edi, 4
jl 0x140003c30
add byte [r14], 3
add byte [r14 + 1], 3
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov dword [0x140025ff4], 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 0x140003ca0
lea rax, [r14 + 2]
add ecx, 4
mov dword [rax - 2], 0
lea rax, [rax + 4]
cmp ecx, 4
jb 0x140003cd0
test edx, edx
je 0x140004515
jmp 0x140003adb
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je case.0x140003c09.5
nop
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x140025d78]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003d51
cmp edi, 4
jl 0x140003d00
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 [0x140024a20], eax
jmp 0x140003c7d
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je case.0x140003c09.5
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x140025d78]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003dc2
cmp edi, 4
jl 0x140003d71
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 [0x140024a24], eax
jmp 0x140003c7d
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je case.0x140003c09.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 [0x140025d78]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003e41
cmp edi, 4
jl 0x140003df0
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 [0x140025ff4], 0
call fcn.1400021a0
cmp eax, 0xffffffff
je case.0x140003c09.5
cmp dword [r12], ebx
jne 0x140003e70
cmp byte [r12 + 4], r15b
je case.0x140003c09.5
mov rcx, r12
call fcn.1400045f0
jmp case.0x140003c09.5
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je case.0x140003c09.5
nop
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x140025d78]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003ee1
cmp edi, 4
jl 0x140003e90
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 [0x140025ff4], 0
call fcn.1400021a0
cmp eax, 0xffffffff
je case.0x140003c09.5
cmp dword [r12], ebx
jne 0x140003f10
cmp byte [r12 + 4], r15b
je case.0x140003c09.5
mov rcx, r12
call fcn.140004d10
jmp case.0x140003c09.5
mov eax, dword [0x140024a20]
lea r9, [rbp - 0x79]
mov rcx, qword [0x140024a28]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rbp - 0x79], eax
mov dword [rbp - 0x75], 0
mov dword [rsp + 0x20], 8
call qword [0x140025d50]
call fcn.140005440
test eax, eax
jne 0x140003fa5
mov rcx, qword [0x140026450]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je case.0x140003c09.5
mov rcx, qword [0x140025e48]
xor edx, edx
call qword [0x140025db0]
test eax, eax
jne case.0x140003c09.5
mov rcx, qword [0x140025e48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140025fe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x140003c09.5
movzx r15d, byte [rsp + 0x34]
mov rax, qword [rbp - 0x61]
cmp qword [r12], rax
jne 0x140003fd0
cmp word [r12 + 8], r13w
jne 0x140003fd0
cmp byte [r12 + 0xa], r15b
je 0x1400041b3
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 0x140003fe0
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je 0x1400041b3
nop
mov r8d, 4
movsxd rdx, edi
sub r8d, edi
add rdx, r14
xor r9d, r9d
mov rcx, rsi
call qword [0x140025d78]
cmp eax, 0xffffffff
je 0x1400041b3
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004071
cmp edi, 4
jl 0x140004020
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 [0x140025ff4], 0
cmp r8d, 0xffffffff
je 0x140003fab
mov rdx, r12
call fcn.1400021a0
cmp eax, 0xffffffff
je 0x1400041b3
mov rcx, r12
call fcn.140001ec0
add eax, eax
xor r9d, r9d
mov ecx, r9d
mov dword [0x140026458], eax
mov rax, r12
mov edx, r9d
cmp word [r12], r9w
je 0x1400040cf
nop dword [rax]
inc ecx
lea rax, [rax + 2]
inc rdx
cmp word [rax], r9w
jne 0x1400040c0
add rdx, rdx
lea r8d, [rcx + rcx]
mov rax, r9
test rdx, rdx
jle 0x140004109
nop
cmp byte [rax + r12], r9b
lea rdi, [rax + r12]
jne 0x140004101
cmp rax, rdx
jge 0x1400040fb
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 0x1400040e0
lea esi, [r8 + 1]
mov byte [rdx + r12], 0xa
mov rbx, qword [0x140026450]
mov edi, r9d
mov dword [rbp - 0x7d], r9d
test esi, esi
je 0x140004171
cmp rbx, 0xffffffffffffffff
je 0x1400041b3
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 0x1400041b3
mov eax, dword [0x140025ff4]
xor r9d, r9d
add edi, dword [rbp - 0x7d]
inc eax
mov dword [rbp - 0x7d], r9d
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x1400041ac
cmp esi, edi
ja 0x140004124
movabs rax, 0x74616e696d726574
mov dword [0x140025ff4], r9d
cmp qword [r12], rax
jne 0x14000419e
cmp word [r12 + 8], 0xa65
jne 0x14000419e
cmp byte [r12 + 0xa], 0
je 0x140003fab
call fcn.1400056d0
test eax, eax
je 0x1400041b3
jmp 0x140003fab
mov dword [0x140025ff4], r9d
mov rcx, qword [0x140026450]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400041f1
mov rcx, qword [0x140025e48]
xor edx, edx
call qword [0x140025db0]
test eax, eax
jne 0x1400041f1
mov rcx, qword [0x140025e48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140025fe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x140026458], 0
jmp case.0x140003c09.5
mov rsi, qword [0x140024a28]
xor edi, edi
test r14, r14
je case.0x140003c09.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 [0x140025d78]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004260
cmp edi, 4
jl 0x140004220
nop
mov dword [0x140025ff4], 0
lea rax, [r14 + 2]
xor ecx, ecx
add ecx, 4
mov dword [rax - 2], 0
lea rax, [rax + 4]
cmp ecx, 4
jb 0x140004270
mov rsi, qword [0x140024a28]
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 [0x140025dd8]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003c7d
cmp edi, 4
jl 0x1400042b0
mov eax, dword [0x140024a20]
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 [0x140024a28]
mov dword [rbp - 0x79], eax
mov dword [0x140025ff4], 0
mov dword [rbp - 0x75], 0
mov dword [rsp + 0x20], 8
call qword [0x140025d50]
jmp case.0x140003c09.5
xor edx, edx
mov dword [0x140025ff0], 1
mov dword [rsp + 0x30], edx
jmp 0x140003c8b
call fcn.140003690
jmp case.0x140003c09.5
call fcn.1400024e0
mov rsi, qword [0x140024a28]
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 [0x140025dd8]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003c7d
cmp edi, 4
jl 0x140004390
add byte [rsp + 0x38], 3
add byte [rbp - 0x80], 3
add byte [rbp - 0x7f], 3
add byte [rbp - 0x7e], 3
jmp 0x140003c7d
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 0x140004474
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 0x140004474
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 0x140004476
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.140002880
mov rsi, qword [0x140024a28]
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 [0x140025dd8]
cmp eax, 0xffffffff
je case.0x140003c09.5
add edi, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140003c7d
cmp edi, 4
jl 0x1400044a0
jmp 0x1400043d7
mov rcx, qword [0x140024a28]
mov edx, 1
call qword [0x140025d88]
mov rcx, qword [0x140024a28]
call qword [0x140025d58]
call qword [0x140025db8]
mov edx, dword [rsp + 0x30]
cmp dword [0x140025ff0], 1
je 0x140004554
test edx, edx
je 0x140004554
call fcn.140003420
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140005e90
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.140001eb0
int3