Function at 0x46ff58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov esi, edx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
add eax, 0x3c
mov edi, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add eax, dword [ebp - 8]
mov dword [edx], eax
cmp edi, eax
jb 0x46ffc0
mov ecx, dword [ebp - 8]
push ecx
push esi
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
add eax, 0x28
push eax
call fcn.0046ee70
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add dword [edx + 0x38], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
jmp 0x470143
cmp ebx, esi
jne 0x46ffce
mov eax, 0x1001
jmp 0x470143
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, edi
sub ecx, dword [ebp - 0x10]
push ecx
push esi
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
add eax, 0x28
push eax
call fcn.0046ee70
mov edx, edi
mov ecx, edi
sub edx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x10]
add esi, edx
add esp, 0xc
sub dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x28]
mov dword [ebx], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x2c]
mov dword [ebx + 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x30]
mov dword [ebx + 8], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov dword [ebx + 0xc], edx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00472454
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
xor dword [ebx], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x1c]
xor dword [ebx + 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x20]
xor dword [ebx + 8], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x24]
xor dword [ebx + 0xc], eax
add ebx, edi
cmp edi, dword [ebp - 8]
jae 0x47009c
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
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00472454
mov ecx, dword [ebp - 4]
add esi, edi
mov eax, dword [ecx + 0x28]
xor dword [ebx], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x2c]
xor dword [ebx + 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
xor dword [ebx + 8], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x34]
xor dword [ebx + 0xc], eax
add ebx, edi
sub dword [ebp - 8], edi
cmp edi, dword [ebp - 8]
jae 0x4700e9
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
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00472454
mov eax, esi
mov edx, edi
sub eax, edx
mov ecx, dword [eax]
xor dword [ebx], ecx
mov ecx, dword [eax + 4]
xor dword [ebx + 4], ecx
mov ecx, dword [eax + 8]
xor dword [ebx + 8], ecx
mov eax, dword [eax + 0xc]
xor dword [ebx + 0xc], eax
add esi, edx
add ebx, edx
sub dword [ebp - 8], edi
cmp edi, dword [ebp - 8]
jb 0x4700a1
mov eax, esi
mov ecx, dword [ebp - 4]
sub eax, edi
mov edx, dword [eax]
mov dword [ecx + 0x18], edx
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 4]
mov dword [ecx + 0x1c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [ecx + 0x20], edx
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 8]
push eax
push esi
mov ecx, dword [ebp - 4]
add ecx, 0x28
push ecx
call fcn.0046ee70
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [eax + 0x38]
and edx, 0xf0000000
add edx, dword [ebp - 8]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8