Function at 0x180181d3c
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 rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1158]
mov eax, 0x1218
call fcn.18026a280
sub rsp, rax
mov qword [rbp], 0xfffffffffffffffe
mov r15, r8
mov rdi, rdx
xor r12d, r12d
mov dword [rbp + 0x1178], r12d
lea rax, [0x1802c50e0]
mov qword [rbp + 8], rax
xorps xmm0, xmm0
xor eax, eax
movaps xmmword [0x1802c50f0], xmm0
mov qword [0x1802c5100], rax
mov qword [0x1802c5108], r12
lea ebx, [rax + 0xf]
mov qword [0x1802c5110], rbx
mov byte [0x1802c50f8], r12b
movups xmmword [0x1802c5118], xmm0
mov qword [0x1802c5128], r12
mov qword [0x1802c5130], rbx
xor r8d, r8d
lea rdx, [0x18027fdb8]
lea rcx, [0x1802c5118]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [0x1802c5118], r12b
xorps xmm0, xmm0
movups xmmword [0x1802c5138], xmm0
mov qword [0x1802c5148], r12
mov qword [0x1802c5150], rbx
mov byte [0x1802c5138], r12b
mov byte [0x1802c5158], r12b
mov qword [0x1802c5160], r12
cmp qword [rdi + 0x18], 0x10
jb 0x180181e28
mov rsi, qword [rdi]
mov rcx, rsi
jmp 0x180181e2e
mov rcx, rdi
mov rsi, rdi
mov r14, qword [rdi + 0x10]
add r14, rcx
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180181e42
mov rbx, qword [rdi]
mov r13d, 1
cmp rbx, r14
je 0x180181e64
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
add rbx, r13
cmp rbx, r14
jne 0x180181e50
mov rdx, rdi
lea rcx, [0x1802c50f8]
call fcn.18008c748
mov rdx, r15
lea rcx, [0x1802c5138]
call fcn.18008c748
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r13
mov ebx, 0xf
mov qword [rbp - 0x50], rbx
mov r8, r13
lea rdx, [0x18027fdf8]
lea rcx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rbp - 0x67], r12b
lea r8, [rbp - 0x68]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.180095670
nop
mov rdx, qword [rax + 8]
sub rdx, 0x20
lea rcx, [0x1802c5118]
call fcn.18008c748
nop
lea rcx, [rbp - 0x80]
call fcn.18008d1e8
mov r8, r15
mov rdx, rdi
call fcn.18008d0c4
test rax, rax
je 0x180181ef9
mov qword [0x1802c50e8], rax
jmp 0x1801824af
mov rdx, rdi
call fcn.18008cdbc
mov qword [0x1802c50f0], 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 [0x1802c0e88], r12d
jne 0x180181f4f
test rax, rax
je 0x180181f48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x1802c0ef8]
call rbx
mov dword [0x1802c0e88], r13d
cmp dword [0x1802c0ef8], r12d
setne cl
movzx eax, byte [0x1802c5158]
test cl, cl
cmovne eax, r12d
mov byte [0x1802c5158], al
lea rcx, [0x1802c50e0]
call fcn.180186780
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], r12b
mov al, byte [rsp + 0x3b]
mov r14d, r13d
mov rcx, r12
mov al, byte [rsp + rcx + 0x3b]
sub al, 7
mov byte [rsp + rcx + 0x3b], al
add rcx, r13
cmp rcx, 0xd
jb 0x180181fc8
xor r8d, r8d
lea rdx, [rsp + 0x3b]
mov rcx, r15
call fcn.1800934b4
or rbx, 0xffffffffffffffff
test rax, rax
je 0x18018209c
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 r14d, [rbx + 4]
mov rdx, r12
mov al, byte [rsp + rdx + 0x50]
mov ecx, dword [rsp + 0x4c]
xor cl, al
mov byte [rsp + rdx + 0x50], cl
add rdx, r13
cmp rdx, 0x11
jb 0x180182066
mov byte [rsp + 0x61], r12b
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1800934b4
test rax, rax
je 0x18018209c
mov sil, r12b
jmp 0x1801820a5
mov sil, r13b
test r14b, 2
je 0x1801820b6
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]
test sil, sil
je 0x1801821c0
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], r12b
mov al, byte [rsp + 0x30]
mov rcx, r12
mov al, byte [rsp + rcx + 0x30]
sub al, 8
mov byte [rsp + rcx + 0x30], al
add rcx, r13
cmp rcx, 0xa
jb 0x18018210e
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x180182135
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
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 - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8, rax
lea rdx, [rbp - 0x68]
call fcn.18008c99c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1801821c0
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801821bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801821bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov rcx, qword [0x1802c50f0]
test rcx, rcx
je 0x180182919
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1801821dd
mov rdx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802c50e0], rax
cmp byte [0x1802c5158], r12b
je 0x180182238
lea rcx, [0x1802c50e0]
call fcn.18008f218
mov rsi, rax
mov rbx, qword [0x1802c50f0]
mov r14, qword [0x1802c50e0]
sub r14, rbx
lea rcx, [0x1802c50e0]
call fcn.180186780
mov rax, qword [0x1802c50f0]
cmp rax, rbx
je 0x18018222f
lea rsi, [rax + r14]
mov rax, qword [0x1802c50e0]
jmp 0x18018223b
mov rsi, rax
test rsi, rsi
jne 0x1801822a5
mov rsi, rax
test rax, rax
jne 0x18018229e
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180182255
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18018227c
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18018226d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180182919
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x180182289
mov rdx, qword [r15]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x180182919
mov byte [0x1802c5158], r12b
cmp byte [0x1802c5158], r12b
je 0x180182495
mov rdx, rsi
call fcn.180186d54
test al, al
jne 0x1801822d0
mov rsi, qword [0x1802c50e0]
mov al, r12b
mov byte [0x1802c5158], al
jmp 0x1801822d6
mov al, byte [0x1802c5158]
test al, al
je 0x180182495
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
mov ebx, 0x20
mov r8d, ebx
mov rdx, rsi
lea rcx, [rbp - 0x20]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rcx, [rbp + 0x80]
call fcn.18007ddc4
nop
lea rdx, [0x1802c50f8]
lea rcx, [rbp + 0x80]
call fcn.18007df10
test al, al
je 0x180182489
mov rdx, qword [0x1802c50f0]
lea rcx, [rbp + 0x80]
call fcn.180174f04
test al, al
je 0x180182489
lea r14d, [rbx + 0x21]
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x518]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rdx, [0x1802c5138]
cmp qword [0x1802c5150], 0x10
cmovae rdx, qword [0x1802c5138]
lea r8, [rbp + 0x510]
lea rcx, [rbp + 0x80]
call fcn.180173504
test al, al
je 0x180182489
mov dword [rbp + 0x1160], r12d
mov r9d, dword [rbp + 0x670]
mov byte [rsp + 0x28], r12b
mov dword [rsp + 0x20], r13d
lea r8d, [rbx - 0x1c]
lea rdx, [rbp + 0x1160]
lea rcx, [rbp + 0x80]
call fcn.1801755f8
test al, al
je 0x180182489
mov edx, dword [rbp + 0x1160]
lea rcx, [rbp + 0x80]
call fcn.18017390c
mov r9, rax
mov byte [rsp + 0x28], r12b
mov dword [rsp + 0x20], r13d
mov r8d, ebx
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x80]
call fcn.1801755f8
test al, al
je 0x180182489
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
lea r9, [rbp - 0x80]
xor r8d, r8d
mov dl, r13b
call fcn.18009463c
test al, al
jne 0x180182554
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x180182489
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 0x180182480
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180182687
mov rcx, r8
call fcn.180269534
nop
lea rcx, [rbp + 0x80]
call fcn.180172968
mov r9, rsi
mov r8, r15
mov rdx, rdi
call fcn.18008cec0
mov qword [0x1802c50e8], rsi
mov ebx, 0xf
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1801824e9
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1801824e4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18018290b
mov rcx, r8
call fcn.180269534
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], rbx
mov byte [rdi], r12b
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18018252e
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x180182529
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180182912
mov rcx, r8
call fcn.180269534
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], rbx
mov byte [r15], r12b
lea rax, [0x1802c50e0]
add rsp, 0x1218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
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 0x180182596
lea r9, [rbp - 0x80]
xor r8d, r8d
call fcn.18009463c
nop
lea rcx, [rbp + 0xc80]
call fcn.180172968
jmp 0x180182428
mov r8, r14
lea rcx, [rbp + 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rdx, [0x1802c5138]
cmp qword [0x1802c5150], 0x10
cmovae rdx, qword [0x1802c5138]
lea r8, [rbp + 0x10]
lea rcx, [rbp + 0xc80]
call fcn.18017344c
test al, al
je 0x18018260c
mov ecx, dword [rbp + 0x668]
mov eax, esi
sub eax, dword [0x1802c50f0]
cmp ecx, eax
je 0x18018260c
mov rax, qword [0x1802c5160]
test rax, rax
je 0x1801825ef
mov byte [rax], r13b
mov r8, rcx
add r8, qword [0x1802c50f0]
lea rdx, [0x1802c5138]
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 0x18018258c
call fcn.180172968
nop
movabs rbx, 0x2aaaaaaaaaaaaaab
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x180182696
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 0x18018268e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018268e
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], r12
lea r9, [rsp + 0x68]
mov r8, qword [0x1802c50f0]
mov dl, r13b
call fcn.18009463c
test al, al
jne 0x18018271e
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x180182489
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 0x180182480
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180182480
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], r13b
xor r9d, r9d
mov r8, qword [0x1802c50f0]
xor edx, edx
lea rcx, [rbp + 0x7f0]
call fcn.18017711c
xor edx, edx
test al, al
jne 0x180182771
mov r8, qword [0x1802c50f0]
lea r9, [rsp + 0x68]
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
call fcn.180172968
jmp 0x1801826bc
mov r8, r14
lea rcx, [rbp + 0x688]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rdx, [0x1802c5138]
cmp qword [0x1802c5150], 0x10
cmovae rdx, qword [0x1802c5138]
lea r8, [rbp + 0x680]
lea rcx, [rbp + 0x7f0]
call fcn.180173504
test al, al
je 0x180182904
mov r8d, dword [rbp + 0x668]
cmp r8d, dword [rbp + 0x7d8]
je 0x1801827ee
cmp byte [rbp + 0x6cc], r12b
jne 0x1801827ee
mov rax, qword [0x1802c5160]
test rax, rax
je 0x1801827db
mov byte [rax], r13b
lea rdx, [0x1802c5138]
lea rcx, [rbp + 0x7f0]
call fcn.18017a000
lea r9, [rsp + 0x68]
mov r8, qword [0x1802c50f0]
xor edx, edx
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
test al, al
je 0x180182767
call fcn.180172968
nop
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x180182872
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 0x18018286a
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180182717
mov rcx, r8
call fcn.180269534
mov ebx, 0x20
mov r8d, ebx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x1801828ec
mov rax, qword [0x1802c5160]
test rax, rax
je 0x18018289b
mov byte [rax], r13b
lea r9, [rbp + 0x1180]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801828ec
mov rax, r12
mov cl, byte [rbp + rax - 0x40]
cmp byte [rbp + rax - 0x20], cl
je 0x1801828c8
mov byte [rax + rsi], cl
add rax, r13
cmp rax, rbx
jb 0x1801828bb
lea r9, [rbp - 0x48]
mov r8d, dword [rbp + 0x1180]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x180182489
mov rax, qword [0x1802c5160]
test rax, rax
je 0x180182489
mov byte [rax], r12b
jmp 0x180182489
xor edx, edx
jmp 0x18018274e
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