Function at 0x43a280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add ecx, ebp
sub ecx, dword [esp + 0x40]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x18], ecx
cmp ecx, ebp
jbe 0x43a50f
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov esi, edi
xor esi, 1
mov ecx, edi
and ecx, 0xfffffffe
add ecx, ecx
sub ecx, esi
mov dword [esp + 0x14], ecx
lea esi, [edi - 1]
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x43a320
mov edi, dword [esp]
mov ecx, edi
mov ebx, dword [esp + 8]
sub ecx, ebx
cmp edi, dword [esp + 0xc]
je 0x43a369
mov eax, dword [esp + 0x30]
mov dword [ebx + ecx], ebp
add edi, 4
mov dword [esp], edi
mov dword [eax + 4], edi
add ebp, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x18]
jae 0x43a50f
test edx, edx
je 0x43a329
cmp byte [edx], 0x3f
je 0x43a335
movzx ecx, byte [ebp]
mov ebx, dword [esp + 0x3c]
cmp cl, byte [ebx]
jne 0x43a315
cmp dword [esp + 0x40], 2
jb 0x43a2f0
xor ecx, ecx
jmp 0x43a35c
movzx edx, byte [ebp + ecx + 1]
mov ebx, dword [esp + 0x3c]
cmp dl, byte [ebx + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43a47f
inc ecx
cmp esi, ecx
je 0x43a2f0
test edx, edx
je 0x43a340
cmp byte [edx + ecx + 1], 0x3f
jne 0x43a340
jmp 0x43a357
mov dword [esp + 4], ecx
mov eax, ecx
sar eax, 2
inc eax
mov ecx, edi
not ecx
and ecx, ebx
not ebx
and ebx, edi
sub ebx, ecx
sar ebx, 2
mov edi, ebx
shr edi, 1
add edi, ebx
cmp edi, eax
ja 0x43a38e
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.0040c860
add esp, 4
mov ebx, eax
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [esp + 0x30]
je 0x43a4ea
mov dword [esp + 0xc], edi
cmp ebx, edx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], ebx
jbe 0x43a486
cmp eax, ebx
jbe 0x43a486
test ecx, ecx
je 0x43a4d2
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
add eax, edx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43a414
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43a400
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov edi, dword [esp + 8]
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x43a4d2
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43a430
jmp 0x43a4d2
add ebp, ecx
jmp 0x43a315
shr ecx, 2
mov dword [esp], edx
mov edi, ebx
mov eax, dword [esp]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, dword [esp + 4]
mov ecx, eax
not ecx
or ecx, 0xfffffffc
add ecx, eax
lea edi, [ebx + ecx]
inc edi
lea ebx, [edx + ecx]
inc ebx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov edx, ebx
mov dword [esp], edi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test al, 1
je 0x43a4d2
mov ecx, dword [esp + 4]
and ecx, 2
movzx eax, byte [ebx + ecx]
mov edx, dword [esp]
mov byte [edx + ecx], al
push dword [esp + 8]
call fcn.0040c870
add esp, 4
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [eax], ebx
lea ecx, [ebx + edi*4]
mov edi, ebx
mov edx, dword [esp + 4]
add edi, edx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [esp + 8], ebx
mov ecx, edx
mov edx, dword [esp + 0x44]
jmp 0x43a305
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret