Function at 0x493110
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.00484230
mov edx, dword [esp + 0x40]
xor eax, eax
test edx, edx
je 0x49314f
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov ecx, eax
shr ecx, 2
mov ebx, dword [edi + ecx*4]
lea ecx, [edi + ecx*4]
movzx edi, byte [eax + esi]
shl ebx, 8
add edi, ebx
inc eax
mov dword [ecx], edi
cmp eax, edx
jne 0x493130
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], eax
xor edx, edx
mov edi, 2
mov esi, 0x4fb024
jmp 0x4931a0
lea eax, [edi - 2]
and eax, 0x1f
movzx ecx, byte [eax + 0x4fb320]
mov eax, dword [esi - 4]
add eax, dword [esp + 0x40]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
xor ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x18]
movzx eax, al
add ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi]
xor ebx, ecx
xor eax, ebx
mov dword [esp + 0x18], ebx
lea ecx, [edi - 1]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
sub ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
add ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 4]
xor ebx, ecx
sub eax, ebx
mov dword [esp + 0x1c], ebx
mov ecx, edi
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
add ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x14]
movzx eax, al
sub ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 8]
xor ebx, ecx
lea ecx, [edi + 1]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
add eax, ebx
rol eax, cl
mov dword [esp + 0x14], ebx
mov ebx, eax
shr ebx, 0x10
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x20]
movzx eax, al
add ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0xc]
xor ebx, ecx
xor eax, ebx
mov dword [esp + 0x20], ebx
lea ecx, [edi + 2]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
sub ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
add ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x10]
xor ebx, ecx
sub eax, ebx
mov dword [esp + 0x10], ebx
lea ecx, [edi + 3]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
add ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x24]
movzx eax, al
sub ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x14]
xor ebx, ecx
add eax, ebx
lea ecx, [edi + 4]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov dword [esp + 0x24], ebx
mov ebx, eax
shr ebx, 0x10
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x3c]
movzx eax, al
add ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x18]
xor ebx, ecx
lea ecx, [edi + 5]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
xor eax, ebx
rol eax, cl
mov dword [esp + 0x3c], ebx
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
add ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x40]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f9c20]
lea eax, [edi + 6]
xor ebx, ecx
and eax, 0x1f
movzx ecx, byte [eax + 0x4fb320]
mov eax, dword [esi + 0x1c]
add eax, ebx
rol eax, cl
mov dword [esp + 0x40], ebx
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
xor ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x18]
movzx eax, al
add ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x20]
xor ebx, ecx
xor eax, ebx
mov dword [esp + 0x18], ebx
lea ecx, [edi + 7]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
sub ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
add ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x24]
xor ebx, ecx
sub eax, ebx
lea ecx, [edi + 8]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov dword [esp + 0x1c], ebx
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
add ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x14]
movzx eax, al
sub ecx, dword [eax*4 + 0x4f9c20]
xor ebx, ecx
mov dword [esp + 0x14], ebx
lea ecx, [edi + 9]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
mov eax, dword [esi + 0x28]
add eax, ebx
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
xor ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x20]
movzx eax, al
add ecx, dword [eax*4 + 0x4f9c20]
lea eax, [edi + 0xa]
xor ebx, ecx
and eax, 0x1f
movzx ecx, byte [eax + 0x4fb320]
mov eax, dword [esi + 0x2c]
xor eax, ebx
rol eax, cl
mov dword [esp + 0x20], ebx
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
sub ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
add ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x30]
xor ebx, ecx
sub eax, ebx
mov dword [esp + 0x10], ebx
lea ecx, [edi + 0xb]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
add ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x24]
movzx eax, al
sub ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x34]
xor ebx, ecx
lea ecx, [edi + 0xc]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
add eax, ebx
rol eax, cl
mov dword [esp + 0x24], ebx
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
xor ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [esp + 0x3c]
movzx eax, al
add ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esi + 0x38]
xor ebx, ecx
xor eax, ebx
lea ecx, [edi + 0xd]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x4fb320]
rol eax, cl
mov dword [esp + 0x3c], ebx
add edx, 4
add esi, 0x40
mov ebx, eax
shr ebx, 0x10
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f9020]
movzx ebx, bl
sub ecx, dword [ebx*4 + 0x4f9420]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
add ecx, dword [ebx*4 + 0x4f9820]
mov ebx, dword [ebp + 0x24]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f9c20]
mov eax, dword [esp + 0x40]
xor eax, ecx
movzx ecx, byte [esp + 0x3c]
and cl, 0x1f
mov byte [edx + ebx - 4], cl
mov ebx, dword [ebp + 0x24]
movzx ecx, byte [esp + 0x10]
and cl, 0x1f
mov byte [ebx + edx - 3], cl
mov ebx, dword [ebp + 0x24]
movzx ecx, byte [esp + 0x14]
and cl, 0x1f
mov byte [ebx + edx - 2], cl
movzx ecx, byte [esp + 0x18]
mov ebx, dword [ebp + 0x24]
and cl, 0x1f
mov byte [ebx + edx - 1], cl
mov ecx, dword [ebp + 0x14]
mov dword [edi + ecx - 2], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + eax + 2], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [edi + eax + 6], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edi + eax + 0xa], ecx
add edi, 0x10
cmp edx, 0x30
jne 0x4931a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x2c]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8