Function at 0x43d6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add eax, ebp
sub eax, dword [esp + 0x40]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x18], eax
cmp eax, ebp
jbe 0x43d95f
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov eax, esi
xor eax, 1
mov ecx, esi
and ecx, 0xfffffffe
add ecx, ecx
sub ecx, eax
mov dword [esp + 0x14], ecx
dec esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x10], 0
jmp 0x43d771
mov ebx, dword [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
sub eax, ecx
cmp ebx, dword [esp + 0x10]
je 0x43d7c9
mov ebx, dword [esp + 4]
mov dword [ecx + eax], ebp
add ebx, 4
mov dword [esp + 4], ebx
mov dword [edi + 4], ebx
add ebp, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x18]
jae 0x43d95f
test edx, edx
je 0x43d77a
cmp byte [edx], 0x3f
je 0x43d786
movzx ecx, byte [ebp]
mov ebx, dword [esp + 0x3c]
cmp cl, byte [ebx]
jne 0x43d766
cmp dword [esp + 0x40], 2
jb 0x43d740
xor ecx, ecx
jmp 0x43d7bc
movzx edx, byte [ebp + ecx + 1]
mov ebx, dword [esp + 0x3c]
cmp dl, byte [ebx + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43d8cf
inc ecx
cmp esi, ecx
je 0x43d740
test edx, edx
je 0x43d7a0
cmp byte [edx + ecx + 1], 0x3f
jne 0x43d7a0
jmp 0x43d7b7
mov dword [esp + 0xc], eax
mov ecx, eax
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43d7e1
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [edx*4]
push eax
call fcn.0040c8e0
add esp, 4
mov ecx, eax
mov ebx, dword [esp]
test ebx, ebx
mov dword [esp + 8], eax
je 0x43d933
cmp ecx, ebx
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
jbe 0x43d8d6
cmp eax, ecx
jbe 0x43d8d6
test edx, edx
je 0x43d920
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
add eax, edx
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43d864
neg edi
xor edx, edx
nop
nop
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 0x43d850
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43d920
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 0x43d880
jmp 0x43d920
add ebp, ecx
jmp 0x43d766
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov dword [esp], ebx
mov edi, dword [esp + 8]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ebx, edx
and edx, 0xfffffffc
mov eax, dword [esp + 8]
lea edi, [eax + edx]
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 4], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x43d920
mov eax, dword [esp + 0xc]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
push dword [esp]
call fcn.0040c8f0
add esp, 4
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov eax, dword [esp + 0x10]
lea edx, [ecx + eax*4]
mov ebx, ecx
mov eax, dword [esp + 0xc]
add ebx, eax
mov dword [esp + 0x10], edx
mov dword [edi + 8], edx
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x44]
jmp 0x43d755
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret