Function at 0x456a60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9483
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x390
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 3
mov al, byte [esi + 0x141]
mov dx, word [esi + 0x142]
mov cl, byte [esi + 0x34]
mov edi, dword [esi + 0x16c]
mov byte [ebp - 0x12], al
mov ax, word [esi + 0x144]
mov word [ebp - 0x30], ax
mov al, byte [esi + 0x3484]
mov word [ebp - 0x74], dx
mov dx, word [esi + 0x146]
test al, 4
mov byte [ebp - 0x28], cl
mov dword [ebp - 0x20], edi
mov word [ebp - 0x40], dx
je 0x456ad1
mov byte [ebp - 0x11], 2
test al, 8
je 0x456ad9
and byte [ebp - 0x11], 0xfd
xor bl, bl
test cl, cl
mov byte [ebp - 0x34], bl
jbe 0x456b02
mov eax, dword [ebp - 0x28]
mov dl, byte [esi + 0xee]
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x456afb
inc bl
inc ecx
dec eax
jne 0x456af5
mov byte [ebp - 0x34], bl
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dl, 0xa0
mov cl, 0xb0
cmp eax, ebx
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x1c], cl
je 0x456b48
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x456b40
dec eax
je 0x456b32
dec eax
je 0x456b40
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x1c], cl
jmp 0x456b48
mov byte [ebp - 0x18], 0xa2
mov byte [ebp - 0x1c], 0xb2
mov byte [ebp - 0x3c], 1
jmp 0x456b48
mov byte [ebp - 0x18], 0xa1
mov byte [ebp - 0x1c], 0xb1
mov ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push 4
push eax
push ecx
push 1
mov ecx, esi
call fcn.00435a90
mov dl, byte [esi + 0xf2]
push ebx
push 4
push edx
push 1
push ebx
push ebx
mov ecx, esi
call fcn.0043e690
mov eax, dword [ebp + 8]
push 0xff
push ebx
push ebx
push eax
push 1
mov ecx, esi
call fcn.00436460
cmp dword [ebp + 0x14], ebx
jne 0x456cc9
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x44]
push str.IDS_STS_ERASE_ALL
push ecx
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004a57ee
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov cl, byte [ebp - 0x3c]
mov eax, edi
shr eax, cl
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x38], eax
mov al, byte [ebp - 0x12]
test al, al
jbe 0x456cb4
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x11]
and edx, 0xff
test byte [edx + 0x4bb0f8], al
je 0x456ca1
movzx cx, byte [ebp - 0x3c]
mov ax, word [ebp - 0x30]
xor edi, edi
shr ax, cl
test ax, ax
mov word [ebp + 0x12], ax
jbe 0x456ca1
test byte [esi + 0xb4], 0xe0
jne 0x456ebd
mov ecx, dword [ebp - 0x38]
add ebx, 0x100
xor eax, eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], ecx
fild qword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x2c]
fmul qword [0x4b75e8]
fild qword [ebp - 0x60]
fdivp st(1)
fstp qword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
push edx
push eax
lea edx, [esi + 0xbc]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 4]
mov ecx, dword [0x4e60fc]
add esp, 0x10
push 0
push eax
push 0x40c
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
movzx ax, byte [ebp - 0x24]
imul eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
add eax, edi
push eax
push edx
push 0
mov ecx, esi
call fcn.00445980
add edi, 0x100
cmp di, word [ebp + 0x12]
jb 0x456c10
mov al, byte [ebp - 0x24]
mov cl, byte [ebp - 0x12]
inc al
cmp al, cl
mov byte [ebp - 0x24], al
jb 0x456bdd
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x39c]
push ecx
push edx
push 1
mov ecx, esi
call fcn.00436000
mov edi, eax
lea eax, [ebp - 0x94]
push str.IDS_STS_SCAN_BAD_BLOCK
push eax
mov dword [ebp - 0x18], edi
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 3
call fcn.004a57ee
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
and ecx, 0xff
xor edx, edx
mov dword [ebp - 0x48], ecx
and edi, 0xffff
shr eax, cl
xor ecx, ecx
xor ebx, ebx
mov cx, word [esi + 0x18e]
mov dword [ebp - 0x54], edi
div ecx
imul eax, edi
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x110]
test ah, 8
je 0x456d6c
mov al, byte [esi + 0x156]
test al, al
jne 0x456d6c
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push ebx
call fcn.00443910
cmp word [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
jbe 0x456f2b
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi + 0x110]
and eax, 0xffff
test ch, 8
mov ax, word [ebp + eax*2 - 0x39c]
mov dword [ebp - 0x44], eax
je 0x456da6
mov cl, byte [esi + 0x156]
test cl, cl
je 0x456db2
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00443910
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x2c], 0
test al, al
jbe 0x456f17
mov eax, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x11]
and eax, 0xff
mov dword [ebp - 0x5c], eax
test byte [eax + 0x4bb0f8], dl
je 0x456f04
movzx cx, byte [ebp - 0x3c]
mov ax, word [ebp - 0x74]
mov dword [ebp - 0x24], 0
shr ax, cl
test ax, ax
mov word [ebp + 0x12], ax
jbe 0x456f04
test byte [esi + 0xb4], 0xe0
jne 0x4570c3
mov eax, dword [ebp - 0x38]
inc ebx
xor edi, edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], eax
fild qword [ebp - 0x70]
mov dword [ebp - 0x78], edi
mov eax, dword [ebp - 0x50]
fmul qword [0x4bb918]
fild qword [ebp - 0x7c]
fdivp st(1)
fstp qword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
push ecx
push edx
lea ecx, [esi + 0xbc]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 4]
mov eax, dword [0x4e60fc]
add esp, 0x10
push edi
push edx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x74]
mov cl, byte [ebp - 0x48]
mov edi, dword [ebp - 0x24]
and eax, 0xffff
shr eax, cl
and edi, 0xffff
xor ecx, ecx
mov cx, word [esi + 0x18e]
sub eax, edi
cmp ecx, eax
jge 0x456e83
mov eax, ecx
mov edx, dword [ebp - 0x40]
mov ecx, dword [esi + 0x3cfc]
and edx, 0xffff
imul edx, dword [ebp - 0x5c]
add edx, edi
test ecx, ecx
je 0x456ed8
test byte [esi + 0x110], 8
je 0x456ed8
mov cl, byte [esi + 0x3d00]
push eax
mov eax, dword [ebp - 0x44]
push ecx
push eax
push edx
push 0
mov ecx, esi
call fcn.00445a30
jmp 0x456eeb
lea eax, [ebp - 0x88]
push 0x4d8340
push eax
mov dword [ebp - 0x88], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x44]
push eax
push ecx
push edx
mov edx, dword [ebp - 0x1c]
mov ecx, esi
push edx
push 0
call fcn.004459d0
mov cx, word [esi + 0x18e]
mov eax, dword [ebp - 0x24]
add eax, ecx
cmp ax, word [ebp + 0x12]
mov dword [ebp - 0x24], eax
jb 0x456dfb
mov al, byte [ebp - 0x2c]
mov cl, byte [ebp - 0x12]
inc al
cmp al, cl
mov byte [ebp - 0x2c], al
jb 0x456dc1
mov eax, dword [ebp - 0x30]
inc eax
cmp ax, word [ebp - 0x18]
mov dword [ebp - 0x30], eax
jb 0x456d7e
mov edi, dword [ebp - 0x54]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
call ebx
mov al, byte [esi + 0x24]
cmp al, 0x92
je 0x456f49
cmp al, 0x96
je 0x456f49
test byte [esi + 0x110], 8
je 0x456fa4
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x10], 0x20
test eax, eax
je 0x456f5b
mov byte [ebp + 0x10], 0x21
mov ebx, dword [ebp + 0x10]
mov dx, word [esi + 0xf4]
mov al, byte [esi + 0xf2]
push ebx
push edx
push eax
push 1
mov ecx, esi
call fcn.00435a90
mov cl, byte [esi + 0xf2]
push 0
push ebx
push ecx
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov edx, dword [ebp + 8]
push 0xff
push 0
push 0
push edx
push 1
mov ecx, esi
call fcn.00436460
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
and eax, 0xff
mov ecx, esi
imul eax, ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
push eax
mov byte [ebp + 0x10], 0x40
mov dword [ebp - 0x1c], 0
call fcn.0044e9a0
mov ecx, edi
mov dword [ebp - 0x5c], eax
shl ecx, 6
cmp ecx, 0x800
jle 0x456ff2
shr byte [ebp + 0x10], 1
mov edx, dword [ebp + 0x10]
and edx, 0xff
imul edx, edi
cmp edx, 0x800
jg 0x456fdb
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 6
and eax, 0xff
imul eax, edi
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov byte [ebp - 0x54], al
mov eax, dword [ebp - 0x28]
and eax, 0xff
imul eax, edi
imul eax, ebx
add eax, 0x1000
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esi + 0x110]
add esp, 4
mov dword [ebp - 0x1c], ebx
test ah, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
je 0x45706d
mov al, byte [esi + 0x156]
test al, al
jne 0x45706d
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov ecx, esi
call fcn.00443910
mov byte [ebp + 0x14], 0
mov dl, byte [ebp + 0x14]
mov al, byte [ebp - 0x28]
cmp dl, al
jae 0x457382
mov edi, dword [ebp + 0x14]
mov cl, byte [esi + 0xee]
mov edx, edi
and edx, 0xff
mov al, byte [edx + 0x4bb0f8]
test cl, al
jne 0x457120
mov ecx, dword [ebp - 0x20]
mov edi, edx
imul edi, ecx
mov edx, dword [ebp + 0xc]
mov eax, 0xf0f0f0f0
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
inc byte [ebp + 0x14]
jmp 0x457071
test byte [esi + 0xb4], 0x40
je 0x4570e7
lea edx, [ebp - 0x90]
push 0x4d8340
push edx
mov dword [ebp - 0x90], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x45710b
lea eax, [ebp - 0x98]
push 0x4d8340
push eax
mov dword [ebp - 0x98], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x80]
push 0x4d8340
push ecx
mov dword [ebp - 0x80], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov byte [ebp + 8], 0
mov al, byte [ebp + 8]
mov cl, byte [ebp - 0x12]
cmp al, cl
jae 0x4572cd
mov edx, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
and edx, 0xff
test byte [edx + 0x4bb0f8], cl
jne 0x45718a
mov ecx, dword [ebp - 0x40]
mov ebx, edi
and ebx, 0xff
and ecx, 0xffff
imul ebx, dword [ebp - 0x20]
mov edi, edx
mov edx, dword [ebp + 0xc]
imul edi, ecx
add edx, ebx
mov eax, 0xf0f0f0f0
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
mov al, byte [ebp + 8]
mov ebx, dword [ebp - 0x1c]
inc al
mov byte [ebp + 8], al
jmp 0x457124
xor ebx, ebx
cmp bx, word [ebp - 0x40]
jae 0x45717d
test byte [esi + 0xb4], 0xe0
je 0x4571fe
test byte [esi + 0xb4], 0x40
je 0x4571bf
lea eax, [ebp - 0x8c]
push 0x4d8340
push eax
mov dword [ebp - 0x8c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x4571e3
lea ecx, [ebp - 0x9c]
push 0x4d8340
push ecx
mov dword [ebp - 0x9c], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x84]
push 0x4d8340
push edx
mov dword [ebp - 0x84], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x34]
fld qword [0x4bb910]
and ecx, 0xff
mov edx, dword [ebp - 0x38]
fsub qword [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x78], eax
fild qword [ebp - 0x68]
fmulp st(1)
fild qword [ebp - 0x7c]
fdivp st(1)
fadd qword [ebp - 0x4c]
fadd qword [0x4bb918]
fstp qword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
push eax
push ecx
lea eax, [esi + 0xbc]
push edx
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 4]
mov edx, dword [0x4e60fc]
add esp, 0x10
push 0
push ecx
push 0x40c
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
movzx cx, byte [ebp + 8]
imul ecx, dword [ebp - 0x40]
mov eax, edi
add ecx, ebx
and eax, 0xff
mov edx, ecx
imul eax, dword [ebp - 0x20]
and edx, 0xffff
add eax, edx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
imul eax, edx
mov edx, dword [ebp - 0x1c]
add eax, edx
mov dl, byte [esi + 0x3d00]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x54]
push eax
push edx
push ecx
push 0xf2
push edi
mov ecx, esi
call fcn.0044e4a0
movzx ax, byte [ebp + 0x10]
add ebx, eax
jmp 0x45718c
test byte [esi + 0x110], 8
je 0x45730a
mov cl, byte [esi + 0x2a98]
push ecx
mov ecx, esi
call fcn.004498f0
cmp al, 0x2c
jb 0x45730a
cmp byte [esi + 0x838], 0x10
jb 0x45730a
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
and eax, 0xff
push ebx
imul eax, dword [ebp - 0x20]
push edx
push eax
mov ecx, esi
call fcn.004517d0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x457338
mov cl, byte [esi + 0x3d0c]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
mov eax, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x20]
push edx
push ebx
push eax
push ecx
mov ecx, esi
call fcn.00478320
jmp 0x45735d
mov dl, byte [esi + 0x3d0c]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov ecx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x20]
push eax
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00451d80
mov eax, dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.004697e0
test ebx, ebx
je 0x45737a
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
inc byte [ebp + 0x14]
jmp 0x457071
mov dword [ebp - 4], 5
call dword [sym.imp.WINMM.dll_timeGetTime]
test byte [esi + 0x839], 4
je 0x4573ce
mov ecx, 0xc0
or eax, 0xffffffff
lea edi, [esi + 0x3f8]
mov byte [esi + 0xf2], 1
mov word [esi + 0xf4], 0xff
rep stosd dword es:[edi], eax
mov cx, word [esi + 0xf4]
mov dl, byte [esi + 0xf2]
push ecx
push edx
mov ecx, esi
call fcn.00435d00
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10