Function at 0xb403a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov cx, 0xfffc
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
add ecx, 4
cmp word [eax + edx], 0
lea edx, [edx + 2]
jne 0xb403c0
add edx, 0xfffffffe
mov word [esp + 0x20], dx
and ecx, 4
xor edx, 2
add edx, ecx
mov word [esp + 0x22], dx
mov dword [esp + 0x24], eax
mov dword [esp], 0x12111017
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, 0x9bb1edd3
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x644e122d]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
add cl, 0x3b
mov byte [esp + eax + 0x644e122d], cl
movzx ecx, byte [esp + eax + 0x644e122e]
lea edx, [eax + 1]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
add cl, 0x3b
mov byte [esp + eax + 0x644e122e], cl
add eax, 2
cmp eax, 0x9bb1ede3
jne 0xb40410
mov ebx, dword [esp]
mov eax, dword [0xb4b5b4]
test eax, eax
je 0xb404be
xor ecx, ecx
mov edx, dword [0xb4b5b8]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xd07a397f
je 0xb40490
inc ecx
cmp eax, ecx
jne 0xb40480
jmp 0xb404be
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0xb404be
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0xb4b5bc]
push eax
call fcn.00b3c4d0
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xcf72bcd2
mov eax, dword [esp]
add eax, 0x51
movzx ecx, al
mov dword [esp], 0xcf72bcaf
mov eax, dword [esp]
shl eax, 8
add eax, 0x5100
movzx eax, ax
or eax, ecx
mov dword [esp], 0xcf72bcaf
mov ecx, dword [esp]
shl ecx, 0x10
add ecx, 0x510000
mov dword [esp], 0xcf72bc6f
mov edx, dword [esp]
shl edx, 0x18
and ecx, 0xff0000
or ecx, eax
lea eax, [edx + ecx]
add eax, 0x51000000
mov dword [esp], 0xcf72bc1d
mov ecx, dword [esp]
mov dword [esp], 0xcf72bc1e
mov ecx, dword [esp]
mov dword [esp], 0xcf72bc1f
mov ecx, dword [esp]
mov dword [esp], 0xcf72bc20
mov ecx, dword [esp]
mov dword [esp], 0xcf72bc21
mov ecx, dword [esp]
cmp ebx, eax
jne 0xb40699
push dword [esp + 0x1c]
call fcn.00b3a780
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], 0x12111017
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov ecx, 0x9bb1edd3
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x644e122d]
mov edi, ecx
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
add dl, 0x3b
mov byte [esp + ecx + 0x644e122d], dl
movzx edx, byte [esp + ecx + 0x644e122e]
lea edi, [ecx + 1]
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
inc edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
add dl, 0x3b
mov byte [esp + ecx + 0x644e122e], dl
add ecx, 2
cmp ecx, 0x9bb1ede3
jne 0xb40590
mov ebx, dword [esp]
mov ecx, dword [0xb4b5b4]
test ecx, ecx
je 0xb40612
xor edx, edx
mov edi, dword [0xb4b5b8]
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xd07a397f
je 0xb406a3
inc edx
cmp ecx, edx
jne 0xb40600
mov edi, dword [esp + 0x14]
test ebx, ebx
mov edx, dword [ebp + 0x18]
js 0xb40690
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xb40629
mov eax, dword [edi + 4]
mov dword [ecx], eax
test edx, edx
je 0xb40690
mov eax, esi
test esi, esi
je 0xb4068b
mov eax, dword [edx]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0xb4063e
mov eax, ecx
lea edx, [edi + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add esi, ecx
mov edx, dword [esp + 0x14]
add edx, ecx
add edx, 0xc
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 0x28], edx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [esp + 0x14]
test al, 1
mov edx, dword [ebp + 0x18]
je 0xb4068b
and eax, 2
mov ecx, dword [esp + 0x28]
movzx ecx, byte [ecx + eax]
mov byte [esi + eax], cl
mov eax, dword [edi + 8]
mov dword [edx], eax
push edi
call fcn.00b3a870
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
mov edi, dword [esp + 0x14]
je 0xb40616
lea edx, [esp + 0x1c]
lea edi, [esp + 0x20]
push edx
push eax
push dword [esp + 0x1c]
push 2
push edi
mov edi, dword [esp + 0x28]
push dword [ebp + 8]
push 6
push dword [0xb4b5bc]
push ecx
call fcn.00b3c4d0
add esp, 0x24
mov ebx, eax
jmp 0xb40616