Function at 0x180001ef0
Capabilities:
Get hostname
Get session user name
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and qword [rsp + 0x40], 0
mov edx, eax
xor eax, eax
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x38], rdx
lea edx, [rax + 0x30]
lea r9, [rsp + 0x38]
mov rcx, rdx
lea r8, [rsp + 0x48]
rep stosb byte [rdi], al
and qword [rsp + 0x50], rax
and dword [rsp + 0x60], eax
and qword [rsp + 0x58], rax
and qword [rsp + 0x68], rax
and qword [rsp + 0x70], rax
lea ecx, [rax + 8]
mov dword [rsp + 0x48], edx
mov rdi, rbx
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x400
call qword [sym.imp.ntdll.dll_NtOpenProcess]
test eax, eax
js 0x180002067
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xa8]
mov edx, 8
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
test eax, eax
js 0x18000205c
mov rcx, qword [rsp + 0xa8]
and dword [rsp + 0xa0], 0
xor r9d, r9d
lea rax, [rsp + 0xa0]
lea edx, [r9 + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov r8d, dword [rsp + 0xa0]
mov rcx, qword [0x180005200]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x18000204e
mov r9d, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
lea rax, [rsp + 0xa0]
mov r8, rdi
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x18000203c
mov r8, qword [rdi]
cmp byte [r8 + 1], 2
jbe 0x18000203c
movzx eax, byte [r8 + 1]
xor dl, dl
sub eax, 2
test eax, eax
jle 0x18000203c
cmp dl, 2
ja 0x18000203c
movzx ecx, dl
inc dl
mov eax, dword [r8 + rcx*4 + 0xc]
mov dword [rbx + rcx*4], eax
movzx ecx, byte [r8 + 1]
movzx eax, dl
sub ecx, 2
cmp eax, ecx
jl 0x18000201b
mov rcx, qword [0x180005200]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
and dword [rsp + 0x98], 0
lea rdx, [rsp + 0x98]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x98]
test edx, edx
je 0x1800020e7
mov rcx, qword [0x180005200]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1800020e7
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1800020d5
mov r8d, dword [rsp + 0x98]
mov ecx, dword [rbx + 8]
mov rdx, rdi
add r8d, r8d
call sub.ntdll.dll_RtlComputeCrc32
mov dword [rbx + 0xc], eax
mov rcx, qword [0x180005200]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [rsp + 0x98], 0
lea rdx, [rsp + 0x98]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x98]
test edx, edx
je 0x180002167
mov rcx, qword [0x180005200]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180002167
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x180002155
mov r8d, dword [rsp + 0x98]
mov ecx, dword [rbx + 0xc]
mov rdx, rdi
add r8d, r8d
call sub.ntdll.dll_RtlComputeCrc32
mov dword [rbx + 0x10], eax
mov rcx, qword [0x180005200]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret