Function at 0x492dd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ch, byte [esi + 3]
movzx edx, byte [esi + 1]
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + 4]
mov ebx, dword [eax + 4]
mov cl, byte [esi + 2]
push edi
mov edi, dword [eax]
add eax, 4
add eax, 4
add eax, 4
add eax, 4
shl ecx, 8
or ecx, edx
movzx edx, byte [esi]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [esi + 7]
xor edi, ecx
movzx ecx, byte [esi + 5]
mov dword [esp + 0x2c], edi
mov dl, byte [esi + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 4]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov ch, byte [esi + 0xb]
xor edx, ebx
movzx ebx, byte [esi + 9]
mov dword [esp + 0x10], edx
mov cl, byte [esi + 0xa]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 8]
shl ecx, 8
or ecx, ebx
mov ebx, dword [eax - 8]
xor ecx, ebx
movzx ebx, byte [esi + 0xd]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov ch, byte [esi + 0xf]
mov cl, byte [esi + 0xe]
movzx esi, byte [esi + 0xc]
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, esi
mov esi, dword [eax - 4]
xor ecx, esi
mov esi, dword [esp + 0x28]
test esi, esi
mov dword [esp + 0x1c], ecx
jne 0x49332d
mov esi, dword [ebp]
sar esi, 1
dec esi
test esi, esi
jle 0x4930e2
mov edi, esi
movzx ebp, byte [esp + 0x26]
shr edx, 0x18
movzx esi, ch
mov ebx, dword [esi*4 + 0x1004b960]
mov esi, dword [ebp*4 + 0x1004b538]
mov ebp, dword [eax]
xor ebx, esi
mov esi, dword [edx*4 + 0x1004b138]
mov edx, dword [esp + 0x2c]
and edx, 0xff
xor ebx, esi
mov esi, dword [edx*4 + 0x1004bd60]
movzx edx, byte [esp + 0x1e]
xor ebx, esi
mov esi, dword [edx*4 + 0x1004b538]
xor ebx, ebp
movzx ebp, byte [esp + 0x2d]
xor esi, dword [ebp*4 + 0x1004b960]
mov edx, dword [esp + 0x24]
shr edx, 0x18
mov edx, dword [edx*4 + 0x1004b138]
mov ebp, esi
xor ebp, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], esi
and edx, 0xff
mov dword [esp + 0x28], ebp
mov esi, ebp
mov ebp, dword [edx*4 + 0x1004bd60]
movzx edx, byte [esp + 0x11]
xor esi, ebp
mov ebp, dword [eax + 4]
xor esi, ebp
movzx ebp, byte [esp + 0x2e]
mov dword [esp + 0x14], esi
mov esi, dword [edx*4 + 0x1004b960]
xor esi, dword [ebp*4 + 0x1004b538]
add eax, 4
mov edx, ecx
shr edx, 0x18
mov ebp, dword [edx*4 + 0x1004b138]
mov edx, dword [esp + 0x24]
xor esi, ebp
mov dword [esp + 0x28], esi
and edx, 0xff
mov ebp, dword [edx*4 + 0x1004bd60]
movzx edx, byte [esp + 0x25]
xor esi, ebp
mov ebp, dword [eax + 4]
xor esi, ebp
movzx ebp, byte [esp + 0x12]
add eax, 4
mov dword [esp + 0x28], esi
mov esi, dword [edx*4 + 0x1004b960]
xor esi, dword [ebp*4 + 0x1004b538]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
shr esi, 0x18
mov ebp, dword [esi*4 + 0x1004b138]
mov esi, dword [eax + 4]
xor edx, ebp
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x1004bd60]
add eax, 4
xor edx, ebp
xor edx, esi
movzx esi, byte [esp + 0x2a]
mov ebp, dword [esi*4 + 0x1004b538]
mov esi, dword [esp + 0x14]
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1004b960]
xor ecx, ebp
add eax, 4
shr esi, 0x18
mov ebp, dword [esi*4 + 0x1004b138]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
xor ecx, ebp
mov esi, ebx
and esi, 0xff
mov ebp, dword [esi*4 + 0x1004bd60]
mov esi, dword [eax]
xor ecx, ebp
xor ecx, esi
mov dword [esp + 0x2c], ecx
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x1004b538]
movzx esi, bh
mov ebp, dword [esi*4 + 0x1004b960]
mov esi, dword [esp + 0x28]
xor ecx, ebp
shr esi, 0x18
mov ebp, dword [esi*4 + 0x1004b138]
mov esi, dword [esp + 0x14]
xor ecx, ebp
and esi, 0xff
mov ebp, dword [esi*4 + 0x1004bd60]
mov esi, dword [eax + 4]
xor ecx, ebp
xor ecx, esi
movzx esi, byte [esp + 0x1a]
mov ebp, dword [esi*4 + 0x1004b538]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esp + 0x15]
mov ecx, dword [ecx*4 + 0x1004b960]
add eax, 4
xor ecx, ebp
mov esi, edx
shr esi, 0x18
mov ebp, dword [esi*4 + 0x1004b138]
mov esi, dword [esp + 0x28]
xor ecx, ebp
and esi, 0xff
mov ebp, dword [esi*4 + 0x1004bd60]
mov esi, dword [eax + 4]
xor ecx, ebp
xor ecx, esi
movzx esi, byte [esp + 0x16]
mov ebp, dword [esi*4 + 0x1004b538]
add eax, 4
mov dword [esp + 0x24], ecx
movzx ecx, byte [esp + 0x29]
mov ecx, dword [ecx*4 + 0x1004b960]
xor ecx, ebp
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x1004b138]
mov ebx, dword [eax + 4]
xor ecx, ebp
and edx, 0xff
mov ebp, dword [edx*4 + 0x1004bd60]
mov edx, dword [esp + 0x10]
add eax, 4
xor ecx, ebp
xor ecx, ebx
add eax, 4
dec edi
mov dword [esp + 0x1c], ecx
jne 0x492e94
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [ebx*4 + 0x1004b538]
movzx esi, ch
mov esi, dword [esi*4 + 0x1004b960]
xor esi, ebp
mov ebx, edx
and edi, 0xff
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x1004b138]
mov ebx, dword [edi*4 + 0x1004bd60]
mov edi, dword [eax]
xor esi, ebp
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2d]
mov ebx, dword [edi*4 + 0x1004b960]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], esi
movzx esi, byte [esp + 0x1e]
mov esi, dword [esi*4 + 0x1004b538]
xor esi, ebx
shr edi, 0x18
xor esi, dword [edi*4 + 0x1004b138]
mov edi, edx
and edi, 0xff
mov ebx, dword [edi*4 + 0x1004bd60]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2e]
mov ebp, dword [edi*4 + 0x1004b538]
movzx edx, dh
add eax, 4
mov dword [esp + 0x14], esi
mov esi, dword [edx*4 + 0x1004b960]
mov edx, ecx
shr edx, 0x18
mov edi, dword [edx*4 + 0x1004b138]
mov edx, dword [esp + 0x24]
xor esi, ebp
mov ebp, dword [eax + 4]
xor esi, edi
mov edi, edx
and edi, 0xff
xor esi, dword [edi*4 + 0x1004bd60]
add eax, 4
xor esi, ebp
mov dword [esp + 0x28], esi
movzx esi, byte [esp + 0x12]
mov edi, dword [esi*4 + 0x1004b538]
mov esi, dword [esp + 0x2c]
movzx edx, dh
mov edx, dword [edx*4 + 0x1004b960]
shr esi, 0x18
mov ebx, dword [esi*4 + 0x1004b138]
and ecx, 0xff
xor edx, edi
xor edx, ebx
mov dword [esp + 0x24], esi
mov esi, dword [ecx*4 + 0x1004bd60]
mov ecx, dword [eax + 4]
add eax, 4
xor edx, esi
mov esi, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [esp + 0x28]
shr ecx, 0x10
xor ebx, ebx
shr esi, 0x18
mov bh, byte [esi + 0x1004d160]
movzx ecx, cl
movzx ecx, byte [ecx + 0x1004d160]
xor ecx, ebx
mov dword [esp + 0x1c], edx
add eax, 4
shl ecx, 8
movzx edx, dh
movzx edx, byte [edx + 0x1004d160]
xor ecx, edx
mov edx, dword [esp + 0x18]
and edx, 0xff
movzx edx, byte [edx + 0x1004d160]
shl ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x1c]
shr edx, 0x10
movzx edx, dl
movzx esi, byte [edx + 0x1004d160]
mov edx, dword [esp + 0x28]
shr edx, 0x18
mov ebp, dword [eax]
xor ebx, ebx
mov bh, byte [edx + 0x1004d160]
movzx edx, byte [esp + 0x19]
movzx edx, byte [edx + 0x1004d160]
xor esi, ebx
shl esi, 8
xor esi, edx
mov edx, dword [esp + 0x14]
and edx, 0xff
movzx edx, byte [edx + 0x1004d160]
shl esi, 8
xor esi, edx
movzx edx, byte [esp + 0x1a]
add eax, 4
xor ecx, ebp
xor esi, dword [eax]
mov dword [esp + 0x10], esi
movzx esi, byte [edx + 0x1004d160]
mov edx, dword [esp + 0x1c]
shr edx, 0x18
mov edi, dword [eax + 4]
xor ebx, ebx
mov bh, byte [edx + 0x1004d160]
movzx edx, byte [esp + 0x15]
movzx edx, byte [edx + 0x1004d160]
xor esi, ebx
shl esi, 8
xor esi, edx
mov edx, dword [esp + 0x28]
and edx, 0xff
movzx edx, byte [edx + 0x1004d160]
shl esi, 8
xor esi, edx
movzx edx, byte [esp + 0x16]
movzx edx, byte [edx + 0x1004d160]
xor esi, edi
add eax, 4
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x18]
shr esi, 0x18
xor ebx, ebx
mov bh, byte [esi + 0x1004d160]
movzx esi, byte [esp + 0x29]
movzx esi, byte [esi + 0x1004d160]
mov dword [esp + 0x2c], edx
xor edx, ebx
shl edx, 8
xor edx, esi
mov esi, dword [esp + 0x1c]
and esi, 0xff
movzx esi, byte [esi + 0x1004d160]
jmp 0x4937c0
mov ebp, dword [ebp]
sar ebp, 1
dec ebp
test ebp, ebp
jle 0x493581
jmp 0x493340
movzx esi, byte [esp + 0x26]
mov esi, dword [esi*4 + 0x1004c560]
movzx edx, dh
xor esi, dword [edx*4 + 0x1004c960]
mov edx, ecx
shr edx, 0x18
xor esi, dword [edx*4 + 0x1004c160]
mov edx, edi
and edx, 0xff
xor esi, dword [edx*4 + 0x1004cd60]
xor esi, dword [eax]
movzx edx, byte [esp + 0x1e]
mov edx, dword [edx*4 + 0x1004c560]
mov dword [esp + 0x18], esi
movzx esi, byte [esp + 0x25]
mov ebx, dword [esi*4 + 0x1004c960]
mov esi, dword [esp + 0x10]
and esi, 0xff
shr edi, 0x18
xor edx, ebx
mov ebx, dword [edi*4 + 0x1004c160]
mov edi, dword [eax + 4]
xor edx, ebx
xor edx, dword [esi*4 + 0x1004cd60]
xor edx, edi
movzx edi, byte [esp + 0x2e]
mov ebx, dword [edi*4 + 0x1004c560]
add eax, 4
movzx esi, ch
mov esi, dword [esi*4 + 0x1004c960]
xor esi, ebx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
shr esi, 0x18
mov esi, dword [esi*4 + 0x1004c160]
xor edi, esi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
and edi, 0xff
mov ebx, dword [edi*4 + 0x1004cd60]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2d]
mov ebx, dword [edi*4 + 0x1004c960]
add eax, 4
mov dword [esp + 0x28], esi
movzx esi, byte [esp + 0x12]
mov esi, dword [esi*4 + 0x1004c560]
xor esi, ebx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
shr esi, 0x18
mov edi, dword [esi*4 + 0x1004c160]
mov esi, dword [eax + 4]
and ecx, 0xff
xor ebx, edi
mov edi, dword [ecx*4 + 0x1004cd60]
mov ecx, dword [esp + 0x28]
add eax, 4
xor ebx, edi
shr ecx, 0x10
xor ebx, esi
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x1004c560]
movzx esi, dh
mov edi, dword [esi*4 + 0x1004c960]
mov esi, ebx
add eax, 4
xor ecx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
shr esi, 0x18
mov edi, dword [esi*4 + 0x1004c160]
mov esi, dword [esp + 0x18]
xor ecx, edi
and esi, 0xff
mov edi, dword [esi*4 + 0x1004cd60]
mov esi, dword [eax]
xor ecx, edi
xor ecx, esi
movzx esi, byte [esp + 0x29]
mov edi, dword [esi*4 + 0x1004c960]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x1004c560]
xor ecx, edi
shr esi, 0x18
xor ecx, dword [esi*4 + 0x1004c160]
mov esi, edx
and esi, 0xff
mov edi, dword [esi*4 + 0x1004cd60]
movzx esi, byte [esp + 0x1a]
xor ecx, edi
mov edi, dword [eax + 4]
xor ecx, edi
add eax, 4
mov dword [esp + 0x10], ecx
shr edx, 0x18
movzx ecx, bh
mov edi, dword [ecx*4 + 0x1004c960]
xor edi, dword [esi*4 + 0x1004c560]
xor edi, dword [edx*4 + 0x1004c160]
mov ecx, dword [esp + 0x28]
mov edx, ecx
and edx, 0xff
mov esi, dword [edx*4 + 0x1004cd60]
movzx edx, byte [esp + 0x16]
mov edx, dword [edx*4 + 0x1004c560]
xor edi, esi
mov esi, dword [eax + 4]
add eax, 4
xor edi, esi
movzx esi, byte [esp + 0x19]
mov dword [esp + 0x24], edi
xor edx, dword [esi*4 + 0x1004c960]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1004c160]
mov edi, dword [eax + 4]
and ebx, 0xff
mov ecx, dword [ebx*4 + 0x1004cd60]
add eax, 4
xor edx, ecx
xor edx, edi
mov edi, dword [esp + 0x2c]
mov ecx, edx
mov edx, dword [esp + 0x10]
add eax, 4
dec ebp
mov dword [esp + 0x1c], ecx
jne 0x493340
movzx esi, byte [esp + 0x26]
mov esi, dword [esi*4 + 0x1004c560]
movzx ebx, dh
xor esi, dword [ebx*4 + 0x1004c960]
and edi, 0xff
mov ebx, ecx
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x1004c160]
mov ebx, dword [edi*4 + 0x1004cd60]
mov edi, dword [eax]
xor esi, ebp
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x25]
mov ebx, dword [edi*4 + 0x1004c960]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
movzx esi, byte [esp + 0x1e]
mov esi, dword [esi*4 + 0x1004c560]
xor esi, ebx
shr edi, 0x18
xor esi, dword [edi*4 + 0x1004c160]
mov edi, edx
and edi, 0xff
mov ebx, dword [edi*4 + 0x1004cd60]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2e]
mov ebp, dword [edi*4 + 0x1004c560]
mov dword [esp + 0x14], esi
add eax, 4
movzx esi, ch
mov esi, dword [esi*4 + 0x1004c960]
shr edx, 0x18
mov edi, dword [edx*4 + 0x1004c160]
xor esi, ebp
xor esi, edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov edi, edx
and edi, 0xff
mov ebx, dword [edi*4 + 0x1004cd60]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2d]
mov ebx, dword [edi*4 + 0x1004c960]
add eax, 4
mov dword [esp + 0x28], esi
movzx esi, byte [esp + 0x12]
mov esi, dword [esi*4 + 0x1004c560]
shr edx, 0x18
mov ebp, dword [edx*4 + 0x1004c160]
and ecx, 0xff
mov edi, dword [ecx*4 + 0x1004cd60]
mov ecx, dword [esp + 0x28]
xor esi, ebx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
xor esi, ebp
add eax, 4
xor esi, edi
xor esi, edx
shr ecx, 0x10
xor edx, edx
movzx ecx, cl
movzx ecx, byte [ecx + 0x1004b038]
mov dword [esp + 0x1c], esi
shr esi, 0x18
mov dh, byte [esi + 0x1004b038]
add eax, 4
xor ecx, edx
movzx edx, byte [esp + 0x15]
movzx edx, byte [edx + 0x1004b038]
shl ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x18]
shl ecx, 8
mov esi, edx
and esi, 0xff
movzx esi, byte [esi + 0x1004b038]
shr edx, 0x18
mov edi, dword [esp + 0x14]
xor ecx, esi
movzx esi, byte [esp + 0x1e]
movzx esi, byte [esi + 0x1004b038]
xor ebx, ebx
mov bh, byte [edx + 0x1004b038]
movzx edx, byte [esp + 0x29]
movzx edx, byte [edx + 0x1004b038]
xor esi, ebx
shl esi, 8
xor esi, edx
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
shl esi, 8
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + 0x1004b038]
xor esi, edx
movzx edx, byte [esp + 0x1a]
movzx edx, byte [edx + 0x1004b038]
mov dword [esp + 0x24], edx
xor edx, edx
xor esi, ebx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
shr edi, 0x18
mov dh, byte [edi + 0x1004b038]
mov edi, dword [esp + 0x28]
add eax, 4
mov ebx, dword [eax + 4]
add eax, 4
xor ecx, ebp
xor esi, edx
movzx edx, byte [esp + 0x1d]
movzx edx, byte [edx + 0x1004b038]
shl esi, 8
xor esi, edx
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + 0x1004b038]
shl esi, 8
xor esi, edx
movzx edx, byte [esp + 0x16]
movzx edx, byte [edx + 0x1004b038]
xor esi, ebx
xor ebx, ebx
shr edi, 0x18
mov bh, byte [edi + 0x1004b038]
mov dword [esp + 0x24], esi
movzx esi, byte [esp + 0x19]
movzx esi, byte [esi + 0x1004b038]
mov dword [esp + 0x2c], edx
xor edx, ebx
shl edx, 8
xor edx, esi
mov esi, dword [esp + 0x1c]
and esi, 0xff
movzx esi, byte [esi + 0x1004b038]
shl edx, 8
xor edx, esi
mov esi, dword [eax + 4]
mov eax, ecx
shr eax, 8
xor edx, esi
mov esi, dword [esp + 0x30]
mov byte [esi + 1], al
mov eax, ecx
mov byte [esi], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 3], cl
mov byte [esi + 2], al
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 8
mov byte [esi + 5], cl
mov byte [esi + 4], al
mov ecx, eax
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x24]
mov byte [esi + 6], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 9], cl
mov ecx, eax
mov byte [esi + 8], al
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 0xb], al
mov byte [esi + 0xa], cl
mov eax, edx
mov ecx, edx
mov byte [esi + 0xc], dl
shr eax, 8
shr ecx, 0x10
shr edx, 0x18
pop edi
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], dl
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret