Function at 0x403f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x30], 0
jmp 0x403f48
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 8
jge 0x403f75
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x403f69
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x30]
mov dl, byte [ebp - 0x18]
mov byte [ebp + ecx - 0x3c], dl
jmp 0x403f3f
lea eax, [ebp - 0x3c]
push eax
call fcn.0040434e
add esp, 4
test eax, eax
je 0x403f8c
xor eax, eax
jmp 0x40434a
mov dword [ebp - 0x28], 0x4097b8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
mov byte [ebp - 0x40], dl
cmp byte [ebp - 0x40], 0x23
je 0x403fa6
jmp 0x4040c6
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x404035
push 1
push 0
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004044ec
add esp, 0x10
test eax, eax
je 0x403fd3
xor eax, eax
jmp 0x40434a
mov dword [ebp - 0x30], 0
jmp 0x403fe5
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 8
jge 0x404019
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
shl eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x404006
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [ebp + edx - 0x3c]
xor al, byte [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov byte [ebp + ecx - 0x3c], al
jmp 0x403fdc
lea edx, [ebp - 0x3c]
push edx
call fcn.0040434e
add esp, 4
test eax, eax
je 0x404030
xor eax, eax
jmp 0x40434a
jmp 0x403fa6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 4
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jl 0x4040ab
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x30]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x404088
mov dword [ebp - 0x18], 0x2e
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x18]
mov byte [edx], al
mov ecx, dword [ebp - 0x2c]
shl ecx, 6
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 0x40b490]
or ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x40405f
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0x28]
add edx, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], 4
jmp 0x4040d4
mov dword [ebp - 0x2c], 0x19
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
jl 0x40412d
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x30]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40410a
mov dword [ebp - 0x18], 0x2e
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x30]
mov dl, byte [ebp - 0x18]
mov byte [ecx], dl
mov eax, dword [ebp - 0x20]
shl eax, 6
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx + 0x40b490]
or eax, edx
mov dword [ebp - 0x20], eax
jmp 0x4040e1
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 8]
push eax
push 0x4097b0
call fcn.004044ec
add esp, 0x10
test eax, eax
je 0x40415a
xor eax, eax
jmp 0x40434a
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 6]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
and eax, 0x3f
mov ecx, dword [ebp - 0x28]
mov dl, byte [eax + 0x4079e0]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 0x30]
sar eax, 6
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
and ecx, 0x3f
mov edx, dword [ebp - 0x28]
mov al, byte [ecx + 0x4079e0]
mov byte [edx + 2], al
mov ecx, dword [ebp - 0x30]
sar ecx, 6
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
and edx, 0x3f
mov eax, dword [ebp - 0x28]
mov cl, byte [edx + 0x4079e0]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x30]
sar edx, 6
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dl, byte [ecx + 0x4079e0]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 5]
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 3]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
and eax, 0x3f
mov ecx, dword [ebp - 0x28]
mov dl, byte [eax + 0x4079e0]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 0x30]
sar eax, 6
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
and ecx, 0x3f
mov edx, dword [ebp - 0x28]
mov al, byte [ecx + 0x4079e0]
mov byte [edx + 2], al
mov ecx, dword [ebp - 0x30]
sar ecx, 6
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
and edx, 0x3f
mov eax, dword [ebp - 0x28]
mov cl, byte [edx + 0x4079e0]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x30]
sar edx, 6
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dl, byte [ecx + 0x4079e0]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 2]
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 1]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
and ecx, 0x3f
mov edx, dword [ebp - 0x28]
mov al, byte [ecx + 0x4079e0]
mov byte [edx + 2], al
mov ecx, dword [ebp - 0x30]
sar ecx, 6
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
and edx, 0x3f
mov eax, dword [ebp - 0x28]
mov cl, byte [edx + 0x4079e0]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x30]
sar edx, 6
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dl, byte [ecx + 0x4079e0]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
mov byte [eax + 3], 0
mov eax, 0x4097b8
mov esp, ebp
pop ebp
ret