Function at 0x43f9b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
add esi, ebp
sub esi, edx
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp esi, ebp
jbe 0x43fcdd
mov ebx, dword [esp + 0x4c]
lea eax, [edx - 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jmp 0x43fa4e
push edx
push eax
push esi
call fcn.0040c980
add esp, 0xc
mov ecx, dword [esp + 4]
mov dword [ecx + ebx], ebp
mov esi, dword [esp + 8]
add esi, 4
mov eax, dword [esp + 0x38]
mov dword [eax + 4], esi
mov edx, dword [esp + 0x48]
add ebp, edx
dec ebp
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
inc ebp
mov dword [esp], ecx
cmp ebp, esi
jae 0x43fcdd
test ebx, ebx
je 0x43fa57
cmp byte [ebx], 0x3f
je 0x43fa67
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0x43fbd0
cmp edx, 2
jb 0x43faa0
xor eax, eax
jmp 0x43fa8a
movzx ecx, byte [ebp + eax + 1]
mov edi, dword [esp + 0x44]
cmp cl, byte [edi + eax + 1]
jne 0x43fbd8
inc eax
cmp dword [esp + 0x20], eax
je 0x43faa0
test ebx, ebx
je 0x43fa70
cmp byte [ebx + eax + 1], 0x3f
jne 0x43fa70
jmp 0x43fa83
mov edx, dword [esp]
mov eax, edx
not eax
mov edi, dword [esp + 0xc]
and eax, edi
lea esi, [eax + eax]
mov ecx, edx
xor ecx, edi
sub esi, ecx
mov ecx, edx
mov dword [esp + 8], edi
cmp edi, dword [esp + 0x10]
jne 0x43fc66
mov dword [esp + 0x18], esi
mov ecx, esi
sar ecx, 2
inc ecx
mov esi, edx
mov edx, edi
not edx
and edx, esi
sub eax, edx
sar eax, 2
mov ebx, eax
shr ebx, 1
add ebx, eax
cmp ebx, ecx
ja 0x43fae9
mov ebx, ecx
mov dword [esp + 0x14], ebp
lea eax, [ebx*4]
push eax
call fcn.0040c900
add esp, 4
mov ecx, eax
mov edx, dword [esp]
test edx, edx
je 0x43fc38
mov dword [esp + 8], ebx
mov eax, edx
mov edx, edi
sub edx, eax
cmp ecx, eax
mov dword [esp + 4], ecx
jbe 0x43fbe2
cmp edi, ecx
jbe 0x43fbe2
test edx, edx
je 0x43fc1e
mov eax, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43fb62
neg edi
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
dec esi
cmp edi, esi
jne 0x43fb50
add eax, esi
add ecx, esi
add edx, esi
mov esi, dword [esp]
sub esi, dword [esp + 0xc]
cmp esi, 0xfffffff8
ja 0x43fc1e
neg edx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
movzx ebx, byte [eax + esi - 1]
mov byte [ecx + esi - 1], bl
movzx ebx, byte [eax + esi - 2]
mov byte [ecx + esi - 2], bl
movzx ebx, byte [eax + esi - 3]
mov byte [ecx + esi - 3], bl
movzx ebx, byte [eax + esi - 4]
mov byte [ecx + esi - 4], bl
movzx ebx, byte [eax + esi - 5]
mov byte [ecx + esi - 5], bl
movzx ebx, byte [eax + esi - 6]
mov byte [ecx + esi - 6], bl
movzx ebx, byte [eax + esi - 7]
mov byte [ecx + esi - 7], bl
add esi, 0xfffffff8
cmp edx, esi
jne 0x43fb80
jmp 0x43fc1e
mov ecx, dword [esp]
jmp 0x43fa42
add ebp, eax
mov ecx, dword [esp]
jmp 0x43fa42
mov ebx, ecx
mov ecx, edx
shr ecx, 2
mov eax, dword [esp]
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov esi, edx
and esi, 0xfffffffc
lea eax, [ebx + esi]
add esi, dword [esp]
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebx, esi
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x43fc1e
and edx, 2
movzx ecx, byte [esi + edx]
mov byte [eax + edx], cl
mov esi, dword [esp]
push esi
call fcn.0040c910
mov edx, esi
add esp, 4
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov esi, dword [esp + 0x18]
lea eax, [ecx + esi]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov ebp, dword [esp + 0x38]
mov dword [ebp + 4], eax
lea ebx, [ecx + ebx*4]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x38]
mov dword [eax + 8], ebx
mov ebp, dword [esp + 0x14]
mov ebx, edi
sub ebx, edx
cmp ebx, esi
jae 0x43fa1e
mov eax, edi
add edx, esi
sub edx, edi
lea eax, [ecx + ebx]
mov dword [esp + 4], ecx
lea esi, [ecx + ebx]
add esi, 4
cmp edx, 4
jg 0x43fa0f
mov ecx, edx
shr ecx, 2
mov dword [esp], edx
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, dword [esp]
mov edx, ecx
and edx, 0xfffffffc
add esi, edx
add edx, eax
shr ecx, 1
and ecx, 1
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp]
mov eax, ecx
test cl, 1
mov ecx, dword [esp + 4]
je 0x43fa1e
mov edi, eax
and edi, 2
movzx eax, byte [edx + edi]
mov byte [esi + edi], al
jmp 0x43fa1e
mov eax, dword [esp + 0x38]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret