Function at 0x45c6ec
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x210], 0
je 0x45c70b
xor eax, eax
jmp 0x45c901
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045b004
pop ecx
test eax, eax
je 0x45c725
cmp dword [ebp + 0xc], 0
jg 0x45c72c
cmp dword [ebp + 0x18], 0
je 0x45c72c
xor eax, eax
jmp 0x45c901
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045ac54
pop ecx
cmp dword [ebx], 0
jne 0x45c85d
mov dword [ebp - 8], 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
and eax, 0x7fffffff
mov dword [ebp - 0xc], eax
dec dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
imul edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
xor edx, edx
mov dword [ebp - 4], edx
test eax, eax
je 0x45c782
inc dword [ebp - 4]
shr eax, 8
inc dword [ebp - 0x10]
test eax, eax
jne 0x45c775
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], 0
jle 0x45c7ae
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jle 0x45c7ae
push 0xe
push ebx
call fcn.0045a1ec
add esp, 8
xor eax, eax
jmp 0x45c901
cmp dword [ebp + 0x18], 0
je 0x45c7d2
mov edx, dword [ebp + 0xc]
mov eax, esi
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
xor edx, edx
cmp edx, dword [ebp - 0x14]
jge 0x45c7d7
mov byte [eax], 0
inc edx
inc eax
cmp edx, dword [ebp - 0x14]
jl 0x45c7c6
jmp 0x45c7d7
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 4], 0
je 0x45c80c
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
dec dword [ebp - 0xc]
mov edx, dword [ebp - 4]
dec edx
lea ecx, [esi + edx]
mov ebx, dword [ebp - 0x14]
add ecx, ebx
test edx, edx
jl 0x45c80c
mov ebx, eax
dec edx
and bl, 0xff
mov byte [ecx], bl
dec ecx
shr eax, 8
test edx, edx
jge 0x45c7fc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + eax]
mov dword [ebp - 0x1c], ecx
cmp edx, dword [ebp - 0x10]
jge 0x45c8f3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
dec dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
add ebx, edx
dec ecx
test ecx, ecx
lea esi, [ebx + ecx]
jl 0x45c850
mov ebx, eax
dec ecx
and bl, 0xff
mov byte [esi], bl
dec esi
shr eax, 8
test ecx, ecx
jge 0x45c840
add edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jl 0x45c821
jmp 0x45c8f3
mov eax, dword [ebx + 0x1bc]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045adf4
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebx + 0x210], 0
jne 0x45c8f3
mov eax, dword [ebx + 0x1bc]
push eax
call fcn.0045b004
pop ecx
test eax, eax
jne 0x45c89d
cmp dword [ebp + 0x18], 0
je 0x45c8f3
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
je 0x45c8f3
cmp dword [ebp + 0xc], 0
jle 0x45c8ba
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jl 0x45c8ba
push 0xe
push ebx
call fcn.0045a1ec
add esp, 8
xor eax, eax
jmp 0x45c901
mov edi, dword [ebx + 0x1bc]
push edi
push pe_nt_image_headers32
push edi
push ebx
call fcn.0045c44c
add esp, 0x10
mov byte [ebp - 0x15], al
mov edx, dword [ebp - 0x10]
lea eax, [esi + edx - 1]
test edx, edx
jle 0x45c8e9
mov cl, byte [eax]
dec edx
mov byte [eax + 1], cl
dec eax
test edx, edx
jg 0x45c8de
mov al, byte [ebp - 0x15]
mov byte [esi], al
inc dword [ebp - 0x10]
jmp 0x45c875
cmp dword [ebp + 0x18], 0
je 0x45c8fe
mov eax, dword [ebp + 0xc]
jmp 0x45c901
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret