Function at 0x43b990
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 dword [esp + 0x18], 0x9c9d9e9f
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov word [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x43ba0b
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + ecx]
add edx, 0x4a708abc
add eax, 0x4a708abc
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add al, 0xdc
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x43b9d0
mov esi, dword [esp + 0x18]
mov eax, dword [0x4484a4]
test eax, eax
je 0x43ba5c
xor ecx, ecx
mov edx, dword [0x4484a8]
cmp dword [edx + ecx*8], 0x2286b4e
je 0x43ba30
inc ecx
cmp eax, ecx
jne 0x43ba20
jmp 0x43ba5c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43ba5c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4484ac]
push eax
call fcn.00437d00
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43bce0
push dword [esp + 0x10]
call fcn.00435f00
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x9c9d9e9f
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov word [esp + 0x24], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xd
ja 0x43baed
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
lea esi, [ecx + edx]
add esi, 0x4a708abc
add ecx, 0x4a708abc
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
add cl, 0xdc
mov edx, dword [esp]
mov byte [esp + edx + 0x18], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xe
jb 0x43bab0
mov esi, dword [esp + 0x18]
mov ecx, dword [0x4484a4]
test ecx, ecx
je 0x43bb4e
mov edi, esi
xor edx, edx
mov esi, dword [0x4484a8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2286b4e
je 0x43bb22
inc edx
cmp ecx, edx
jne 0x43bb10
mov esi, edi
jmp 0x43bb4e
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43bb4e
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4484ac]
push ecx
call fcn.00437d00
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43bcd7
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x43bc4c
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43bc45
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
jb 0x43bb7c
mov edi, eax
test edi, edi
je 0x43bc3d
mov eax, edi
mov edi, ebx
add edi, 0x14
mov dword [esp + 4], eax
and eax, 3
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
je 0x43bbd3
xor esi, esi
nop
nop
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
lea edi, [edi + ebx*2]
mov word [edx], cx
add edx, 2
inc esi
cmp eax, esi
jne 0x43bba0
mov eax, dword [esp + 4]
sub eax, esi
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 4], 4
jae 0x43bbe0
jmp 0x43bc3d
mov eax, dword [esp + 4]
cmp dword [esp + 4], 4
jb 0x43bc3d
nop
nop
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx], cx
lea ecx, [edi + ebx*2]
movzx esi, word [edi + ebx*2]
xor ebx, ebx
test si, si
setne bl
mov word [edx + 2], si
lea esi, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx + 4], cx
lea ecx, [esi + ebx*2]
movzx esi, word [esi + ebx*2]
xor ebx, ebx
test si, si
setne bl
lea edi, [ecx + ebx*2]
mov word [edx + 6], si
add edx, 8
add eax, 0xfffffffc
jne 0x43bbe0
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [edx], 0
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edi], eax
mov edi, dword [ebp + 0x20]
test ecx, ecx
je 0x43bc58
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43bcd7
mov ecx, ebx
mov dword [esp + 0xc], esi
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x43bccc
mov ebx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43bc74
mov ebx, eax
mov dword [esp + 8], ecx
mov eax, dword [ecx + 8]
add eax, ecx
mov ecx, ebx
shr ecx, 2
mov esi, ebx
and esi, 0xfffffffc
mov edi, edx
add edx, esi
add esi, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
and ecx, 3
mov dword [esp + 0x28], ecx
shr ecx, 1
mov edi, esi
mov dword [esp + 4], esi
mov edi, edx
mov eax, dword [esp + 4]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp + 8]
test bl, 1
mov edi, dword [ebp + 0x20]
je 0x43bccc
mov eax, dword [esp + 0x28]
xor eax, 1
or ebx, 2
and ebx, eax
movzx eax, byte [esi + ebx]
mov byte [edx + ebx], al
mov ebx, ecx
mov eax, dword [ecx + 0xc]
mov dword [edi], eax
mov esi, dword [esp + 0xc]
push ebx
call fcn.00435fb0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret