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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 4], 0
je 0x1006e86e
mov esi, dword [ebp + 8]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 5]
shl eax, 0x10
movzx edx, byte [esi + 8]
shl ebx, 0x18
or ebx, eax
shl ecx, 0x10
movzx eax, byte [esi + 2]
shl eax, 8
or ebx, eax
shl edx, 0x18
movzx eax, byte [esi + 3]
or ebx, eax
movzx eax, byte [esi + 4]
shl eax, 0x18
or eax, ecx
xor ebx, dword [edi + 8]
movzx ecx, byte [esi + 6]
shl ecx, 8
or eax, ecx
mov dword [ebp - 8], ebx
movzx ecx, byte [esi + 7]
or eax, ecx
movzx ecx, byte [esi + 9]
shl ecx, 0x10
or edx, ecx
xor eax, dword [edi + 0xc]
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or edx, ecx
movzx ecx, byte [esi + 0xb]
or edx, ecx
movzx ecx, byte [esi + 0xd]
xor edx, dword [edi + 0x10]
mov dword [ebp - 4], edx
movzx edx, byte [esi + 0xc]
shl ecx, 0x10
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [ebp + 8], ecx
movzx ecx, byte [esi + 0xf]
or dword [ebp + 8], ecx
or dword [ebp + 8], edx
mov edx, dword [ebp + 8]
xor edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x3d0]
mov dword [ebp + 8], edx
mov dword [ebp - 0xc], ecx
cmp ecx, 1
jle 0x1006e6ce
dec ecx
lea esi, [edi + 0x30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], esi
sar ecx, 0x10
and ecx, 0xff
sar edx, 8
and edx, 0xff
mov edi, dword [edx*4 + 0x100be5d0]
xor edi, dword [ecx*4 + 0x100bddd0]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp + 8]
sar edx, 0x10
and edx, 0xff
xor edi, dword [ecx*4 + 0x100bf430]
movzx ecx, bl
xor edi, dword [ecx*4 + 0x100bd9d0]
xor edi, dword [esi - 4]
mov ecx, dword [ebp - 4]
mov esi, dword [edx*4 + 0x100bddd0]
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp + 8]
sar edx, 0x18
and edx, 0xff
xor esi, dword [ecx*4 + 0x100bf430]
mov ecx, ebx
sar ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x100bf430]
xor esi, dword [ecx*4 + 0x100be5d0]
movzx ecx, al
xor esi, dword [ecx*4 + 0x100bd9d0]
mov ecx, dword [ebp - 8]
xor esi, dword [ecx]
mov ecx, eax
sar ecx, 8
and ecx, 0xff
sar eax, 0x10
and eax, 0xff
xor edx, dword [ecx*4 + 0x100be5d0]
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xff
sar ebx, 0x18
and ebx, 0xff
xor edx, dword [ecx*4 + 0x100bddd0]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x100bd9d0]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp - 4]
sar ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100be5d0]
xor ecx, dword [eax*4 + 0x100bddd0]
mov eax, dword [ebp + 8]
xor ecx, dword [ebx*4 + 0x100bf430]
movzx eax, al
mov dword [ebp + 8], edx
xor ecx, dword [eax*4 + 0x100bd9d0]
mov eax, dword [ebp - 8]
xor ecx, dword [eax - 8]
mov eax, edi
mov ebx, ecx
mov ecx, esi
mov esi, dword [ebp - 8]
add esi, 0x20
mov dword [ebp - 4], ecx
dec dword [ebp - 0x10]
mov dword [ebp - 8], esi
jne 0x1006e592
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
shl ecx, 5
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov ebx, dword [ecx + edi + 8]
mov ecx, ebx
sar ecx, 0x18
sar edx, 0x18
and edx, 0xff
xor cl, byte [edx + 0x100bef30]
mov edx, eax
mov byte [esi], cl
mov ecx, ebx
sar ecx, 0x10
sar edx, 0x10
and edx, 0xff
xor cl, byte [edx + 0x100bef30]
mov edx, dword [ebp - 4]
mov byte [esi + 1], cl
mov ecx, ebx
sar ecx, 8
sar edx, 8
and edx, 0xff
xor cl, byte [edx + 0x100bef30]
mov edx, eax
mov byte [esi + 2], cl
mov ecx, dword [ebp + 8]
movzx ecx, cl
sar edx, 0x18
and edx, 0xff
movzx ecx, byte [ecx + 0x100bef30]
xor cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 3], cl
mov ebx, dword [ebx + edi + 0xc]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x100bef30]
mov edx, dword [ebp - 4]
mov byte [esi + 4], cl
mov ecx, ebx
sar edx, 0x10
sar ecx, 0x10
and edx, 0xff
xor cl, byte [edx + 0x100bef30]
mov edx, dword [ebp + 8]
mov byte [esi + 5], cl
mov ecx, ebx
sar edx, 8
sar ecx, 8
and edx, 0xff
xor cl, byte [edx + 0x100bef30]
mov edx, dword [ebp - 4]
mov byte [esi + 6], cl
mov ecx, dword [ebp - 8]
movzx ecx, cl
sar edx, 0x18
and edx, 0xff
movzx ecx, byte [ecx + 0x100bef30]
xor cl, bl
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0x10]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x100bef30]
mov edx, dword [ebp + 8]
sar edx, 0x10
mov byte [esi + 8], cl
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + 0x100bef30]
mov edx, dword [ebp - 8]
sar edx, 8
mov byte [esi + 9], cl
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + 0x100bef30]
mov byte [esi + 0xa], cl
movzx ecx, al
sar eax, 8
and eax, 0xff
movzx ecx, byte [ecx + 0x100bef30]
xor cl, bl
mov ebx, dword [ebp + 8]
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
sar ebx, 0x18
and ebx, 0xff
mov edx, dword [ecx + edi + 0x14]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [ebx + 0x100bef30]
mov ebx, dword [ebp - 8]
mov byte [esi + 0xc], cl
mov ecx, edx
sar ebx, 0x10
and ebx, 0xff
sar ecx, 0x10
pop edi
xor cl, byte [ebx + 0x100bef30]
mov byte [esi + 0xd], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x100bef30]
mov eax, dword [ebp - 4]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x100bef30]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x100f62fc
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x100cc07c
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3