Function at 0x45cc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd0
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [eax + 0x60]
mov ebx, dword [edi + 0xc8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x10]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xc8], ecx
cmp ecx, eax
jne 0x45d046
push esi
lea esi, [ebp - 0xa4]
neg esi
and esi, 0xf
lea esi, [ebp + esi - 0xa4]
lea eax, [edi + 0x20]
lea ecx, [esi + 0x40]
lea edx, [esi + 0x30]
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xb8], edx
mov dword [eax], 0
push edi
cmp ebx, 0x40
ja 0x45ce3f
push 0x80
push 0x5d1288
push esi
mov dword [ebp - 0xcc], 0x80
call fcn.0053e100
push esi
lea esi, [edi + 0xd0]
call fcn.00492940
mov edx, dword [edi + 0x94]
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
mov dword [edi + 0x70], ecx
mov dword [eax], edx
mov edx, dword [edi + 0x98]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x9c]
mov dword [eax + 8], edx
mov edx, dword [edi + 0xa0]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc4]
add esp, 0x18
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], ecx
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ecx
cmp dword [eax + 8], ecx
je 0x45cda9
xor eax, eax
mov dword [ebp - 0xb4], eax
cmp ebx, ecx
jbe 0x45ce09
mov esi, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
sub edx, esi
sub ecx, esi
mov eax, esi
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], ebx
movzx ebx, byte [eax]
movzx ecx, byte [edx + eax]
xor ecx, ebx
mov ebx, dword [ebp - 0xc0]
mov byte [eax], cl
mov byte [ebx + eax], cl
inc eax
dec dword [ebp - 0xb0]
jne 0x45cd82
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
jmp 0x45ce0f
mov dword [ebp - 0xb4], ecx
cmp ebx, ecx
jbe 0x45ce07
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
sub edx, ecx
sub ecx, eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb4], ebx
jmp 0x45cde6
mov ecx, dword [ebp - 0xc0]
mov bl, byte [eax]
lea esi, [eax + ecx]
mov cl, byte [esi + edx]
xor bl, cl
mov byte [eax], cl
inc eax
dec dword [ebp - 0xbc]
mov byte [esi], bl
jne 0x45cde0
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
jmp 0x45ce09
mov eax, ecx
mov esi, dword [ebp - 0xb0]
add dword [ebp - 0xac], eax
add dword [ebp - 0xa8], eax
mov ebx, eax
neg ebx
and ebx, 0xf
push ebx
push ecx
add eax, esi
push eax
call fcn.0057e420
add ebx, dword [ebp - 0xb4]
add esp, 0xc
add esi, ebx
lea eax, [ebx + 0x10]
jmp 0x45cf4a
push 0x40
push 0x5d1288
push esi
mov dword [ebp - 0xcc], 0x40
call fcn.0053e100
push esi
lea esi, [edi + 0xd0]
call fcn.00492940
lea edx, [edi + 0x94]
push 0x10
push edx
lea esi, [edi + 0xd0]
mov dword [edi + 0x20], 1
mov dword [edi + 0x70], 0
call fcn.00492a10
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], eax
xor eax, eax
add esp, 0x20
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], eax
mov dword [ebp - 0xbc], eax
cmp dword [ecx + 8], eax
je 0x45ceea
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 0xa8]
lea eax, [edi + 0x20]
push eax
push edi
push ebx
push edx
push esi
call fcn.0053e100
push ebx
push esi
lea esi, [edi + 0xd0]
call fcn.00492a10
jmp 0x45cf16
mov eax, dword [ebp - 0xac]
push ebx
push eax
lea esi, [edi + 0xd0]
call fcn.00492a10
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
lea eax, [edi + 0x20]
push eax
push edi
push ebx
push ecx
push edx
call fcn.0053e100
add dword [ebp - 0xac], ebx
add dword [ebp - 0xa8], ebx
neg ebx
add esp, 0x1c
and ebx, 0xf
push ebx
push 0x5d1288
lea esi, [edi + 0xd0]
call fcn.00492a10
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb0]
add esp, 8
mov ecx, dword [edi + 0xa8]
mov dword [esi], ecx
mov edx, dword [edi + 0xac]
mov dword [esi + 4], edx
mov ecx, dword [edi + 0xb0]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xb4]
add eax, 0x10
push eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0xc], edx
push eax
lea esi, [edi + 0xd0]
call fcn.00492a10
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
push ecx
push edx
call fcn.00527a20
mov ebx, dword [ebp - 0xc4]
add esp, 0x10
cmp dword [ebx + 8], 0
lea eax, [edi + 0x84]
jne 0x45cfb1
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00492ad0
add esp, 4
mov dword [edi + 0xc8], 0xffffffff
cmp dword [ebx + 8], 0
pop esi
je 0x45d00a
mov ecx, dword [edi + 0x84]
mov eax, dword [ebp - 0xa8]
mov dword [eax], ecx
mov edx, dword [edi + 0x88]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x8c]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x90]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb8]
push 0x10
push eax
push ecx
call fcn.00527a90
add esp, 0xc
test eax, eax
je 0x45cff4
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xa8]
lea edx, [ecx - 0x10]
push edx
sub eax, ecx
add eax, 0x10
push 0
push eax
call fcn.0057e420
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret