Function at 0x46da80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.0043b180
mov eax, dword [0x4fc060]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, dword [esp + 0x38]
mov bl, byte [esi]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x28]
push edi
mov byte [esp + 0xf], bl
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
test bl, 0x40
jne 0x46dad0
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
cmp eax, 0xf
jae 0x46db03
lea esp, [esp]
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x46daf0
movzx eax, byte [esi + 0xf]
mov ebx, dword [esp + 0x48]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x46db2a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00439f9b
add esp, 0x2c
ret
lea ecx, [ebx + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x46db62
ja 0x46db4b
cmp dword [esi + 0x20], 0
jbe 0x46db62
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00439f9b
add esp, 0x2c
ret
mov edi, dword [esp + 0x40]
push ebp
cmp ebx, 0x10
jb 0x46dc16
mov eax, ebx
shr eax, 4
lea ebp, [esi + 0x10]
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [edi]
xor dword [ebp], edx
mov eax, dword [edi + 4]
xor dword [ebp + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
xor dword [esi + 0x18], ecx
mov edx, dword [edi + 0xc]
xor dword [esi + 0x1c], edx
push eax
push ebp
push ebp
call dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
call dword [esp + 0x30]
add esp, 0x18
mov eax, 8
lea esp, [esp]
mov cl, byte [eax + esi + 7]
dec eax
inc cl
mov byte [eax + esi + 8], cl
jne 0x46dbd1
test eax, eax
jne 0x46dbc0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x1c]
xor ecx, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
xor ecx, dword [edi + 8]
mov edx, dword [esp + 0x34]
xor edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
add eax, 0x10
add edi, 0x10
sub ebx, 0x10
dec dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jne 0x46db80
mov edx, dword [esp + 0x20]
test ebx, ebx
je 0x46dc75
xor eax, eax
test ebx, ebx
je 0x46dc2c
mov cl, byte [eax + edi]
xor byte [esi + eax + 0x10], cl
inc eax
cmp eax, ebx
jb 0x46dc20
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call ebp
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test ebx, ebx
je 0x46dc71
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x28]
mov eax, edx
sub edi, edx
sub ebp, eax
lea eax, [esp + ecx + 0x28]
mov dl, byte [edi + eax]
xor dl, byte [eax]
inc ecx
mov byte [eax + ebp], dl
cmp ecx, ebx
jb 0x46dc60
mov edx, dword [esp + 0x20]
pop ebp
cmp edx, 0x10
jae 0x46dc91
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.0043c360
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x40]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00439f9b
add esp, 0x2c
ret