Function at 0x46d260
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
xor edi, dword [eax + 8]
xor ebx, dword [eax]
xor edx, dword [eax + 4]
xor esi, dword [eax + 0xc]
lea eax, [ecx + 0x20]
mov dword [ebp + 8], eax
mov eax, edx
sar eax, 8
movzx ecx, al
mov eax, esi
sar eax, 0x18
movzx eax, al
mov dword [ebp + 0x10], edi
mov ecx, dword [ecx*4 + 0x505c18]
mov dword [ebp - 0xc], esi
xor ecx, dword [eax*4 + 0x506418]
mov eax, edi
sar eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x506018]
movzx eax, bl
xor ecx, dword [eax*4 + 0x505818]
mov eax, dword [ebp + 8]
xor ecx, dword [eax]
mov eax, ebx
sar eax, 0x18
mov dword [ebp - 0x14], ecx
movzx ecx, al
mov eax, esi
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x506418]
xor ecx, dword [eax*4 + 0x506018]
mov eax, edi
mov edi, dword [ebp + 8]
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x505c18]
movzx eax, dl
xor ecx, dword [eax*4 + 0x505818]
mov eax, ebx
xor ecx, dword [edi + 4]
sar eax, 0x10
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, edx
sar eax, 0x18
movzx eax, al
sar ebx, 8
mov ecx, dword [ecx*4 + 0x506018]
sar edx, 0x10
xor ecx, dword [eax*4 + 0x506418]
mov eax, esi
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x505c18]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x505818]
xor ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
movzx ecx, bl
movzx eax, dl
mov ecx, dword [ecx*4 + 0x505c18]
xor ecx, dword [eax*4 + 0x506018]
mov eax, dword [ebp + 0x10]
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x506418]
mov eax, esi
movzx eax, al
xor ecx, dword [eax*4 + 0x505818]
xor ecx, dword [edi + 0xc]
sub dword [ebp - 0x10], 1
mov dword [ebp + 0x10], ecx
je 0x46d591
nop dword [eax]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov ebx, dword [ebp - 4]
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x506018]
mov edx, dword [ebp - 0x14]
xor ecx, dword [eax*4 + 0x505c18]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x506418]
movzx eax, dl
xor ecx, dword [eax*4 + 0x505818]
xor ecx, dword [edi + 0x10]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x506018]
xor ecx, dword [eax*4 + 0x505c18]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x506418]
movzx eax, bl
xor ecx, dword [eax*4 + 0x505818]
xor ecx, dword [edi + 0x14]
mov eax, dword [ebp + 0x10]
shr eax, 8
mov dword [ebp - 0xc], ecx
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ebx, dword [ecx*4 + 0x505c18]
mov ecx, dword [ebp - 4]
xor ebx, dword [eax*4 + 0x506018]
mov eax, ecx
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax*4 + 0x506418]
mov eax, dword [ebp + 8]
movzx eax, al
xor ebx, dword [eax*4 + 0x505818]
xor ebx, dword [edi + 0x18]
movzx eax, dl
mov edx, dword [ecx*4 + 0x506018]
xor edx, dword [eax*4 + 0x505c18]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor edx, dword [eax*4 + 0x506418]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor edx, dword [eax*4 + 0x505818]
mov eax, ebx
xor edx, dword [edi + 0x1c]
add edi, 0x20
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x506018]
xor ecx, dword [eax*4 + 0x505c18]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x506418]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x505818]
mov eax, edx
xor ecx, dword [edi]
shr eax, 0x10
mov dword [ebp - 0x14], ecx
movzx ecx, al
mov ecx, dword [ecx*4 + 0x506018]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x505c18]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x506418]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x505818]
mov eax, edx
xor ecx, dword [edi + 4]
shr eax, 8
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x505c18]
xor ecx, dword [eax*4 + 0x506018]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x506418]
movzx eax, bl
shr ebx, 0x18
xor ecx, dword [eax*4 + 0x505818]
xor ecx, dword [edi + 8]
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp + 8], ecx
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x505c18]
xor ecx, dword [eax*4 + 0x506018]
xor ecx, dword [ebx*4 + 0x506418]
movzx eax, dl
xor ecx, dword [eax*4 + 0x505818]
xor ecx, dword [edi + 0xc]
sub dword [ebp - 0x10], 1
mov dword [ebp + 0x10], ecx
jne 0x46d3a0
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 0x10]
xor ecx, dword [edi + 0x10]
shr eax, 0x10
movzx eax, al
mov dword [edx], ecx
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp - 4]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp - 4]
xor ecx, dword [edi + 0x14]
shr eax, 0x18
mov dword [edx + 4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [edi + 0x18]
shr eax, 0x18
mov dword [edx + 8], ecx
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
shl ecx, 8
mov eax, dword [ebp + 0x10]
movzx eax, al
movzx eax, byte [eax + str.cw]
or ecx, eax
xor ecx, dword [edi + 0x1c]
pop edi
pop esi
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret