Function at 0x46d451
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x3c
mov dword [ebp - 4], eax
mov edi, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x38]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x10]
cmp edi, edx
jb 0x46d4b9
push dword [ebp + 0x10]
push esi
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
call fcn.0046c2c8
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [eax + 0x38], edx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ecx], ebx
xor eax, eax
jmp 0x46d696
cmp ebx, esi
jne 0x46d4c7
mov eax, 0x1001
jmp 0x46d696
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
mov ecx, edi
sub ecx, dword [ebp - 8]
push ecx
push esi
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
add eax, 0x28
push eax
call fcn.0046c2c8
add esp, 0xc
mov edx, edi
sub edx, dword [ebp - 8]
add esi, edx
mov ecx, edi
sub ecx, dword [ebp - 8]
sub dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov dword [ebx], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
mov dword [ebx + 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x30]
mov dword [ebx + 8], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov dword [ebx + 0xc], edx
push ebx
push dword [ebp - 4]
call fcn.0046f959
add esp, 8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
xor dword [ebx], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1c]
xor dword [ebx + 4], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
xor dword [ebx + 8], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
xor dword [ebx + 0xc], eax
add ebx, edi
cmp edi, dword [ebp + 0x10]
jb 0x46d588
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x28]
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edi
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], edx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], eax
jmp 0x46d665
cmp edi, dword [ebp + 0x10]
jae 0x46d5d9
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
push ebx
push dword [ebp - 4]
call fcn.0046f959
add esp, 8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x28]
xor dword [ebx], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x2c]
xor dword [ebx + 4], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
xor dword [ebx + 8], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
xor dword [ebx + 0xc], eax
add esi, edi
add ebx, edi
sub dword [ebp + 0x10], edi
cmp edi, dword [ebp + 0x10]
jae 0x46d632
mov edx, dword [esi]
mov dword [ebx], edx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
push ebx
push dword [ebp - 4]
call fcn.0046f959
add esp, 8
mov ecx, esi
sub ecx, edi
mov eax, dword [ecx]
xor dword [ebx], eax
mov edx, esi
sub edx, edi
mov ecx, dword [edx + 4]
xor dword [ebx + 4], ecx
mov eax, esi
sub eax, edi
mov edx, dword [eax + 8]
xor dword [ebx + 8], edx
mov ecx, esi
sub ecx, edi
mov eax, dword [ecx + 0xc]
xor dword [ebx + 0xc], eax
add esi, edi
add ebx, edi
sub dword [ebp + 0x10], edi
cmp edi, dword [ebp + 0x10]
jb 0x46d5de
mov edx, esi
sub edx, edi
mov eax, dword [edx]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov ecx, esi
sub ecx, edi
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, esi
sub ecx, edi
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov ecx, esi
sub ecx, edi
mov edi, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edi
push dword [ebp + 0x10]
push esi
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
call fcn.0046c2c8
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
and eax, 0xf0000000
add eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
sub dword [ecx], ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret