Function at 0x454320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x18]
mov eax, ebx
push edi
mov edi, dword [ebp + 8]
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x454510
jb 0x45434c
cmp eax, 0xffffffe0
ja 0x454510
cmp dword [edi + 0x15c], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
je 0x454375
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00454e20
add esp, 8
mov dword [edi + 0x15c], 0
push esi
mov esi, dword [edi + 0x158]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4543d9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
nop
test ebx, ebx
je 0x4543bc
mov cl, byte [eax]
dec ebx
inc eax
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], 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 - 4]
and esi, 0xf
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], esi
jne 0x454390
jmp 0x4543c4
test esi, esi
jne 0x4544fe
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00454e20
mov eax, dword [ebp - 4]
add esp, 8
jmp 0x4543e5
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov edx, dword [edi + 0xc]
mov ecx, ebx
bswap edx
and ecx, 0xfffffff0
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
je 0x4544ab
shr ecx, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x45447f
mov ebx, dword [ebp - 0x1c]
lea ecx, [edi + 0x50]
mov dword [ebp - 0x20], ecx
lea edx, [edi + 0x41]
mov esi, dword [ebp - 0x20]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov ecx, edx
dec ebx
lea edx, [eax + 1]
mov edi, 4
nop
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 3]
xor byte [ecx - 3], al
movzx eax, byte [edx - 2]
xor byte [ecx - 2], al
sub edi, 1
jne 0x454430
push esi
push dword [ebp - 0x24]
call fcn.00454e20
mov eax, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x454423
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
push edi
push edx
push dword [ebp - 0x14]
push ecx
push eax
call dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
add esp, 0x14
add eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], eax
sub ebx, eax
test ebx, ebx
je 0x4544fe
push edx
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x160]
push edi
call eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
inc eax
mov edx, dword [ebp - 4]
bswap eax
mov dword [edi + 0xc], eax
sub edx, ecx
lea eax, [esi + ecx]
mov dword [ebp + 0x18], eax
lea eax, [edi + 0x40]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov cl, byte [edx + edi]
lea edi, [edi + 1]
xor byte [eax + esi], cl
mov al, byte [eax + esi - 0x30]
inc esi
xor al, cl
mov byte [edi - 1], al
mov eax, dword [ebp - 0x28]
sub ebx, 1
jne 0x4544e0
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