Function at 0x454b81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, ecx
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
test ebx, ebx
jle 0x454dfa
cmp dword [esi + 0x18], 0
je 0x454d25
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x454bb0
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0x1c]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push edi
sub edx, eax
push ecx
lea eax, [edx + esi + 4]
push eax
call fcn.0054b0f1
add esp, 0xc
sub dword [esi + 0x20], edi
jne 0x454de7
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 8
and eax, 0x7f
cmp eax, 0x7e
jge 0x454be7
xor edi, edi
jmp 0x454bf4
lea edi, [eax - 0x7e]
neg edi
sbb edi, edi
and edi, 6
add edi, 2
mov ebx, ecx
shr ebx, 0xf
and ebx, 1
add ebx, ebx
add ebx, ebx
lea edx, [ebx + edi + 2]
mov dword [ebp - 0x10], edx
mov edx, dword [esi + 0x1c]
cmp edx, dword [ebp - 0x10]
jge 0x454c21
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], eax
jmp 0x454de4
test edi, edi
jne 0x454c2a
cdq
mov ecx, eax
jmp 0x454c69
cmp edi, 2
jne 0x454c41
shr ecx, 0x10
push ecx
call dword [0x10130310]
movzx eax, ax
cdq
mov ecx, eax
jmp 0x454c69
mov eax, dword [esi + 0xa]
mov edx, dword [esi + 6]
push eax
mov dword [ebp - 0x24], edx
call dword [0x10130348]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [0x10130348]
xor ecx, ecx
or ecx, dword [ebp - 0x30]
mov edx, eax
xor eax, eax
or edx, eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
test ebx, ebx
jle 0x454c7f
lea edi, [edi + esi + 6]
jmp 0x454c81
xor edi, edi
mov dword [esi + 0x14], edi
mov al, byte [esi + 4]
and al, 0xf
mov byte [ebp - 0x14], al
mov eax, dword [esi + 4]
mov ebx, eax
shr eax, 7
and eax, 1
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
push eax
mov eax, dword [ebp - 0x14]
push edi
push eax
shr ebx, 4
and bl, 7
mov byte [ebp - 0x18], bl
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 0x39c]
mov ebx, dword [edx]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
push eax
push ecx
mov ecx, edx
mov edx, dword [ebx + 0x2c]
call edx
cmp eax, 2
je 0x454dfa
xor edi, edi
cmp dword [esi + 0x2c], edi
ja 0x454cef
cmp dword [esi + 0x28], edi
jbe 0x454cf7
mov dword [esi + 0x18], edi
jmp 0x454de4
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x39c]
mov edx, dword [edx + 4]
mov ebx, dword [ecx]
push edx
push eax
mov eax, dword [ebx + 0x34]
call eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
jmp 0x454dce
mov edi, dword [esi + 0x30]
mov eax, ebx
cdq
cmp dword [esi + 0x34], edx
ja 0x454d3b
jb 0x454d36
cmp edi, eax
jae 0x454d3b
mov dword [ebp - 4], edi
jmp 0x454d40
mov dword [ebp - 4], ebx
mov edi, ebx
cmp dword [esi + 0x14], 0
je 0x454d6f
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x30]
and ecx, 3
test edi, edi
jle 0x454d6f
mov eax, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x10], edi
mov ebx, dword [esi + 0x14]
lea edx, [ecx + eax]
and edx, 3
mov dl, byte [edx + ebx]
xor byte [eax], dl
inc eax
dec dword [ebp - 0x10]
jne 0x454d5b
mov eax, edi
cdq
sub dword [esi + 0x30], eax
mov eax, dword [esi]
push edi
sbb dword [esi + 0x34], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push dword [ebp - 8]
mov ecx, dword [eax + 0x39c]
mov edx, dword [edx + 4]
mov ebx, dword [ecx]
push edx
push eax
mov eax, dword [ebx + 0x30]
call eax
cmp eax, 2
je 0x454dfa
mov ecx, dword [esi + 0x30]
or ecx, dword [esi + 0x34]
jne 0x454de4
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x39c]
mov edx, dword [edx + 4]
mov edi, dword [ecx]
push edx
push eax
mov eax, dword [edi + 0x34]
call eax
xor edx, edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov ecx, 2
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], 1
cmp eax, ecx
je 0x454dfa
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jg 0x454b99
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret