Function at 0x451e00
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x48
mov dword [0x485cf8], 1
mov dword [0x57fbe0], 0x200000
push ebx
push ebp
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov dword [0x57fbe4], 0x100000
mov byte [0x57fbf4], 0
je 0x451e6e
cmp dword [0x4a1ea8], esi
je 0x451eb4
push esi
call fcn.0042b3e0
add esp, 4
test eax, eax
je 0x451e66
mov edi, dword [0x549468]
mov ecx, 0xfba
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x549468]
mov dword [eax], 0xcafebabe
mov dword [0x4a1ea8], esi
jmp 0x451eb4
mov eax, dword [0x4a0684]
mov ecx, dword [0x4a1ea8]
cmp ecx, eax
je 0x451eb4
cmp eax, 5
jge 0x451eaf
push eax
call fcn.0042b3e0
add esp, 4
test eax, eax
je 0x451eaa
mov edi, dword [0x549468]
mov ecx, 0xfba
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x549468]
mov dword [ecx], 0xcafebabe
mov eax, dword [0x4a0684]
mov dword [0x4a1ea8], eax
call fcn.0043d4e0
call fcn.00440fb0
mov eax, dword [0x57e72c]
mov edi, dword [0x5764d0]
test eax, eax
lea edx, [esp + 0x30]
jne 0x451ed7
mov edi, dword [0x5764cc]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call fcn.0043f670
xor edx, edx
add esp, 4
mov dx, word [0x514aae]
lea eax, [esp + 0x30]
push edx
push eax
mov eax, dword [0x58bb98]
mov ecx, dword [0x58bb9c]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
lea eax, [ecx + ecx]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
call fcn.00430670
mov eax, dword [0x58bb9c]
mov ecx, dword [0x58bb98]
cdq
and edx, 0xf
add esp, 0x10
add eax, edx
mov ebp, eax
mov eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [0x4a0684]
sar ebx, 1
sar ebp, 4
sub ebx, 0x28
cmp eax, 5
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x5c], ebx
jge 0x451fb7
shl eax, 4
mov esi, 0x10
lea eax, [eax + ebx - 9]
cmp eax, ecx
jge 0x451ffb
lea edx, [eax + 0x10]
cmp edx, ecx
jl 0x451f88
sub ecx, eax
mov esi, ecx
imul eax, dword [0x58bba0]
mov ecx, dword [0x58bba4]
add eax, ebp
test esi, esi
lea edx, [eax + ecx + 8]
jle 0x451ffb
mov ecx, 0x28
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x58bba0]
add edx, ecx
dec esi
jne 0x451f9f
jmp 0x451ffb
lea eax, [ebx + 0x57]
mov esi, 0x1a
cmp eax, ecx
jge 0x451ffb
lea edx, [eax + 0x1a]
cmp edx, ecx
jl 0x451fce
sub ecx, eax
mov esi, ecx
imul eax, dword [0x58bba0]
mov ecx, dword [0x58bba4]
add eax, ebp
test esi, esi
lea edx, [eax + ecx + 8]
jle 0x451ffb
mov ecx, 0x19
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x58bba0]
add edx, ecx
dec esi
jne 0x451fe5
xor eax, eax
mov edi, ebx
lea esi, [eax + 1]
lea edx, [esp + 0x30]
push esi
push 0x48454c
push edx
call fcn.0047aba0
xor eax, eax
add esp, 0xc
mov ax, word [0x514aae]
lea ecx, [esp + 0x30]
inc eax
push eax
push ecx
push edi
push 8
call fcn.00430670
mov eax, esi
add esp, 0x10
add edi, 0x10
cmp eax, 5
jl 0x451fff
mov edx, dword [0x4a0684]
cmp edx, 5
jge 0x45212f
mov cl, byte [0x4868a6]
mov ax, word [0x4868a4]
lea edi, [edx + 0x1fc]
mov byte [esp + 0x32], cl
mov ecx, dword [0x549468]
mov word [esp + 0x30], ax
shl edi, 5
add edi, ecx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea eax, [ebp + 8]
mov cx, word [0x514aae]
mov dword [esp + 0x14], eax
inc ecx
push ecx
lea ecx, [esp + 0x34]
shl edx, 4
add edx, ebx
push ecx
push edx
push eax
call fcn.00430670
mov edx, dword [0x4a0684]
mov ecx, dword [0x58bb98]
shl edx, 4
add esp, 0x10
mov eax, 0x10
lea esi, [edx + ebx - 9]
cmp esi, ecx
jge 0x4521ae
lea edx, [esi + 0x10]
cmp edx, ecx
jl 0x4520ec
mov eax, ecx
sub eax, esi
test eax, eax
jle 0x4521ae
mov edx, eax
mov eax, esi
mov ecx, dword [0x58bba4]
imul eax, dword [0x58bba0]
add eax, ebp
mov edi, 0xa0
lea ecx, [eax + ecx + 8]
xor eax, eax
mov al, byte [ecx]
test eax, eax
jne 0x45211d
mov byte [ecx], 0x81
jmp 0x452125
and al, 0xf
mov bl, 0x8f
sub bl, al
mov byte [ecx], bl
inc ecx
dec edi
jne 0x452110
inc esi
dec edx
jne 0x4520f6
jmp 0x4521ae
mov ecx, dword [0x5766ec]
xor edx, edx
mov dx, word [0x514aae]
add ebx, 0x60
push edx
lea eax, [ebp + 8]
push ecx
push ebx
push eax
mov dword [esp + 0x24], eax
call fcn.00430670
mov ecx, dword [0x58bb98]
lea esi, [ebx - 9]
add esp, 0x10
cmp esi, ecx
mov eax, 0x1a
jge 0x4521ae
lea edx, [esi + 0x1a]
cmp edx, ecx
jl 0x452171
mov eax, ecx
sub eax, esi
test eax, eax
jle 0x4521ae
mov edx, eax
mov eax, esi
mov ecx, dword [0x58bba4]
imul eax, dword [0x58bba0]
add eax, ebp
mov edi, 0x64
lea ecx, [eax + ecx + 8]
xor eax, eax
mov al, byte [ecx]
test eax, eax
jne 0x45219e
mov byte [ecx], 0x81
jmp 0x4521a6
and al, 0xf
mov bl, 0x8f
sub bl, al
mov byte [ecx], bl
inc ecx
dec edi
jne 0x452191
inc esi
dec edx
jne 0x452177
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x18], 0
mov ebx, 0x3f80
mov edx, dword [esp + 0x18]
mov eax, dword [0x4a0684]
cmp edx, eax
je 0x45222e
mov ax, word [0x4868a4]
mov cl, byte [0x4868a6]
mov edx, dword [0x549468]
mov word [esp + 0x30], ax
mov byte [esp + 0x32], cl
or ecx, 0xffffffff
lea edi, [edx + ebx]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x514aae]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc eax
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
push edx
call fcn.00430670
add esp, 0x10
mov esi, dword [esp + 0x18]
add ebx, 0x20
inc esi
add ebp, 0x10
cmp ebx, 0x4020
mov dword [esp + 0x18], esi
jl 0x4521bf
cmp dword [0x4a0684], 5
jge 0x452277
mov edx, dword [esp + 0x5c]
mov ecx, dword [0x5766ec]
xor eax, eax
add edx, 0x60
mov ax, word [0x514aae]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00430670
add esp, 0x10
mov ecx, dword [0x549468]
cmp dword [ecx], 0xcafebabe
jne 0x45241b
mov esi, dword [0x58bb9c]
cmp esi, 0x190
jg 0x4522de
mov eax, 0x55555556
mov ecx, dword [0x58bba4]
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x58bb98]
mov edi, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, dword [0x58bba0]
add ecx, eax
mov eax, 0x2aaaaaab
imul dword [0x58bb98]
mov eax, edx
lea ecx, [ecx + edi*2 - 8]
shr eax, 0x1f
add edx, eax
mov eax, edx
jmp 0x45230a
mov eax, esi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [0x58bb98]
cdq
and edx, 3
add eax, edx
mov edx, dword [0x58bba4]
sar eax, 2
mov ecx, eax
imul ecx, dword [0x58bba0]
sar edi, 1
add ecx, edi
lea ecx, [ecx + edx - 8]
test eax, eax
jle 0x4523ec
mov ebp, eax
test edi, edi
mov byte [esp + 0x10], 0x88
jle 0x452373
mov esi, edi
mov eax, dword [0x58bbb0]
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
mov eax, dword [eax + 0x58be00]
mov dword [0x58bbb0], edx
mov ebx, dword [edx + 0x58be00]
xor ebx, eax
and eax, 7
mov dword [edx + 0x58be00], ebx
mov edx, dword [esp + 0x10]
and edx, 0xff
lea eax, [eax + edx + 0x83]
cdq
sub eax, edx
sar eax, 1
mov byte [ecx], al
inc ecx
dec esi
mov byte [esp + 0x10], al
jne 0x45231f
mov eax, dword [0x58bba0]
sub eax, edi
add ecx, eax
test edi, edi
jle 0x4523d6
mov esi, edi
mov eax, dword [0x58bbb0]
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
mov eax, dword [eax + 0x58be00]
mov dword [0x58bbb0], edx
mov ebx, dword [edx + 0x58be00]
xor ebx, eax
and eax, 7
mov dword [edx + 0x58be00], ebx
mov edx, dword [esp + 0x10]
and edx, 0xff
lea eax, [eax + edx + 0x88]
cdq
sub eax, edx
sar eax, 1
mov byte [ecx], al
inc ecx
dec esi
mov byte [esp + 0x10], al
jne 0x452382
mov eax, dword [0x58bba0]
sub eax, edi
add ecx, eax
dec ebp
jne 0x452314
mov esi, dword [0x58bb9c]
mov edx, dword [0x5766e8]
xor ecx, ecx
mov cx, word [0x514aae]
push ecx
mov ecx, dword [0x58bb98]
mov eax, ecx
push edx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov eax, esi
add ecx, 0x10
push ecx
jmp 0x452816
mov edi, dword [0x58bb9c]
cmp edi, 0x190
jg 0x452489
mov eax, 0x55555556
mov ebx, dword [0x58bb98]
imul edi
mov eax, edx
mov ecx, dword [0x58bba4]
shr eax, 0x1f
add edx, eax
mov eax, ebx
mov ebp, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, dword [0x58bba0]
add ecx, eax
mov eax, 0x1e00000
cdq
idiv edi
lea ecx, [ecx + ebp*2 - 8]
mov dword [esp + 0x18], eax
mov eax, 0x12c0000
cdq
idiv ebx
mov dword [esp + 0x14], eax
mov eax, 0x2aaaaaab
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
jmp 0x4524d6
mov ebx, dword [0x58bb98]
mov eax, edi
cdq
sub eax, edx
mov ebp, eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
mov edx, dword [0x58bba4]
mov esi, eax
mov eax, 0x1400000
sar esi, 2
mov ecx, esi
mov dword [esp + 0x10], esi
imul ecx, dword [0x58bba0]
sar ebp, 1
add ecx, ebp
lea ecx, [ecx + edx - 8]
cdq
idiv edi
mov dword [esp + 0x18], eax
mov eax, 0xc80000
cdq
idiv ebx
mov dword [esp + 0x14], eax
xor edi, edi
xor esi, esi
mov eax, esi
add esi, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
sub al, 0x7c
mov byte [esp + edi + 0x20], al
inc edi
cmp esi, 0x30
jl 0x4524da
mov eax, dword [esp + 0x10]
xor edi, edi
cmp ebx, 0x190
mov dword [esp + 0x5c], edi
jle 0x452604
test eax, eax
jle 0x4526f2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [0x549468]
sar eax, 0x10
xor edi, edi
mov byte [esp + 0x10], 0x88
lea esi, [eax + eax*4]
shl esi, 5
add esi, edx
test ebp, ebp
jle 0x452563
mov ebx, ebp
mov edx, edi
xor eax, eax
sar edx, 0x10
mov al, byte [edx + esi]
mov edx, dword [esp + 0x10]
and edx, 0xff
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
mov byte [ecx], al
inc ecx
add edi, edx
dec ebx
mov byte [esp + 0x10], al
jne 0x452538
mov eax, dword [0x58bba0]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
sub eax, ebp
add ecx, eax
add esi, edx
test ebp, ebp
mov dword [esp + 0x5c], esi
jle 0x4525d9
mov esi, ebp
mov edx, dword [0x58bba0]
mov eax, ecx
sub eax, edx
mov dl, byte [eax]
mov eax, dword [0x58bbb0]
mov byte [esp + 0x10], dl
mov dl, al
add dl, 4
sub al, 0x2c
and edx, 0xff
and eax, 0xff
mov dword [0x58bbb0], edx
mov eax, dword [eax + 0x58be00]
mov ebx, dword [edx + 0x58be00]
xor ebx, eax
and al, 3
mov dword [edx + 0x58be00], ebx
mov edx, dword [esp + 0x10]
and edx, 0xff
mov dl, byte [esp + edx - 0x60]
sub dl, al
mov byte [ecx], dl
inc ecx
dec esi
jne 0x452580
mov eax, dword [0x58bba0]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
sub eax, ebp
add ecx, eax
mov eax, dword [esp + 0x1c]
add esi, edx
dec eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], eax
jne 0x452516
jmp 0x4526f2
test eax, eax
jle 0x4526f2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x45261a
mov edi, dword [esp + 0x5c]
mov esi, dword [0x549468]
mov eax, edi
sar eax, 0x10
lea eax, [eax + eax*4]
shl eax, 5
add eax, esi
xor esi, esi
test ebp, ebp
jle 0x45264a
mov edx, ebp
mov ebx, esi
sar ebx, 0x10
inc ecx
mov bl, byte [ebx + eax]
mov byte [ecx - 1], bl
mov ebx, dword [esp + 0x18]
add esi, ebx
dec edx
jne 0x452635
mov eax, dword [esp + 0x14]
mov edx, dword [0x58bba0]
add edi, eax
sub edx, ebp
mov eax, edi
add ecx, edx
mov edx, dword [0x549468]
mov dword [esp + 0x5c], edi
sar eax, 0x10
xor edi, edi
lea esi, [eax + eax*4]
shl esi, 5
add esi, edx
test ebp, ebp
jle 0x4526cc
mov ebx, ebp
mov eax, edi
sar eax, 0x10
mov dl, byte [eax + esi]
mov eax, dword [0x58bbb0]
mov byte [esp + 0x10], dl
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
mov dword [0x58bbb0], edx
mov eax, dword [eax + 0x58be00]
xor dword [edx + 0x58be00], eax
mov edx, dword [esp + 0x10]
and edx, 0xff
and al, 1
mov dl, byte [esp + edx - 0x60]
sub dl, al
mov byte [ecx], dl
mov edx, dword [esp + 0x18]
inc ecx
add edi, edx
dec ebx
jne 0x452679
mov eax, dword [0x58bba0]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
sub eax, ebp
add ecx, eax
mov eax, dword [esp + 0x1c]
add esi, edx
dec eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], eax
jne 0x452616
mov ecx, dword [0x58bb98]
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [0x549468]
sar eax, 2
sub ecx, eax
mov ax, word [0x4868a4]
add ecx, 0x10
mov word [esp + 0x30], ax
mov ebx, ecx
mov cl, byte [0x4868a6]
mov byte [esp + 0x32], cl
lea edi, [edx + 0x3ec0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
mov ax, word [0x514aae]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc eax
push eax
mov eax, dword [0x58bb9c]
cdq
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
sub eax, edx
push ecx
push ebx
sar eax, 1
push eax
call fcn.00430670
mov eax, dword [0x549468]
add esp, 0x10
mov ecx, dword [eax + 0x3ee0]
mov eax, dword [eax + 0x3ee4]
cmp eax, 4
ja case.default.0x45278b
jmp dword [eax*4 + 0x452838]
mov edi, dword [0x5766f0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4527f5
mov edx, dword [0x576554]
jmp 0x4527d9
mov edx, dword [0x576558]
jmp 0x4527d9
mov edx, dword [0x57655c]
jmp 0x4527d9
mov edx, dword [0x576560]
mov eax, dword [0x5766f4]
push edx
push ecx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0047aba0
add esp, 0x10
jmp 0x4527f5
mov byte [esp + 0x30], 0
mov al, byte [esp + 0x30]
add ebx, 0x10
test al, al
je 0x452824
xor edx, edx
lea eax, [esp + 0x30]
mov dx, word [0x514aae]
inc edx
push edx
push eax
mov eax, dword [0x58bb9c]
push ebx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00430670
add esp, 0x10
push 1
call fcn.0043d550
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret