Function at 0x18007b690
Capabilities:
Encode data using xor
Get common file path
Terminate process

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
xor ebx, ebx
mov dword [rbp + 0x218], ebx
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x18007bb34
mov dword [rsp + 0x39], 0xf3a5f3db
mov dword [rsp + 0x3d], 0xaaa1eaf3
mov word [rsp + 0x41], 0xab
mov byte [rsp + 0x43], 1
mov ecx, ebx
nop
lea eax, [rcx - 0x41]
xor byte [rsp + rcx + 0x39], al
inc rcx
cmp rcx, 9
jb 0x18007b6f0
mov byte [rsp + 0x43], bl
lea rax, [rsp + 0x39]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x39]
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x18007b720
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.18005a630
nop
mov dword [rsp + 0x30], 0xa5b4accf
mov dword [rsp + 0x34], 0xb6aaaa
mov byte [rsp + 0x38], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x41]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 7
jb 0x18007b760
mov byte [rsp + 0x38], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x18007b787
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x60]
call fcn.18005a630
nop
mov dword [rsp + 0x44], 0xa7b7a9f9
mov dword [rsp + 0x48], 0xb6a4ea8e
mov word [rsp + 0x4c], 0xb7
mov byte [rsp + 0x4e], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x41]
xor byte [rsp + rcx + 0x44], al
inc rcx
cmp rcx, 9
jb 0x18007b7d0
mov byte [rsp + 0x4e], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x44]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x18007b7f7
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.18005a630
nop
mov dword [rbp + 0x220], 0xa7b7a9f9
mov word [rbp + 0x224], 0x8e
mov byte [rbp + 0x226], 1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x41]
xor byte [rbp + rcx + 0x220], al
inc rcx
cmp rcx, 5
jb 0x18007b840
mov byte [rbp + 0x226], 0
lea rax, [rbp + 0x220]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x220]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x18007b870
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.18005a630
nop
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xe0]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18007b8a3
mov qword [rsp + 0x58], rdi
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.18005a630
mov dword [rbp + 0x218], 0x1f
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.180063410
mov dword [rbp + 0x218], 0x3f
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.180065da0
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.180063410
mov dword [rbp + 0x218], 0x7f
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.180065da0
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.180063410
mov dword [rbp + 0x218], 0xff
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.180065da0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.180063410
mov edi, 0x1ff
mov dword [rbp + 0x218], edi
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.180065da0
nop
lea rcx, [rbp - 0x60]
call fcn.18006e9d0
nop
lea rcx, [rbp - 0x40]
call fcn.18006e9d0
mov dword [rbp + 0x218], 0x11f
lea rcx, [rbp - 0x20]
call fcn.18006e9d0
nop
lea rcx, [rbp]
call fcn.18006e9d0
nop
lea rcx, [rbp + 0x20]
call fcn.18006e9d0
nop
lea rcx, [rbp + 0x40]
call fcn.18006e9d0
nop
lea rcx, [rbp + 0x60]
call fcn.18006e9d0
nop
lea rcx, [rbp + 0x80]
call fcn.18006e9d0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x80]
call fcn.180084158
mov r8d, eax
test eax, eax
jne 0x18007ba32
mov edx, dword [rbp - 0x70]
test dl, 1
mov eax, 0x16d
cmovne edi, eax
mov dword [rsp + 0x54], edi
bt edx, 0xa
jae 0x18007ba24
mov eax, dword [rbp - 0x6c]
cmp eax, 0xa000000c
jne 0x18007ba16
lea ebx, [r8 + 4]
jmp 0x18007ba53
cmp eax, 0xa0000003
jne 0x18007ba24
mov ebx, 0xa
jmp 0x18007ba53
movzx ebx, dl
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
jmp 0x18007ba53
mov dword [rsp + 0x54], 0xffff
sub eax, 2
je 0x18007ba4e
sub eax, 1
je 0x18007ba4e
sub eax, 0x32
je 0x18007ba4e
cmp eax, 0x46
jne 0x18007ba53
mov ebx, 1
mov dword [rsp + 0x50], r8d
lea rax, [0x180392100]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
test ebx, ebx
jne 0x18007ba7e
test r8d, r8d
jne 0x18007bb1d
jmp 0x18007ba83
cmp ebx, 1
nop
nop
lea rcx, [rsp + 0x60]
call fcn.18006e9d0
add rsp, 0x2f0
pop rdi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, str.exists
call fcn.18006e680
nop
call fcn.18006ed50
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3