Function at 0x45c810
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x70]
push esi
mov edx, dword [eax + 0xc]
mov esi, 0x10
push edi
sub esi, ebx
mov edi, dword [edx + 8]
mov ecx, dword [edx + 4]
shl esi, 4
cmp edi, 3
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], esi
jl 0x45cd7c
cmp ecx, 3
jl 0x45cd7c
test ebx, ebx
je 0x45cd7c
mov eax, dword [edx + 0x14]
push ebp
mov ebp, dword [edx + 0x18]
lea edx, [ecx + ecx*2]
mov esi, edx
mov edx, eax
sub edx, esi
mov esi, ebp
lea ebx, [ecx + ecx - 4]
add ebp, eax
push ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], edx
mov edi, ebp
call fcn.004dc5c3
push ebx
mov dword [esp + 0x64], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x6c], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x74], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x7c], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x84], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x8c], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x70], eax
call fcn.004dc5c3
push ebx
mov dword [esp + 0x78], eax
call fcn.004dc5c3
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], eax
add esp, 0x24
or eax, 0xffffffff
test ecx, ecx
mov dword [esp + 0x3c], 0
jle 0x45cd14
jmp 0x45c8f9
mov eax, dword [esp + 0x10]
inc eax
mov ecx, 3
cdq
idiv ecx
movzx cx, byte [esi]
mov dword [esp + 0x10], edx
mov eax, dword [esp + edx*4 + 0x5c]
mov edx, dword [esp + edx*4 + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
movzx ax, byte [esi + 3]
add ecx, eax
inc esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
movzx dx, byte [esi + 3]
movzx cx, byte [esi]
movzx bx, byte [esi + 1]
add ecx, edx
inc esi
mov dword [esp + 0x18], edx
movzx dx, byte [esi + 3]
add ebx, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
add esi, 4
cmp edx, 2
mov dword [esp + 0x30], ebx
jle 0x45ca16
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + edx*4 + 0x50]
mov dword [esp + 0x20], edx
mov edx, ebx
sub edx, dword [esp + 0x40]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x14]
add edx, 0xfffffffe
mov dword [esp + 0x28], edx
movzx dx, byte [esi]
mov ebx, dword [esp + 0x20]
add eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x34], eax
add edx, eax
inc esi
mov word [ebx], dx
mov edx, dword [esp + 0x18]
movzx ax, byte [esi - 1]
movzx bx, byte [esi]
add edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
add edx, ecx
mov ecx, dword [esp + 0x40]
mov word [ecx + ebx], dx
mov ebx, dword [esp + 0x20]
movzx dx, byte [esi]
mov ecx, dword [esp + 0x18]
add ebx, 2
inc esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
movzx bx, byte [esi]
add edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
add ebx, edx
mov edx, dword [esp + 0x24]
mov word [edx], bx
add edx, 2
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
movzx dx, byte [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
inc esi
dec edx
mov dword [esp + 0x28], edx
jne 0x45c983
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add esi, ecx
cmp eax, 1
jle 0x45ccff
mov ebx, dword [esp + 0x10]
mov ecx, 3
add edi, 3
add ebp, 3
lea eax, [ebx + 1]
cdq
idiv ecx
lea eax, [ebx + 2]
mov ebx, 3
shl edx, 2
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + edx + 0x5c]
cdq
idiv ebx
mov ebx, dword [esp + 0x7c]
shl edx, 2
cmp ebx, 0x10
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + edx + 0x68]
je 0x45cbd2
cmp ebx, 2
jle 0x45ccf4
mov ebx, dword [esp + 0x1c]
sub eax, ecx
mov ebx, dword [esp + ebx + 0x68]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + ebx + 0x50]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x10]
mov ebx, dword [esp + ebx*4 + 0x50]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + edx + 0x50]
mov edx, dword [esp + edx + 0x5c]
mov dword [esp + 0x24], ebx
sub edx, ecx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + edx*4 + 0x5c]
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x24]
add ecx, 2
movsx eax, word [edx]
mov edx, dword [esp + 0x1c]
movsx edx, word [edx]
lea eax, [edx + eax*2]
mov edx, dword [esp + 0x20]
movsx edx, word [edx]
add eax, edx
xor edx, edx
mov dl, byte [ebp]
imul eax, dword [esp + 0x7c]
imul edx, ebx
add eax, edx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x2c]
inc edi
inc ebp
movsx edx, word [ecx + eax - 2]
mov eax, dword [esp + 0x28]
movsx eax, word [eax]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x18]
movsx edx, word [edx]
add eax, edx
xor edx, edx
mov dl, byte [ebp]
imul eax, dword [esp + 0x7c]
imul edx, ebx
add eax, edx
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x24]
sar eax, 8
mov byte [edi], al
mov eax, 2
add edx, eax
inc edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
add edx, eax
inc ebp
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edx
movsx edx, word [eax + ecx - 2]
mov eax, dword [esp + 0x34]
movsx eax, word [eax + ecx - 2]
lea eax, [eax + edx*2]
movsx edx, word [ecx - 2]
add eax, edx
xor edx, edx
mov dl, byte [ebp]
imul eax, dword [esp + 0x7c]
imul edx, ebx
add eax, edx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x40]
inc edi
inc ebp
dec eax
mov dword [esp + 0x40], eax
jne 0x45cad6
jmp 0x45ccf4
cmp ebx, 2
jle 0x45cce6
mov ebx, dword [esp + 0x1c]
sub eax, ecx
mov ebx, dword [esp + ebx + 0x68]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + ebx + 0x50]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x5c]
mov ebx, dword [esp + ebx*4 + 0x50]
sub eax, ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + edx + 0x50]
mov edx, dword [esp + edx + 0x5c]
mov dword [esp + 0x34], eax
sub edx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
add edx, 0xfffffffe
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
add ecx, 2
movsx eax, word [ebx]
movsx edx, word [edx]
lea eax, [edx + eax*2]
mov edx, dword [esp + 0x28]
movsx edx, word [edx]
add eax, edx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov byte [edi], al
mov eax, dword [esp + 0x2c]
inc edi
movsx edx, word [ecx + eax - 2]
mov eax, dword [esp + 0x18]
movsx eax, word [eax]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x20]
movsx edx, word [edx]
add eax, edx
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esp + 0x28]
sar eax, 4
mov byte [edi], al
mov eax, 2
add edx, eax
add ebx, eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
add edx, eax
inc edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edx
movsx edx, word [eax + ecx - 2]
mov eax, dword [esp + 0x34]
movsx eax, word [eax + ecx - 2]
lea eax, [eax + edx*2]
movsx edx, word [ecx - 2]
add eax, edx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov byte [edi], al
mov eax, dword [esp + 0x40]
inc edi
dec eax
mov dword [esp + 0x40], eax
jne 0x45cc34
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
sub eax, ecx
lea ebp, [eax + ebp - 6]
mov ecx, dword [esp + 0x38]
lea eax, [ecx + 3]
add ebp, eax
add edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x45c8f5
mov edx, dword [esp + 0x5c]
push edx
call fcn.004dc5ec
mov eax, dword [esp + 0x64]
push eax
call fcn.004dc5ec
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004dc5ec
mov edx, dword [esp + 0x74]
push edx
call fcn.004dc5ec
mov eax, dword [esp + 0x7c]
push eax
call fcn.004dc5ec
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004dc5ec
mov edx, dword [esp + 0x68]
push edx
call fcn.004dc5ec
mov eax, dword [esp + 0x70]
push eax
call fcn.004dc5ec
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004dc5ec
mov eax, dword [esp + 0x9c]
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret