Function at 0x180013050
Capabilities:
Print debug messages
Query environment variable

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 - 0x180]
sub rsp, 0x280
mov rax, qword [0x180079880]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r15d, r15d
mov word [rbp - 8], r15w
lea r8d, [r15 + 2]
lea rdx, [0x180070dba]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
movsd xmm0, qword [0x180070ef4]
movsd qword [rbp - 4], xmm0
movzx eax, word [0x180070efc]
mov word [rbp + 4], ax
mov word [rbp + 6], r15w
lea r8d, [r15 + 3]
lea rdx, [0x180070f40]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov eax, dword [0x180070fe4]
mov dword [rbp + 0xc], eax
movzx eax, word [0x180070fe8]
mov word [rbp + 0x10], ax
movsd xmm0, qword [0x18007107a]
movsd qword [rbp + 0x12], xmm0
movzx eax, word [0x180071082]
mov word [rbp + 0x1a], ax
mov word [rbp + 0x1c], r15w
lea r8d, [r15 + 3]
lea rdx, [0x1800710dc]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
movabs rax, 0x74006100720061
mov qword [rbp + 0x22], rax
mov dword [rbp + 0x2a], 0x6f
lea r8d, [r15 + 1]
lea rdx, [0x1800710f8]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov edi, 0x43
mov dword [rbp + 0x30], edi
lea rcx, [rbp + 0x30]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x180013160
mov eax, dword [0x180071158]
mov dword [rcx], eax
movzx eax, word [0x18007115c]
mov word [rcx + 4], ax
mov eax, dword [0x180071160]
mov dword [rbp + 0x36], eax
movsd xmm0, qword [str.sposit]
movsd qword [rbp + 0x3a], xmm0
mov eax, dword [0x180071170]
mov dword [rbp + 0x42], eax
movzx eax, word [0x180071174]
mov word [rbp + 0x46], ax
lea rcx, [rbp + 0x30]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x1800131b0
movsd xmm0, qword [str.ion::p]
movsd qword [rcx], xmm0
mov eax, dword [0x180071180]
mov dword [rcx + 8], eax
movzx eax, word [0x180071184]
mov word [rcx + 0xc], ax
movabs rax, 0x5f00740075
mov qword [rbp + 0x52], rax
mov r8d, 2
lea rdx, [0x180071188]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov ebx, 0x64
mov dword [rbp + 0x5c], ebx
mov dword [rbp + 0x5e], ebx
mov eax, dword [0x180071190]
mov dword [rbp + 0x60], eax
movzx eax, word [0x180071194]
mov word [rbp + 0x64], ax
lea r9d, [rbx - 0x10]
lea r8, [0x180079770]
xor edx, edx
xor ecx, ecx
call fcn.180014310
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], r15b
lea rdx, [rsp + 0x60]
lea ecx, [rbx + 0x12]
call fcn.18002b6f0
test al, al
jne 0x1800133f9
mov dword [rbp - 0x40], 0x56
lea r8d, [rbx - 0x5a]
lea rdx, [rbp - 0x3e]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultow]
mov eax, dword [0x180071198]
mov dword [rbp - 0x3a], eax
mov eax, dword [0x1800711a0]
mov dword [rbp - 0x36], eax
movzx eax, word [0x1800711a4]
mov word [rbp - 0x32], ax
lea r8d, [rbx - 0x61]
lea rdx, [0x1800711a8]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
lea r8d, [rbx - 0x61]
lea rdx, [0x1800711b0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
lea r8d, [rbx - 0x63]
lea rdx, [0x18006fcec]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov dword [rbp - 0x24], 0x4d
movabs rax, 0x6e00690061
mov qword [rbp - 0x22], rax
mov eax, 0x25
mov word [rbp - 0x60], ax
lea rcx, [rbp - 0x60]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1800132f2
movzx eax, word [0x1800711bc]
mov word [rcx], ax
mov word [rbp - 0x5e], bx
mov r8d, 8
lea rdx, str.__d_bit
lea rcx, [rbp - 0x5d]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movzx eax, word [0x1800711c8]
mov word [rbp - 0x56], ax
mov word [rbp - 0x54], di
mov eax, dword [str.DH_op]
mov dword [rbp - 0x53], eax
movzx eax, word [0x1800711d0]
mov word [rbp - 0x4f], ax
mov ebx, 0x73
mov word [rbp - 0x4e], bx
lea r8d, [rbx - 0x6f]
lea rdx, str._in
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
lea rcx, [rbp - 0x60]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180013370
movzx eax, word [0x1800711b8]
mov word [rcx], ax
mov r8d, 3
lea rdx, [0x1800711e0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov word [rbp - 0x45], bx
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov r8d, pe_nt_image_headers64
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rdi, rax
test rbx, rbx
je 0x1800133e6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapCompact]
jmp 0x180013734
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor edx, edx
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
movsd xmm0, qword [0x180079818]
mulsd xmm0, qword [0x180072bb0]
addsd xmm0, qword [0x180072b60]
cvttsd2si r14, xmm0
mov edi, 0x123
lea r12, [0x18000da30]
lea r13, [0x180079798]
mov ecx, dword [0x180079798]
nop word [rax + rax]
cmp edi, 0x11
je 0x18001351d
cmp edi, 0x123
je 0x1800134e3
cmp edi, 0x75f
jne 0x180013528
mov ebx, 0x87
mov eax, ebx
sub eax, 0x86
je 0x18001353a
cmp eax, 1
jne 0x1800134d7
mov dword [rsp + 0x70], ecx
cmp dword [rbp - 0x6c], 0
je 0x1800134d7
lea r9d, [rax + 0x43]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180032810
mov ecx, dword [0x180079798]
dec ebx
cmp ebx, 0x85
ja 0x1800134a2
jmp 0x180013528
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 0xba
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.180044730
mov ecx, dword [0x180079798]
jmp 0x180013528
cmp ecx, 0xa
ja 0x18001353a
cmp dword [rsp + 0x70], ecx
je 0x18001353a
add edi, 0x7d0a
cmp edi, 0x1771e
jbe 0x180013480
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor edx, edx
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov al, 1
movzx edi, al
test rsi, rsi
cmove edi, r15d
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.180014d20
test al, al
jne 0x180013685
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x40], 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x3c], 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001367d
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0x180013674
mov eax, 0x6a
mov word [rbp - 0x60], ax
mov ecx, 0x65
mov word [rbp - 0x5f], cx
mov dword [rbp - 0x5e], 0x206b697a
mov dword [rbp - 0x5a], 0x6e6563
mov eax, 0x74
mov word [rbp - 0x57], ax
mov eax, 0x6172
mov word [rbp - 0x56], ax
mov dword [rbp - 0x54], 0x6f6e6c
mov eax, 0x2d
mov word [rbp - 0x51], ax
mov eax, 0x61
mov word [rbp - 0x50], ax
mov eax, 0x6d
mov word [rbp - 0x4f], ax
mov word [rbp - 0x4e], cx
mov eax, 0x6972
mov word [rbp - 0x4d], ax
mov byte [rbp - 0x4b], 0
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
lea r8, [rbp - 0x60]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
test rax, rax
je 0x180013674
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jmp 0x1800136e6
test rbx, rbx
je 0x1800136bf
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1800136b6
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1800136db
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 0x43]
call fcn.180049820
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180013724
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001371f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001371f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800504dc
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180013774
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001376f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001376f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800504dc
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180050c90
lea r11, [rsp + 0x280]
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