Function at 0x4548de
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
mov ebx, dword [edx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x38], eax
push esi
mov eax, 0xfffffffe
mov dword [esp + 0x40], ebx
cmp byte [ebx], 0x5f
lea edx, [ecx + 6]
push edi
mov edi, dword [ebp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], edx
jne 0x454958
movzx eax, byte [ebx + 3]
movzx edx, byte [ebx + 4]
shl eax, 8
or eax, edx
mov dword [esp + 0x34], eax
mov word [esp + 0x4c], ax
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov dword [edi + 0x20], edx
mov byte [ebx + 1], 0
mov byte [ebx + 2], 0
mov eax, dword [edi + 0x34]
lea ebx, [ebx + ecx + 3]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
cmp dword [ebp + 0x20], 0
mov dword [esp + 0x14], ebx
je 0x454980
mov eax, dword [esp + 0x38]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, 7
cmp ecx, dword [ebp + 0xc]
je 0x45499f
mov byte [ebx], 0x19
inc ebx
and al, 7
mov byte [ebx], al
inc ebx
add dword [esp + 0xc], 2
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0x1c], 0
je 0x4549c0
mov byte [ebx], 0x5c
inc ebx
mov byte [ebx], 0
mov dword [esp + 0x30], ebx
mov byte [ebx + 1], 0
add ebx, 2
add dword [esp + 0xc], 3
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x38]
mov eax, esi
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, edx
push eax
push edi
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0044cddd
add esp, 0x24
test eax, eax
je 0x454b2d
mov eax, dword [edi + 0x34]
cmp eax, dword [esp + 0x28]
jle 0x454a0f
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test esi, esi
jne 0x454aca
cmp byte [eax], 0x54
je 0x454a36
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
jmp 0x454a8d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
test ecx, ecx
jl 0x454a59
cmp ecx, edx
je 0x454a6d
cmp dword [esp + 0x10], 0
jge 0x454a51
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 0xffffffff
test edx, edx
jl 0x454a6d
mov ecx, dword [esp + 0x20]
test ecx, ecx
jge 0x454a71
mov ecx, edx
mov dword [esp + 0x20], ecx
jmp 0x454a71
mov ecx, dword [esp + 0x20]
mov edx, ecx
xor edx, dword [esp + 0x10]
test edx, 0xfffffdff
je 0x454a89
mov dword [esp + 0x10], 0xffffffff
jmp 0x454a8d
or dword [esp + 0x10], ecx
cmp dword [ebp + 0x1c], 0
je 0x454aca
mov ecx, dword [ebp + 8]
push edi
push 0
push ecx
push eax
mov byte [ebx], 0
call fcn.0043249e
add esp, 0x10
cmp eax, 0xfffffffd
jne 0x454ab4
mov dword [edi + 0x54], 1
jmp 0x454ac6
test eax, eax
jl 0x454b1b
mov ecx, dword [esp + 0x30]
mov edx, eax
sar edx, 8
mov byte [ecx], dl
mov byte [ecx + 1], al
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp byte [edx], 0x7c
jne 0x454b3f
test esi, esi
je 0x454af2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add dword [esp + 0xc], 3
mov eax, dword [ebp + 0x24]
inc edx
lea ebx, [ecx + eax + 3]
mov dword [esp + 0x18], edx
jmp 0x45496f
mov ecx, ebx
sub ecx, eax
sar ecx, 8
mov byte [ebx], 0x54
mov byte [ebx + 1], cl
mov cl, bl
sub cl, al
mov byte [ebx + 2], cl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
add ebx, 3
inc edx
mov dword [esp + 0x18], edx
jmp 0x45496f
mov ecx, dword [ebp + 0x18]
sub eax, 0xfffffffe
neg eax
sbb eax, eax
and eax, 0xfffffff5
add eax, 0x24
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x454b75
mov ecx, ebx
sub ecx, eax
lea esp, [esp]
movzx esi, byte [eax + 1]
movzx edx, byte [eax + 2]
shl esi, 8
or esi, edx
mov edx, ecx
sar edx, 8
mov byte [eax + 2], cl
mov byte [eax + 1], dl
sub eax, esi
mov ecx, esi
test esi, esi
jg 0x454b4e
mov esi, dword [ebp + 0x38]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x34], 0
jle 0x454b84
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
mov dword [edi + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov ecx, ebx
sub ecx, eax
sar ecx, 8
mov byte [ebx], 0x55
mov byte [ebx + 1], cl
mov cl, bl
sub cl, al
mov eax, dword [ebp + 8]
mov byte [ebx + 2], cl
mov ecx, dword [ebp + 0xc]
and eax, 7
add ebx, 3
cmp eax, ecx
je 0x454bc1
cmp byte [edx], 0x29
jne 0x454bc1
mov eax, dword [esp + 0xc]
mov byte [ebx], 0x19
inc ebx
mov byte [ebx], cl
inc ebx
add eax, 2
jmp 0x454bc5
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov edx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [edx], ecx
mov edx, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [edx], ecx
test esi, esi
je 0x454c0f
mov ecx, dword [esi]
mov edx, 0x7fffffeb
sub edx, ecx
cmp edx, eax
jge 0x454c0b
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ecx, eax
mov dword [esi], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret