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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
movzx ebx, byte [edx + 3]
movzx ecx, byte [edx + 2]
mov esi, dword [ebp + 8]
shl ebx, 8
or ebx, ecx
mov dword [ebp - 0x48], eax
movzx ecx, byte [edx + 1]
mov eax, dword [esi + 4]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 6]
mov dword [ebp - 0x24], ebx
xor ebx, dword [eax]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
movzx ebx, byte [edx + 7]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 5]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 4]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [ebp - 0x28], ecx
movzx ecx, byte [edx + 0xa]
mov edi, dword [ebp - 0x28]
or edi, ecx
mov dword [ebp - 0x20], ebx
movzx ecx, byte [edx + 9]
xor ebx, dword [eax + 4]
shl edi, 8
or edi, ecx
mov dword [ebp - 0x20], ebx
movzx ecx, byte [edx + 8]
shl edi, 8
or edi, ecx
mov dword [ebp - 0x34], ebx
mov ecx, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
xor ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 0xe]
or dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 0xd]
shl dword [ebp - 0x2c], 8
or dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 0xc]
shl dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x2c]
or edx, ecx
mov ecx, dword [esi]
sar ecx, 1
mov dword [ebp - 0x18], edx
dec ecx
xor edx, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x40], ecx
test ecx, ecx
jle 0x46d661
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, ebx
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov edx, dword [ebp - 0x30]
xor ebx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor ebx, ecx
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x4e15d0]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x28]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov edx, dword [ebp - 0x34]
xor ebx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor ebx, ecx
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x4e15d0]
mov ecx, edx
xor ebx, dword [eax + 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
xor ebx, ecx
mov edx, dword [ebp - 0x28]
mov ecx, esi
shr esi, 0x18
shl ecx, 8
add ecx, esi
xor ebx, ecx
movzx ecx, dl
shr edx, 8
xor ebx, dword [ecx*4 + 0x4e15d0]
xor ebx, dword [eax + 8]
movzx ecx, dl
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x30]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x34]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
xor ebx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor ebx, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x4e15d0]
xor ebx, dword [eax + 0xc]
mov ecx, ebx
mov dword [ebp - 8], ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x44]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov dword [ebp - 0x30], ecx
shr dword [ebp - 0x30], 0x10
shl ecx, 0x10
add dword [ebp - 0x30], ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov edx, dword [ebp - 0x30]
xor edx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor edx, ecx
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
movzx ecx, dl
xor esi, dword [ecx*4 + 0x4e15d0]
mov ecx, esi
mov dword [ebp - 0x30], esi
xor ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x44]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov edi, ecx
shl ecx, 0x10
shr edi, 0x10
add edi, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov dword [ebp - 0x34], edi
mov edx, edi
xor edx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor edx, ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
movzx ecx, dl
xor edi, dword [ecx*4 + 0x4e15d0]
mov ecx, edi
mov dword [ebp - 0x34], edi
xor ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, ebx
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov edi, ecx
shl ecx, 0x10
shr edi, 0x10
add edi, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov dword [ebp - 0x28], edi
mov edx, edi
xor edx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor edx, ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x28]
movzx ecx, dl
shr edx, 8
xor edi, dword [ecx*4 + 0x4e15d0]
mov ecx, edi
mov dword [ebp - 0x28], edi
xor ecx, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, dl
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov edi, ecx
shl ecx, 0x10
shr edi, 0x10
add edi, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov dword [ebp - 0x2c], edi
mov edx, edi
xor edx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor edx, ecx
movzx ecx, bl
mov ebx, dword [ebp - 0x34]
xor edx, dword [ecx*4 + 0x4e15d0]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov ecx, dword [ebp - 0x40]
dec ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x40], ecx
test ecx, ecx
jg 0x46d304
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, ebx
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov edx, dword [ebp - 0x30]
xor ebx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor ebx, ecx
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x4e15d0]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x28]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
mov edx, dword [ebp - 0x34]
xor ebx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor ebx, ecx
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x4e15d0]
mov ecx, edx
xor ebx, dword [eax + 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
xor ebx, ecx
mov edx, dword [ebp - 0x28]
mov ecx, esi
shr esi, 0x18
shl ecx, 8
add ecx, esi
xor ebx, ecx
movzx ecx, dl
shr edx, 8
xor ebx, dword [ecx*4 + 0x4e15d0]
xor ebx, dword [eax + 8]
movzx ecx, dl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x30]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x34]
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4e15d0]
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
add ebx, ecx
mov ecx, edx
shl ecx, 0x18
shr edx, 8
add ecx, edx
xor ebx, ecx
mov ecx, esi
shl ecx, 8
shr esi, 0x18
add ecx, esi
xor ebx, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x4e15d0]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x18
xor ebx, dword [eax + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x40], ebx
movzx edx, byte [ecx + 0x4e14d0]
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, dword [ebp - 0x3c]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, dword [ebp - 0x28]
xor edx, dword [eax + 0x10]
shr ecx, 0x18
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + 0x4e14d0]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
shl edx, 8
mov ecx, dword [ebp - 0x38]
movzx ecx, cl
mov esi, dword [ebp - 0x48]
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, ebx
xor edx, dword [eax + 0x14]
shr ecx, 0x18
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x3c]
movzx ebx, byte [ecx + 0x4e14d0]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl ebx, 8
shr edx, 0x18
movzx ecx, byte [ecx + 0x4e14d0]
xor ebx, ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 8
movzx ecx, cl
movzx edx, byte [edx + 0x4e14d0]
shl ebx, 8
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor ebx, ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor ebx, ecx
mov ecx, dword [ebp - 0x38]
xor ebx, dword [eax + 0x18]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x1c], ebx
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, dword [ebp - 0x28]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, dword [ebp - 0x40]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4e14d0]
xor edx, ecx
mov ecx, dword [ebp - 0x44]
xor edx, dword [eax + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov byte [esi], cl
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x34]
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 8
mov byte [esi + 9], al
mov eax, ebx
mov byte [esi + 4], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 8], bl
shr ebx, 0x18
mov dword [ebp - 0x18], edx
mov byte [esi + 7], cl
mov byte [esi + 0xa], al
mov byte [esi + 0xb], bl
mov eax, edx
mov byte [esi + 0xc], dl
shr eax, 8
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xe], al
lea eax, [ebp - 0x24]
shr edx, 0x18
push 0x20
push eax
mov byte [esi + 0xf], dl
call fcn.0046b4d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004743e6
mov esp, ebp
pop ebp
ret