Function at 0x18001faf0
Capabilities:
Encode data using xor
Enumerate process modules

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x48], xmm6
mov r15, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ebx, 4
mov r14d, 8
cmp dword [rsp + 0x50], edi
cmove ebx, r14d
xor ecx, ecx
call fcn.1800d9a50
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x18002009c
xor edx, edx
mov eax, dword [rbp + 0x7f]
div ebx
movsxd r12, eax
mov eax, r14d
mul r12
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1800d9a50
mov r13, rax
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x7f]
mov r8d, dword [rbp + 0x7f]
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x18002009c
mov r14d, edi
test r12, r12
jle 0x180020095
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], rdi
mov qword [rbp - 0x69], rdi
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x58]
call fcn.180020420
nop
lea r8, [rsp + 0x58]
cmp qword [rbp - 0x69], 7
cmova r8, qword [rsp + 0x58]
mov r9d, dword [rbp - 0x71]
mov rdx, qword [r13 + r14*8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
movsd xmm0, qword [0x180182380]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x180182388]
mov ecx, WSAGetLastError
mov word [rsp + 0x30], cx
xor word [rsp + 0x32], 0x34
xor word [rsp + 0x34], 0x35
xor word [rsp + 0x36], 0x36
xor ax, 0x37
mov word [rsp + 0x38], ax
lea rcx, [rsp + 0x30]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18001fc60
lea rcx, [rsp + 0x58]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rbp - 0x69]
cmp rdi, 7
cmova rcx, rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rbp - 0x71]
call fcn.180015b90
cmp rax, 0xffffffffffffffff
je 0x18001ff92
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
lea r9d, [rax + 0x18]
lea r8, [rbp - 0x21]
mov rdx, qword [r13 + r14*8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x18001fd10
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x18001ffcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ffc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800200ed
jmp 0x18001ffc8
mov r8, qword [rbp - 0x21]
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.18001f780
nop
movups xmm0, xmmword [str.__Yh_NdNRQK]
movups xmmword [rbp - 0x61], xmm0
mov eax, dword [0x1801822f8]
mov dword [rbp - 0x51], eax
movzx eax, byte [0x1801822fc]
mov byte [rbp - 0x4d], al
xor edi, edi
mov ecx, edi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x18001fe8a
movdqa xmm5, xmmword [0x180186340]
movdqa xmm4, xmmword [0x180186660]
movdqa xmm6, xmmword [0x180186420]
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rbp - 9], xmm0
lea rdx, [rbp - 0x61]
mov r8d, dword [rbp - 9]
nop
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmmword [0x1801864b0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1801864b0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx + 4]
xorps xmm2, xmm0
movd dword [rdx + 4], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x18001fd80
cmp ecx, 0x15
jge 0x18001fece
movsxd rax, ecx
lea r8, [rbp - 0x61]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x15
jl 0x18001fea0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], rdi
lea rax, [rbp - 0x61]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x18001fef0
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1800091f0
nop
lea r8, [rbp - 0x41]
lea rdx, [rbp + 7]
lea rcx, [rsp + 0x40]
call fcn.180020260
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x18001ff5b
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ff56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800200f3
call fcn.1800d95dc
test rbx, rbx
jne 0x18001ffe4
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.18001eb20
lea edx, [rbx + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1800d95dc
mov rdi, qword [rbp - 0x69]
mov rbx, qword [rsp + 0x58]
cmp rdi, 7
jbe 0x18001ffcd
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001ffc5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800200e7
mov rcx, rbx
call fcn.1800d95dc
inc r14
xor edi, edi
cmp r14, r12
jge 0x180020095
lea rbx, [rdi - 1]
jmp 0x18001fbd0
mov rax, qword [rbp - 0x21]
mov rcx, qword [rbp + 0x77]
mov qword [rcx], rax
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov ecx, 0x48
call fcn.1800d95a0
mov r8, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov qword [rsp + 0x40], r8
mov rcx, qword [rsi + 8]
mov rax, qword [rsp + 0x48]
mov qword [rsi + 8], rax
mov qword [rsp + 0x48], rcx
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.18001eb20
mov edx, 0x48
mov rcx, qword [rsp + 0x40]
call fcn.1800d95dc
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x1800200c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002008e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800200ed
call fcn.1800d95dc
jmp 0x1800200c1
mov rcx, qword [rbp + 0x77]
mov qword [rcx], rdi
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov ecx, 0x48
call fcn.1800d95a0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi], rax
mov rax, rsi
mov rbx, qword [rsp + 0x140]
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800e5940
int3
call fcn.1800e5940
nop
call fcn.1800e5940
nop
int3