Function at 0x456e90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x50]
mov eax, 1
call fcn.0040b450
call fcn.0040d410
push eax
test eax, eax
jne 0x4571b7
mov edx, 0x56b3e8
mov ecx, 0
mov eax, 0
call fcn.00449bd0
mov edx, dword [ebp - 4]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov esi, dword [eax + 0x1c]
dec esi
mov dword [ebp - 0xc], 0
cmp esi, dword [ebp - 0xc]
jl 0x456f66
dec dword [ebp - 0xc]
lea esi, [esi]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov ebx, dword [eax + 0x20]
dec ebx
mov dword [ebp - 8], 0
cmp ebx, dword [ebp - 8]
jl 0x456f61
dec dword [ebp - 8]
inc dword [ebp - 8]
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00457250
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x10]
mov ecx, dword [ecx]
call dword [ecx + pe_nt_image_headers32]
cmp ebx, dword [ebp - 8]
jg 0x456f30
cmp esi, dword [ebp - 0xc]
jg 0x456f14
mov eax, dword [ebp - 4]
mov dword [eax - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00449ff0
mov dword [ebp - 0x14], eax
jmp 0x456f9f
mov ecx, dword [ebp - 0x14]
mov eax, 0xd20d20d3
imul ecx
mov eax, ecx
add edx, eax
sar edx, 6
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
inc dword [eax - 0x1c]
mov eax, dword [ebp - 0x14]
test eax, eax
jg 0x456f80
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00449ff0
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0xffffffec
mov edx, dword [ebp - 0x10]
call fcn.0040d500
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x10]
mov cl, 0
call fcn.00403500
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00449ff0
mov ebx, eax
dec ebx
mov dword [ebp - 0x14], 0
cmp ebx, dword [ebp - 0x14]
jl 0x45708d
dec dword [ebp - 0x14]
mov esi, esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x14]
mov eax, dword [ebp - 0x14]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx - 0x1c]
call fcn.00407420
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, 1
jl 0x457084
inc dword [ebp - 0x20]
lea esi, [esi]
dec dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0x4e
idiv ecx
inc edx
and edx, 0xff
mov al, byte [edx + str.N.__abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789__:______]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*4]
call fcn.00403a90
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ecx - 1], dl
mov ecx, dword [ebp - 0x18]
mov eax, 0xd20d20d3
imul ecx
mov eax, ecx
add edx, eax
sar edx, 6
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x20], 1
jg 0x45702c
cmp ebx, dword [ebp - 0x14]
jg 0x456ff8
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00449ff0
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
add eax, 0xffffffe8
mov edx, dword [ebp - 0x24]
call fcn.0040d500
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp - 0x24]
mov cl, 0
call fcn.00403500
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00449ff0
dec eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x14]
jl 0x4571b7
dec dword [ebp - 0x14]
lea esi, [esi]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00449fb0
movzx eax, word [ebp - 0x26]
test eax, eax
jne 0x45711e
mov ebx, str.None
mov eax, dword [ebp - 4]
mov edi, dword [eax - 0x18]
mov esi, dword [ebp - 0x14]
lea eax, [edi + esi*4]
call fcn.00403a40
mov dword [edi + esi*4], ebx
jmp 0x4571ab
mov eax, 0x56c5fc
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
call fcn.00403a40
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x70]
mov dx, word [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00457210
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
call fcn.00403a40
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x74]
mov dx, word [ebp - 0x2a]
mov eax, dword [ebp - 4]
call fcn.00457210
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x78]
call fcn.00403a40
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x78]
mov dx, word [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00457210
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*4]
mov ecx, 3
call fcn.00407090
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x14]
jg 0x4570e4
call fcn.0040b720
lea eax, [ebp - 0x78]
call fcn.00403a40
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x74]
call fcn.00403a40
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x70]
call fcn.00403a40
mov dword [ebp - 0x70], 0
pop eax
test eax, eax
je 0x4571f3
call fcn.0040b890
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x84]
mov edi, dword [ebp - 0x80]
leave
ret