Function at 0x462370
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0x170]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x4623a0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x462501
mov ecx, dword [ebx + 0x16c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
test ecx, ecx
jne 0x462553
mov eax, dword [ebx + 0x168]
mov esi, dword [ebx + 0xc]
test eax, eax
bswap esi
je 0x462446
mov edx, dword [esp + 0x60]
test edx, edx
je 0x462421
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
jmp 0x4623e4
test edi, edi
je 0x462411
add dword [esp + 0x58], 1
add ecx, 1
mov esi, dword [esp + 0x58]
sub edi, 1
movzx ebp, byte [ebx + eax + 0x10]
movzx esi, byte [esi - 1]
xor ebp, esi
mov edx, ebp
mov byte [ecx - 1], dl
mov edx, esi
xor byte [ebx + eax + 0x40], dl
add eax, 1
and eax, 0xf
jne 0x4623e0
test eax, eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
je 0x462434
mov dword [ebx + 0x168], eax
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.00448a20
cmp dword [esp + 0x60], 0xf
jbe 0x4625dc
lea eax, [ebx + 0x60]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x40]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
sub eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esi + 1]
shr dword [esp + 0x2c], 4
mov dword [esp + 0x14], eax
add eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
lea esi, [esi]
mov eax, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x14]
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov edx, eax
mov ecx, dword [edi + eax]
and edx, 0xfffffffc
add edx, ebx
mov esi, dword [edx + 0x10]
xor esi, ecx
mov dword [ebp + eax], esi
add eax, 4
xor dword [edx + 0x40], ecx
cmp eax, 0x10
jne 0x4624b4
mov eax, dword [esp + 0x24]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00448a20
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x462520
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x462490
cmp eax, 0xffffffe0
ja 0x462396
mov ecx, dword [ebx + 0x16c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
test ecx, ecx
je 0x4623ba
jmp 0x462553
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 0x462587
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x168], eax
mov eax, 1
jmp 0x46242c
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.00448a20
mov eax, dword [ebx + 0x168]
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x16c], 0
test eax, eax
bswap esi
je 0x462446
jmp 0x4623c9
mov eax, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
add eax, 1
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
nop
lea esi, [esi]
movzx ecx, byte [esi + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [edi + eax], cl
add eax, 1
cmp eax, ebp
jne 0x4625c0
jmp 0x46253f
mov dword [esp + 0x1c], esi
jmp 0x462537