Function at 0x462100
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
jbe 0x462130
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x462283
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
jne 0x4622d5
mov eax, dword [esi + 0x168]
mov ebx, dword [esi + 0xc]
test eax, eax
bswap ebx
je 0x4621d7
mov edx, dword [esp + 0x60]
test edx, edx
je 0x4621b2
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x60]
jmp 0x462177
test ebp, ebp
je 0x46219e
movzx ecx, byte [esi + eax + 0x40]
add ebx, 1
add edi, 1
movzx edx, byte [esi + eax + 0x10]
sub ebp, 1
xor dl, byte [ebx - 1]
xor ecx, edx
mov byte [edi - 1], dl
mov byte [esi + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x462173
test eax, eax
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebp
je 0x4621c5
mov dword [esi + 0x168], eax
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.00448a20
cmp dword [esp + 0x60], 0xf
jbe 0x462367
lea eax, [esi + 0x60]
mov ebp, dword [esp + 0x5c]
add ebx, 1
mov dword [esp + 0x20], eax
lea eax, [esi + 0x40]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
sub eax, 0x10
mov dword [esp + 0x2c], eax
shr dword [esp + 0x2c], 4
mov eax, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x1c], eax
lea esi, [esi]
mov eax, dword [esp + 0x54]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, ebx
bswap eax
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, eax
and ecx, 0xfffffffc
add ecx, esi
mov edx, dword [ecx + 0x10]
xor edx, dword [edi + eax]
mov dword [ebp + eax], edx
add eax, 4
xor dword [ecx + 0x40], edx
cmp eax, 0x10
jne 0x462242
mov eax, dword [esp + 0x20]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00448a20
cmp ebx, dword [esp + 0x1c]
je 0x4622a2
add ebx, 1
jmp 0x462220
cmp eax, 0xffffffe0
ja 0x462126
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
je 0x46214a
jmp 0x4622d5
mov eax, dword [esp + 0x2c]
and dword [esp + 0x60], 0xf
add eax, 1
shl eax, 4
add dword [esp + 0x5c], eax
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x462309
mov eax, dword [esp + 0x60]
mov dword [esi + 0x168], eax
mov eax, 1
jmp 0x4621bd
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.00448a20
mov eax, dword [esi + 0x168]
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x16c], 0
test eax, eax
bswap ebx
je 0x4621d7
jmp 0x462159
mov eax, dword [esp + 0x54]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x1c]
mov edx, esi
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
add eax, 1
bswap eax
mov dword [esi + 0xc], eax
mov esi, dword [esp + 0x58]
xor eax, eax
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [esi + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, ebp
jne 0x462341
mov esi, dword [esp + 0x50]
jmp 0x4622c1
mov dword [esp + 0x1c], ebx
jmp 0x4622b9