Function at 0x18017c030
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 0x18017c0f5
mov rsi, qword [r14]
mov rcx, rsi
jmp 0x18017c0fb
mov rcx, r14
mov rsi, r14
mov r15, qword [r14 + 0x10]
add r15, rcx
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18017c10f
mov rbx, qword [r14]
cmp rbx, r15
je 0x18017c12b
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 0x18017c117
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 0x18017c1c3
mov qword [rdi + 8], rax
jmp 0x18017c722
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 [0x1802c0f48], r15d
jne 0x18017c215
test rax, rax
je 0x18017c20f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x1802c0e20]
call rbx
mov dword [0x1802c0f48], esi
cmp dword [0x1802c0e20], r15d
setne al
test al, al
je 0x18017c227
mov byte [rdi + 0x78], r15b
mov rcx, rdi
call fcn.1801830a0
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 0x18017c280
xor r8d, r8d
lea rdx, [rsp + 0x3b]
mov rcx, r13
call fcn.1800934b4
or rbx, 0xffffffffffffffff
test rax, rax
je 0x18017c34f
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 0x18017c31e
mov byte [rsp + 0x61], sil
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.1800934b4
test rax, rax
jne 0x18017c358
mov sil, 1
test r15b, 2
je 0x18017c369
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 0x18017c476
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 0x18017c3c4
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 0x18017c3eb
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 0x18017c476
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017c471
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017c471
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 0x18017cb63
mov rdx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x18017c491
mov rdx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rdi], rax
cmp byte [rdi + 0x78], r15b
je 0x18017c4d0
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.1801830a0
mov rax, qword [rdi + 0x10]
cmp rax, rbx
je 0x18017c4cd
lea rsi, [r15 + rax]
xor r15d, r15d
test rsi, rsi
jne 0x18017c538
mov rsi, qword [rdi]
test rsi, rsi
jne 0x18017c534
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18017c4ea
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18017c511
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18017c502
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x18017cb63
mov rdx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x18017c51f
mov rdx, qword [r13]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x18017cb63
mov byte [rdi + 0x78], r15b
cmp byte [rdi + 0x78], r15b
je 0x18017c70b
mov rdx, rsi
call fcn.180183674
test al, al
jne 0x18017c555
mov rsi, qword [rdi]
mov byte [rdi + 0x78], r15b
cmp byte [rdi + 0x78], r15b
je 0x18017c70b
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 0x18017c6ff
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp + 0x80]
call fcn.180174f04
test al, al
je 0x18017c6ff
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 0x18017c5eb
mov rdx, qword [r12]
lea r8, [rbp + 0x510]
lea rcx, [rbp + 0x80]
call fcn.180173504
test al, al
je 0x18017c6ff
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 0x18017c6ff
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 0x18017c6ff
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 0x18017c7cc
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x18017c6ff
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 0x18017c6f6
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18017c8ed
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 0x18017c75c
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x18017c757
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18017cb55
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 0x18017c7a2
inc rdx
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x18017c79d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18017cb5c
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 0x18017c80e
lea r9, [rbp - 0x80]
xor r8d, r8d
call fcn.18009463c
nop
lea rcx, [rbp + 0xc80]
call fcn.180172968
jmp 0x18017c69e
mov r8, rbx
lea rcx, [rbp + 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x18017c82a
mov rdx, qword [r12]
lea r8, [rbp + 0x10]
lea rcx, [rbp + 0xc80]
call fcn.18017344c
test al, al
je 0x18017c872
mov ecx, dword [rbp + 0x668]
mov eax, esi
sub eax, dword [rdi + 0x10]
cmp ecx, eax
je 0x18017c872
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017c85c
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 0x18017c804
call fcn.180172968
nop
movabs rbx, 0x2aaaaaaaaaaaaaab
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x18017c8fc
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 0x18017c8f4
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017c8f4
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 0x18017c980
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x18017c6ff
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 0x18017c6f6
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017c6f6
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 0x18017c9cd
mov r8, qword [rdi + 0x10]
lea r9, [rsp + 0x68]
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
call fcn.180172968
jmp 0x18017c91e
mov r8d, 0x41
lea rcx, [rbp + 0x688]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x18017c9ef
mov rdx, qword [r12]
lea r8, [rbp + 0x680]
lea rcx, [rbp + 0x7f0]
call fcn.180173504
test al, al
je 0x18017cb4e
mov r8d, dword [rbp + 0x668]
cmp r8d, dword [rbp + 0x7d8]
je 0x18017ca41
cmp byte [rbp + 0x6cc], r15b
jne 0x18017ca41
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017ca32
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 0x18017c9c3
call fcn.180172968
nop
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x18017cac2
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 0x18017caba
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18017c979
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 0x18017cb36
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017caeb
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 0x18017cb36
mov rax, r15
mov cl, byte [rbp + rax - 0x38]
cmp byte [rbp + rax - 0x18], cl
je 0x18017cb15
mov byte [rax + rsi], cl
inc rax
cmp rax, rbx
jb 0x18017cb08
lea r9, [rbp - 0x40]
mov r8d, dword [rbp - 0x68]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x18017c6ff
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18017c6ff
mov byte [rax], r15b
jmp 0x18017c6ff
xor edx, edx
jmp 0x18017c9ad
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