Function at 0x462820
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 esi, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x462850
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x4629ca
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x4629e7
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x4628e6
test esi, esi
je 0x4628b9
mov dword [esp + 0x50], ebx
jmp 0x462884
test esi, esi
je 0x4628b1
mov ebx, dword [esp + 0x50]
add edi, 1
add ecx, 1
movzx edx, byte [edi - 1]
sub esi, 1
movzx ebp, byte [ebx + eax + 0x10]
xor ebp, edx
mov ebx, ebp
mov byte [ecx - 1], bl
mov ebx, dword [esp + 0x50]
xor byte [ebx + eax + 0x40], dl
add eax, 1
and eax, 0xf
jne 0x462880
test eax, eax
mov ebx, dword [esp + 0x50]
je 0x4628cc
mov dword [ebx + 0x168], eax
add esp, 0x3c
mov eax, 1
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
mov dword [esp + 0x20], ecx
call fcn.00448a20
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [esp + 0x28], eax
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
je 0x4629b3
shr eax, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x46296f
lea edx, [ebx + 0x40]
mov ebp, edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
lea eax, [ebx + 0x60]
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], esi
mov esi, ebp
mov ebp, eax
mov dword [esp + 0x5c], ecx
mov edi, edx
nop
lea esi, [esi]
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x462932
mov eax, dword [esp + 0x20]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00448a20
sub edi, 1
jne 0x462930
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
shl eax, 4
add edi, eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
sub edi, ebp
sub esi, ebp
mov dword [esp], edi
add edi, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
call dword [esp + 0x64]
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
bswap eax
mov dword [ebx + 0xc], eax
add ecx, ebp
test esi, esi
jne 0x462a1e
mov dword [ebx + 0x168], esi
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x462846
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x46286a
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.00448a20
mov eax, dword [ebx + 0x168]
mov dword [ebx + 0x16c], 0
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x4628e6
jmp 0x462874
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
call dword [ebx + 0x170]
mov eax, dword [esp + 0x28]
mov edx, ebx
mov ecx, dword [esp + 0x20]
add eax, 1
bswap eax
mov ebp, ecx
mov dword [ebx + 0xc], eax
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [ebp + eax], cl
add eax, 1
cmp eax, esi
jne 0x462a50
jmp 0x4629b7