Function at 0x403930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x40c], 0
jmp 0x40395e
mov eax, dword [ebp - 0x40c]
add eax, 1
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x100
jge 0x4039ab
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ebp - 0x40c]
mov dword [ebp + ecx*4 - 0x408], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a270
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x40c]
xor edx, edx
div ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 0x40c]
mov dword [ebp + edx*4 - 0x818], ecx
jmp 0x40394f
mov dword [ebp - 4], 0
jmp 0x4039bd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x403a32
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 0x4039f0
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 0x4039b4
mov edx, dword [ebp + 8]
push edx
call fcn.0040a270
add esp, 4
add eax, 1
push eax
call fcn.0040a0c0
add esp, 4
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x820], 0
mov ecx, dword [ebp - 0x820]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x40c], 0
jmp 0x403a8a
mov edx, dword [ebp - 0x40c]
add edx, 1
mov dword [ebp - 0x40c], edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040a270
add esp, 4
cmp dword [ebp - 0x40c], eax
jge 0x403ba6
mov ecx, dword [ebp - 4]
add ecx, 1
and ecx, 0x800000ff
jns 0x403ab8
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x820]
add eax, dword [ebp + edx*4 - 0x408]
and eax, 0x800000ff
jns 0x403ad9
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x820], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x408]
mov dword [ebp - 0x414], 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 - 0x414]
mov dword [ebp + eax*4 - 0x408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + edx*4 - 0x408]
mov ecx, dword [ebp - 0x820]
add eax, dword [ebp + ecx*4 - 0x408]
and eax, 0x800000ff
jns 0x403b3e
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x81c], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x40c]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x81c]
cmp dword [ebp + ecx*4 - 0x408], eax
jne 0x403b7a
mov edx, dword [ebp - 0x410]
add edx, dword [ebp - 0x40c]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x40c]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x403ba1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x40c]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x81c]
xor eax, dword [ebp + ecx*4 - 0x408]
mov edx, dword [ebp - 0x410]
add edx, dword [ebp - 0x40c]
mov byte [edx], al
jmp 0x403a7b
mov eax, dword [ebp - 0x410]
add eax, dword [ebp - 0x40c]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x410]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret