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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dh, byte [ecx + 3]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
movzx edi, byte [ecx + 1]
mov dl, byte [ecx + 2]
push 4
pop ebx
shl edx, 8
or edx, edi
movzx edi, byte [ecx]
shl edx, 8
or edx, edi
xor edx, dword [eax]
movzx edi, byte [ecx + 5]
mov dword [ebp + 8], edx
xor edx, edx
mov dh, byte [ecx + 7]
add eax, ebx
mov dl, byte [ecx + 6]
shl edx, 8
or edx, edi
movzx edi, byte [ecx + 4]
shl edx, 8
or edx, edi
xor edx, dword [eax]
movzx edi, byte [ecx + 9]
mov dword [ebp + 0x10], edx
xor edx, edx
mov dh, byte [ecx + 0xb]
add eax, ebx
mov dl, byte [ecx + 0xa]
shl edx, 8
or edx, edi
movzx edi, byte [ecx + 8]
shl edx, 8
or edx, edi
xor edx, dword [eax]
movzx edi, byte [ecx + 0xd]
mov dword [ebp - 8], edx
xor edx, edx
mov dh, byte [ecx + 0xf]
add eax, ebx
mov dl, byte [ecx + 0xe]
movzx ecx, byte [ecx + 0xc]
shl edx, 8
or edx, edi
shl edx, 8
or edx, ecx
xor edx, dword [eax]
mov ecx, dword [esi]
sar ecx, 1
add eax, ebx
dec ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], edx
mov esi, 0xff
jne 0x4d42ff
test ecx, ecx
jle 0x4d4114
mov dword [ebp - 0x14], ecx
movzx ecx, byte [ebp - 3]
movzx edx, byte [ebp - 6]
mov ecx, dword [ecx*4 + 0x506550]
xor ecx, dword [edx*4 + 0x506950]
mov edx, dword [ebp + 0x10]
movzx edi, byte [ebp + 9]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x506d50]
mov edx, dword [ebp + 8]
mov dword [ebp + 0xc], edi
and edx, esi
xor ecx, dword [edx*4 + 0x506150]
movzx edx, byte [ebp - 2]
mov edi, dword [edx*4 + 0x506950]
mov edx, dword [ebp + 0xc]
xor edi, dword [edx*4 + 0x506550]
mov edx, dword [ebp - 8]
xor ecx, dword [eax]
shr edx, 0x18
xor edi, dword [edx*4 + 0x506d50]
mov edx, dword [ebp + 0x10]
and edx, esi
xor edi, dword [edx*4 + 0x506150]
movzx edx, byte [ebp + 0x11]
add eax, ebx
xor edi, dword [eax]
add eax, ebx
mov dword [ebp - 0xc], edi
movzx edi, byte [ebp + 0xa]
mov dword [ebp + 0xc], edi
mov edi, dword [edx*4 + 0x506550]
mov edx, dword [ebp + 0xc]
xor edi, dword [edx*4 + 0x506950]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor edi, dword [edx*4 + 0x506d50]
mov edx, dword [ebp - 8]
and edx, esi
xor edi, dword [edx*4 + 0x506150]
movzx edx, byte [ebp - 7]
xor edi, dword [eax]
mov edx, dword [edx*4 + 0x506550]
mov dword [ebp + 0xc], edi
movzx edi, byte [ebp + 0x12]
xor edx, dword [edi*4 + 0x506950]
mov edi, dword [ebp + 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x506d50]
mov edi, dword [ebp - 4]
and edi, esi
xor edx, dword [edi*4 + 0x506150]
add eax, ebx
xor edx, dword [eax]
movzx ebx, byte [ebp + 0xe]
movzx edi, dh
mov edi, dword [edi*4 + 0x506550]
xor edi, dword [ebx*4 + 0x506950]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x506d50]
mov ebx, ecx
and ebx, esi
xor edi, dword [ebx*4 + 0x506150]
add eax, 4
xor edi, dword [eax]
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
movzx edi, byte [ebp - 2]
mov edi, dword [edi*4 + 0x506950]
movzx ebx, ch
xor edi, dword [ebx*4 + 0x506550]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x506d50]
mov ebx, dword [ebp - 0xc]
and ebx, esi
xor edi, dword [ebx*4 + 0x506150]
add eax, 4
xor edi, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x10], edi
movzx edi, byte [ebp - 0xb]
mov edi, dword [edi*4 + 0x506550]
movzx ebx, byte [ebp - 0xe]
xor edi, dword [ebx*4 + 0x506950]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x506d50]
mov ebx, dword [ebp + 0xc]
and ebx, esi
xor edi, dword [ebx*4 + 0x506150]
movzx ebx, byte [ebp - 0xa]
add eax, 4
xor edi, dword [eax]
shr ecx, 0x18
mov dword [ebp - 8], edi
movzx edi, byte [ebp + 0xd]
mov edi, dword [edi*4 + 0x506550]
xor edi, dword [ebx*4 + 0x506950]
and edx, esi
xor edi, dword [ecx*4 + 0x506d50]
add eax, 4
xor edi, dword [edx*4 + 0x506150]
push 4
xor edi, dword [eax]
pop ebx
add eax, ebx
dec dword [ebp - 0x14]
mov dword [ebp - 4], edi
jne 0x4d3f52
movzx ecx, byte [ebp - 3]
movzx edx, byte [ebp - 6]
mov ecx, dword [ecx*4 + 0x506550]
xor ecx, dword [edx*4 + 0x506950]
mov edx, dword [ebp + 0x10]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x506d50]
mov edx, dword [ebp + 8]
movzx edi, byte [ebp + 9]
and edx, esi
xor ecx, dword [edx*4 + 0x506150]
movzx edx, byte [ebp - 2]
xor ecx, dword [eax]
mov dword [ebp + 0xc], edi
mov edi, dword [edx*4 + 0x506950]
mov edx, dword [ebp + 0xc]
xor edi, dword [edx*4 + 0x506550]
mov edx, dword [ebp - 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x506d50]
mov edx, dword [ebp + 0x10]
and edx, esi
xor edi, dword [edx*4 + 0x506150]
movzx edx, byte [ebp + 0x11]
add eax, ebx
xor edi, dword [eax]
add eax, ebx
mov dword [ebp - 0xc], edi
movzx edi, byte [ebp + 0xa]
mov dword [ebp + 0xc], edi
mov edi, dword [edx*4 + 0x506550]
mov edx, dword [ebp + 0xc]
xor edi, dword [edx*4 + 0x506950]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor edi, dword [edx*4 + 0x506d50]
mov edx, dword [ebp - 8]
and edx, esi
xor edi, dword [edx*4 + 0x506150]
movzx edx, byte [ebp - 7]
xor edi, dword [eax]
add eax, ebx
movzx ebx, byte [ebp + 0x12]
mov dword [ebp + 0xc], edi
mov edi, dword [edx*4 + 0x506550]
xor edi, dword [ebx*4 + 0x506950]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x506d50]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
and edx, esi
xor edi, dword [edx*4 + 0x506150]
mov dword [ebp + 8], edx
xor edi, dword [eax]
movzx edx, byte [ebp + 0xe]
mov dword [ebp - 4], edi
movzx edi, byte [edx + 0x506050]
mov edx, dword [ebp - 0xc]
shr edx, 0x18
xor ebx, ebx
mov bh, byte [edx + 0x506050]
movzx edx, byte [ebp - 3]
movzx edx, byte [edx + 0x506050]
xor edi, ebx
shl edi, 8
xor edi, edx
mov edx, ecx
and edx, esi
movzx edx, byte [edx + 0x506050]
shl edi, 8
xor edi, edx
movzx edx, byte [ebp - 2]
add eax, 4
xor edi, dword [eax]
add eax, 4
mov dword [ebp + 8], edi
movzx edi, byte [edx + 0x506050]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
shr edx, 0x18
xor ebx, ebx
mov bh, byte [edx + 0x506050]
movzx edx, ch
movzx edx, byte [edx + 0x506050]
xor edi, ebx
shl edi, 8
xor edi, edx
mov edx, dword [ebp - 0xc]
shl edi, 8
and edx, esi
movzx edx, byte [edx + 0x506050]
xor edi, edx
xor edi, dword [eax]
movzx edx, byte [ebp - 0xe]
movzx edx, byte [edx + 0x506050]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp - 4]
shr edi, 0x18
xor ebx, ebx
mov bh, byte [edi + 0x506050]
movzx edi, byte [ebp - 0xb]
movzx edi, byte [edi + 0x506050]
xor edx, ebx
shl edx, 8
xor edx, edi
mov edi, dword [ebp + 0xc]
and edi, esi
movzx edi, byte [edi + 0x506050]
shl edx, 8
xor edx, edi
movzx edi, byte [ebp - 0xa]
movzx edi, byte [edi + 0x506050]
shr ecx, 0x18
xor ebx, ebx
mov bh, byte [ecx + 0x506050]
mov ecx, edi
mov dword [ebp - 0x14], edi
movzx edi, byte [ebp + 0xd]
movzx edi, byte [edi + 0x506050]
xor ecx, ebx
shl ecx, 8
xor ecx, edi
mov edi, dword [ebp - 4]
add eax, 4
and edi, esi
movzx esi, byte [edi + 0x506050]
jmp 0x4d46a8
test ecx, ecx
jle 0x4d44cb
mov dword [ebp - 0x14], ecx
movzx ecx, byte [ebp - 6]
mov ecx, dword [ecx*4 + 0x505850]
movzx edx, byte [ebp + 0x11]
xor ecx, dword [edx*4 + 0x505450]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x505c50]
mov edx, dword [ebp + 8]
and edx, esi
xor ecx, dword [edx*4 + 0x505050]
movzx edx, byte [ebp - 7]
xor ecx, dword [eax]
movzx edi, byte [ebp + 0xa]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [ebp - 2]
mov ecx, dword [ecx*4 + 0x505850]
xor ecx, dword [edx*4 + 0x505450]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x505c50]
mov edx, dword [ebp + 0x10]
and edx, esi
xor ecx, dword [edx*4 + 0x505050]
movzx edx, byte [ebp - 3]
mov edx, dword [edx*4 + 0x505450]
xor edx, dword [edi*4 + 0x505850]
mov edi, dword [ebp + 0x10]
shr edi, 0x18
xor edx, dword [edi*4 + 0x505c50]
mov edi, dword [ebp - 8]
and edi, esi
xor edx, dword [edi*4 + 0x505050]
movzx edi, byte [ebp + 0x12]
mov edi, dword [edi*4 + 0x505850]
add eax, ebx
xor ecx, dword [eax]
add eax, ebx
movzx ebx, byte [ebp + 9]
xor edi, dword [ebx*4 + 0x505450]
xor edx, dword [eax]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], edi
mov edi, dword [ebp - 8]
shr edi, 0x18
mov edi, dword [edi*4 + 0x505c50]
xor dword [ebp + 8], edi
mov edi, dword [ebp + 8]
and ebx, esi
xor edi, dword [ebx*4 + 0x505050]
add eax, 4
xor edi, dword [eax]
mov dword [ebp + 0xc], edx
mov dword [ebp - 4], edi
movzx edi, byte [ebp + 0xe]
mov edi, dword [edi*4 + 0x505850]
movzx ebx, ch
xor edi, dword [ebx*4 + 0x505450]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x505c50]
mov ebx, dword [ebp - 0x10]
and ebx, esi
xor edi, dword [ebx*4 + 0x505050]
add eax, 4
xor edi, dword [eax]
movzx ebx, dh
mov dword [ebp + 8], edi
movzx edi, byte [ebp - 2]
mov edi, dword [edi*4 + 0x505850]
xor edi, dword [ebx*4 + 0x505450]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x505c50]
mov ebx, ecx
and ebx, esi
xor edi, dword [ebx*4 + 0x505050]
add eax, 4
xor edi, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x10], edi
add eax, 4
movzx edi, byte [ebp - 3]
mov edi, dword [edi*4 + 0x505450]
movzx ebx, byte [ebp - 0xe]
xor edi, dword [ebx*4 + 0x505850]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x505c50]
mov ecx, edx
and ecx, esi
xor edi, dword [ecx*4 + 0x505050]
movzx ecx, byte [ebp - 0xa]
xor edi, dword [eax]
mov ecx, dword [ecx*4 + 0x505850]
mov dword [ebp - 8], edi
movzx edi, byte [ebp - 0xf]
xor ecx, dword [edi*4 + 0x505450]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x505c50]
push 4
mov edi, ecx
mov ecx, dword [ebp - 4]
and ecx, esi
xor edi, dword [ecx*4 + 0x505050]
pop ebx
add eax, ebx
xor edi, dword [eax]
add eax, ebx
dec dword [ebp - 0x14]
mov dword [ebp - 4], edi
jne 0x4d430a
movzx ecx, byte [ebp - 6]
mov ecx, dword [ecx*4 + 0x505850]
movzx edx, byte [ebp + 0x11]
xor ecx, dword [edx*4 + 0x505450]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x505c50]
mov edx, dword [ebp + 8]
and edx, esi
xor ecx, dword [edx*4 + 0x505050]
movzx edx, byte [ebp - 7]
xor ecx, dword [eax]
add eax, ebx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [ebp - 2]
mov ecx, dword [ecx*4 + 0x505850]
xor ecx, dword [edx*4 + 0x505450]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x505c50]
mov edx, dword [ebp + 0x10]
and edx, esi
xor ecx, dword [edx*4 + 0x505050]
movzx edx, byte [ebp - 3]
mov edi, dword [edx*4 + 0x505450]
xor ecx, dword [eax]
mov edx, dword [ebp + 0x10]
shr edx, 0x18
add eax, ebx
movzx ebx, byte [ebp + 0xa]
xor edi, dword [ebx*4 + 0x505850]
mov dword [ebp + 0xc], edx
xor edi, dword [edx*4 + 0x505c50]
mov edx, dword [ebp - 8]
mov ebx, edx
and ebx, esi
xor edi, dword [ebx*4 + 0x505050]
movzx ebx, byte [ebp + 9]
xor edi, dword [eax]
shr edx, 0x18
mov dword [ebp + 0xc], edi
movzx edi, byte [ebp + 0x12]
mov edi, dword [edi*4 + 0x505850]
xor edi, dword [ebx*4 + 0x505450]
mov dword [ebp + 8], edx
xor edi, dword [edx*4 + 0x505c50]
mov edx, dword [ebp - 4]
and edx, esi
xor edi, dword [edx*4 + 0x505050]
mov dword [ebp + 8], edx
movzx edx, byte [ebp + 0xe]
movzx edx, byte [edx + str.cw]
mov dword [ebp + 8], edx
xor edx, edx
add eax, 4
xor edi, dword [eax]
add eax, 4
mov dword [ebp - 4], edi
shr edi, 0x18
mov dh, byte [edi + str.cw]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
xor edi, edx
movzx edx, ch
movzx edx, byte [edx + str.cw]
shl edi, 8
xor edi, edx
mov edx, dword [ebp - 0x10]
and edx, esi
movzx edx, byte [edx + str.cw]
shl edi, 8
xor edi, edx
xor edi, dword [eax]
movzx edx, byte [ebp - 2]
mov dword [ebp + 8], edi
movzx edi, byte [edx + str.cw]
mov edx, dword [ebp - 0x10]
shr edx, 0x18
add eax, 4
xor ebx, ebx
mov bh, byte [edx + str.cw]
movzx edx, byte [ebp + 0xd]
movzx edx, byte [edx + str.cw]
xor edi, ebx
shl edi, 8
xor edi, edx
mov edx, ecx
and edx, esi
movzx edx, byte [edx + str.cw]
shr ecx, 0x18
shl edi, 8
xor edi, edx
xor edi, dword [eax]
movzx edx, byte [ebp - 0xe]
movzx edx, byte [edx + str.cw]
xor ebx, ebx
mov bh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 3]
movzx ecx, byte [ecx + str.cw]
xor edx, ebx
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
shl edx, 8
xor edx, ecx
mov ecx, edi
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shr edi, 0x18
shl edx, 8
xor edx, ecx
movzx ecx, byte [ebp - 0xa]
movzx ecx, byte [ecx + str.cw]
xor ebx, ebx
mov bh, byte [edi + str.cw]
movzx edi, byte [ebp - 0xf]
movzx edi, byte [edi + str.cw]
mov dword [ebp + 0xc], ecx
xor ecx, ebx
shl ecx, 8
xor ecx, edi
mov edi, dword [ebp - 4]
add eax, 4
and edi, esi
movzx esi, byte [edi + str.cw]
xor edx, dword [eax]
shl ecx, 8
xor ecx, esi
xor ecx, dword [eax + 4]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ebx, eax
mov byte [esi], al
shr ebx, 8
mov byte [esi + 1], bl
mov ebx, eax
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [ebp + 0x10]
shr ebx, 0x10
mov byte [esi + 2], bl
mov ebx, eax
mov byte [esi + 4], al
shr ebx, 8
mov byte [esi + 5], bl
mov ebx, eax
shr eax, 0x18
mov byte [esi + 7], al
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ecx
shr ebx, 0x10
mov byte [esi + 8], dl
shr edx, 0x18
mov byte [esi + 0xc], cl
shr eax, 0x10
shr ecx, 0x18
pop edi
mov byte [esi + 6], bl
mov byte [esi + 0xb], dl
mov byte [esi + 0xe], al
mov byte [esi + 0xf], cl
pop esi
pop ebx
leave
ret