Function at 0x45bbd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffb90
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
lea eax, [esp + 0x34]
push eax
push 1
push 0x101
push 2
lea eax, [esi + 4]
push eax
mov eax, esi
call fcn.0045b45c
push eax
mov eax, dword [esi + 0xb0]
call dword [eax + 0x8c]
mov word [esp + 8], ax
cmp word [esp + 8], 0
jne 0x45bf10
movsx eax, word [esp + 0x56]
imul dword [esp + 0x3c]
add eax, 0x1f
test eax, eax
jns 0x45bc2d
add eax, 0x1f
sar eax, 5
mov edi, eax
add edi, edi
add edi, edi
imul edi, dword [esp + 0x40]
lea eax, [esp + 0x5e]
push eax
push 1
push 6
push 1
lea eax, [esi + 4]
push eax
mov eax, esi
call fcn.0045b45c
push eax
mov eax, dword [esi + 0xb0]
call dword [eax + 0x8c]
mov eax, edi
mov ecx, dword [esp + 0x66]
cdq
idiv ecx
lea edi, [eax + 1]
imul edi, ecx
lea ebp, [edi + 0x428]
push ebp
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, ebp
call fcn.004034bc
mov dword [ebx], 0x28
mov eax, dword [esp + 0x3c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov word [ebx + 0xc], 1
movzx eax, word [esp + 0x56]
mov word [ebx + 0xe], ax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
mov eax, dword [esp + 0x34]
call fcn.00459624
fstp xword [esp + 0x10]
wait
mov eax, dword [esp + 0x38]
call fcn.00459624
fstp xword [esp + 0x20]
wait
push 0
lea ecx, [esp + 0x2f]
lea edx, [esp + 0x2e]
mov eax, esi
call fcn.0045c3b8
movzx eax, byte [esp + 0x2a]
sub al, 1
jb 0x45bcfb
je 0x45bd31
jmp 0x45bd57
fld xword [esp + 0x10]
fld xword [0x45bf20]
fmulp st(1)
fmul dword [0x45bf2c]
call fcn.004032c0
mov dword [ebx + 0x18], eax
fld xword [esp + 0x20]
fld xword [0x45bf20]
fmulp st(1)
fmul dword [0x45bf2c]
call fcn.004032c0
mov dword [ebx + 0x1c], eax
jmp 0x45bd61
fld xword [esp + 0x10]
fmul dword [0x45bf2c]
call fcn.004032c0
mov dword [ebx + 0x18], eax
fld xword [esp + 0x20]
fmul dword [0x45bf2c]
call fcn.004032c0
mov dword [ebx + 0x1c], eax
jmp 0x45bd61
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
movzx eax, word [esp + 0x5a]
sub ax, 1
jb 0x45bd7c
je 0x45bde1
dec ax
je 0x45be0a
jmp 0x45be14
mov dword [ebx + 0x20], 2
xor eax, eax
mov dword [ebx + 0x24], eax
push 0
lea ecx, [esp + 0x31]
lea edx, [esp + 0x30]
mov eax, esi
call fcn.0045c4ac
test al, al
je 0x45bda2
mov byte [esp + 0x2c], 0
xor eax, eax
mov edx, 0x473700
movzx ecx, byte [esp + 0x2c]
movzx ecx, byte [edx + ecx*2]
mov byte [ebx + eax*4 + 0x2a], cl
movzx ecx, byte [esp + 0x2c]
movzx ecx, byte [edx + ecx*2]
mov byte [ebx + eax*4 + 0x29], cl
movzx ecx, byte [esp + 0x2c]
movzx ecx, byte [edx + ecx*2]
mov byte [ebx + eax*4 + 0x28], cl
mov byte [ebx + eax*4 + 0x2b], 0
inc eax
inc edx
cmp eax, 2
jne 0x45bda9
jmp 0x45bea1
mov dword [ebx + 0x20], pe_nt_image_headers32
xor eax, eax
mov edx, eax
mov byte [ebx + eax*4 + 0x2a], dl
mov byte [ebx + eax*4 + 0x29], dl
mov byte [ebx + eax*4 + 0x28], dl
mov byte [ebx + eax*4 + 0x2b], 0
inc eax
cmp eax, 0x100
jne 0x45bdea
jmp 0x45bea1
xor eax, eax
mov dword [ebx + 0x20], eax
jmp 0x45bea1
lea eax, [esp + 0x6a]
push eax
push 1
push 0x10a
push 1
lea eax, [esi + 4]
push eax
mov eax, esi
call fcn.0045b45c
push eax
mov eax, dword [esi + 0xb0]
call dword [eax + 0x8c]
test ax, ax
je 0x45be65
mov dword [ebx + 0x20], pe_nt_image_headers32
xor eax, eax
mov edx, eax
mov byte [ebx + eax*4 + 0x2a], dl
mov byte [ebx + eax*4 + 0x29], dl
mov byte [ebx + eax*4 + 0x28], dl
mov byte [ebx + eax*4 + 0x2b], 0
inc eax
cmp eax, 0x100
jne 0x45be48
jmp 0x45bea1
movzx eax, word [esp + 0x6a]
mov dword [ebx + 0x20], eax
movzx edi, word [esp + 0x6a]
dec edi
test edi, edi
jl 0x45bea1
inc edi
xor eax, eax
lea edx, [esp + 0x6f]
movzx ecx, byte [edx]
mov byte [ebx + eax*4 + 0x2a], cl
movzx ecx, byte [edx + 1]
mov byte [ebx + eax*4 + 0x29], cl
movzx ecx, byte [edx + 2]
mov byte [ebx + eax*4 + 0x28], cl
mov byte [ebx + eax*4 + 0x2b], 0
inc eax
add edx, 4
dec edi
jne 0x45be7e
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x80]
push eax
call sub.user32.dll_GetDC
mov edi, eax
mov eax, ebx
add eax, dword [ebx]
mov edx, dword [ebx + 0x20]
add edx, edx
add edx, edx
add eax, edx
mov dword [esp + 0x30], eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push ebx
push edi
call sub.gdi32.dll_CreateDIBSection
mov edx, dword [esp]
mov dword [edx], eax
push edi
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x80]
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [esp + 4]
movzx edx, word [esp + 0x5a]
mov word [eax], dx
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalFree
movzx eax, word [esp + 8]
add esp, 0x470
pop ebp
pop edi
pop esi
pop ebx
ret