Function at 0x4474a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x8c]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.0043f4b0
test eax, eax
je 0x447710
mov ebx, eax
cmp dword [eax + 0x18], 0x10
jne 0x447710
mov dword [esp], ebp
call fcn.0043f520
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0043f560
test eax, eax
je 0x447510
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0043f5d0
test eax, eax
jne 0x4474fc
mov dword [esp + 0x4c], 0
lea edx, [esp + 0x50]
mov ecx, 4
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.0043f7a0
test eax, eax
jne 0x4474fc
mov edx, dword [esp + 0x54]
bswap edx
mov esi, edx
mov edx, dword [esp + 0x50]
bswap edx
mov edi, edx
mov edx, dword [esp + 0x5c]
bswap edx
mov ecx, edx
mov edx, dword [esp + 0x58]
bswap edx
mov ebx, edx
mov dword [ebp + 0x80], ecx
mov dword [ebp + 0x84], edx
mov dword [ebp + 0x100], esi
mov dword [ebp + 0x104], edi
mov dword [ebp + 0xc0], 0
mov dword [ebp + 0xc4], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [esp + 0x30], 3
mov dword [esp + 0x20], 4
mov dword [esp + 0x34], eax
mov eax, ecx
and eax, 1
mov edx, eax
shl edx, 5
sub eax, edx
shl eax, 0x18
mov dword [esp + 0x28], eax
mov eax, ecx
mov edx, ebx
shrd eax, edx, 1
shr edx, 1
mov ecx, esi
mov ebx, edi
mov ebx, ecx
mov ecx, 0
shl ebx, 0x1f
or ecx, eax
or ebx, edx
mov eax, esi
mov edx, edi
shrd eax, edx, 1
shr edx, 1
mov esi, dword [esp + 0x28]
xor edi, edi
mov edi, esi
mov esi, 0
xor esi, eax
xor edi, edx
mov eax, dword [esp + 0x20]
mov dword [ebp + eax*8 + 0x40], ecx
mov dword [ebp + eax*8 + 0x44], ebx
mov dword [ebp + eax*8 + 0xc0], esi
mov dword [ebp + eax*8 + 0xc4], edi
sar eax, 1
mov dword [esp + 0x20], eax
dec dword [esp + 0x30]
jne 0x4475da
mov eax, dword [esp + 0x34]
lea edi, [ebp + 0x40]
mov dword [esp + 0x34], edi
lea edi, [ebp + 0xc0]
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], 3
mov edi, 2
mov dword [esp + 0x3c], eax
lea edx, [edi*8]
mov eax, dword [esp + 0x34]
lea esi, [eax + edx]
mov eax, dword [esp + 0x38]
add edx, eax
mov ecx, dword [edx]
mov ebx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov eax, 1
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
xor ecx, dword [ebp + eax*8 + 0xc0]
xor ebx, dword [ebp + eax*8 + 0xc4]
mov dword [edx + eax*8], ecx
mov dword [edx + eax*8 + 4], ebx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
xor ecx, dword [ebp + eax*8 + 0x40]
xor ebx, dword [ebp + eax*8 + 0x44]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
inc eax
cmp eax, edi
jne 0x4476b0
add edi, edi
dec dword [esp + 0x30]
jne 0x447670
mov eax, dword [esp + 0x3c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffec
jmp 0x4474fc