Function at 0x454090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e0
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5b4], edi
mov dword [ebp - 0x5cc], ecx
mov dword [ebp - 0x5d4], ebx
cmp edi, 0x100
jbe 0x4540da
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x5c8], eax
jmp 0x4540e4
mov dword [ebp - 0x5c8], 0x10
push 0x44
lea eax, [ebp - 0x48]
mov dword [ecx], 0
push 0
push eax
call fcn.00478bc0
add esp, 0xc
mov ecx, esi
mov edx, edi
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x48]
sub edx, 1
jne 0x454100
cmp dword [ebp - 0x48], edi
jne 0x45412b
mov dword [ebx], edx
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c80
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp dword [ebp + ecx*4 - 0x48], 0
jne 0x45413d
inc ecx
cmp ecx, 0x10
jbe 0x454130
cmp dword [ebp - 8], 0
mov eax, 0x10
mov dword [ebp - 0x5a0], ecx
jne 0x45415c
nop
test eax, eax
je 0x45415c
dec eax
cmp dword [ebp + eax*4 - 0x48], 0
je 0x454150
mov edx, dword [ebx]
mov dword [ebp - 0x5b0], eax
cmp edx, ecx
jae 0x45416c
mov edx, ecx
jmp 0x454171
cmp edx, eax
cmova edx, eax
mov dword [ebx], edx
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x45418d
nop
sub edx, dword [ebp + ecx*4 - 0x48]
js 0x454115
inc ecx
add edx, edx
cmp ecx, eax
jb 0x454180
mov ecx, edx
sub edx, dword [ebp + eax*4 - 0x48]
mov dword [ebp - 0x5e0], edx
js 0x454115
mov dword [ebp + eax*4 - 0x48], ecx
lea edx, [ebp - 0x44]
xor ecx, ecx
lea edi, [ebp - 0x84]
mov dword [ebp - 0x88], ecx
sub eax, 1
je 0x4541cf
nop dword [eax]
add ecx, dword [edx]
lea edx, [edx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
sub eax, 1
jne 0x4541c0
mov eax, dword [ebp - 0x5b4]
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4541fc
mov eax, dword [ebp + edx*4 - 0x8c]
mov dword [ebp + eax*4 - 0x590], ecx
inc eax
mov dword [ebp + edx*4 - 0x8c], eax
mov eax, dword [ebp - 0x5b4]
inc ecx
cmp ecx, eax
jb 0x4541d7
mov ecx, dword [ebp - 0x5a0]
lea eax, [ebp - 0x590]
mov edx, dword [ebp - 0x5b0]
xor ebx, ebx
mov dword [ebp - 0x5b8], eax
xor edi, edi
or eax, 0xffffffff
mov dword [ebp - 0x59c], 0
xor esi, esi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x598], eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x5bc], edi
mov dword [ebp - 0x5c0], esi
cmp ecx, edx
jg 0x4545b9
lea edx, [ebp - 0x48]
lea edx, [edx + ecx*4]
mov dword [ebp - 0x5c4], edx
mov edx, dword [edx]
mov dword [ebp - 0x5ac], edx
test edx, edx
je 0x454591
dec ecx
mov edx, 1
rol edx, cl
mov ecx, dword [ebp - 0x5ac]
mov dword [ebp - 0x5dc], edx
lea edx, [eax*4]
nop dword [eax]
mov dword [ebp - 0x5d8], ecx
dec ecx
mov dword [ebp - 0x5ac], ecx
mov ecx, dword [ebp - 0x5a0]
cmp ecx, dword [ebp + edx - 0xcc]
jle 0x454436
mov ebx, dword [ebp - 0x5d4]
lea edi, [ebp - 0xd0]
inc eax
mov dword [ebp - 0x598], eax
shl eax, 2
mov esi, dword [ebx]
add edi, eax
mov dword [ebp - 0x5d0], eax
mov ebx, ecx
mov eax, dword [ebp - 0x5b0]
mov edx, dword [edi]
sub eax, edx
cmp eax, esi
mov dword [ebp - 0x594], edx
cmovbe esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x5d8]
jbe 0x454339
mov edx, dword [ebp - 0x5c4]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x5ac]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x454333
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x454333
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x454320
mov edx, dword [ebp - 0x594]
mov ecx, dword [ebp - 0x5c8]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x45434e
cmp edx, ecx
jge 0x45434e
mov ebx, ecx
sub ebx, edx
mov ecx, ebx
lea esi, [edx + ebx]
mov eax, 1
mov dword [edi + 4], esi
shl eax, cl
mov dword [ebp - 0x5c0], eax
push 1
lea eax, [eax*8 + 8]
push eax
call fcn.0047b53f
mov ecx, dword [ebp - 0x5cc]
add esp, 8
lea edi, [eax + 8]
add eax, 4
mov dword [ecx], edi
mov ecx, dword [ebp - 0x5d0]
mov dword [ebp - 0x5cc], eax
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x5bc], edi
mov dword [ebp + ecx - 0x110], edi
test eax, eax
je 0x45441c
mov eax, dword [ebp - 0x59c]
add bl, 0x10
mov dword [ebp + ecx - 0x8c], eax
mov edx, 1
mov al, byte [ebp - 0x594]
sub al, byte [ebp + ecx - 0xd4]
mov byte [ebp - 0x5a8], bl
mov ebx, dword [ebp - 0x594]
mov ecx, ebx
shl edx, cl
mov byte [ebp - 0x5a7], al
dec edx
mov eax, dword [ebp - 0x5d0]
and edx, dword [ebp - 0x59c]
mov dword [ebp - 0x5a4], edi
mov ecx, dword [ebp + eax - 0xd4]
mov eax, dword [ebp + eax - 0x114]
shr edx, cl
mov ecx, dword [ebp - 0x5a8]
mov dword [eax + edx*8], ecx
mov ecx, edi
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [ebp - 0x598]
jmp 0x454422
mov ebx, dword [ebp - 0x594]
mov ecx, dword [ebp - 0x5a0]
cmp ecx, esi
jg 0x4542c0
mov esi, dword [ebp - 0x5c0]
mov edi, dword [ebp - 0x5b4]
mov al, cl
mov edx, dword [ebp - 0x5b8]
sub al, bl
mov byte [ebp - 0x5a7], al
lea eax, [ebp - 0x590]
lea eax, [eax + edi*4]
cmp edx, eax
jb 0x454462
mov byte [ebp - 0x5a8], 0x63
jmp 0x4544b6
mov ecx, dword [edx]
add edx, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5b8], edx
cmp ecx, eax
jae 0x45448e
cmp ecx, 0x100
mov word [ebp - 0x5a4], cx
setb al
add al, 0xf
mov byte [ebp - 0x5a8], al
jmp 0x4544b0
sub ecx, eax
mov dword [ebp - 0x5b8], edx
mov eax, dword [ebp + 0x18]
mov al, byte [ecx + eax]
mov byte [ebp - 0x5a8], al
mov eax, dword [ebp + 0x14]
mov ax, word [eax + ecx*2]
mov word [ebp - 0x5a4], ax
mov ecx, dword [ebp - 0x5a0]
mov eax, dword [ebp - 0x59c]
sub ecx, ebx
mov edi, dword [ebp - 0x5bc]
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x4544f3
mov ecx, dword [ebp - 0x5a8]
mov ebx, dword [ebp - 0x5a4]
nop
mov dword [edi + eax*8], ecx
mov dword [edi + eax*8 + 4], ebx
add eax, edx
cmp eax, esi
jb 0x4544e0
mov ebx, dword [ebp - 0x594]
mov eax, dword [ebp - 0x5dc]
mov ecx, dword [ebp - 0x59c]
test ecx, eax
je 0x45450b
xor ecx, eax
shr eax, 1
test ecx, eax
jne 0x454503
mov edx, dword [ebp - 0x598]
xor ecx, eax
mov dword [ebp - 0x59c], ecx
mov eax, 1
mov ecx, ebx
shl edx, 2
shl eax, cl
dec eax
and eax, dword [ebp - 0x59c]
cmp eax, dword [ebp + edx - 0x8c]
je 0x454577
mov esi, dword [ebp - 0x59c]
mov edi, dword [ebp - 0x598]
dec edi
mov eax, 1
lea edx, [edi*4]
mov ebx, dword [ebp + edx - 0xd0]
mov ecx, ebx
shl eax, cl
dec eax
mov dword [ebp - 0x594], ebx
and eax, esi
cmp eax, dword [ebp + edx - 0x8c]
jne 0x454541
mov esi, dword [ebp - 0x5c0]
mov dword [ebp - 0x598], edi
mov ecx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x598]
test ecx, ecx
jne 0x4542a0
mov ecx, dword [ebp - 0x5a0]
mov edx, dword [ebp - 0x5c4]
inc ecx
add edx, 4
mov dword [ebp - 0x5a0], ecx
mov dword [ebp - 0x5c4], edx
cmp ecx, dword [ebp - 0x5b0]
jle 0x454272
mov edx, dword [ebp - 0x5b0]
cmp dword [ebp - 0x5e0], 0
mov ecx, dword [ebp - 0x5d4]
mov eax, dword [ebp - 0xcc]
mov dword [ecx], eax
je 0x4545eb
cmp edx, 1
je 0x4545eb
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
mov esp, ebp
pop ebp
ret