Function at 0x43ba13
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0x28]
xor edx, edx
div dword [ebp + 0x40]
mov ecx, dword [ebp + 0x38]
imul ecx, dword [ebp + 0x40]
cmp dword [ebp + 0x3c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x38], eax
mov edx, ecx
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ecx + 1]
mov dword [ebp - 0x3c], ecx
cmovne edx, eax
mov dword [ebp - 0x44], eax
xor esi, esi
mov dword [ebp - 0x48], edx
cmp edi, dword [ebp + 0x10]
jae 0x43bcdc
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
add eax, edi
mov dword [ebp - 0x40], eax
mov eax, ebx
imul eax, edi
mov dword [ebp - 0x18], eax
lea eax, [edx + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, dword [ebp - 0x40]
jae 0x43bcdc
xor edx, edx
mov eax, edi
cmp dword [ebp + 0x3c], edx
je 0x43bab2
mov ecx, dword [ebp - 0x44]
div ecx
test edx, edx
jne 0x43ba9f
mov eax, ebx
shl eax, 2
push eax
push esi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x43bcc4
xor edx, edx
lea eax, [edi - 1]
div ecx
mov ecx, edi
sub ecx, eax
xor edx, edx
lea eax, [ecx - 1]
mov ecx, dword [ebp - 0x3c]
div dword [ebp + 0x38]
xor edx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], eax
div dword [ebp + 0x40]
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp dword [ebp + 0x3c], eax
setne al
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
jbe 0x43bcc4
add ecx, eax
mov ebx, esi
mov dword [ebp - 0x50], ecx
mov ecx, esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0x40], 0
mov edx, esi
mov dword [ebp - 0x28], edx
jbe 0x43bca8
mov ecx, dword [ebp + 0x14]
mov ebx, esi
add ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
cmp ecx, dword [ebp - 0x24]
jae 0x43bc9f
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], esi
add eax, dword [ebp - 0x14]
add eax, edx
cmp dword [ebp + 0x38], 0
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + eax*4]
mov dword [ebp + 0x18], edx
jbe 0x43bc83
mov dword [ebp - 0x10], ebx
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x14]
jb 0x43bc70
cmp eax, dword [ebp - 0x24]
jae 0x43bc70
mov ecx, dword [ebp + 0x40]
mov ebx, edx
mov eax, dword [ebp - 0x10]
xor edx, edx
shr ecx, 1
div ecx
cmp dword [ebp + 0x3c], 0
mov dword [ebp - 0xc], eax
je 0x43bb6a
lea eax, [edi - 1]
xor edx, edx
div dword [ebp - 0x48]
jmp 0x43bb6c
mov edx, edi
mov eax, edx
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp + 0x18]
xor ecx, dword [ebp - 0xc]
and ecx, 1
test eax, 0xff000000
jne 0x43bb96
or ebx, 0xffffffff
mov eax, 0xffc0c0c0
test ecx, ecx
cmovne ebx, eax
jmp 0x43bc39
cmp dword [ebp + 0x48], 0
je 0x43bc39
shr eax, 0x18
mov edx, 0xff
mov dword [ebp - 8], eax
cmp eax, edx
jae 0x43bc39
or ebx, 0xffffffff
test ecx, ecx
mov ecx, 0xffc0c0c0
cmovne ebx, ecx
sub edx, eax
mov eax, dword [ebp + 0x18]
mov ecx, ebx
shr ecx, 0x10
shr eax, 0x10
and ecx, 0xff
and eax, 0xff
imul ecx, edx
imul eax, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebp + 0x18]
shl ecx, 8
and ecx, 0xffff00ff
shr eax, 8
mov dword [ebp - 0xc], ecx
and eax, 0xff
imul eax, dword [ebp - 8]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0xc]
or eax, ecx
movzx ecx, bl
and eax, 0xffffff00
imul ecx, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp - 0xc]
movzx eax, al
imul eax, dword [ebp - 8]
add ecx, eax
shr ecx, 8
or ebx, ecx
or ebx, 0xff000000
mov eax, dword [ebp + 0x30]
cmp dword [ebp - 4], eax
jne 0x43bc5a
mov eax, dword [ebp + 0x34]
cmp dword [ebp - 0x4c], eax
jne 0x43bc5a
mov eax, ebx
and ebx, 0xff808080
or eax, 0x1010100
shr eax, 1
or ebx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov edx, dword [ebp + 8]
add eax, esi
mov dword [edx + eax*4], ebx
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x10]
inc esi
inc ebx
mov dword [ebp - 0x10], ebx
cmp esi, dword [ebp + 0x38]
jb 0x43bb34
mov ebx, dword [ebp - 0x2c]
xor esi, esi
mov edx, dword [ebp - 0x28]
add ebx, dword [ebp + 0x38]
inc edx
add ecx, dword [ebp + 0x38]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ecx
cmp edx, dword [ebp + 0x40]
jb 0x43bb06
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
add eax, dword [ebp - 0x50]
inc ecx
add ebx, dword [ebp + 0x40]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ebx
cmp ecx, dword [ebp - 0x38]
jb 0x43bae4
mov ebx, dword [ebp + 0xc]
add dword [ebp - 0x18], ebx
mov eax, ebx
mov ecx, dword [ebp - 0x3c]
inc edi
shl eax, 2
add dword [ebp - 0x1c], eax
cmp edi, dword [ebp + 0x10]
jb 0x43ba6d
cmp dword [ebp + 0x44], 0
je 0x43bd13
imul ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x43bd13
mov edi, dword [ebp + 8]
mov ecx, dword [edi + esi*4]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, cl
shl eax, 0x10
and ecx, 0xff00ff00
or edx, eax
or edx, ecx
mov dword [edi + esi*4], edx
inc esi
cmp esi, ebx
jb 0x43bced
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret