Function at 0x43b356
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [esi + 0xe8]
test edx, edx
je 0x43b370
mov ecx, dword [esi + 0x84]
sub ecx, dword [ebp + 0xc]
dec ecx
jmp 0x43b373
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0xcc]
push ebx
mov ebx, dword [esi + 0xd4]
push edi
mov edi, eax
imul edi, ecx
mov ecx, ebx
imul ecx, dword [ebp + 8]
add edi, ecx
add edi, dword [esi + 0xc8]
xor ecx, ecx
cmp edx, ecx
je 0x43b39c
neg eax
mov dword [ebp - 4], eax
cmp dword [esi + 0xe0], ecx
jne 0x43b75f
cmp dword [esi + 0xe4], ecx
jne 0x43b75f
mov eax, dword [esi + 0xd8]
test al, 2
jne 0x43b3fb
test eax, 0x100
jne 0x43b42e
test al, 8
je 0x43b451
cmp ebx, 4
jne 0x43b77e
jmp 0x43b447
mov al, byte [esi + 0xf0]
xor byte [edi + 2], al
mov al, byte [esi + 0xf4]
xor byte [edi + 1], al
mov al, byte [esi + 0xf8]
xor byte [edi], al
dec dword [ebp + 0x10]
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x43b3db
jmp 0x43b77e
mov al, byte [esi + 0xf0]
dec dword [ebp + 0x10]
mov byte [edi + 2], al
mov al, byte [esi + 0xf4]
mov byte [edi + 1], al
mov al, byte [esi + 0xf8]
mov byte [edi], al
mov al, byte [esi + 0xfc]
mov byte [edi + 3], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x43b405
jmp 0x43b77e
mov al, byte [esi + 0xfc]
dec dword [ebp + 0x10]
mov byte [edi + 3], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x43b438
jmp 0x43b77e
test al, 0x10
je 0x43b60d
cmp ebx, 4
jne 0x43b5a9
cmp dword [ebp + 0x10], ecx
je 0x43b77e
mov ebx, dword [esi + 0xfc]
movzx edx, byte [edi + 3]
test ebx, ebx
jne 0x43b47f
movzx eax, byte [edi + 2]
jmp 0x43b4be
test edx, edx
jne 0x43b48e
mov eax, dword [esi + 0xf0]
cdq
idiv ebx
jmp 0x43b4be
movzx eax, byte [edi + 2]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf0]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 2], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x43b4d1
movzx eax, byte [edi + 1]
jmp 0x43b514
movzx edx, byte [edi + 3]
test edx, edx
jne 0x43b4e4
mov eax, dword [esi + 0xf4]
cdq
idiv ebx
jmp 0x43b514
movzx eax, byte [edi + 1]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf4]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 1], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x43b526
movzx eax, byte [edi]
jmp 0x43b56c
movzx eax, byte [edi + 3]
test eax, eax
jne 0x43b539
mov eax, dword [esi + 0xf8]
cdq
idiv ebx
jmp 0x43b56c
movzx eax, byte [edi]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
movzx edx, byte [edi + 3]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf8]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
movzx ecx, byte [edi + 3]
mov byte [edi], al
mov eax, dword [esi + 0x100]
imul eax, ecx
mov ecx, dword [esi + 0xfc]
imul ecx, ecx, 0xff
add eax, ecx
cdq
mov ecx, 0xff
idiv ecx
dec dword [ebp + 0x10]
mov byte [edi + 3], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jne 0x43b46b
jmp 0x43b77e
cmp dword [ebp + 0x10], ecx
je 0x43b77e
movzx eax, byte [edi + 2]
imul eax, dword [esi + 0x100]
add eax, dword [esi + 0xf0]
mov ecx, 0xff
cdq
mov ebx, ecx
idiv ebx
mov byte [edi + 2], al
movzx eax, byte [edi + 1]
imul eax, dword [esi + 0x100]
add eax, dword [esi + 0xf4]
cdq
idiv ebx
mov byte [edi + 1], al
movzx eax, byte [edi]
imul eax, dword [esi + 0x100]
add eax, dword [esi + 0xf8]
cdq
idiv ecx
dec dword [ebp + 0x10]
mov byte [edi], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jne 0x43b5b2
jmp 0x43b77e
test al, 0x20
je 0x43b758
cmp ebx, 4
jne 0x43b758
cmp dword [ebp + 0x10], ecx
je 0x43b77e
mov ebx, dword [esi + 0xfc]
movzx edx, byte [edi + 3]
test ebx, ebx
jne 0x43b63b
movzx eax, byte [edi + 2]
jmp 0x43b67a
test edx, edx
jne 0x43b64a
mov eax, dword [esi + 0xf0]
cdq
idiv ebx
jmp 0x43b67a
movzx eax, byte [edi + 2]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf0]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 2], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x43b68d
movzx eax, byte [edi + 1]
jmp 0x43b6d0
movzx edx, byte [edi + 3]
test edx, edx
jne 0x43b6a0
mov eax, dword [esi + 0xf4]
cdq
idiv ebx
jmp 0x43b6d0
movzx eax, byte [edi + 1]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf4]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 1], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x43b6e2
movzx eax, byte [edi]
jmp 0x43b724
movzx edx, byte [edi + 3]
test edx, edx
jne 0x43b6f5
mov eax, dword [esi + 0xf8]
cdq
idiv ebx
jmp 0x43b724
movzx eax, byte [edi]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf8]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
dec dword [ebp + 0x10]
mov byte [edi], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jne 0x43b627
jmp 0x43b77e
mov al, byte [esi + 0xf0]
dec dword [ebp + 0x10]
mov byte [edi + 2], al
mov al, byte [esi + 0xf4]
mov byte [edi + 1], al
mov al, byte [esi + 0xf8]
mov byte [edi], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x43b738
jmp 0x43b77e
cmp dword [ebp + 0x10], ecx
je 0x43b77e
push dword [ebp + 0xc]
mov eax, esi
push dword [ebp + 8]
call fcn.0043aa07
add edi, dword [ebp - 4]
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
pop ecx
pop ecx
jne 0x43b764
pop edi
pop ebx
leave
ret