Function at 0x454150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x160]
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x454312
jb 0x454185
cmp eax, 0xffffffe0
ja 0x454312
cmp dword [edi + 0x15c], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
je 0x4541ae
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00454e20
add esp, 8
mov dword [edi + 0x15c], 0
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [edi + 0x158]
mov dword [ebp - 0x10], esi
bswap eax
mov dword [ebp - 8], eax
test esi, esi
je 0x454213
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov dword [ebp + 0x18], eax
test ebx, ebx
je 0x4541f9
mov cl, byte [eax]
dec ebx
inc eax
mov dword [ebp + 0x18], eax
mov al, byte [esi + edi + 0x10]
xor al, cl
mov byte [edx], al
inc edx
xor byte [esi + edi + 0x40], cl
inc esi
mov eax, dword [ebp + 0x18]
and esi, 0xf
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], esi
jne 0x4541d0
jmp 0x454201
test esi, esi
jne 0x454300
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00454e20
add esp, 8
jmp 0x45421f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0xc]
cmp ebx, 0x10
jb 0x4542b7
mov esi, dword [ebp + 0x18]
lea edx, [edi + 0x10]
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
nop dword [eax]
push ecx
push edx
push edi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
bswap eax
mov dword [edi + 0xc], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x10]
xor eax, ecx
mov dword [edx], eax
xor dword [edi + 0x40], ecx
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x14]
xor eax, ecx
mov dword [edx + 4], eax
xor dword [edi + 0x44], ecx
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x18]
xor eax, ecx
mov dword [edx + 8], eax
xor dword [edi + 0x48], ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [edi + 0x1c]
xor eax, ecx
mov dword [edx + 0xc], eax
lea eax, [edi + 0x50]
xor dword [edi + 0x4c], ecx
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00454e20
add dword [ebp - 4], 0x10
lea edx, [edi + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
add esi, 0x10
sub ebx, 0x10
sub dword [ebp - 0xc], 1
jne 0x454240
mov dword [ebp + 0x18], esi
mov esi, dword [ebp - 0x10]
test ebx, ebx
je 0x454300
push ecx
lea eax, [edi + 0x10]
push eax
push edi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
sub dword [ebp + 0x18], eax
lea edx, [esi + eax]
lea eax, [edi + 0x40]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov cl, byte [edi + edx]
lea edx, [edx + 1]
xor byte [eax + esi], cl
mov al, byte [eax + esi - 0x30]
inc esi
xor al, cl
mov byte [edx - 1], al
mov eax, dword [ebp - 0x14]
sub ebx, 1
jne 0x4542e2
mov edi, dword [ebp + 8]
mov dword [edi + 0x158], esi
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret