Function at 0x43d060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add edx, ebp
sub edx, dword [esp + 0x4c]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp edx, ebp
jbe 0x43d39b
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, ecx
not eax
and eax, 1
mov edi, ecx
and edi, 0xfffffffe
sub edi, eax
mov dword [esp + 0x1c], edi
lea eax, [ecx - 1]
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0
xor ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], edx
jmp 0x43d108
push ebx
push edx
push esi
call fcn.00408e10
add esp, 0xc
mov eax, dword [esp]
mov dword [edi + eax], ebp
mov ecx, dword [esp + 0x10]
add ecx, 4
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], ecx
add ebp, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
inc ebp
mov ebx, edi
cmp ebp, edx
jae 0x43d39b
test esi, esi
je 0x43d111
cmp byte [esi], 0x3f
je 0x43d121
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x48]
cmp al, byte [ecx]
jne 0x43d1a0
cmp dword [esp + 0x4c], 2
jb 0x43d160
xor eax, eax
jmp 0x43d14a
movzx ecx, byte [ebp + eax + 1]
mov edi, dword [esp + 0x48]
cmp cl, byte [edi + eax + 1]
jne 0x43d23a
inc eax
cmp dword [esp + 0x24], eax
je 0x43d160
test esi, esi
je 0x43d130
cmp byte [esi + eax + 1], 0x3f
jne 0x43d130
jmp 0x43d143
mov ecx, dword [esp + 4]
mov edx, ecx
not edx
mov eax, ebx
and eax, edx
mov esi, ebx
not esi
and esi, ecx
sub esi, eax
cmp ecx, dword [esp + 0xc]
je 0x43d1a7
mov eax, ecx
sub eax, ebx
mov edi, ebx
mov dword [esp + 0x10], ecx
cmp eax, esi
jae 0x43d0dc
jmp 0x43d331
mov edi, ebx
jmp 0x43d0fd
mov dword [esp + 0x18], edx
mov eax, esi
sar eax, 2
inc eax
sub ecx, ebx
mov dword [esp], ecx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43d1c5
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.00408d90
add esp, 4
mov edi, eax
test ebx, ebx
je 0x43d300
mov dword [esp + 0x10], esi
cmp edi, ebx
mov eax, dword [esp + 4]
mov edx, dword [esp]
mov dword [esp + 8], edi
jbe 0x43d243
cmp eax, edi
jbe 0x43d243
test edx, edx
je 0x43d2ef
mov eax, dword [esp + 8]
mov edx, dword [esp]
add eax, edx
lea ecx, [ebx + edx]
mov edi, edx
and edi, 7
je 0x43d289
neg edi
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ecx + esi - 1]
mov byte [eax + esi - 1], dl
dec esi
cmp edi, esi
jne 0x43d220
add eax, esi
mov edx, dword [esp]
lea edi, [edx + esi]
add ecx, esi
jmp 0x43d28b
add ebp, eax
mov edi, ebx
jmp 0x43d0fd
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov esi, edi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and edx, 0xfffffffc
lea edi, [esi + edx]
add edx, ebx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov dword [esp + 0x14], edi
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test al, 1
je 0x43d2ef
mov ecx, dword [esp]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 0x14]
mov byte [eax + ecx], dl
jmp 0x43d2ef
mov edi, edx
mov esi, ebx
sub esi, dword [esp + 4]
cmp esi, 0xfffffff8
ja 0x43d2ef
neg edi
xor esi, esi
nop
nop
nop
nop
nop
nop
movzx edx, byte [ecx + esi - 1]
mov byte [eax + esi - 1], dl
movzx edx, byte [ecx + esi - 2]
mov byte [eax + esi - 2], dl
movzx edx, byte [ecx + esi - 3]
mov byte [eax + esi - 3], dl
movzx edx, byte [ecx + esi - 4]
mov byte [eax + esi - 4], dl
movzx edx, byte [ecx + esi - 5]
mov byte [eax + esi - 5], dl
movzx edx, byte [ecx + esi - 6]
mov byte [eax + esi - 6], dl
movzx edx, byte [ecx + esi - 7]
mov byte [eax + esi - 7], dl
movzx edx, byte [ecx + esi - 8]
mov byte [eax + esi - 8], dl
add esi, 0xfffffff8
cmp edi, esi
jne 0x43d2a0
push ebx
call fcn.00408da0
add esp, 4
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
lea ecx, [edi + esi]
mov dword [esp + 0x10], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
lea ecx, [edi + ecx*4]
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 4]
mov eax, dword [esp]
mov edx, dword [esp + 0x18]
cmp eax, esi
jae 0x43d0dc
add ebx, esi
xor ecx, ebx
and ebx, edx
add ebx, ebx
sub ebx, ecx
lea edx, [edi + eax]
mov dword [esp], eax
lea esi, [edi + eax]
add esi, 4
cmp ebx, 4
jg 0x43d0ce
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov dword [esp + 8], edi
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
add esi, edx
add edx, eax
mov ecx, ebx
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 edi, dword [esp + 8]
test bl, 1
mov eax, dword [esp]
je 0x43d0dc
and ebx, 2
movzx ecx, byte [edx + ebx]
mov byte [esi + ebx], cl
jmp 0x43d0dc
mov eax, dword [esp + 0x3c]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret