Function at 0x422980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x4301f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x40c], 0
jmp 0x4229b8
mov eax, dword [ebp - 0x40c]
add eax, 1
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x100
jge 0x422a4a
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ebp - 0x40c]
mov dword [ebp + ecx*4 - 0x408], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], eax
mov ecx, dword [ebp - 0x828]
add ecx, 1
mov dword [ebp - 0x82c], ecx
mov edx, dword [ebp - 0x828]
mov al, byte [edx]
mov byte [ebp - 0x82d], al
add dword [ebp - 0x828], 1
cmp byte [ebp - 0x82d], 0
jne 0x4229f3
mov ecx, dword [ebp - 0x828]
sub ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x834], ecx
mov eax, dword [ebp - 0x40c]
xor edx, edx
div dword [ebp - 0x834]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 0x40c]
mov dword [ebp + edx*4 - 0x818], ecx
jmp 0x4229a9
mov dword [ebp - 4], 0
jmp 0x422a5c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x422ad1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x820]
add edx, dword [ebp + ecx*4 - 0x408]
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x818]
and edx, 0x800000ff
jns 0x422a8f
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x820], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x408]
mov dword [ebp - 0x40c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x820]
mov edx, dword [ebp + ecx*4 - 0x408]
mov dword [ebp + eax*4 - 0x408], edx
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp + eax*4 - 0x408], ecx
jmp 0x422a53
mov edx, dword [ebp + 8]
mov dword [ebp - 0x838], edx
mov eax, dword [ebp - 0x838]
add eax, 1
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x838]
mov dl, byte [ecx]
mov byte [ebp - 0x83d], dl
add dword [ebp - 0x838], 1
cmp byte [ebp - 0x83d], 0
jne 0x422ae9
mov eax, dword [ebp - 0x838]
sub eax, dword [ebp - 0x83c]
mov dword [ebp - 0x844], eax
mov ecx, dword [ebp - 0x844]
add ecx, 1
push ecx
call fcn.00404349
add esp, 4
mov dword [ebp - 0x824], eax
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x820], 0
mov eax, dword [ebp - 0x820]
mov dword [ebp - 4], eax
mov dword [ebp - 0x40c], 0
jmp 0x422b6b
mov ecx, dword [ebp - 0x40c]
add ecx, 1
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x848], edx
mov eax, dword [ebp - 0x848]
add eax, 1
mov dword [ebp - 0x84c], eax
mov ecx, dword [ebp - 0x848]
mov dl, byte [ecx]
mov byte [ebp - 0x84d], dl
add dword [ebp - 0x848], 1
cmp byte [ebp - 0x84d], 0
jne 0x422b83
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x84c]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 0x40c]
cmp ecx, dword [ebp - 0x854]
jge 0x422ccd
mov edx, dword [ebp - 4]
add edx, 1
and edx, 0x800000ff
jns 0x422bdb
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x820]
add ecx, dword [ebp + eax*4 - 0x408]
and ecx, 0x800000ff
jns 0x422bfe
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x820], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x820]
mov eax, dword [ebp + edx*4 - 0x408]
mov dword [ebp + ecx*4 - 0x408], eax
mov ecx, dword [ebp - 0x820]
mov edx, dword [ebp - 0x414]
mov dword [ebp + ecx*4 - 0x408], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x408]
mov edx, dword [ebp - 0x820]
add ecx, dword [ebp + edx*4 - 0x408]
and ecx, 0x800000ff
jns 0x422c65
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x81c], ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x40c]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x81c]
cmp dword [ebp + edx*4 - 0x408], ecx
jne 0x422ca1
mov eax, dword [ebp - 0x410]
add eax, dword [ebp - 0x40c]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40c]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x422cc8
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x40c]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x81c]
xor ecx, dword [ebp + edx*4 - 0x408]
mov eax, dword [ebp - 0x410]
add eax, dword [ebp - 0x40c]
mov byte [eax], cl
jmp 0x422b5c
mov ecx, dword [ebp - 0x410]
add ecx, dword [ebp - 0x40c]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x410]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404354
mov esp, ebp
pop ebp
ret