Function at 0x45ef50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
push 0x44
xor ebx, ebx
lea edx, [ebp - 0x48]
push ebx
push edx
mov dword [ebp - 0x558], eax
mov dword [ebp - 0x570], ecx
mov dword [ebp - 0x588], esi
mov dword [ebp - 0x584], edi
mov byte [0x517018], 0
call fcn.00464140
mov edx, dword [ebp - 0x570]
add esp, 0xc
cmp edx, 0x100
jbe 0x45efc4
mov eax, dword [ebp - 0x558]
mov ecx, dword [eax + 0x400]
mov dword [ebp - 0x580], ecx
jmp 0x45efce
mov dword [ebp - 0x580], 0x10
mov ecx, dword [ebp - 0x558]
mov eax, dword [ecx]
inc dword [ebp + eax*4 - 0x48]
lea eax, [ebp + eax*4 - 0x48]
add ecx, 4
dec edx
jne 0x45efd4
mov edx, dword [ebp - 0x570]
cmp dword [ebp - 0x48], edx
jne 0x45f006
mov dword [esi], ebx
mov dword [edi], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
mov ecx, 1
jmp 0x45f010
cmp dword [ebp + ecx*4 - 0x48], ebx
jne 0x45f01c
inc ecx
cmp ecx, 0x10
jbe 0x45f010
mov edx, ecx
mov dword [ebp - 0x55c], edx
cmp dword [edi], ecx
jae 0x45f02a
mov dword [edi], ecx
mov eax, 0x10
nop
cmp dword [ebp + eax*4 - 0x48], ebx
jne 0x45f039
dec eax
jne 0x45f030
mov dword [ebp - 0x574], eax
cmp dword [edi], eax
jbe 0x45f045
mov dword [edi], eax
mov esi, 1
shl esi, cl
cmp ecx, eax
jae 0x45f061
sub esi, dword [ebp + ecx*4 - 0x48]
js 0x45f2b7
inc ecx
add esi, esi
cmp ecx, eax
jb 0x45f050
mov ecx, dword [ebp + eax*4 - 0x48]
sub esi, ecx
mov dword [ebp - 0x58c], esi
js 0x45f2b7
add ecx, esi
mov dword [ebp + eax*4 - 0x48], ecx
xor ecx, ecx
dec eax
mov dword [ebp - 0xcc], ebx
je 0x45f097
xor esi, esi
add ecx, dword [ebp + esi - 0x44]
add esi, 4
dec eax
mov dword [ebp + esi - 0xcc], ecx
jne 0x45f086
mov edi, dword [ebp - 0x558]
xor esi, esi
nop
mov eax, dword [edi]
add edi, 4
cmp eax, ebx
je 0x45f0c1
mov ecx, dword [ebp + eax*4 - 0xd0]
lea eax, [ebp + eax*4 - 0xd0]
mov dword [ebp + ecx*4 - 0x550], esi
inc ecx
mov dword [eax], ecx
inc esi
cmp esi, dword [ebp - 0x570]
jb 0x45f0a0
lea ecx, [ebp - 0x550]
or esi, 0xffffffff
xor edi, edi
mov dword [ebp - 0x578], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0x56c], ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x5d4], ebx
mov dword [ebp - 0x57c], ebx
cmp edx, dword [ebp - 0x574]
jg 0x45f466
lea eax, [ebp + edx*4 - 0x48]
mov dword [ebp - 0x558], eax
jmp 0x45f120
mov eax, dword [ebp - 0x558]
mov eax, dword [eax]
mov dword [ebp - 0x560], eax
test eax, eax
je 0x45f44c
jmp 0x45f140
mov eax, dword [ebp + esi*4 - 0x88]
dec dword [ebp - 0x560]
add eax, ebx
cmp edx, eax
jle 0x45f2f4
mov ecx, dword [ebp - 0x560]
inc ecx
mov dword [ebp - 0x590], ecx
lea ecx, [ebp - 0x5d4]
sub ecx, 4
mov dword [ebp - 0x594], ecx
jmp 0x45f180
mov edx, dword [ebp - 0x574]
mov edi, eax
mov eax, dword [ebp - 0x584]
mov eax, dword [eax]
sub edx, edi
inc esi
mov dword [ebp - 0x554], edi
cmp edx, eax
jbe 0x45f19f
mov edx, eax
mov ebx, dword [ebp - 0x55c]
sub ebx, edi
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x590]
jbe 0x45f1e9
mov edi, dword [ebp - 0x558]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x560]
inc ebx
add eax, ecx
cmp ebx, edx
jae 0x45f1e3
mov edi, edi
mov ecx, dword [edi + 4]
add edi, 4
add eax, eax
cmp eax, ecx
jbe 0x45f1e3
inc ebx
sub eax, ecx
cmp ebx, edx
jb 0x45f1d0
mov edi, dword [ebp - 0x554]
mov eax, dword [ebp - 0x580]
lea edx, [edi + ebx]
cmp edx, eax
jbe 0x45f1fe
cmp edi, eax
jae 0x45f1fe
mov ebx, eax
sub ebx, edi
mov ecx, ebx
mov edi, 1
shl edi, cl
xor ecx, ecx
mov edx, 8
mov dword [ebp + esi*4 - 0x88], ebx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00462d52
mov edx, dword [ebp - 0x588]
lea ecx, [eax + 8]
add eax, 4
add esp, 4
mov dword [edx], ecx
mov dword [ebp - 0x588], eax
mov dword [eax], 0
mov dword [ebp - 0x57c], ecx
mov dword [ebp + esi*4 - 0x5d4], ecx
test esi, esi
je 0x45f2cd
mov al, byte [ebp + esi*4 - 0x8c]
mov edx, dword [ebp - 0x578]
add bl, 0x10
mov byte [ebp - 0x567], al
mov dword [ebp - 0x564], ecx
mov byte [ebp - 0x568], bl
mov ebx, dword [ebp - 0x554]
mov ecx, ebx
mov eax, 1
shl eax, cl
sub ecx, dword [ebp + esi*4 - 0x8c]
mov dword [ebp + esi*4 - 0xd0], edx
dec eax
and eax, edx
mov edx, dword [ebp - 0x568]
shr eax, cl
mov ecx, dword [ebp - 0x594]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + eax*8], edx
mov edx, dword [ebp - 0x564]
mov dword [ecx + eax*8 + 4], edx
jmp 0x45f2d3
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x554]
mov eax, dword [ebp + esi*4 - 0x88]
add eax, ebx
cmp dword [ebp - 0x55c], eax
jg 0x45f180
mov ebx, dword [ebp - 0x554]
mov ecx, dword [ebp - 0x56c]
mov eax, dword [ebp - 0x570]
mov dl, byte [ebp - 0x55c]
sub dl, bl
lea eax, [ebp + eax*4 - 0x550]
mov byte [ebp - 0x567], dl
cmp ecx, eax
jb 0x45f31c
mov byte [ebp - 0x568], 0x63
jmp 0x45f37b
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x10]
jae 0x45f33f
mov dx, word [ecx]
cmp eax, 0x100
setb al
add al, 0xf
mov byte [ebp - 0x568], al
mov word [ebp - 0x564], dx
jmp 0x45f372
cmp dword [ebp + 0x18], 0
je 0x45f49d
cmp dword [ebp + 0x14], 0
je 0x45f49d
sub eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
add eax, eax
mov dl, byte [eax + edx]
mov byte [ebp - 0x568], dl
mov edx, dword [ebp + 0x14]
mov ax, word [eax + edx]
mov word [ebp - 0x564], ax
add ecx, 4
mov dword [ebp - 0x56c], ecx
mov ecx, dword [ebp - 0x55c]
mov eax, dword [ebp - 0x578]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x45f3c7
mov ecx, dword [ebp - 0x57c]
lea ecx, [ecx + eax*8]
mov ebx, dword [ebp - 0x568]
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x564]
mov dword [ecx + 4], ebx
lea ebx, [edx*8]
add eax, edx
add ecx, ebx
cmp eax, edi
jb 0x45f3a1
mov ebx, dword [ebp - 0x554]
mov ecx, dword [ebp - 0x55c]
mov edx, dword [ebp - 0x578]
dec ecx
mov eax, 1
shl eax, cl
test edx, eax
je 0x45f3e8
nop
xor edx, eax
shr eax, 1
test edx, eax
jne 0x45f3e0
xor edx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
mov dword [ebp - 0x578], edx
dec eax
and eax, edx
cmp eax, dword [ebp + esi*4 - 0xd0]
je 0x45f433
jmp 0x45f410
sub ebx, dword [ebp + esi*4 - 0x8c]
dec esi
mov eax, 1
mov ecx, ebx
shl eax, cl
dec eax
and eax, edx
cmp eax, dword [ebp + esi*4 - 0xd0]
jne 0x45f410
mov dword [ebp - 0x554], ebx
cmp dword [ebp - 0x560], 0
mov ecx, dword [ebp - 0x56c]
mov edx, dword [ebp - 0x55c]
jne 0x45f140
add dword [ebp - 0x558], 4
inc edx
mov dword [ebp - 0x55c], edx
cmp edx, dword [ebp - 0x574]
jle 0x45f120
cmp dword [ebp - 0x58c], 0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x584]
mov dword [edx], ecx
je 0x45f48a
mov eax, 1
cmp dword [ebp - 0x574], eax
jne 0x45f48c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [0x517018], 1
xor eax, eax
pop ebx
call fcn.00462838
mov esp, ebp
pop ebp
ret