Function at 0x180176828
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5d8]
sub rsp, 0x6a0
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, r9
mov rdi, r8
mov rbx, rcx
mov byte [rcx + 0x409], 1
mov byte [rcx + 0x488], 1
mov byte [rcx + 4], 1
mov byte [rcx + 0x3f8], 1
mov qword [rcx + 0x3f0], r8
mov qword [rcx + 0x68], r9
mov al, byte [rbp + 0x608]
xor al, 1
movzx ecx, al
mov byte [rbx + 0x408], cl
xor r15d, r15d
mov byte [rbx + 0x489], r15b
mov byte [rbx + 3], 1
mov byte [rbx + 0x48c], r15b
add ecx, 2
mov dword [rbx + 8], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x400], rax
mov byte [rbx + 0x48a], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx + 0x40c], eax
mov r13d, 4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x400], r15
jne 0x1801768fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa10
mov edx, eax
mov rcx, rbx
call fcn.1801728a8
xor al, al
jmp 0x1801770fe
test rsi, rsi
jne 0x180176f54
mov ecx, dword [0x1802bccdc]
mov rax, qword gs:[0x58]
mov r14, qword [rax + rcx*8]
or rsi, 0xffffffffffffffff
mov eax, dword [r14 + r13]
cmp dword [0x1802c48c8], eax
jle 0x180176b86
lea rcx, [0x1802c48c8]
call fcn.1802696f0
cmp dword [0x1802c48c8], esi
jne 0x180176b86
lea rax, [rbp - 0x28]
mov qword [rbp + 0x5f0], rax
mov dword [rsp + 0x30], 2
mov eax, dword [rsp + 0x30]
xor al, 0x56
mov byte [rsp + 0x34], al
mov eax, dword [rsp + 0x30]
inc al
xor al, 0x69
mov byte [rsp + 0x35], al
mov eax, dword [rsp + 0x30]
add al, 2
xor al, 0x72
mov byte [rsp + 0x36], al
mov eax, dword [rsp + 0x30]
add al, 3
xor al, 0x74
mov byte [rsp + 0x37], al
mov eax, dword [rsp + 0x30]
add al, 4
xor al, 0x75
mov byte [rsp + 0x38], al
mov eax, dword [rsp + 0x30]
add al, 5
xor al, 0x61
mov byte [rsp + 0x39], al
mov eax, dword [rsp + 0x30]
add al, 6
xor al, 0x6c
mov byte [rsp + 0x3a], al
mov eax, dword [rsp + 0x30]
add al, 7
xor al, 0x51
mov byte [rsp + 0x3b], al
mov eax, dword [rsp + 0x30]
add al, 8
xor al, 0x75
mov byte [rsp + 0x3c], al
mov eax, dword [rsp + 0x30]
add al, 9
xor al, 0x65
mov byte [rsp + 0x3d], al
mov eax, dword [rsp + 0x30]
add al, 0xa
xor al, 0x72
mov byte [rsp + 0x3e], al
mov eax, dword [rsp + 0x30]
add al, 0xb
xor al, 0x79
mov byte [rsp + 0x3f], al
mov eax, dword [rsp + 0x30]
add al, 0xc
xor al, 0x45
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x30]
add al, 0xd
xor al, 0x78
mov byte [rsp + 0x41], al
xor eax, eax
mov byte [rsp + 0x42], al
mov al, byte [rsp + 0x34]
mov rdx, r15
mov al, byte [rsp + rdx + 0x34]
mov ecx, dword [rsp + 0x30]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x34], cl
inc rdx
cmp rdx, 0xe
jb 0x180176a09
mov byte [rsp + 0x42], r15b
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
lea rax, [rsp + 0x34]
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x180176a3e
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x28]
call fcn.18007b70c
nop
mov byte [rsp + 0x5c], 0x72
mov byte [rsp + 0x5d], 0x6c
mov byte [rsp + 0x5e], 0x79
mov byte [rsp + 0x5f], 0x75
mov byte [rsp + 0x60], 0x6c
mov byte [rsp + 0x61], 0x73
mov byte [rsp + 0x62], 0x3a
mov byte [rsp + 0x63], 0x39
mov byte [rsp + 0x64], r15b
mov al, byte [rsp + 0x5c]
mov rcx, r15
mov al, byte [rsp + rcx + 0x5c]
sub al, 7
mov byte [rsp + rcx + 0x5c], al
inc rcx
cmp rcx, 8
jb 0x180176a8a
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
lea rax, [rsp + 0x5c]
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x180176ab5
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x78]
call fcn.18007b70c
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x50]
call fcn.180188b20
nop
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1802c4fb0]
call fcn.180149f2c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x180176b38
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180176b33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180176b33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
movdqa xmm0, xmmword [0x180280de0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], r15b
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xf]
lea rcx, [rsp + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x18027dd8c]
call fcn.18026951c
nop
lea rcx, [0x1802c48c8]
call fcn.180269690
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rdx, qword [rbx + 0x400]
lea rcx, [0x1802c4fb0]
call fcn.18014aa68
test rax, rax
jne 0x180176bc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa1a
jmp 0x1801768ea
mov r12d, 0x400
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x608]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, r12d
mov rdx, rdi
mov rcx, rbx
call fcn.18017531c
cmp byte [rbx + 0x48a], r15b
je 0x180176c20
mov r8d, r12d
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov sil, 1
jmp 0x180176ef9
mov qword [rbp + 0x5e0], r15
mov eax, dword [r14 + r13]
cmp dword [0x1802c4c34], eax
jle 0x180176ec5
lea rcx, [0x1802c4c34]
call fcn.1802696f0
cmp dword [0x1802c4c34], esi
jne 0x180176ec5
lea rax, [rbp - 8]
mov qword [rbp + 0x5f0], rax
mov dword [rsp + 0x44], 0x2a
mov eax, dword [rsp + 0x44]
xor al, 0x52
mov byte [rsp + 0x48], al
mov eax, dword [rsp + 0x44]
inc al
mov cl, 0x65
xor al, cl
mov byte [rsp + 0x49], al
mov eax, dword [rsp + 0x44]
add al, 2
xor al, 0x61
mov byte [rsp + 0x4a], al
mov eax, dword [rsp + 0x44]
add al, 3
xor al, 0x64
mov byte [rsp + 0x4b], al
mov eax, dword [rsp + 0x44]
add al, 4
xor al, 0x50
mov byte [rsp + 0x4c], al
mov eax, dword [rsp + 0x44]
add al, 5
xor al, 0x72
mov byte [rsp + 0x4d], al
mov eax, dword [rsp + 0x44]
add al, 6
xor al, 0x6f
mov byte [rsp + 0x4e], al
mov eax, dword [rsp + 0x44]
add al, 7
xor al, 0x63
mov byte [rsp + 0x4f], al
mov eax, dword [rsp + 0x44]
add al, 8
xor al, cl
mov byte [rsp + 0x50], al
mov eax, dword [rsp + 0x44]
add al, 9
xor al, 0x73
mov byte [rsp + 0x51], al
mov eax, dword [rsp + 0x44]
add al, 0xa
xor al, 0x73
mov byte [rsp + 0x52], al
mov eax, dword [rsp + 0x44]
add al, 0xb
xor al, 0x4d
mov byte [rsp + 0x53], al
mov eax, dword [rsp + 0x44]
add al, 0xc
xor al, cl
mov byte [rsp + 0x54], al
mov eax, dword [rsp + 0x44]
add al, 0xd
xor al, 0x6d
mov byte [rsp + 0x55], al
mov eax, dword [rsp + 0x44]
add al, 0xe
xor al, 0x6f
mov byte [rsp + 0x56], al
mov eax, dword [rsp + 0x44]
add al, 0xf
xor al, 0x72
mov byte [rsp + 0x57], al
mov eax, dword [rsp + 0x44]
add al, 0x10
xor al, 0x79
mov byte [rsp + 0x58], al
xor eax, eax
mov byte [rsp + 0x59], al
mov al, byte [rsp + 0x48]
mov rdx, r15
mov al, byte [rsp + rdx + 0x48]
mov ecx, dword [rsp + 0x44]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x48], cl
inc rdx
cmp rdx, 0x11
jb 0x180176d3b
mov byte [rsp + 0x59], r15b
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r15
lea rax, [rsp + 0x48]
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x180176d70
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 8]
call fcn.18007b70c
nop
mov dword [rsp + 0x68], 0x2f
mov byte [rsp + 0x6c], 0x44
mov byte [rsp + 0x6d], 0x4a
mov byte [rsp + 0x6e], 0x5d
mov byte [rsp + 0x6f], 0x41
mov byte [rsp + 0x70], 0x4a
mov byte [rsp + 0x71], 0x43
mov byte [rsp + 0x72], 0x1c
mov byte [rsp + 0x73], 0x1d
xor eax, eax
mov byte [rsp + 0x74], al
mov al, byte [rsp + 0x6c]
mov rdx, r15
mov al, byte [rsp + rdx + 0x6c]
mov ecx, dword [rsp + 0x68]
xor cl, al
mov byte [rsp + rdx + 0x6c], cl
inc rdx
cmp rdx, 8
jb 0x180176dc5
mov byte [rsp + 0x74], r15b
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
lea rax, [rsp + 0x6c]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x180176df5
mov r8, rsi
lea rdx, [rsp + 0x6c]
lea rcx, [rbp - 0x68]
call fcn.18007b70c
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x70]
call fcn.180188b20
nop
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 8]
mov rdx, rax
lea rcx, [0x1802c4e90]
call fcn.180180580
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x180176e78
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180176e73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180176e73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
movdqa xmm0, xmmword [0x180280de0]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], r15b
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x12]
lea rcx, [rsp + 0x48]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x18027dd80]
call fcn.18026951c
nop
lea rcx, [0x1802c4c34]
call fcn.180269690
lea rax, [rbp + 0x5e0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x1a0]
mov r8, rdi
mov rdx, qword [rbx + 0x400]
lea rcx, [0x1802c4e90]
call fcn.1801810bc
test eax, eax
setne sil
lea rax, [rbp + 0x600]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x608]
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.18017531c
test sil, sil
je 0x180176f54
movsxd rax, dword [rbp + 0x1dc]
mov ecx, 0x8664
test word [rbp + rax + 0x1a4], cx
jne 0x180176f3e
mov eax, dword [rbp + rax + 0x1f0]
jmp 0x180176f50
mov ecx, dword [rbp + rax + 0x1f0]
mov rax, qword [rbx + 0x68]
cmp rax, rcx
cmovbe rax, rcx
mov qword [rbx + 0x68], rax
mov byte [rbx + 4], 1
cmp byte [rbx + 0x48a], r15b
jne 0x180176fcc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rbx + 0x68]
inc rdx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x3f0], rax
test rax, rax
jne 0x180176f9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa4f
jmp 0x1801768ea
mov qword [rbx + 0x478], rdi
mov r9, rdi
mov r8, qword [rbx + 0x68]
mov rdx, rax
mov rcx, rbx
call fcn.180179ae8
test al, al
jne 0x180176fda
mov edx, 0x80006
mov r8d, 0xa56
jmp 0x1801768ec
mov qword [rbx + 0x3f0], rdi
mov qword [rbx + 0x478], rdi
mov qword [rbx + 0x470], r15
mov edi, 0x104
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbx + 0x10]
cmp qword [r8 + 0x18], 0x10
jb 0x180177005
mov r8, qword [r8]
mov r9, rdi
mov rdx, rdi
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x20
lea rdx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea r8, [rbp + 0x90]
add r8, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
lea rax, [rbp + 0x90]
cmp rax, r8
jne 0x180177077
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
jmp 0x180177094
lea rax, [rbp + 0x90]
mov r9, r8
sub r9, rax
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x48]
call fcn.1800963e0
lea rcx, [rbx + 0x410]
lea rdx, [rbp - 0x48]
call fcn.18008c67c
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1801770e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801770e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801770e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbx + 0x440], r15d
mov rcx, rbx
call fcn.180172c1c
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret