Function at 0x4d2200
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

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 0x4d275d
mov esi, dword [ebp]
sar esi, 1
dec esi
test esi, esi
jle 0x4d2512
mov edi, esi
movzx ebp, byte [esp + 0x26]
shr edx, 0x18
movzx esi, ch
mov ebx, dword [esi*4 + 0x51e718]
mov esi, dword [ebp*4 + 0x51eb18]
mov ebp, dword [eax]
xor ebx, esi
mov esi, dword [edx*4 + 0x51ef18]
mov edx, dword [esp + 0x2c]
and edx, 0xff
xor ebx, esi
mov esi, dword [edx*4 + 0x51e318]
movzx edx, byte [esp + 0x1e]
xor ebx, esi
mov esi, dword [edx*4 + 0x51eb18]
xor ebx, ebp
movzx ebp, byte [esp + 0x2d]
xor esi, dword [ebp*4 + 0x51e718]
mov edx, dword [esp + 0x24]
shr edx, 0x18
mov edx, dword [edx*4 + 0x51ef18]
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 + 0x51e318]
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 + 0x51e718]
xor esi, dword [ebp*4 + 0x51eb18]
add eax, 4
mov edx, ecx
shr edx, 0x18
mov ebp, dword [edx*4 + 0x51ef18]
mov edx, dword [esp + 0x24]
xor esi, ebp
mov dword [esp + 0x28], esi
and edx, 0xff
mov ebp, dword [edx*4 + 0x51e318]
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 + 0x51e718]
xor esi, dword [ebp*4 + 0x51eb18]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
shr esi, 0x18
mov ebp, dword [esi*4 + 0x51ef18]
mov esi, dword [eax + 4]
xor edx, ebp
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x51e318]
add eax, 4
xor edx, ebp
xor edx, esi
movzx esi, byte [esp + 0x2a]
mov ebp, dword [esi*4 + 0x51eb18]
mov esi, dword [esp + 0x14]
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x51e718]
xor ecx, ebp
add eax, 4
shr esi, 0x18
mov ebp, dword [esi*4 + 0x51ef18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
xor ecx, ebp
mov esi, ebx
and esi, 0xff
mov ebp, dword [esi*4 + 0x51e318]
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 + 0x51eb18]
movzx esi, bh
mov ebp, dword [esi*4 + 0x51e718]
mov esi, dword [esp + 0x28]
xor ecx, ebp
shr esi, 0x18
mov ebp, dword [esi*4 + 0x51ef18]
mov esi, dword [esp + 0x14]
xor ecx, ebp
and esi, 0xff
mov ebp, dword [esi*4 + 0x51e318]
mov esi, dword [eax + 4]
xor ecx, ebp
xor ecx, esi
movzx esi, byte [esp + 0x1a]
mov ebp, dword [esi*4 + 0x51eb18]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esp + 0x15]
mov ecx, dword [ecx*4 + 0x51e718]
add eax, 4
xor ecx, ebp
mov esi, edx
shr esi, 0x18
mov ebp, dword [esi*4 + 0x51ef18]
mov esi, dword [esp + 0x28]
xor ecx, ebp
and esi, 0xff
mov ebp, dword [esi*4 + 0x51e318]
mov esi, dword [eax + 4]
xor ecx, ebp
xor ecx, esi
movzx esi, byte [esp + 0x16]
mov ebp, dword [esi*4 + 0x51eb18]
add eax, 4
mov dword [esp + 0x24], ecx
movzx ecx, byte [esp + 0x29]
mov ecx, dword [ecx*4 + 0x51e718]
xor ecx, ebp
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x51ef18]
mov ebx, dword [eax + 4]
xor ecx, ebp
and edx, 0xff
mov ebp, dword [edx*4 + 0x51e318]
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 0x4d22c4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [ebx*4 + 0x51eb18]
movzx esi, ch
mov esi, dword [esi*4 + 0x51e718]
xor esi, ebp
mov ebx, edx
and edi, 0xff
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x51ef18]
mov ebx, dword [edi*4 + 0x51e318]
mov edi, dword [eax]
xor esi, ebp
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2d]
mov ebx, dword [edi*4 + 0x51e718]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], esi
movzx esi, byte [esp + 0x1e]
mov esi, dword [esi*4 + 0x51eb18]
xor esi, ebx
shr edi, 0x18
xor esi, dword [edi*4 + 0x51ef18]
mov edi, edx
and edi, 0xff
mov ebx, dword [edi*4 + 0x51e318]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2e]
mov ebp, dword [edi*4 + 0x51eb18]
movzx edx, dh
add eax, 4
mov dword [esp + 0x14], esi
mov esi, dword [edx*4 + 0x51e718]
mov edx, ecx
shr edx, 0x18
mov edi, dword [edx*4 + 0x51ef18]
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 + 0x51e318]
add eax, 4
xor esi, ebp
mov dword [esp + 0x28], esi
movzx esi, byte [esp + 0x12]
mov edi, dword [esi*4 + 0x51eb18]
mov esi, dword [esp + 0x2c]
movzx edx, dh
mov edx, dword [edx*4 + 0x51e718]
shr esi, 0x18
mov ebx, dword [esi*4 + 0x51ef18]
and ecx, 0xff
xor edx, edi
xor edx, ebx
mov dword [esp + 0x24], esi
mov esi, dword [ecx*4 + 0x51e318]
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 + 0x51e218]
movzx ecx, cl
movzx ecx, byte [ecx + 0x51e218]
xor ecx, ebx
mov dword [esp + 0x1c], edx
add eax, 4
shl ecx, 8
movzx edx, dh
movzx edx, byte [edx + 0x51e218]
xor ecx, edx
mov edx, dword [esp + 0x18]
and edx, 0xff
movzx edx, byte [edx + 0x51e218]
shl ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x1c]
shr edx, 0x10
movzx edx, dl
movzx esi, byte [edx + 0x51e218]
mov edx, dword [esp + 0x28]
shr edx, 0x18
mov ebp, dword [eax]
xor ebx, ebx
mov bh, byte [edx + 0x51e218]
movzx edx, byte [esp + 0x19]
movzx edx, byte [edx + 0x51e218]
xor esi, ebx
shl esi, 8
xor esi, edx
mov edx, dword [esp + 0x14]
and edx, 0xff
movzx edx, byte [edx + 0x51e218]
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 + 0x51e218]
mov edx, dword [esp + 0x1c]
shr edx, 0x18
mov edi, dword [eax + 4]
xor ebx, ebx
mov bh, byte [edx + 0x51e218]
movzx edx, byte [esp + 0x15]
movzx edx, byte [edx + 0x51e218]
xor esi, ebx
shl esi, 8
xor esi, edx
mov edx, dword [esp + 0x28]
and edx, 0xff
movzx edx, byte [edx + 0x51e218]
shl esi, 8
xor esi, edx
movzx edx, byte [esp + 0x16]
movzx edx, byte [edx + 0x51e218]
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 + 0x51e218]
movzx esi, byte [esp + 0x29]
movzx esi, byte [esi + 0x51e218]
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 + 0x51e218]
jmp 0x4d2bf0
mov ebp, dword [ebp]
sar ebp, 1
dec ebp
test ebp, ebp
jle 0x4d29b1
jmp 0x4d2770
movzx esi, byte [esp + 0x26]
mov esi, dword [esi*4 + 0x51da18]
movzx edx, dh
xor esi, dword [edx*4 + 0x51d618]
mov edx, ecx
shr edx, 0x18
xor esi, dword [edx*4 + 0x51de18]
mov edx, edi
and edx, 0xff
xor esi, dword [edx*4 + 0x51d218]
xor esi, dword [eax]
movzx edx, byte [esp + 0x1e]
mov edx, dword [edx*4 + 0x51da18]
mov dword [esp + 0x18], esi
movzx esi, byte [esp + 0x25]
mov ebx, dword [esi*4 + 0x51d618]
mov esi, dword [esp + 0x10]
and esi, 0xff
shr edi, 0x18
xor edx, ebx
mov ebx, dword [edi*4 + 0x51de18]
mov edi, dword [eax + 4]
xor edx, ebx
xor edx, dword [esi*4 + 0x51d218]
xor edx, edi
movzx edi, byte [esp + 0x2e]
mov ebx, dword [edi*4 + 0x51da18]
add eax, 4
movzx esi, ch
mov esi, dword [esi*4 + 0x51d618]
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 + 0x51de18]
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 + 0x51d218]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2d]
mov ebx, dword [edi*4 + 0x51d618]
add eax, 4
mov dword [esp + 0x28], esi
movzx esi, byte [esp + 0x12]
mov esi, dword [esi*4 + 0x51da18]
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 + 0x51de18]
mov esi, dword [eax + 4]
and ecx, 0xff
xor ebx, edi
mov edi, dword [ecx*4 + 0x51d218]
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 + 0x51da18]
movzx esi, dh
mov edi, dword [esi*4 + 0x51d618]
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 + 0x51de18]
mov esi, dword [esp + 0x18]
xor ecx, edi
and esi, 0xff
mov edi, dword [esi*4 + 0x51d218]
mov esi, dword [eax]
xor ecx, edi
xor ecx, esi
movzx esi, byte [esp + 0x29]
mov edi, dword [esi*4 + 0x51d618]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x51da18]
xor ecx, edi
shr esi, 0x18
xor ecx, dword [esi*4 + 0x51de18]
mov esi, edx
and esi, 0xff
mov edi, dword [esi*4 + 0x51d218]
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 + 0x51d618]
xor edi, dword [esi*4 + 0x51da18]
xor edi, dword [edx*4 + 0x51de18]
mov ecx, dword [esp + 0x28]
mov edx, ecx
and edx, 0xff
mov esi, dword [edx*4 + 0x51d218]
movzx edx, byte [esp + 0x16]
mov edx, dword [edx*4 + 0x51da18]
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 + 0x51d618]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x51de18]
mov edi, dword [eax + 4]
and ebx, 0xff
mov ecx, dword [ebx*4 + 0x51d218]
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 0x4d2770
movzx esi, byte [esp + 0x26]
mov esi, dword [esi*4 + 0x51da18]
movzx ebx, dh
xor esi, dword [ebx*4 + 0x51d618]
and edi, 0xff
mov ebx, ecx
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x51de18]
mov ebx, dword [edi*4 + 0x51d218]
mov edi, dword [eax]
xor esi, ebp
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x25]
mov ebx, dword [edi*4 + 0x51d618]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
movzx esi, byte [esp + 0x1e]
mov esi, dword [esi*4 + 0x51da18]
xor esi, ebx
shr edi, 0x18
xor esi, dword [edi*4 + 0x51de18]
mov edi, edx
and edi, 0xff
mov ebx, dword [edi*4 + 0x51d218]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2e]
mov ebp, dword [edi*4 + 0x51da18]
mov dword [esp + 0x14], esi
add eax, 4
movzx esi, ch
mov esi, dword [esi*4 + 0x51d618]
shr edx, 0x18
mov edi, dword [edx*4 + 0x51de18]
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 + 0x51d218]
mov edi, dword [eax + 4]
xor esi, ebx
xor esi, edi
movzx edi, byte [esp + 0x2d]
mov ebx, dword [edi*4 + 0x51d618]
add eax, 4
mov dword [esp + 0x28], esi
movzx esi, byte [esp + 0x12]
mov esi, dword [esi*4 + 0x51da18]
shr edx, 0x18
mov ebp, dword [edx*4 + 0x51de18]
and ecx, 0xff
mov edi, dword [ecx*4 + 0x51d218]
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 + 0x51d118]
mov dword [esp + 0x1c], esi
shr esi, 0x18
mov dh, byte [esi + 0x51d118]
add eax, 4
xor ecx, edx
movzx edx, byte [esp + 0x15]
movzx edx, byte [edx + 0x51d118]
shl ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x18]
shl ecx, 8
mov esi, edx
and esi, 0xff
movzx esi, byte [esi + 0x51d118]
shr edx, 0x18
mov edi, dword [esp + 0x14]
xor ecx, esi
movzx esi, byte [esp + 0x1e]
movzx esi, byte [esi + 0x51d118]
xor ebx, ebx
mov bh, byte [edx + 0x51d118]
movzx edx, byte [esp + 0x29]
movzx edx, byte [edx + 0x51d118]
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 + 0x51d118]
xor esi, edx
movzx edx, byte [esp + 0x1a]
movzx edx, byte [edx + 0x51d118]
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 + 0x51d118]
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 + 0x51d118]
shl esi, 8
xor esi, edx
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + 0x51d118]
shl esi, 8
xor esi, edx
movzx edx, byte [esp + 0x16]
movzx edx, byte [edx + 0x51d118]
xor esi, ebx
xor ebx, ebx
shr edi, 0x18
mov bh, byte [edi + 0x51d118]
mov dword [esp + 0x24], esi
movzx esi, byte [esp + 0x19]
movzx esi, byte [esi + 0x51d118]
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 + 0x51d118]
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 + 6], cl
mov byte [esi + 7], al
mov eax, dword [esp + 0x24]
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 + 0xa], cl
mov byte [esi + 0xb], al
mov eax, edx
mov ecx, edx
mov byte [esi + 0xc], dl
shr eax, 8
shr ecx, 0x10
pop edi
shr edx, 0x18
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], dl
pop esi
pop ebp
pop ebx
add esp, 0x10
ret