Function at 0x402fa0
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, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [eax + 0x14]
xor edx, dword [ecx]
xor ebx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 8]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x1c]
add eax, 0x20
xor edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
shr edx, 0x18
movzx ecx, cl
mov dword [ebp - 0x24], ebx
mov edx, dword [edx*4 + 0x8aa4c0]
xor edx, dword [ecx*4 + 0x8a98c0]
movzx ecx, bh
xor edx, dword [ecx*4 + 0x8a9cc0]
movzx ecx, byte [ebp - 0x1e]
xor edx, dword [ecx*4 + 0x8aa0c0]
xor edx, dword [eax]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
shr edx, 0x18
movzx ecx, bl
shr ebx, 0x18
mov edx, dword [edx*4 + 0x8aa4c0]
xor edx, dword [ecx*4 + 0x8a98c0]
mov ebx, dword [ebx*4 + 0x8aa4c0]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
movzx ecx, dh
xor esi, dword [ecx*4 + 0x8a9cc0]
movzx ecx, byte [ebp - 0x1a]
xor esi, dword [ecx*4 + 0x8aa0c0]
mov ecx, esi
mov dword [ebp + 8], esi
xor ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
movzx ecx, dl
shr edx, 0x18
xor ebx, dword [ecx*4 + 0x8a98c0]
mov edx, dword [edx*4 + 0x8aa4c0]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
movzx ecx, bh
xor edi, dword [ecx*4 + 0x8a9cc0]
movzx ecx, byte [ebp - 0x26]
xor edi, dword [ecx*4 + 0x8aa0c0]
mov ecx, edi
mov dword [ebp + 0x10], edi
xor ecx, dword [eax + 8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 4]
movzx ecx, ch
xor edx, dword [ecx*4 + 0x8a9cc0]
movzx ecx, byte [ebp - 0x22]
xor edx, dword [ecx*4 + 0x8aa0c0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x8a98c0]
xor edx, dword [eax + 0xc]
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
je 0x4032e1
nop dword [eax]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x8aa0c0]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
xor edx, dword [ecx*4 + 0x8a9cc0]
mov ecx, esi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x8aa4c0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x8a98c0]
mov ecx, esi
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp + 0x10]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x8aa0c0]
xor edx, dword [ecx*4 + 0x8a9cc0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x8aa4c0]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x8a98c0]
mov ecx, esi
xor edx, dword [eax + 0x14]
shr ecx, 8
mov dword [ebp - 0xc], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
mov edx, dword [edx*4 + 0x8a9cc0]
xor edx, dword [ecx*4 + 0x8aa0c0]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x8aa4c0]
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x8a98c0]
xor edx, dword [eax + 0x18]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
mov dword [ebp - 0x14], edx
movzx edx, cl
movzx ecx, bl
mov ebx, dword [edx*4 + 0x8aa0c0]
xor ebx, dword [ecx*4 + 0x8a9cc0]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x8aa4c0]
mov ecx, esi
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x8a98c0]
mov ecx, dword [ebp - 0x14]
xor ebx, dword [eax + 0x1c]
add eax, 0x20
sar ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 0xc]
sar ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x8aa0c0]
xor edx, dword [ecx*4 + 0x8a9cc0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x8aa4c0]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x8a98c0]
xor edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
sar ecx, 8
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x8a9cc0]
xor edx, dword [ecx*4 + 0x8aa0c0]
mov ecx, dword [ebp - 0x10]
mov esi, edx
shr ecx, 0x18
mov dword [ebp + 8], edx
xor esi, dword [ecx*4 + 0x8aa4c0]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor esi, dword [ecx*4 + 0x8a98c0]
mov ecx, esi
mov dword [ebp + 8], esi
xor ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
sar ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x8aa0c0]
xor edx, dword [ecx*4 + 0x8a9cc0]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov edi, dword [ebp + 0x10]
shr ecx, 0x18
sar edx, 0x10
movzx edx, dl
xor edi, dword [ecx*4 + 0x8aa4c0]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx*4 + 0x8aa0c0]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x8a98c0]
mov ecx, edi
mov dword [ebp + 0x10], edi
xor ecx, dword [eax + 8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x10]
sar ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x8a9cc0]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x8aa4c0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x8a98c0]
xor edx, dword [eax + 0xc]
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
jne 0x4030d0
mov ecx, edx
mov ebx, dword [ebp - 0x18]
shr ecx, 0x18
mov esi, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x46a440]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp - 4]
xor edx, dword [eax + 0x10]
shr ecx, 0x10
movzx ecx, cl
mov dword [esi], edx
movzx edx, byte [ecx + 0x46a440]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x46a440]
shl ecx, 8
or edx, ecx
mov ecx, dword [ebp + 0x10]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp + 8]
xor edx, dword [eax + 0x14]
shr ecx, 0x18
mov dword [esi + 4], edx
movzx edx, byte [ecx + 0x46a440]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
shr ebx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp + 0x10]
xor edx, dword [eax + 0x18]
shr ecx, 0x18
mov dword [esi + 8], edx
movzx edx, byte [ecx + 0x46a440]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
mov ecx, dword [ebp - 4]
movzx ecx, cl
shl edx, 8
pop edi
movzx ecx, byte [ecx + 0x46a440]
or edx, ecx
xor edx, dword [eax + 0x1c]
mov dword [esi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc