Function at 0x1800ae7ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x1804a0400]
xor rax, rbp
mov qword [rbp + 0x160], rax
lea rcx, [0x180508106]
call fcn.180237068
nop
mov eax, dword [rbp + 0x1b0]
mov ecx, dword [rbp + 0x1a0]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x24], eax
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rbp + 0x44], 0
jmp 0x1800ae838
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x198]
cmp dword [rbp + 0x44], eax
jge 0x1800aec90
mov eax, dword [rbp + 0x1b0]
mov qword [rbp + 0x158], rax
lea rcx, [rbp + 8]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rbp + 0x158]
rep stosb byte [rdi], al
mov dword [rbp + 0x84], 0
mov eax, dword [rbp + 0x1b0]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 2
je 0x1800ae8b1
cmp dword [rbp + 0x154], 3
je 0x1800ae961
cmp dword [rbp + 0x154], 4
je 0x1800aea11
cmp dword [rbp + 0x154], 5
je 0x1800aeac1
jmp 0x1800aeb71
mov dword [rbp + 0x64], 0
jmp 0x1800ae8c2
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x64], eax
jg 0x1800ae95c
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov rcx, qword [rbp + 0x190]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x64]
and ecx, 7
movsxd rcx, ecx
movzx ecx, byte [rbp + rcx + 8]
sub eax, ecx
mov ecx, dword [rbp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov ecx, dword [rbp + 0x1b0]
mov edx, dword [rbp + 0x64]
add edx, ecx
mov ecx, edx
and ecx, 7
mov ecx, ecx
mov rdx, qword [rbp + 0x190]
mov al, byte [rdx + rax]
mov byte [rbp + rcx + 8], al
xor edx, edx
mov eax, dword [rbp + 0x84]
mov ecx, 2
div ecx
mov ecx, dword [rbp + 0x64]
imul ecx, dword [rbp + 0x1a8]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x190]
mov byte [rdx + rcx], al
jmp 0x1800ae8ba
jmp 0x1800aec1b
mov dword [rbp + 0x64], 0
jmp 0x1800ae972
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x64], eax
jg 0x1800aea0c
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov rcx, qword [rbp + 0x190]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x64]
and ecx, 7
movsxd rcx, ecx
movzx ecx, byte [rbp + rcx + 8]
sub eax, ecx
mov ecx, dword [rbp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov ecx, dword [rbp + 0x1b0]
mov edx, dword [rbp + 0x64]
add edx, ecx
mov ecx, edx
and ecx, 7
mov ecx, ecx
mov rdx, qword [rbp + 0x190]
mov al, byte [rdx + rax]
mov byte [rbp + rcx + 8], al
xor edx, edx
mov eax, dword [rbp + 0x84]
mov ecx, 3
div ecx
mov ecx, dword [rbp + 0x64]
imul ecx, dword [rbp + 0x1a8]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x190]
mov byte [rdx + rcx], al
jmp 0x1800ae96a
jmp 0x1800aec1b
mov dword [rbp + 0x64], 0
jmp 0x1800aea22
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x64], eax
jg 0x1800aeabc
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov rcx, qword [rbp + 0x190]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x64]
and ecx, 7
movsxd rcx, ecx
movzx ecx, byte [rbp + rcx + 8]
sub eax, ecx
mov ecx, dword [rbp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov ecx, dword [rbp + 0x1b0]
mov edx, dword [rbp + 0x64]
add edx, ecx
mov ecx, edx
and ecx, 7
mov ecx, ecx
mov rdx, qword [rbp + 0x190]
mov al, byte [rdx + rax]
mov byte [rbp + rcx + 8], al
xor edx, edx
mov eax, dword [rbp + 0x84]
mov ecx, 4
div ecx
mov ecx, dword [rbp + 0x64]
imul ecx, dword [rbp + 0x1a8]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x190]
mov byte [rdx + rcx], al
jmp 0x1800aea1a
jmp 0x1800aec1b
mov dword [rbp + 0x64], 0
jmp 0x1800aead2
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x64], eax
jg 0x1800aeb6c
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov rcx, qword [rbp + 0x190]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x64]
and ecx, 7
movsxd rcx, ecx
movzx ecx, byte [rbp + rcx + 8]
sub eax, ecx
mov ecx, dword [rbp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov ecx, dword [rbp + 0x1b0]
mov edx, dword [rbp + 0x64]
add edx, ecx
mov ecx, edx
and ecx, 7
mov ecx, ecx
mov rdx, qword [rbp + 0x190]
mov al, byte [rdx + rax]
mov byte [rbp + rcx + 8], al
xor edx, edx
mov eax, dword [rbp + 0x84]
mov ecx, 5
div ecx
mov ecx, dword [rbp + 0x64]
imul ecx, dword [rbp + 0x1a8]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x190]
mov byte [rdx + rcx], al
jmp 0x1800aeaca
jmp 0x1800aec1b
mov dword [rbp + 0x64], 0
jmp 0x1800aeb82
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x64], eax
jg 0x1800aec1b
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov rcx, qword [rbp + 0x190]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x64]
and ecx, 7
movsxd rcx, ecx
movzx ecx, byte [rbp + rcx + 8]
sub eax, ecx
mov ecx, dword [rbp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x64]
imul eax, dword [rbp + 0x1a8]
cdqe
mov ecx, dword [rbp + 0x1b0]
mov edx, dword [rbp + 0x64]
add edx, ecx
mov ecx, edx
and ecx, 7
mov ecx, ecx
mov rdx, qword [rbp + 0x190]
mov al, byte [rdx + rax]
mov byte [rbp + rcx + 8], al
xor edx, edx
mov eax, dword [rbp + 0x84]
div dword [rbp + 0x1b0]
mov ecx, dword [rbp + 0x64]
imul ecx, dword [rbp + 0x1a8]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x190]
mov byte [rdx + rcx], al
jmp 0x1800aeb7a
jmp 0x1800aec25
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x1a0]
cmp dword [rbp + 0x64], eax
jge 0x1800aec7a
xor eax, eax
test eax, eax
jne 0x1800aec30
mov eax, dword [rbp + 0x64]
and eax, 7
cdqe
movzx eax, byte [rbp + rax + 8]
mov ecx, dword [rbp + 0x84]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
xor edx, edx
mov eax, dword [rbp + 0x84]
div dword [rbp + 0x1b0]
mov ecx, dword [rbp + 0x64]
imul ecx, dword [rbp + 0x1a8]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x190]
mov byte [rdx + rcx], al
jmp 0x1800aec1d
mov rax, qword [rbp + 0x190]
inc rax
mov qword [rbp + 0x190], rax
jmp 0x1800ae830
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.180236ff4
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.180237140
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret