Function at 0x403747
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x453674]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x820], 0
and dword [ebp - 0x40c], 0
jmp 0x403777
mov eax, dword [ebp - 0x40c]
inc eax
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x100
jge 0x4037c1
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp + eax*4 - 0x408], ecx
push dword [ebp + 0xc]
call fcn.00421aa4
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x40c]
xor edx, edx
div ecx
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp + ecx*4 - 0x818], eax
jmp 0x40376a
and dword [ebp - 4], 0
jmp 0x4037ce
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x403843
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x820]
add ecx, dword [ebp + eax*4 - 0x408]
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x818]
and ecx, 0x800000ff
jns 0x403801
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x820], ecx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x408]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x820]
mov ecx, dword [ebp + ecx*4 - 0x408]
mov dword [ebp + eax*4 - 0x408], ecx
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp + eax*4 - 0x408], ecx
jmp 0x4037c7
push dword [ebp + 8]
call fcn.00421aa4
pop ecx
inc eax
push eax
call fcn.0042d45f
pop ecx
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x410], eax
and dword [ebp - 0x820], 0
mov eax, dword [ebp - 0x820]
mov dword [ebp - 4], eax
and dword [ebp - 0x40c], 0
jmp 0x40388c
mov eax, dword [ebp - 0x40c]
inc eax
mov dword [ebp - 0x40c], eax
push dword [ebp + 8]
call fcn.00421aa4
pop ecx
cmp dword [ebp - 0x40c], eax
jge 0x4039a3
mov eax, dword [ebp - 4]
inc eax
and eax, 0x800000ff
jns 0x4038b3
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x820]
add ecx, dword [ebp + eax*4 - 0x408]
and ecx, 0x800000ff
jns 0x4038d6
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x820], ecx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x408]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x820]
mov ecx, dword [ebp + ecx*4 - 0x408]
mov dword [ebp + eax*4 - 0x408], ecx
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x414]
mov dword [ebp + eax*4 - 0x408], ecx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x408]
mov ecx, dword [ebp - 0x820]
add eax, dword [ebp + ecx*4 - 0x408]
and eax, 0x800000ff
jns 0x40393b
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x40c]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x81c]
cmp dword [ebp + ecx*4 - 0x408], eax
jne 0x403977
mov eax, dword [ebp - 0x410]
add eax, dword [ebp - 0x40c]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40c]
mov cl, byte [ecx]
mov byte [eax], cl
jmp 0x40399e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x40c]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x81c]
xor eax, dword [ebp + ecx*4 - 0x408]
mov ecx, dword [ebp - 0x410]
add ecx, dword [ebp - 0x40c]
mov byte [ecx], al
jmp 0x40387f
mov eax, dword [ebp - 0x410]
add eax, dword [ebp - 0x40c]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042dfd1
leave
ret