Function at 0x47a150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48
mov edx, dword [ebp + 0x14]
push edx
call fcn.0041b7f0
pop eax
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041b6a0
add esp, 0x10
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x47a1db
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041b6a0
add esp, 0x10
mov dword [ebp - 0x38], eax
test eax, eax
je 0x47a1db
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041b6a0
add esp, 0x10
mov dword [ebp - 0x34], eax
test eax, eax
je 0x47a1db
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041b6a0
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
je 0x47a1db
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x34]
push eax
push edi
push esi
push ebx
call fcn.00479bf0
add esp, 0x10
test eax, eax
je 0x47a1db
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x47a1f3
xor ebx, ebx
sub esp, 0xc
mov esi, dword [ebp + 0x14]
push esi
call fcn.0041b590
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
push edx
push edx
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041c7e0
add esp, 0x10
test eax, eax
je 0x47a1db
sub esp, 0xc
mov eax, dword [ebp - 0x34]
push eax
call fcn.0041bf50
mov dword [ebp - 0x2c], eax
pop eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041bf50
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x34]
add esp, 0x10
mov edx, dword [edx + 4]
mov dword [ebp - 0x24], edx
cmp edx, dword [ecx + 8]
jg 0x47a4cf
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebx]
mov dword [ebp - 0x20], ebx
mov edx, dword [esi + 4]
cmp dword [ebp - 0x24], edx
jle 0x47a262
lea eax, [ebx + edx*4]
mov dword [eax], 0
inc edx
add eax, 4
cmp edx, dword [ebp - 0x24]
jne 0x47a253
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 8]
jg 0x47a4f1
mov ebx, dword [ebp - 0x3c]
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
mov dword [ebx], 1
cmp dword [ebp - 0x24], 1
jle 0x47a2a0
mov eax, 1
mov esi, dword [ebp - 0x1c]
mov dword [esi + eax*4], 0
inc eax
cmp eax, dword [ebp - 0x24]
jne 0x47a290
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ecx + 8]
jg 0x47a4e0
mov ebx, dword [ebp - 0x38]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jle 0x47a2d6
xor eax, eax
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*4], 0
inc eax
cmp eax, dword [ebp - 0x24]
jne 0x47a2c6
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
dec edx
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx]
mov dword [ebp - 0x40], edx
shl edx, 2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x47a3de
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebx]
dec esi
je 0x47a487
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], edx
jge 0x47a34d
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebx]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x24]
test edi, edi
jle 0x47a37e
xor edx, edx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ecx + edx*4]
mov esi, dword [ebx + edx*4]
xor esi, eax
mov dword [ebx + edx*4], esi
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + edx*4]
mov ebx, dword [ecx + edx*4]
xor ebx, eax
mov dword [ecx + edx*4], ebx
inc edx
cmp edx, dword [ebp - 0x24]
jne 0x47a356
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], ebx
jne 0x47a2f1
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
dec edx
mov eax, edx
sar eax, 0x1f
shr eax, 0x1b
lea ebx, [eax + edx]
sar ebx, 5
mov edx, dword [esi + ebx*4]
test edx, edx
jne 0x47a3bf
test ebx, ebx
je 0x47a3bf
lea eax, [esi + ebx*4]
jmp 0x47a3b7
sub eax, 4
test ebx, ebx
je 0x47a3bf
mov edx, dword [eax - 4]
dec ebx
test edx, edx
je 0x47a3b0
shl ebx, 5
sub esp, 0xc
push edx
call fcn.0041bee0
add ebx, eax
add esp, 0x10
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x47a2fc
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
test esi, 1
je 0x47a3fa
cmp dword [ebp - 0x2c], 0x20
jg 0x47a308
jmp 0x47a301
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov eax, edx
and eax, 1
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edi, dword [ebp - 0x10]
mov ecx, dword [eax]
xor eax, eax
and edi, ecx
xor edi, edx
mov edx, dword [ebp - 0x40]
test edx, edx
jle 0x47a46b
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
shr esi, 1
shr edi, 1
mov ecx, dword [eax + ebx*4 + 4]
mov eax, ecx
shl eax, 0x1f
or eax, esi
mov dword [edx + ebx*4], eax
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
mov esi, dword [eax + ebx*4 + 4]
mov eax, dword [ebp - 0x1c]
and edx, esi
mov esi, dword [eax + ebx*4 + 4]
xor edx, esi
mov esi, dword [ebp - 0x1c]
mov eax, edx
shl eax, 0x1f
or eax, edi
mov edi, edx
mov dword [esi + ebx*4], eax
inc ebx
mov esi, ecx
cmp ebx, dword [ebp - 0x40]
jne 0x47a422
mov eax, dword [ebp - 0x44]
shr esi, 1
mov edx, dword [ebp - 0x20]
shr edi, 1
mov dword [edx + eax], esi
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax], edi
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
jmp 0x47a2f1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x47a4ab
mov eax, dword [eax]
sub eax, 4
lea edx, [eax + ecx*4]
mov eax, dword [edx]
sub edx, 4
test eax, eax
jne 0x47a4a5
dec ecx
jne 0x47a499
mov ebx, dword [ebp - 0x3c]
mov dword [ebx + 4], ecx
mov edi, dword [ebp + 8]
push eax
push eax
mov eax, dword [ebp - 0x3c]
push eax
push edi
call fcn.0041c7e0
mov ebx, 1
add esp, 0x10
test eax, eax
jne 0x47a1dd
jmp 0x47a1db
push eax
push eax
push edx
push ecx
call fcn.0041c690
add esp, 0x10
jmp 0x47a23d
push esi
push esi
push edx
push ecx
call fcn.0041c690
add esp, 0x10
jmp 0x47a2b5
push edi
push edi
push edx
push ecx
call fcn.0041c690
add esp, 0x10
jmp 0x47a277