Function at 0x43be74
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp byte [eax + 1], 0x1e
mov dword [ebp - 0x20], eax
ja 0x43bf03
mov eax, dword [edi]
mov edx, dword [eax + 8]
test edx, edx
je 0x43bf03
cmp word [edx], 1
jne 0x43bea8
mov al, byte [edx + 3]
cmp al, 0x1f
ja 0x43bf03
inc eax
mov byte [edx + 3], al
jmp 0x43bf03
mov ebx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov cl, byte [ebx]
mov byte [ebp - 0x1c], cl
cmp byte [eax], cl
je 0x43bef0
mov ecx, eax
add eax, 6
mov bl, byte [ebp - 0x1c]
cmp byte [eax], bl
jne 0x43beb7
mov bl, byte [ecx + 1]
cmp byte [eax + 1], bl
jb 0x43bef0
mov bl, byte [eax + 5]
mov esi, dword [eax + 1]
mov byte [ebp - 0x24], bl
mov ebx, dword [eax - 6]
mov dword [eax], ebx
mov bx, word [eax - 2]
mov word [eax + 4], bx
mov al, byte [ebp - 0x1c]
mov dword [ecx + 1], esi
mov byte [ecx], al
mov al, byte [ebp - 0x24]
mov byte [ecx + 5], al
xchg ecx, eax
mov cl, byte [eax + 1]
cmp cl, 0x72
ja 0x43bf03
add ecx, 2
mov byte [eax + 1], cl
add word [edx + 2], 2
cmp dword [edi + 0xc], 0
jne 0x43bf31
mov eax, edi
call fcn.0043b83f
mov dword [edi], eax
mov dword [edi + 4], eax
test eax, eax
jne 0x43bf26
add esp, 0x3c
xchg edi, eax
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0043bbc6
mov edx, dword [edi + 8]
mov dword [edx + 2], eax
jmp 0x43c155
mov eax, dword [edi + 0x40]
lea esi, [eax + 1]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
mov dl, byte [esi]
mov byte [eax], dl
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x40], eax
cmp eax, dword [edi + 0x44]
jae 0x43bf19
mov edx, dword [edi + 8]
mov eax, dword [edx + 2]
test eax, eax
je 0x43bf7d
cmp dword [ebp - 0x1c], eax
jb 0x43bf66
mov eax, edi
call fcn.0043b83f
test eax, eax
je 0x43bf19
dec dword [edi + 0xc]
jne 0x43bf85
xor edx, edx
mov esi, dword [edi]
cmp dword [edi + 4], esi
mov dword [ebp - 0x1c], eax
setne dl
sub dword [edi + 0x40], edx
jmp 0x43bf85
mov eax, dword [ebp - 0x1c]
mov dword [edx + 2], eax
mov eax, dword [edi]
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x43c155
movzx eax, word [esi]
mov edx, dword [edi + 8]
mov dword [ebp - 0x2c], eax
xchg esi, eax
mov esi, dword [ebp - 0x2c]
movzx eax, word [eax + 2]
movzx edx, byte [edx + 1]
inc eax
sub eax, esi
sub eax, edx
mov dword [ebp - 0x40], eax
xor eax, eax
cmp esi, 3
seta al
mov dword [ebp - 0x3c], eax
movzx esi, word [ebx]
mov eax, esi
mov word [ebp - 0x24], si
dec ax
je 0x43c077
test byte [ebp - 0x24], 1
jne 0x43c046
mov eax, esi
shr eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + eax + 0x8f]
cmp al, byte [edi + ecx + 0x90]
je 0x43c046
mov dword [ebp - 0x38], eax
lea edx, [eax + 1]
mov eax, edi
call fcn.0043bced
mov dword [ebp - 0x30], eax
test eax, eax
je 0x43bf19
mov ecx, dword [ebx + 4]
xchg edx, eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx]
add edx, 0xc
add ecx, 0xc
mov dword [edx - 0xc], eax
mov eax, dword [ecx - 8]
mov dword [edx - 8], eax
mov eax, dword [ecx - 4]
mov dword [edx - 4], eax
dec dword [ebp - 0x20]
jne 0x43c013
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
add edx, 0x44
mov ecx, dword [edi + edx*4]
mov dword [eax], ecx
mov dword [edi + edx*4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 4], eax
imul eax, esi, 4
cmp dword [ebp - 0x2c], eax
movzx edx, word [ebx + 2]
setae cl
imul eax, esi, 8
cmp eax, edx
setae al
movzx eax, al
and eax, ecx
lea ecx, [esi + esi]
add eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
cmp ecx, eax
mov eax, dword [ebp - 0x20]
adc edx, eax
mov dword [ebp - 0x20], edx
jmp 0x43c0bd
xor edx, edx
mov eax, edi
call fcn.0043bced
test eax, eax
je 0x43bf19
mov cl, byte [ebx + 2]
movzx edx, byte [ebx + 3]
mov byte [eax], cl
mov ecx, dword [ebx + 4]
cmp edx, 0x1e
mov word [eax + 2], cx
mov cx, word [ebx + 6]
mov word [eax + 4], cx
lea ecx, [edx + edx]
mov dword [ebx + 4], eax
push 0x78
pop edx
cmovb edx, ecx
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x3c]
add eax, dword [edi + 0x10]
add eax, edx
mov dword [ebp - 0x20], eax
imul eax, esi, 6
add eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x40]
xchg esi, eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
movzx edx, byte [edx + 1]
add eax, 6
imul eax, edx
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0x30]
add eax, eax
mov cl, byte [ecx]
mov byte [esi], cl
mov ecx, dword [ebp - 0x24]
inc ecx
mov word [ebx], cx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 2], ecx
imul ecx, edx, 6
cmp eax, ecx
jae 0x43c119
push 1
pop ecx
cmp edx, eax
jae 0x43c109
push 2
pop ecx
shl edx, 2
cmp eax, edx
mov eax, dword [ebp - 0x20]
sbb ecx, 0xffffffff
add eax, 3
jmp 0x43c142
lea ecx, [edx + edx*8]
cmp eax, ecx
sbb ecx, ecx
mov dword [ebp - 0x24], ecx
imul ecx, edx, 0xc
cmp eax, ecx
setae cl
imul edx, edx, 0xf
movzx ecx, cl
cmp eax, edx
mov eax, dword [ebp - 0x24]
sbb ecx, 0xffffffff
lea ecx, [eax + ecx + 5]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov word [ebx + 2], ax
mov byte [esi + 1], cl
mov ebx, dword [ebx + 8]
cmp dword [ebp - 0x28], ebx
jne 0x43bfc2
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret