Function at 0x455700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push esi
mov esi, ecx
push edi
xor bl, bl
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x34]
mov ecx, dword [esi + 0x16c]
test al, al
mov byte [ebp - 0x24], al
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x38], bl
jbe 0x455792
mov edi, dword [ebp - 0x24]
mov dl, byte [esi + 0xee]
mov eax, edi
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x455759
inc bl
inc ecx
dec eax
jne 0x455753
mov byte [ebp - 0x38], bl
mov eax, dword [ebp + 0x10]
mov dl, 0xa4
mov cl, 0xb4
mov byte [ebp - 0x4c], 1
test eax, eax
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x34], cl
je 0x4557ad
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x4557a5
dec eax
je 0x455797
dec eax
je 0x4557a5
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x34], cl
jmp 0x4557ad
mov edi, dword [ebp - 0x24]
jmp 0x455760
mov byte [ebp - 0x14], 0xa6
mov byte [ebp - 0x34], 0xb6
mov byte [ebp - 0x19], 1
jmp 0x4557ad
mov byte [ebp - 0x14], 0xa5
mov byte [ebp - 0x34], 0xb5
cmp byte [esi + 0x85f], 0xff
je 0x455896
cmp byte [esi + 0x150], 2
jne 0x45586a
mov cl, byte [esi + 0x171]
mov eax, dword [ebp - 0x18]
mov ebx, ecx
xor edx, edx
and ebx, 0xff
div ebx
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x24]
test al, al
jbe 0x455896
xor ebx, ebx
and edi, 0xff
mov dword [ebp - 0x2c], edi
test cl, cl
mov byte [ebp + 0x10], 0
jbe 0x45585a
mov edx, dword [ebp + 0x10]
and edx, 0xff
mov eax, edx
and eax, 0x80000001
jns 0x455814
dec eax
or eax, 0xfffffffe
inc eax
xor ecx, ecx
mov cl, byte [esi + 0x85f]
cmp eax, ecx
jne 0x455848
mov ecx, dword [ebp - 0x28]
mov eax, 0xf0f0f0f0
and ecx, 0xffff
mov edi, ecx
imul edi, edx
mov edx, dword [ebp + 0xc]
add edi, ebx
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 al, byte [ebp + 0x10]
mov cl, byte [esi + 0x171]
inc al
cmp al, cl
mov byte [ebp + 0x10], al
jb 0x4557fd
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
add ebx, edx
dec eax
mov dword [ebp - 0x2c], eax
jne 0x4557f5
jmp 0x455896
mov eax, edi
xor ecx, ecx
and eax, 0xff
imul eax, dword [ebp - 0x18]
test eax, eax
jbe 0x455896
mov edi, dword [ebp + 0xc]
mov bl, byte [esi + 0x85f]
mov edx, ecx
and edx, 1
cmp dl, bl
jne 0x455891
mov byte [ecx + edi], 0xf0
inc ecx
cmp ecx, eax
jb 0x45587e
mov al, byte [esi + 0x839]
xor ebx, ebx
test al, 4
mov dword [ebp - 0x58], ebx
je 0x4558f1
mov eax, dword [ebp + 0x18]
mov ecx, 0xc0
neg eax
sbb eax, eax
lea edi, [esi + 0x3f8]
and al, 0xfc
mov byte [esi + 0xf2], 4
add eax, 8
mov ebx, 1
mov word [esi + 0xf4], ax
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov cx, word [esi + 0xf4]
mov dl, byte [esi + 0xf2]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 0x4c], 2
mov dword [ebp - 0x58], ebx
call fcn.00435d00
mov ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push 5
push eax
push ecx
push 1
mov ecx, esi
call fcn.00435a90
mov dl, byte [esi + 0xf2]
push 0
push 5
push edx
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push 0xff
push 0
push eax
push ecx
push 1
mov ecx, esi
call fcn.00436460
test ebx, ebx
je 0x45594a
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x455ad5
call dword [sym.imp.WINMM.dll_timeGetTime]
lea edx, [ebp - 0x28]
push str.IDS_STS_ERASE_ALL
push edx
call dword [0x4e610c]
add esp, 8
xor edi, edi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.004a57ee
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebp - 0x19]
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0x14], edi
shr ebx, cl
and eax, 0xff
mov byte [ebp + 0x10], 0
imul eax, ebx
mov dword [ebp - 0x2c], eax
mov al, byte [ebp - 0x24]
test al, al
jbe 0x455a8e
mov eax, dword [ebp + 0x10]
mov dl, byte [esi + 0xee]
and eax, 0xff
mov cl, byte [eax + 0x4bb0f8]
test dl, cl
je 0x455a7b
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
imul eax, ecx
add eax, edi
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.00443990
xor edi, edi
test ebx, ebx
jbe 0x455a6c
test byte [esi + 0xb4], 0xe0
jne 0x455ce0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2c]
add eax, 0x100
mov dword [ebp - 0x68], edx
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x44]
fmul qword [0x4b75e8]
fild qword [ebp - 0x68]
fdivp st(1)
fstp qword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
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]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
push edi
push eax
push ecx
mov ecx, esi
call fcn.00445980
add edi, 0x100
cmp edi, ebx
jb 0x4559e1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x48]
push edx
push eax
mov ecx, esi
call fcn.00443a80
mov al, byte [ebp + 0x10]
mov cl, byte [ebp - 0x24]
inc al
cmp al, cl
mov byte [ebp + 0x10], al
jb 0x4559a4
mov edx, dword [ebp - 0x20]
push 0x40590000
push 0
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]
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38c]
push eax
push ecx
push 1
mov ecx, esi
call fcn.00436000
lea edx, [ebp - 0x48]
mov edi, eax
push str.IDS_STS_SCAN_BAD_BLOCK
push edx
mov dword [ebp - 0x20], edi
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 3
call fcn.004a57ee
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x19]
mov edx, dword [ebp - 0x38]
xor ebx, ebx
mov bx, word [esi + 0x18e]
and edx, 0xff
shr eax, cl
mov dword [ebp - 0x28], edx
xor edx, edx
mov ecx, edi
mov edi, dword [ebp - 0x4c]
and edi, 0xff
and ecx, 0xffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x40], ecx
div ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp + 0x14], 0
mov byte [ebp + 0x10], 0
mov ebx, eax
mov al, byte [ebp - 0x24]
imul ebx, edi
imul ebx, ecx
imul ebx, dword [ebp - 0x28]
test al, al
jbe 0x455d0a
mov eax, dword [ebp + 0x10]
mov dl, byte [esi + 0xee]
and eax, 0xff
mov cl, byte [eax + 0x4bb0f8]
test dl, cl
je 0x455ccb
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
imul eax, ecx
add eax, edx
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x64], eax
call fcn.00443990
cmp word [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
jbe 0x455cbc
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x18]
and edx, 0xffff
push ecx
mov ecx, esi
mov ax, word [ebp + edx*2 - 0x38c]
push eax
mov dword [ebp - 0x50], eax
call fcn.00443910
mov eax, dword [ebp - 0x14]
xor edi, edi
test eax, eax
jbe 0x455ca8
test byte [esi + 0xb4], 0xe0
jne 0x455cf5
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x58]
inc ecx
test eax, eax
mov dword [ebp + 0x14], ecx
je 0x455c1a
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], 0x32
test eax, eax
jne 0x455c21
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], eax
fild qword [ebp - 0x78]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x54]
fmul qword [0x4bb918]
fild qword [ebp - 0x70]
fdivp st(1)
fiadd dword [ebp - 0x2c]
fstp qword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
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]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0x10]
push 0x400
push eax
push edi
push ecx
push edx
mov ecx, esi
call fcn.004459d0
xor eax, eax
mov ax, word [esi + 0x18e]
add edi, eax
mov eax, dword [ebp - 0x14]
cmp edi, eax
jb 0x455bf1
mov eax, dword [ebp - 0x38]
inc eax
cmp ax, word [ebp - 0x20]
mov dword [ebp - 0x38], eax
jb 0x455bc4
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x64]
push ecx
push edx
mov ecx, esi
call fcn.00443a80
mov al, byte [ebp + 0x10]
mov cl, byte [ebp - 0x24]
inc al
cmp al, cl
mov byte [ebp + 0x10], al
jb 0x455b7f
jmp 0x455d0a
lea ecx, [ebp - 0x80]
push 0x4d8340
push ecx
mov dword [ebp - 0x80], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x7c]
push 0x4d8340
push eax
mov dword [ebp - 0x7c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
call ebx
test byte [esi + 0x110], 8
je 0x455d78
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x14], 0x20
test eax, eax
je 0x455d2f
mov byte [ebp + 0x14], 0x21
mov ebx, dword [ebp + 0x14]
mov cx, word [esi + 0xf4]
mov dl, byte [esi + 0xf2]
push ebx
push ecx
push edx
push 1
mov ecx, esi
call fcn.00435a90
mov al, byte [esi + 0xf2]
push 0
push ebx
push eax
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov ecx, dword [ebp + 8]
push 0xff
push 0
push 0
push ecx
push 1
mov ecx, esi
call fcn.00436460
imul edi, dword [ebp - 0x28]
imul edi, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov ecx, esi
push edx
mov dword [ebp - 0x2c], edi
mov byte [ebp + 0x14], 0x40
mov dword [ebp - 0x14], 0
call fcn.0044e9a0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, ecx
shl eax, 6
cmp eax, 0x800
jle 0x455dc6
shr byte [ebp + 0x14], 1
mov ebx, dword [ebp + 0x14]
mov edx, ebx
and edx, 0xff
imul edx, ecx
cmp edx, 0x800
jg 0x455dab
jmp 0x455dc9
mov ebx, dword [ebp + 0x14]
mov eax, ebx
mov edi, dword [ebp - 0x24]
and eax, 0xff
mov byte [ebp - 4], 6
imul eax, ecx
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov byte [ebp - 0x64], al
mov eax, edi
and eax, 0xff
imul eax, ecx
imul eax, dword [ebp - 0x18]
add eax, 0x1000
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x14], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp + 0x10], 0
mov cl, byte [ebp + 0x10]
mov al, byte [ebp - 0x24]
cmp cl, al
jae 0x455fd6
mov eax, dword [ebp + 0x10]
and eax, 0xff
mov dword [ebp - 0x28], eax
mov dl, byte [eax + 0x4bb0f8]
mov al, byte [esi + 0xee]
test al, dl
jne 0x455e7d
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
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
mov al, byte [ebp + 0x10]
mov edi, dword [ebp - 0x24]
inc al
mov byte [ebp + 0x10], al
jmp 0x455e26
xor edi, edi
cmp edi, dword [ebp - 0x18]
jae 0x455e70
test byte [esi + 0xb4], 0xe0
je 0x455ef0
test byte [esi + 0xb4], 0x40
je 0x455eb1
lea eax, [ebp - 0x88]
push 0x4d8340
push eax
mov dword [ebp - 0x88], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x455ed5
lea ecx, [ebp - 0x84]
push 0x4d8340
push ecx
mov dword [ebp - 0x84], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x8c]
push 0x4d8340
push edx
mov dword [ebp - 0x8c], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x14]
mov eax, ebx
and eax, 0xff
mov dword [ebp - 0x5c], eax
add ecx, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x14], ecx
test eax, eax
je 0x455f17
mov eax, dword [ebp + 0x18]
mov dword [ebp + 8], 0x32
test eax, eax
jne 0x455f1e
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
fld qword [0x4bb910]
fsub qword [ebp - 0x3c]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x4c]
fild qword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
fmulp st(1)
fild qword [ebp - 0x78]
and edx, 0xff
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x54]
fdivp st(1)
fild dword [ebp - 0x40]
fdivr qword [0x4bb918]
faddp st(1)
fiadd dword [ebp + 8]
fadd qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
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]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
imul eax, dword [ebp - 0x18]
add eax, edi
and ecx, 0xffff
imul eax, ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
add eax, ecx
push 0xff
push eax
mov eax, dword [ebp + 0x10]
push edx
push ebx
push edi
push 0xf5
push eax
mov ecx, esi
call fcn.0044e4a0
add edi, dword [ebp - 0x5c]
jmp 0x455e7f
and edi, 0xff
mov ecx, dword [ebp - 0x14]
mov ebx, edi
mov edx, dword [ebp - 0x20]
imul ebx, dword [ebp - 0x18]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004517d0
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
test eax, eax
mov al, byte [esi + 0x3d0c]
push eax
push edi
push ecx
push edx
push ebx
mov ecx, esi
je 0x456016
call fcn.00478320
jmp 0x45601b
call fcn.00451d80
push edi
mov ecx, esi
call fcn.004697e0
mov dword [ebp - 4], 5
call dword [sym.imp.WINMM.dll_timeGetTime]
test byte [esi + 0x839], 4
je 0x45606f
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 ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push eax
push ecx
mov ecx, esi
call fcn.00435d00
lea ecx, [ebp - 0x54]
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 0x14