Function at 0x421ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x65d9c0]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [0x65d9bc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x18
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x30]
add eax, 0x18
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
xor edx, edx
mov word [ebp - 4], dx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
je 0x421c4d
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
cmp edx, ecx
jne 0x421c4d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2]
and ecx, 0xf8ff
movzx edx, cx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
movzx eax, word [ecx + eax*2]
and eax, 0xf8ff
movzx ecx, ax
cmp edx, ecx
jne 0x421c4d
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x421bfb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x421c67
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
and edx, 0xfffffffe
mov eax, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x421ef2
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx - 1]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax - 1]
cmp edx, ecx
jne 0x421d05
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2 - 2]
and ecx, 0xf8ff
movzx edx, cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
movzx eax, word [ecx + eax*2 - 2]
and eax, 0xf8ff
movzx ecx, ax
cmp edx, ecx
jne 0x421d05
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
cmp ecx, 0x20
jne 0x421cf9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2]
movzx edx, word [ebp - 4]
cmp ecx, edx
je 0x421ce3
mov dword [ebp - 0x34], 1
jmp 0x421cea
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
and eax, 0xf8ff
movzx ecx, ax
test ecx, ecx
je 0x421d00
mov dword [ebp - 0x38], 1
jmp 0x421c6e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x38], 0
jne 0x421d69
cmp dword [0x596028], 1
jne 0x421d69
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x421d58
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ecx - 1]
cmp edx, 0x20
jne 0x421d58
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2 - 2]
and edx, 0xf8ff
movzx eax, dx
movzx ecx, word [ebp - 4]
cmp eax, ecx
jne 0x421d58
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
jmp 0x421d1a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
cmp eax, 3
jg 0x421d69
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041dca0
add esp, 8
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jge 0x421e54
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
and edx, 0xf8ff
mov word [ebp - 8], dx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jge 0x421dd0
movzx ecx, word [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx edx, word [eax + edx*2]
and edx, 0xf8ff
movzx eax, dx
cmp ecx, eax
jne 0x421dd0
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x421da2
movzx edx, word [ebp - 8]
mov eax, 8
imul ecx, eax, 0x34
movzx eax, word [ecx + 0x65e180]
and eax, 0xe0
xor edx, eax
push edx
call dword [0x598dc4]
add esp, 4
jmp 0x421dff
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x421e4f
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
push ecx
call dword [0x598da8]
add esp, 4
mov edx, dword [0x596040]
add edx, 1
mov dword [0x596040], edx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov dx, word [esi + edx*2]
mov word [ecx + eax*2], dx
jmp 0x421df6
jmp 0x421d7c
push 0
call dword [0x598dc4]
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x421ee5
call dword [0x598db8]
jmp 0x421e78
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jge 0x421ee5
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
cmp ecx, eax
jne 0x421ebf
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + ecx*2]
and eax, 0xf8ff
movzx ecx, ax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
movzx edx, word [eax + edx*2]
and edx, 0xf8ff
movzx eax, dx
cmp ecx, eax
je 0x421ed3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov ax, word [esi + eax*2]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x421e6f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
and edx, 0xffffffee
mov eax, dword [ebp - 0x24]
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret