Function at 0x18017ee44
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1148]
mov eax, 0x1210
call fcn.18026a280
sub rsp, rax
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rsp + 0x1268], rbx
mov bl, r9b
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov dword [rbp + 0x1170], esi
mov qword [rcx + 0x10], rsi
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
mov qword [rcx + 0x28], rsi
lea r15d, [rsi + 0xf]
mov qword [rcx + 0x30], r15
mov byte [rcx + 0x18], sil
lea r13, [rcx + 0x38]
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], r15
xor r8d, r8d
lea rdx, [0x18027fdb8]
mov rcx, r13
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [r13], sil
lea r12, [rdi + 0x58]
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], r15
mov byte [r12], sil
mov byte [rdi + 0x78], bl
mov qword [rdi + 0x80], rsi
cmp qword [r14 + 0x18], 0x10
jb 0x18017ef09
mov rsi, qword [r14]
mov rcx, rsi
jmp 0x18017ef0f
mov rcx, r14
mov rsi, r14
mov r15, qword [r14 + 0x10]
add r15, rcx
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18017ef23
mov rbx, qword [r14]
cmp rbx, r15
je 0x18017ef3f
sub rsi, rbx
movzx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rsi], al
inc rbx
cmp rbx, r15
jne 0x18017ef2b
mov rdx, r14
lea rcx, [rdi + 0x18]
call fcn.18008c748
mov rdx, qword [rbp + 0x1160]
mov rcx, r12
call fcn.18008c748
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov esi, 1
mov qword [rbp - 0x50], rsi
lea ebx, [rsi + 0xe]
mov qword [rbp - 0x48], rbx
mov r8d, esi
lea rdx, [0x18027fdf8]
lea rcx, [rbp - 0x60]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor r15d, r15d
mov byte [rbp - 0x5f], r15b
lea r8, [rbp - 0x60]
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.180095670
nop
mov rdx, qword [rax + 8]
sub rdx, 0x20
mov rcx, r13
call fcn.18008c748
nop
lea rcx, [rbp - 0x80]
call fcn.18008d1e8
mov r13, qword [rbp + 0x1160]
mov r8, r13
mov rdx, r14
call fcn.18008d0c4
test rax, rax
je 0x18017efd7
mov qword [rdi + 8], rax
jmp 0x18017f536
mov rdx, r14
call fcn.18008cdbc
mov qword [rdi + 0x10], rax
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp dword [0x1802c0dfc], r15d
jne 0x18017f029
test rax, rax
je 0x18017f023
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x1802c0ea8]
call rbx
mov dword [0x1802c0dfc], esi
cmp dword [0x1802c0ea8], r15d
setne al
test al, al
je 0x18017f03b
mov byte [rdi + 0x78], r15b
mov rcx, rdi
call fcn.180184c10
mov byte [rsp + 0x3b], 0x4e
mov byte [rsp + 0x3c], 0x73
mov byte [rsp + 0x3d], 0x76
mov byte [rsp + 0x3e], 0x69
mov byte [rsp + 0x3f], 0x68
mov byte [rsp + 0x40], 0x73
mov byte [rsp + 0x41], 0x48
mov byte [rsp + 0x42], 0x6b
mov byte [rsp + 0x43], 0x6b
mov byte [rsp + 0x44], 0x48
mov byte [rsp + 0x45], 0x7b
mov byte [rsp + 0x46], 0x76
mov byte [rsp + 0x47], 0x74
mov byte [rsp + 0x48], r15b
mov al, byte [rsp + 0x3b]
mov r15d, esi
xor esi, esi
mov ecx, esi
mov al, byte [rsp + rcx + 0x3b]
sub al, 7
mov byte [rsp + rcx + 0x3b], al
inc rcx
cmp rcx, 0xd
jb 0x18017f094
xor r8d, r8d
lea rdx, [rsp + 0x3b]
mov rcx, r13
call fcn.1800934b4
or rbx, 0xffffffffffffffff
test rax, rax
je 0x18017f163
mov dword [rsp + 0x4c], 0x11
mov byte [rsp + 0x50], 0x56
mov byte [rsp + 0x51], 0x7d
mov byte [rsp + 0x52], 0x7e
mov byte [rsp + 0x53], 0x73
mov byte [rsp + 0x54], 0x70
mov byte [rsp + 0x55], 0x7d
mov byte [rsp + 0x56], 0x56
mov byte [rsp + 0x57], 0x74
mov byte [rsp + 0x58], 0x65
mov byte [rsp + 0x59], 0x50
mov byte [rsp + 0x5a], 0x65
mov byte [rsp + 0x5b], 0x7e
mov byte [rsp + 0x5c], 0x7c
mov byte [rsp + 0x5d], 0x5f
mov byte [rsp + 0x5e], 0x70
mov byte [rsp + 0x5f], 0x7c
mov byte [rsp + 0x60], 0x74
xor eax, eax
mov byte [rsp + 0x61], al
mov al, byte [rsp + 0x50]
lea r15d, [rbx + 4]
mov rdx, rsi
mov al, byte [rsp + rdx + 0x50]
mov ecx, dword [rsp + 0x4c]
xor cl, al
mov byte [rsp + rdx + 0x50], cl
inc rdx
cmp rdx, 0x11
jb 0x18017f132
mov byte [rsp + 0x61], sil
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.1800934b4
test rax, rax
jne 0x18017f16c
mov sil, 1
test r15b, 2
je 0x18017f17d
xor edx, edx
lea r8d, [rdx + 0x12]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor edx, edx
lea r8d, [rdx + 0xe]
lea rcx, [rsp + 0x3b]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r15d, r15d
test sil, sil
je 0x18017f28a
mov byte [rsp + 0x30], 0x7d
mov byte [rsp + 0x31], 0x7b
mov byte [rsp + 0x32], 0x6d
mov byte [rsp + 0x33], 0x7a
mov byte [rsp + 0x34], 0x3b
mov byte [rsp + 0x35], 0x3a
mov byte [rsp + 0x36], 0x36
mov byte [rsp + 0x37], 0x6c
mov byte [rsp + 0x38], 0x74
mov byte [rsp + 0x39], 0x74
mov byte [rsp + 0x3a], r15b
mov al, byte [rsp + 0x30]
mov ecx, r15d
mov al, byte [rsp + rcx + 0x30]
sub al, 8
mov byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xa
jb 0x18017f1d8
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x18017f1ff
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.18007b70c
nop
xor edx, edx
lea r8d, [rdx + 0xb]
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8, rax
lea rdx, [rbp - 0x60]
call fcn.18008c99c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x18017f28a
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017f285
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017f285
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x18017f977
mov rdx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x18017f2a5
mov rdx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rdi], rax
cmp byte [rdi + 0x78], r15b
je 0x18017f2e4
mov rcx, rdi
call fcn.18008f218
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov r15, qword [rdi]
sub r15, rbx
mov rcx, rdi
call fcn.180184c10
mov rax, qword [rdi + 0x10]
cmp rax, rbx
je 0x18017f2e1
lea rsi, [r15 + rax]
xor r15d, r15d
test rsi, rsi
jne 0x18017f34c
mov rsi, qword [rdi]
test rsi, rsi
jne 0x18017f348
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18017f2fe
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18017f325
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18017f316
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x18017f977
mov rdx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x18017f333
mov rdx, qword [r13]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x18017f977
mov byte [rdi + 0x78], r15b
cmp byte [rdi + 0x78], r15b
je 0x18017f51f
mov rdx, rsi
call fcn.1801851e4
test al, al
jne 0x18017f369
mov rsi, qword [rdi]
mov byte [rdi + 0x78], r15b
cmp byte [rdi + 0x78], r15b
je 0x18017f51f
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm1
mov r8d, 0x20
mov rdx, rsi
lea rcx, [rbp - 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rcx, [rbp + 0x80]
call fcn.18007ddc4
nop
lea rdx, [rdi + 0x18]
lea rcx, [rbp + 0x80]
call fcn.18007df10
test al, al
je 0x18017f513
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp + 0x80]
call fcn.180174f04
test al, al
je 0x18017f513
mov ebx, 0x41
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x518]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x18017f3ff
mov rdx, qword [r12]
lea r8, [rbp + 0x510]
lea rcx, [rbp + 0x80]
call fcn.180173504
test al, al
je 0x18017f513
mov dword [rsp + 0x64], r15d
mov r9d, dword [rbp + 0x670]
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], 1
mov r8d, 4
lea rdx, [rsp + 0x64]
lea rcx, [rbp + 0x80]
call fcn.1801755f8
test al, al
je 0x18017f513
mov edx, dword [rsp + 0x64]
lea rcx, [rbp + 0x80]
call fcn.18017390c
mov r9, rax
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], 1
mov r8d, 0x20
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x80]
call fcn.1801755f8
test al, al
je 0x18017f513
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
lea r9, [rbp - 0x80]
xor r8d, r8d
mov dl, 1
call fcn.18009463c
test al, al
jne 0x18017f5e0
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x18017f513
mov rcx, qword [rbp - 0x70]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, r8
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
cmp rdx, 0x1000
mov rax, r8
jb 0x18017f50a
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18017f701
mov rcx, r8
call fcn.180269534
nop
lea rcx, [rbp + 0x80]
call fcn.180172968
mov r9, rsi
mov r8, r13
mov rdx, r14
call fcn.18008cec0
mov qword [rdi + 8], rsi
mov ebx, 0xf
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18017f570
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x18017f56b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18017f969
mov rcx, r8
call fcn.180269534
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], rbx
mov byte [r14], r15b
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x18017f5b6
inc rdx
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x18017f5b1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18017f970
mov rcx, r8
call fcn.180269534
mov qword [r13 + 0x10], r15
mov qword [r13 + 0x18], rbx
mov byte [r13], r15b
mov rax, rdi
mov rbx, qword [rsp + 0x1268]
add rsp, 0x1210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp + 0xc80]
call fcn.18007ddc4
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xc80]
call fcn.18007e004
xor edx, edx
test al, al
jne 0x18017f622
lea r9, [rbp - 0x80]
xor r8d, r8d
call fcn.18009463c
nop
lea rcx, [rbp + 0xc80]
call fcn.180172968
jmp 0x18017f4b2
mov r8, rbx
lea rcx, [rbp + 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x18017f63e
mov rdx, qword [r12]
lea r8, [rbp + 0x10]
lea rcx, [rbp + 0xc80]
call fcn.18017344c
test al, al
je 0x18017f686
mov ecx, dword [rbp + 0x668]
mov eax, esi
sub eax, dword [rdi + 0x10]
cmp ecx, eax
je 0x18017f686
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017f670
mov byte [rax], 1
mov r8, rcx
add r8, qword [rdi + 0x10]
mov rdx, r12
lea rcx, [rbp + 0xc80]
call fcn.180179ea0
lea r9, [rbp - 0x80]
xor r8d, r8d
xor edx, edx
call fcn.18009463c
nop
lea rcx, [rbp + 0xc80]
test al, al
je 0x18017f618
call fcn.180172968
nop
movabs rbx, 0x2aaaaaaaaaaaaaab
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x18017f710
mov rcx, qword [rbp - 0x70]
sub rcx, r8
mov rax, rbx
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x18017f708
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017f708
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.180269534
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
lea r9, [rsp + 0x68]
mov r8, qword [rdi + 0x10]
mov dl, 1
call fcn.18009463c
test al, al
jne 0x18017f794
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x18017f513
mov rcx, qword [rsp + 0x78]
mov rax, rbx
sub rcx, r8
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
cmp rdx, 0x1000
mov rax, r8
jb 0x18017f50a
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017f50a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x7f0]
call fcn.18007ddc4
nop
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8, qword [rdi + 0x10]
xor edx, edx
lea rcx, [rbp + 0x7f0]
call fcn.18017711c
xor edx, edx
test al, al
jne 0x18017f7e1
mov r8, qword [rdi + 0x10]
lea r9, [rsp + 0x68]
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
call fcn.180172968
jmp 0x18017f732
mov r8d, 0x41
lea rcx, [rbp + 0x688]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x18017f803
mov rdx, qword [r12]
lea r8, [rbp + 0x680]
lea rcx, [rbp + 0x7f0]
call fcn.180173504
test al, al
je 0x18017f962
mov r8d, dword [rbp + 0x668]
cmp r8d, dword [rbp + 0x7d8]
je 0x18017f855
cmp byte [rbp + 0x6cc], r15b
jne 0x18017f855
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017f846
mov byte [rax], 1
mov rdx, r12
lea rcx, [rbp + 0x7f0]
call fcn.18017a000
lea r9, [rsp + 0x68]
mov r8, qword [rdi + 0x10]
xor edx, edx
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
test al, al
je 0x18017f7d7
call fcn.180172968
nop
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x18017f8d6
mov rcx, qword [rsp + 0x78]
sub rcx, r8
mov rax, rbx
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x18017f8ce
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18017f78d
mov rcx, r8
call fcn.180269534
mov ebx, 0x20
mov r8d, ebx
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x18017f94a
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017f8ff
mov byte [rax], 1
lea r9, [rbp - 0x68]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18017f94a
mov rax, r15
mov cl, byte [rbp + rax - 0x38]
cmp byte [rbp + rax - 0x18], cl
je 0x18017f929
mov byte [rax + rsi], cl
inc rax
cmp rax, rbx
jb 0x18017f91c
lea r9, [rbp - 0x40]
mov r8d, dword [rbp - 0x68]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x18017f513
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017f513
mov byte [rax], r15b
jmp 0x18017f513
xor edx, edx
jmp 0x18017f7c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18014e36c
int3