Function at 0x47dc47
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x90]
test eax, eax
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
je 0x47dc99
mov edi, edi
test ebp, ebp
je 0x47dc99
mov al, byte [esi + 0x8c]
mov byte [edi], al
mov edx, dword [esi + 0x90]
mov ebx, dword [esi + 0x8c]
add edx, 0xfffffff8
shr ebx, 8
inc edi
mov eax, edx
dec ebp
test eax, eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], edx
jne 0x47dc67
cmp ebp, 0x44
jb 0x47e324
mov eax, 0xf0f0f0f1
mul ebp
shr edx, 6
jmp 0x47dcb7
movzx ecx, byte [esi + 3]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x3c]
xor eax, ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x88]
add ecx, eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x4db5f8]
xor eax, ecx
mov ecx, dword [esi + 8]
ror eax, 8
add eax, ecx
mov ecx, dword [esi + 0x1c]
xor eax, ebx
add eax, ecx
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, eax
add ecx, dword [esi + 0x38]
mov eax, edi
call fcn.0047d2d7
movzx ecx, byte [esi + 7]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x14]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 8]
add ecx, eax
mov dword [esi + 4], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0xc]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x20]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x3c]
lea eax, [edi + 4]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0xb]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x18]
xor eax, ecx
mov ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 8], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x10]
xor ebx, ecx
ror ebx, 8
add ebx, eax
mov ecx, dword [esi + 0x88]
mov eax, dword [esi + 0x24]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x40]
lea eax, [edi + 8]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0xf]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esi + 0x10]
add ecx, eax
mov dword [esi + 0xc], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x14]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x28]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi]
lea eax, [edi + 0xc]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x13]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 8]
xor eax, ecx
mov ecx, dword [esi + 0x14]
add ecx, eax
mov dword [esi + 0x10], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x18]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x2c]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 4]
lea eax, [edi + 0x10]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x17]
mov eax, dword [esi + 0x14]
mov ebx, dword [ecx*4 + 0x4db1f8]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x24]
xor eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
add ecx, eax
mov dword [esi + 0x14], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x1c]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x30]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 8]
lea eax, [edi + 0x14]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x1b]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x28]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x10]
xor eax, ecx
mov ecx, dword [esi + 0x1c]
add ecx, eax
mov dword [esi + 0x18], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x20]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x34]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0xc]
lea eax, [edi + 0x18]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x1f]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x2c]
xor eax, ecx
mov ecx, dword [esi + 0x20]
add ecx, eax
mov dword [esi + 0x1c], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x24]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x38]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
lea eax, [edi + 0x1c]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
add ecx, dword [esi + 0x10]
call fcn.0047d2d7
movzx ecx, byte [esi + 0x23]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x30]
xor eax, ecx
mov ecx, dword [esi + 0x24]
add ecx, eax
mov dword [esi + 0x20], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x28]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x3c]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x14]
lea eax, [edi + 0x20]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x27]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x34]
xor eax, ecx
mov ecx, dword [esi + 0x28]
add ecx, eax
mov dword [esi + 0x24], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x2c]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x40]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x18]
lea eax, [edi + 0x24]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x2b]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x38]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x20]
xor eax, ecx
mov ecx, dword [esi + 0x2c]
add ecx, eax
mov dword [esi + 0x28], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x30]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x1c]
lea eax, [edi + 0x28]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x2f]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x24]
xor eax, ecx
mov ecx, dword [esi + 0x30]
add ecx, eax
mov dword [esi + 0x2c], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x34]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 4]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x20]
lea eax, [edi + 0x2c]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x33]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 0x34]
add ecx, eax
mov dword [esi + 0x30], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x38]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 8]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x24]
lea eax, [edi + 0x30]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x37]
mov eax, dword [esi + 0x34]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov ecx, dword [esi]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x2c]
xor eax, ecx
mov ecx, dword [esi + 0x38]
add ecx, eax
mov dword [esi + 0x34], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x3c]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0xc]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x28]
lea eax, [edi + 0x34]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x3b]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 4]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x30]
xor eax, ecx
mov ecx, dword [esi + 0x3c]
add ecx, eax
mov dword [esi + 0x38], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 0x40]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x10]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x2c]
lea eax, [edi + 0x38]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x3f]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x34]
xor eax, ecx
mov ecx, dword [esi + 0x40]
add ecx, eax
mov dword [esi + 0x3c], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
xor ebx, ecx
add ebx, dword [esi + 0x14]
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x30]
lea eax, [edi + 0x3c]
add ecx, ebx
call fcn.0047d2d7
movzx ecx, byte [esi + 0x43]
mov ebx, dword [ecx*4 + 0x4db1f8]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
shl eax, 8
xor eax, ebx
xor eax, dword [esi + 0x38]
xor eax, ecx
mov ecx, dword [esi]
add ecx, eax
mov dword [esi + 0x40], eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x4db5f8]
mov eax, dword [esi + 4]
xor ebx, ecx
mov ecx, dword [esi + 0x88]
ror ebx, 8
add ebx, eax
mov eax, dword [esi + 0x18]
xor ebx, ecx
add ebx, eax
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4db5f8]
xor ecx, ebx
mov ebx, dword [esi + 0x34]
lea eax, [edi + 0x40]
add ecx, ebx
call fcn.0047d2d7
add edi, 0x44
sub ebp, 0x44
dec edx
jne 0x47dcb7
cmp ebp, 4
jb 0x47e34e
mov ebx, ebp
shr ebx, 2
mov ecx, esi
call fcn.0047d2e7
mov edx, esi
call fcn.0047d377
mov ecx, eax
mov eax, edi
call fcn.0047d2d7
add edi, 4
sub ebp, 4
dec ebx
jne 0x47e32e
test ebp, ebp
je 0x47e3a9
mov ecx, esi
call fcn.0047d2e7
mov edx, esi
call fcn.0047d377
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], 0x20
lea esp, [esp]
test ebp, ebp
je 0x47e3a9
mov dl, byte [esi + 0x8c]
mov byte [edi], dl
mov edx, dword [esi + 0x90]
mov ebx, dword [esi + 0x8c]
add edx, 0xfffffff8
shr ebx, 8
inc edi
mov eax, edx
dec ebp
test eax, eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], edx
jne 0x47e377
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret