Function at 0x45fff0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xd4], eax
push esi
push edi
mov dword [ebp - 0xd0], edx
mov eax, dword [ebx]
mov dword [ebp - 0xcc], ebx
mov dword [eax + 8], 0
call fcn.0045f2b0
mov edx, dword [ebx]
mov esi, dword [edx + 8]
mov dword [ebp - 0x94], esi
test eax, eax
jne 0x46004a
push 0
mov edx, esi
mov ecx, ebx
call fcn.0045e950
jmp 0x460653
cmp esi, 3
jne 0x46007b
cmp dword [ebx + 0x47ec], esi
je 0x460069
cmp dword [ebx + 0x47e8], 0
jne 0x46007b
cmp dword [ebx + 0x47e4], 0
jne 0x46007b
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0x94], esi
jmp 0x460089
mov dword [ebp - 0xb4], 0
test esi, esi
jle 0x46003a
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea esi, [ebx + 0x46a0]
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb0], xmm0
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xb8], ecx
jmp 0x4600c6
mov esi, dword [ebp - 0x90]
mov eax, dword [ebx]
mov eax, dword [eax]
add eax, 3
push eax
call ecx
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x460633
mov eax, dword [ebx + 0x4684]
cdq
idiv dword [esi]
mov dword [edi + 0xc], 0
mov dword [ebp - 0x9c], eax
mov dword [edi - 4], eax
mov eax, dword [ebx + 0x4688]
cdq
idiv dword [esi + 4]
xor edx, edx
mov esi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, esi
mov dword [edi], esi
sar ecx, 1
dec eax
mov dword [edi + 8], ecx
mov ecx, dword [ebx]
add eax, dword [ecx]
div dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x90]
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x28]
mov dword [edi - 8], eax
mov dword [edi - 0xc], eax
mov eax, dword [ebp - 0x9c]
cmp eax, 1
jne 0x460153
cmp esi, eax
jne 0x460147
mov eax, 0x45f690
jmp 0x460176
cmp esi, 2
jne 0x460171
mov eax, 0x45f6a0
jmp 0x460176
cmp eax, 2
jne 0x460171
cmp esi, 1
jne 0x460164
mov eax, 0x45f8b0
jmp 0x460176
cmp esi, 2
jne 0x460171
mov eax, dword [ebx + 0x4814]
jmp 0x460176
mov eax, 0x45fbe0
mov esi, dword [ebp - 0x94]
add ecx, 0x48
mov dword [edi - 0x10], eax
add edi, 0x20
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], eax
cmp eax, esi
jl 0x4600c0
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
test ecx, ecx
js 0x460633
je 0x4601d7
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x460633
lea eax, [ecx*4]
test eax, eax
js 0x460633
test edi, edi
js 0x460633
je 0x4601f8
mov eax, 0x7fffffff
cdq
idiv edi
lea edx, [ecx*4]
cmp edx, eax
jg 0x460633
imul ecx, edi
lea eax, [ecx*4 + 1]
push eax
call dword [ebp - 0xb8]
mov edx, dword [ebx]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x90], ecx
test ecx, ecx
je 0x460635
cmp dword [edx + 4], 0
mov dword [ebp - 0xa0], 0
jbe 0x4605f4
mov edi, dword [ebp - 0xb0]
mov dword [ebp - 0x90], ecx
jmp 0x460246
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx]
imul eax, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], 0
lea edx, [ecx + eax*4]
mov dword [ebp - 0x9c], edx
test esi, esi
jle 0x460382
lea edi, [ebx + 0x46bc]
mov ebx, dword [ebp - 0x94]
lea esi, [ebp - 0x74]
jmp 0x460286
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xb4]
lea edx, [esi - 0x14]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xb4], eax
mov eax, dword [esi - 8]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x90], ecx
lea ecx, [esi - 0x10]
sar eax, 1
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x94], edx
cmp dword [esi], eax
jl 0x4602e9
mov eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xb4], ecx
jmp 0x4602ff
mov eax, ecx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ecx]
push dword [esi - 0xc]
push dword [esi - 4]
push eax
push dword [edx]
push dword [edi + 0x18]
call dword [esi - 0x18]
mov ecx, dword [ebp - 0xbc]
add esp, 0x14
mov dword [ebp + ecx*4 - 0xb0], eax
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, dword [esi - 8]
jl 0x460355
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x94]
inc dword [esi + 4]
mov dword [esi], 0
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [esi + 4]
cmp eax, dword [edi]
jge 0x460355
mov eax, dword [edi + 4]
add eax, edx
mov edx, dword [ebp - 0xc8]
mov dword [edx], eax
inc ecx
add esi, 0x20
add edi, 0x48
mov dword [ebp - 0xbc], ecx
cmp ecx, ebx
jl 0x460280
mov edi, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x94], ebx
mov ebx, dword [ebp - 0xcc]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
cmp ecx, 3
jne 0x460416
cmp dword [ebp - 0xb4], 0
je 0x4603f4
xor esi, esi
cmp dword [eax], esi
jbe 0x4605d6
mov eax, dword [ebp - 0xa8]
lea ecx, [edx + 2]
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x98], edi
sub edi, edx
sub eax, edx
mov dword [ebp - 0x98], eax
movzx eax, byte [edi + edx]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
inc esi
mov byte [ecx - 5], al
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + edx - 1]
mov byte [ecx - 4], al
mov byte [ecx - 3], 0xff
mov eax, dword [ebx]
cmp esi, dword [eax]
jb 0x4603c2
jmp 0x4605d0
push 4
push dword [eax]
mov eax, dword [ebx + 0x4810]
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push edi
push edx
call eax
add esp, 0x18
jmp 0x4605d6
cmp ecx, 4
jne 0x4605a1
mov ecx, dword [ebx + 0x47e8]
test ecx, ecx
jne 0x4604ee
mov dword [ebp - 0xbc], ecx
cmp dword [eax], ecx
jbe 0x4605d6
mov esi, dword [ebp - 0xa4]
lea edi, [edx + 2]
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
sub ecx, esi
mov dword [ebp - 0x98], ecx
sub eax, esi
mov ecx, dword [ebp - 0xa8]
sub ecx, esi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], ecx
nop
movzx ecx, byte [eax + esi]
lea edi, [edi + 4]
movzx edx, byte [esi]
lea esi, [esi + 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 6], al
mov eax, dword [ebp - 0x98]
movzx ecx, byte [eax + esi - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 5], al
mov eax, dword [ebp - 0xc4]
movzx ecx, byte [eax + esi - 1]
imul ecx, edx
mov byte [edi - 3], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xbc]
shr eax, 8
inc ecx
mov byte [edi - 4], al
mov eax, dword [ebx]
mov dword [ebp - 0xbc], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xc0]
jb 0x460470
jmp 0x4605d0
mov eax, dword [eax]
mov esi, dword [ebp - 0x9c]
mov edx, dword [ebx + 0x4810]
push 4
push eax
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push esi
cmp ecx, 2
jne 0x46059a
call edx
mov eax, dword [ebx]
xor edi, edi
add esp, 0x18
cmp dword [eax], edi
jbe 0x4605d0
add esi, 2
nop
mov eax, dword [ebp - 0xa4]
lea esi, [esi + 4]
movzx edx, byte [edi + eax]
inc edi
movzx eax, byte [esi - 6]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 4], al
mov eax, dword [ebx]
cmp edi, dword [eax]
jb 0x460530
jmp 0x4605d0
call edx
add esp, 0x18
jmp 0x4605d0
xor edx, edx
cmp dword [eax], edx
jbe 0x4605d6
mov ecx, dword [ebp - 0x9c]
inc ecx
nop
mov eax, dword [ebp - 0xb0]
lea ecx, [ecx + 4]
mov al, byte [edx + eax]
inc edx
mov byte [ecx - 3], al
mov byte [ecx - 4], al
mov byte [ecx - 5], al
mov byte [ecx - 2], 0xff
mov eax, dword [ebx]
cmp edx, dword [eax]
jb 0x4605b0
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebx]
inc eax
mov esi, dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
cmp eax, dword [edx + 4]
jb 0x460240
mov edx, dword [edx + 8]
mov ecx, ebx
push 0
call fcn.0045e950
mov ecx, dword [ebx]
add esp, 4
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov edx, dword [edx + 8]
mov ecx, ebx
push 0
call fcn.0045e950
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.outofmem
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00485b63
mov esp, ebp
pop ebp
ret