Function at 0x4546d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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 0x4548aa
jb 0x4546fc
cmp eax, 0xffffffe0
ja 0x4548aa
cmp dword [edi + 0x15c], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
je 0x454725
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 - 0x14], esi
test esi, esi
je 0x454784
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
nop
test ebx, ebx
je 0x454764
mov al, byte [esi + edi + 0x10]
dec ebx
xor al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
xor byte [esi + edi + 0x40], al
inc esi
and esi, 0xf
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], esi
jne 0x454740
jmp 0x45476c
test esi, esi
jne 0x454898
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00454e20
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp - 8]
jmp 0x454790
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov edx, dword [edi + 0xc]
bswap edx
mov dword [ebp - 0xc], edx
mov edx, ebx
and edx, 0xfffffff0
mov dword [ebp + 0x18], edx
je 0x45484c
push edi
push dword [ebp + 0xc]
shr edx, 4
push edx
push eax
push ecx
mov dword [ebp - 0x10], edx
call dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
add esp, 0x14
mov ecx, dword [ebp - 0x10]
add eax, ecx
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x18]
sub ebx, eax
add dword [ebp - 8], eax
mov dword [ebp + 0x18], ebx
test ecx, ecx
je 0x45484c
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x50]
mov dword [ebp - 0x18], eax
lea ecx, [edi + 0x41]
mov ebx, dword [ebp - 0x18]
lea eax, [edi + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
dec esi
lea edx, [eax + 1]
mov edi, 4
nop dword [eax]
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 0x454800
push ebx
push dword [ebp - 0x1c]
call fcn.00454e20
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 4], eax
test esi, esi
jne 0x4547f3
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x454898
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x160]
push edi
call eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 8]
inc eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
sub edx, eax
lea ecx, [esi + eax]
nop word [eax + eax]
mov al, byte [edi + esi + 0x10]
lea ecx, [ecx + 1]
xor al, byte [edx + ecx - 1]
mov byte [ecx - 1], al
xor byte [edi + esi + 0x40], al
inc esi
sub ebx, 1
jne 0x454880
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