Function at 0x180001110
Capabilities:
Create thread
Query environment variable

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movdqa xmm0, xmmword [0x180003310]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
test ebx, ebx
je 0x180001174
cmp ebx, 1
je 0x1800011c9
lea eax, [rbx - 2]
cmp eax, 1
ja 0x180001182
mov rcx, qword [0x1800056d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18000136f
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000136a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000136a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, 0x104
lea rdx, [rbp - 0x80]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movdqa xmm0, xmmword [0x180003310]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180001200
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.180001400
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x18000126a
lea rax, [rcx + 0xb]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, 0xb
lea rdx, str.output.txt
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xb], 0
lea rax, [rsp + 0x30]
jmp 0x180001282
mov qword [rsp + 0x20], 0xb
mov edx, 0xb
lea rcx, [rsp + 0x30]
call fcn.180001560
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1800012d9
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800012d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800012d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180001744
movups xmmword [rsp + 0x58], xmm6
movups xmmword [rsp + 0x68], xmm7
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180001323
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000131e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000131e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180001744
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
lea r8, [0x1800032d4]
lea rcx, [0x1800056d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x1800010a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180001182
call fcn.180001744
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180001720
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret