Function at 0x46a010
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x46a040
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x46a0f3
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x46a110
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x46a0c8
test esi, esi
je 0x46a0a3
mov ebp, dword [esp + 0x48]
jmp 0x46a074
test esi, esi
je 0x46a09b
movzx ecx, byte [ebx + eax + 0x40]
add ebp, 1
add edi, 1
movzx edx, byte [ebx + eax + 0x10]
sub esi, 1
xor dl, byte [ebp - 1]
xor ecx, edx
mov byte [edi - 1], dl
mov byte [ebx + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x46a070
test eax, eax
mov dword [esp + 0x48], ebp
je 0x46a0b6
mov dword [ebx + 0x168], eax
add esp, 0x2c
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
call dbg.gcm_gmult_4bit
mov eax, dword [ebx + 0xc]
mov ebp, esi
and ebp, 0xfffffff0
bswap eax
mov dword [esp + 0x18], eax
jne 0x46a197
test esi, esi
jne 0x46a13b
mov dword [ebx + 0x168], esi
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x46a032
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x46a05a
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call dbg.gcm_gmult_4bit
mov eax, dword [ebx + 0x168]
mov dword [ebx + 0x16c], 0
test eax, eax
je 0x46a0c8
jmp 0x46a064
mov eax, dword [esp + 0x44]
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 + 0x18]
mov edx, ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x40], ebx
add eax, 1
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
nop
lea esi, [esi]
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [ebp + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, esi
jne 0x46a170
mov ebx, dword [esp + 0x40]
jmp 0x46a0e0
mov ecx, dword [esp + 0x44]
mov eax, ebp
sub esi, ebp
mov edx, dword [esp + 0x48]
shr eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
add dword [esp + 0x48], ebp
test ecx, ecx
bswap eax
mov dword [ebx + 0xc], eax
je 0x46a0dc
lea ecx, [ebx + 0x40]
mov ebp, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x60]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
mov esi, ebp
mov ebp, eax
mov edi, ecx
lea esi, [esi]
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x46a202
mov eax, dword [esp + 0x14]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call dbg.gcm_gmult_4bit
sub edi, 1
jne 0x46a200
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
shl eax, 4
add edi, eax
jmp 0x46a0dc