Function at 0x45fef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.004b9bb0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0x164]
mov eax, dword [esi + 0x174]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov edx, dword [esi + 0x160]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor eax, eax
add ecx, edi
adc eax, ebx
mov dword [ebp - 0xc], edx
cmp eax, 0xf
ja 0x4600e7
jb 0x45ff41
cmp ecx, 0xffffffe0
ja 0x4600e7
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x45ff68
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call edx
add esp, 8
mov dword [esi + 0x16c], 0
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ebx, dword [esi + 0x168]
mov edi, dword [ebp + 0x10]
test ebx, ebx
mov dword [ebp + 8], eax
je 0x45ffc9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45ffb3
mov ecx, dword [ebp + 0xc]
mov al, byte [ebx + esi + 0x10]
xor al, byte [ecx]
mov byte [edi], al
mov dl, byte [ebx + esi + 0x40]
xor dl, al
inc edi
inc ecx
mov byte [ebx + esi + 0x40], dl
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
dec ecx
inc ebx
and ebx, 0xf
mov dword [ebp + 0x14], ecx
jne 0x45ff83
jmp 0x45ffbb
test ebx, ebx
jne 0x4600d8
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call dword [ebp - 0xc]
add esp, 8
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xc00
jb 0x460036
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push esi
push edx
push 0xc0
push edi
push eax
call dword [ebp + 0x18]
add dword [ebp + 8], 0xc0
mov eax, dword [ebp + 8]
bswap eax
mov dword [esi + 0xc], eax
push 0xc00
lea eax, [esi + 0x60]
push edi
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, 0xc00
add esp, 0x24
add edi, eax
add edx, eax
sub ecx, eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], eax
jne 0x45ffe1
mov eax, ecx
and eax, 0xfffffff0
mov dword [ebp + 0x10], eax
je 0x460092
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
shr eax, 4
push esi
push ecx
push eax
push edi
push edx
mov dword [ebp - 0xc], eax
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
add ecx, eax
sub edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
push eax
lea ecx, [esi + 0x60]
push edi
lea edx, [esi + 0x40]
push ecx
push edx
call dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0x24
add edi, eax
test ecx, ecx
je 0x4600d8
mov eax, dword [ebp - 4]
lea ecx, [esi + 0x10]
push eax
push ecx
push esi
call dword [esi + 0x170]
mov edx, dword [ebp + 8]
add esp, 0xc
inc edx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebx + edi]
dec eax
sub edx, edi
lea edi, [eax + 1]
mov al, byte [esi + ebx + 0x10]
xor al, byte [edx + ecx]
mov byte [ecx], al
xor byte [esi + ebx + 0x40], al
inc ebx
inc ecx
dec edi
jne 0x4600c6
mov dword [esi + 0x168], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret