Function at 0x180008c20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xff
movzx eax, al
mov qword [rsp + 0x70], rax
call fcn.1801ace34
mov rcx, qword [rsp + 0x70]
movzx eax, word [rax + rcx*2]
and eax, 8
test eax, eax
jne 0x180008c4b
cmp dword [rsp + 0x20], 0x2d
jne 0x180008cc4
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x180008cec
cmp dword [rsp + 0x20], 0x2b
jne 0x180008cec
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0xc0], 0
je 0x180008d00
cmp dword [rsp + 0xc0], 0x10
jne 0x180008d50
cmp dword [rsp + 0x20], 0x30
jne 0x180008d50
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x78
je 0x180008d21
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x58
jne 0x180008d50
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0xc0], reloc.WS2_32.dll_recv
cmp dword [rsp + 0xc0], 0
jne 0x180008d7e
cmp dword [rsp + 0x20], 0x30
jne 0x180008d6b
mov dword [rsp + 0x40], 8
jmp 0x180008d73
mov dword [rsp + 0x40], 0xa
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0xc0], eax
movsxd rax, dword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
xor edx, edx
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x78]
div rcx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x80]
div rcx
mov rax, rdx
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
jmp 0x180008e00
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xff
movzx eax, al
mov qword [rsp + 0x88], rax
call fcn.1801ace34
mov rcx, qword [rsp + 0x88]
movzx eax, word [rax + rcx*2]
and eax, 4
test eax, eax
je 0x180008e3c
mov eax, dword [rsp + 0x20]
sub eax, 0x30
mov dword [rsp + 0x20], eax
jmp 0x180008ebc
mov eax, dword [rsp + 0x20]
and eax, 0xff
movzx eax, al
mov qword [rsp + 0x90], rax
call fcn.1801ace34
mov rcx, qword [rsp + 0x90]
movzx eax, word [rax + rcx*2]
and eax, 0x103
test eax, eax
je 0x180008eba
mov eax, dword [rsp + 0x20]
and eax, 0xff
movzx eax, al
mov qword [rsp + 0x98], rax
call fcn.1801ace34
mov rcx, qword [rsp + 0x98]
movzx eax, word [rax + rcx*2]
and eax, 1
test eax, eax
je 0x180008ea0
mov dword [rsp + 0x44], gethostname
jmp 0x180008ea8
mov dword [rsp + 0x44], 0x57
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180008ebc
jmp 0x180008f39
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x20], eax
jl 0x180008ecb
jmp 0x180008f39
cmp dword [rsp + 0x30], 0
jl 0x180008ef4
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
ja 0x180008ef4
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jne 0x180008efe
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x20], eax
jle 0x180008efe
mov dword [rsp + 0x30], 0xffffffff
jmp 0x180008f34
mov dword [rsp + 0x30], 1
movsxd rax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x180008ddf
cmp dword [rsp + 0x30], 0
jge 0x180008f4b
mov qword [rsp + 0x38], 0xffffffffffffffff
jmp 0x180008f5e
cmp dword [rsp + 0x48], 0
je 0x180008f5e
xor eax, eax
sub rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0xb8], 0
je 0x180008f9c
cmp dword [rsp + 0x30], 0
je 0x180008f7f
mov rax, qword [rsp + 0x28]
dec rax
mov qword [rsp + 0x68], rax
jmp 0x180008f8c
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
add rsp, 0xa8
ret