Function at 0x10024170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.100192f0
movzx eax, al
test eax, eax
je 0x10024192
xor eax, eax
xor edx, edx
jmp 0x100244a5
xorpd xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [edx + eax*2]
cmp ecx, 0x20
je 0x100241fb
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
movzx edx, word [eax + ecx*2]
cmp edx, 9
je 0x100241fb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
movzx eax, word [ecx + edx*2]
cmp eax, 0xa
je 0x100241fb
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [edx + eax*2]
cmp ecx, 0xd
jne 0x10024265
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, 4
shl eax, 0
mov ecx, 4
shl ecx, 1
mov edx, dword [eax + 0x10073b68]
mov dword [ecx + 0x10073b68], edx
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [eax + 0x10073b68]
cmp edx, dword [ecx + 0x10073b68]
jae 0x10024260
mov eax, 4
imul eax, eax, 3
mov ecx, dword [eax + 0x10073b68]
push ecx
push 0
call dword [0x1005e27c]
mov edx, 4
shl edx, 1
mov dword [edx + 0x10073b68], eax
jmp 0x100241b7
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
movzx eax, word [ecx + edx*2]
cmp eax, 0x2d
jne 0x10024304
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, 4
shl edx, 0
mov eax, 4
shl eax, 1
mov ecx, dword [edx + 0x10073b68]
mov dword [eax + 0x10073b68], ecx
mov edx, 4
shl edx, 1
mov eax, 4
shl eax, 0
mov ecx, dword [edx + 0x10073b68]
cmp ecx, dword [eax + 0x10073b68]
jae 0x100242ed
mov edx, 4
imul edx, edx, 3
mov eax, dword [edx + 0x10073b68]
push eax
push 0
call dword [0x1005e27c]
mov ecx, 4
shl ecx, 1
mov dword [ecx + 0x10073b68], eax
mov dword [ebp - 0x10], 0x14
call dword [0x1005e264]
mov edx, dword [ebp - 0x10]
mov dword [edx*4 + 0x10073b68], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
movzx eax, word [ecx + edx*2]
cmp eax, 0x30
jne 0x1002442d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [edx + eax*2 + 2]
cmp ecx, 0x78
jne 0x1002442d
mov edx, 4
shl edx, 0
mov eax, 4
shl eax, 1
mov ecx, dword [edx + 0x10073b68]
mov dword [eax + 0x10073b68], ecx
mov edx, 4
shl edx, 1
mov eax, 4
shl eax, 0
mov ecx, dword [edx + 0x10073b68]
cmp ecx, dword [eax + 0x10073b68]
jae 0x1002438b
mov edx, 4
imul edx, edx, 3
mov eax, dword [edx + 0x10073b68]
push eax
push 0
call dword [0x1005e27c]
mov ecx, 4
shl ecx, 1
mov dword [ecx + 0x10073b68], eax
mov dword [ebp - 0xc], 0x10
mov edx, 4
shl edx, 1
mov eax, dword [edx + 0x10073b68]
xor eax, 0xfffffe2e
mov ecx, 4
shl ecx, 1
mov dword [ecx + 0x10073b68], eax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0xc
call dword [0x1005e264]
mov ecx, dword [ebp - 0x14]
mov dword [ecx*4 + 0x10073b68], eax
mov edx, 4
shl edx, 0
mov eax, 4
shl eax, 1
mov ecx, dword [edx + 0x10073b68]
mov dword [eax + 0x10073b68], ecx
mov edx, 4
shl edx, 1
mov eax, 4
shl eax, 0
mov ecx, dword [edx + 0x10073b68]
cmp ecx, dword [eax + 0x10073b68]
jae 0x1002442d
mov edx, 4
imul edx, edx, 3
mov eax, dword [edx + 0x10073b68]
push eax
push 0
call dword [0x1005e27c]
mov ecx, 4
shl ecx, 1
mov dword [ecx + 0x10073b68], eax
jmp 0x10024438
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
movzx eax, word [ecx + edx*2]
cmp eax, 0x30
jl 0x10024490
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [edx + eax*2]
cmp ecx, 0x39
jg 0x10024490
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10044d50
mov ecx, eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov edx, dword [ebp - 4]
movzx eax, word [eax + edx*2]
cdq
add ecx, eax
adc esi, edx
sub ecx, 0x30
sbb esi, 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
jmp 0x1002442f
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.10044d50
pop esi
mov esp, ebp
pop ebp
ret