Function at 0x47f545
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
movzx ebx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
mov esi, dword [edx + 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 7]
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 6]
or dword [ebp - 4], eax
shl dword [ebp - 4], 8
movzx eax, byte [ecx + 5]
or dword [ebp - 4], eax
movzx eax, byte [ecx + 4]
shl dword [ebp - 4], 8
or dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [esi + 4]
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0xb]
shl eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [ecx + 0xa]
or dword [ebp + 8], eax
shl dword [ebp + 8], 8
movzx eax, byte [ecx + 9]
or dword [ebp + 8], eax
movzx eax, byte [ecx + 8]
shl dword [ebp + 8], 8
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor eax, dword [esi + 8]
xor ebx, dword [esi]
mov dword [ebp + 8], eax
movzx eax, byte [ecx + 0xf]
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx + 0xe]
or dword [ebp + 0x10], eax
shl dword [ebp + 0x10], 8
movzx eax, byte [ecx + 0xd]
or dword [ebp + 0x10], eax
shl dword [ebp + 0x10], 8
movzx eax, byte [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
or ecx, eax
mov dword [ebp - 8], ebx
xor ecx, dword [esi + 0xc]
add esi, 0x10
mov eax, dword [edx]
sar eax, 1
dec eax
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0xc], eax
jne 0x47fa27
test eax, eax
jle 0x47f822
mov eax, ecx
mov edx, dword [ebp - 4]
shr eax, 8
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x56bff0]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor ecx, dword [eax*4 + 0x56c3f0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x56bbf0]
xor ecx, dword [esi]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp + 0xc], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56c3f0]
xor ecx, dword [eax*4 + 0x56bff0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56bbf0]
mov eax, edx
xor ecx, dword [esi + 4]
shr eax, 8
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr edx, 0x10
mov ebx, dword [ecx*4 + 0x56bff0]
mov ecx, dword [ebp + 8]
xor ebx, dword [eax*4 + 0x56c3f0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x56c7f0]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax*4 + 0x56bbf0]
xor ebx, dword [esi + 8]
movzx eax, dl
mov edx, dword [ecx*4 + 0x56bff0]
xor edx, dword [eax*4 + 0x56c3f0]
mov eax, dword [ebp + 0x10]
xor edx, dword [edi*4 + 0x56c7f0]
movzx eax, al
xor edx, dword [eax*4 + 0x56bbf0]
xor edx, dword [esi + 0xc]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x56bff0]
xor ecx, dword [eax*4 + 0x56c3f0]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
mov eax, dword [ebp + 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x56bbf0]
mov eax, edx
xor ecx, dword [esi + 0x10]
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56c3f0]
xor ecx, dword [eax*4 + 0x56bff0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
movzx eax, cl
xor edi, dword [eax*4 + 0x56bbf0]
mov eax, edi
mov dword [ebp - 4], edi
xor eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x56bff0]
xor ecx, dword [eax*4 + 0x56c3f0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
movzx eax, bl
shr ebx, 8
xor ecx, dword [eax*4 + 0x56bbf0]
xor ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
shr eax, 0x10
movzx eax, al
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov ecx, dword [ecx*4 + 0x56bff0]
xor ecx, dword [eax*4 + 0x56c3f0]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56bbf0]
xor ecx, dword [esi + 0x1c]
add esi, 0x20
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x47f626
mov edx, dword [ebp - 4]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x56bff0]
mov edi, dword [ebp - 8]
xor ecx, dword [eax*4 + 0x56c3f0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56c7f0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x56bbf0]
xor ecx, dword [esi]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp + 0xc], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x56c3f0]
xor ebx, dword [eax*4 + 0x56bff0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x56c7f0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x56bbf0]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edi
shr eax, 0x10
movzx eax, al
xor ebx, dword [esi + 4]
mov edx, dword [ecx*4 + 0x56bff0]
mov ecx, dword [ebp + 8]
xor edx, dword [eax*4 + 0x56c3f0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
shr edi, 0x18
xor edx, dword [eax*4 + 0x56c7f0]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor edx, dword [eax*4 + 0x56bbf0]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x56bff0]
xor edx, dword [esi + 8]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x56c3f0]
xor ecx, dword [edi*4 + 0x56c7f0]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x56bbf0]
mov eax, edx
xor ecx, dword [esi + 0xc]
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + 0x56baf0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x56baf0]
shl eax, 8
xor edi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56baf0]
xor edi, eax
mov eax, dword [ebp + 0xc]
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56baf0]
xor edi, eax
xor edi, dword [esi + 0x10]
mov dword [ebp + 8], edi
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + 0x56baf0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x56baf0]
shl eax, 8
xor edi, eax
mov eax, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56baf0]
xor edi, eax
movzx eax, bl
shl edi, 8
movzx eax, byte [eax + 0x56baf0]
xor edi, eax
mov eax, dword [ebp + 0xc]
xor edi, dword [esi + 0x14]
shr eax, 0x10
movzx eax, al
mov dword [ebp + 0x10], edi
movzx edi, byte [eax + 0x56baf0]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x56baf0]
shl eax, 8
xor edi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edi, 8
shr ebx, 0x10
movzx eax, byte [eax + 0x56baf0]
xor edi, eax
movzx eax, dl
shl edi, 8
shr edx, 8
movzx eax, byte [eax + 0x56baf0]
xor edi, eax
movzx eax, bl
movzx ebx, byte [eax + 0x56baf0]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
movzx eax, byte [eax + 0x56baf0]
shl eax, 8
xor ebx, eax
movzx eax, dl
shl ebx, 8
movzx eax, byte [eax + 0x56baf0]
xor ebx, eax
movzx eax, cl
movzx eax, byte [eax + 0x56baf0]
jmp 0x47fe3f
test eax, eax
jle 0x47fc39
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov edx, dword [ebp - 4]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56b2f0]
push 4
pop edi
xor ecx, dword [eax*4 + 0x56aef0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56b6f0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x56aaf0]
xor ecx, dword [esi]
add esi, 4
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp + 0xc], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56b2f0]
xor ecx, dword [eax*4 + 0x56aef0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56b6f0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56aaf0]
xor ecx, dword [esi]
add esi, edi
mov eax, dword [ebp + 0x10]
shr eax, 8
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ebx, dword [ecx*4 + 0x56aef0]
xor ebx, dword [eax*4 + 0x56b2f0]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebx, dword [eax*4 + 0x56b6f0]
mov eax, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x56b2f0]
movzx eax, al
xor ebx, dword [eax*4 + 0x56aaf0]
mov eax, dword [ebp - 8]
shr eax, 8
xor ebx, dword [esi]
add esi, edi
movzx eax, al
xor edx, dword [eax*4 + 0x56aef0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor edx, dword [eax*4 + 0x56b6f0]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor edx, dword [eax*4 + 0x56aaf0]
mov eax, ebx
xor edx, dword [esi]
add esi, edi
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56b2f0]
xor ecx, dword [eax*4 + 0x56aef0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56b6f0]
mov eax, dword [ebp + 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x56aaf0]
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
mov eax, edx
shr eax, 0x10
add esi, edi
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56b2f0]
xor ecx, dword [eax*4 + 0x56aef0]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56b6f0]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x56aaf0]
mov eax, edx
xor ecx, dword [esi]
add esi, edi
shr eax, 8
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x56aef0]
xor ecx, dword [eax*4 + 0x56b2f0]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov edi, dword [ebp + 8]
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [eax*4 + 0x56b6f0]
movzx eax, bl
mov ecx, dword [ecx*4 + 0x56b2f0]
shr ebx, 0x18
xor edi, dword [eax*4 + 0x56aaf0]
mov eax, edi
mov dword [ebp + 8], edi
xor eax, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x56aef0]
xor ecx, dword [ebx*4 + 0x56b6f0]
mov ebx, dword [ebp - 8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56aaf0]
xor ecx, dword [esi + 4]
add esi, 8
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x47fa2f
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov edx, dword [ebp - 4]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x56b2f0]
xor ecx, dword [eax*4 + 0x56aef0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56b6f0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x56aaf0]
xor ecx, dword [esi]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp + 0xc], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x56b2f0]
xor ebx, dword [eax*4 + 0x56aef0]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x56b6f0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x56aaf0]
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx*4 + 0x56aef0]
mov ecx, dword [ebp - 4]
xor ebx, dword [esi + 4]
xor edx, dword [eax*4 + 0x56b2f0]
mov eax, ecx
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [eax*4 + 0x56b6f0]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x56b2f0]
movzx eax, al
xor edx, dword [eax*4 + 0x56aaf0]
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
xor edx, dword [esi + 8]
xor ecx, dword [eax*4 + 0x56aef0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x56b6f0]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x56aaf0]
mov eax, edx
xor ecx, dword [esi + 0xc]
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + 0x56a9f0]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x56a9f0]
shl eax, 8
xor edi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56a9f0]
xor edi, eax
mov eax, dword [ebp + 0xc]
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56a9f0]
xor edi, eax
xor edi, dword [esi + 0x10]
mov dword [ebp + 8], edi
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + 0x56a9f0]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
movzx eax, byte [eax + 0x56a9f0]
shl eax, 8
xor edi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56a9f0]
xor edi, eax
movzx eax, bl
shl edi, 8
movzx eax, byte [eax + 0x56a9f0]
xor edi, eax
mov eax, dword [ebp + 0xc]
xor edi, dword [esi + 0x14]
shr eax, 0x10
movzx eax, al
mov dword [ebp + 0x10], edi
movzx edi, byte [eax + 0x56a9f0]
mov eax, ebx
shr eax, 0x18
shr ebx, 0x10
movzx eax, byte [eax + 0x56a9f0]
shl eax, 8
xor edi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x56a9f0]
xor edi, eax
movzx eax, dl
shl edi, 8
shr edx, 0x18
movzx eax, byte [eax + 0x56a9f0]
xor edi, eax
movzx eax, bl
movzx ebx, byte [eax + 0x56a9f0]
movzx eax, byte [edx + 0x56a9f0]
shl eax, 8
xor ebx, eax
mov eax, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x56a9f0]
xor ebx, eax
movzx eax, cl
movzx eax, byte [eax + 0x56a9f0]
xor edi, dword [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
shl ebx, 8
xor ebx, eax
mov dword [ebp - 0x10], edi
xor ebx, dword [esi + 0x1c]
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov byte [ecx], dl
shr edx, 0x18
mov byte [ecx + 3], dl
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 4], dl
mov byte [ecx + 6], al
shr edx, 0x18
mov byte [ecx + 7], dl
mov edx, edi
mov eax, edx
mov byte [ecx + 8], dl
shr eax, 8
mov byte [ecx + 9], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 0xc], bl
shr eax, 0x10
pop edi
shr ebx, 0x18
pop esi
mov byte [ecx + 0xf], bl
mov byte [ecx + 0xb], dl
mov byte [ecx + 0xe], al
pop ebx
leave
ret