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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [edi + 0x30]
push esi
mov ecx, ebp
shl ecx, 4
mov edx, dword [ecx + edi + 0x38]
xor edx, dword [ebx + 4]
lea esi, [ecx + edi]
mov ecx, dword [esi + 0x34]
mov esi, dword [esi + 0x3c]
xor esi, dword [ebx + 8]
xor ecx, dword [ebx]
mov dword [esp + 0x1c], esi
add ebp, 4
mov eax, dword [esp + 0x2c]
shl ebp, 4
mov esi, dword [edi + ebp]
xor esi, dword [ebx + 0xc]
mov ebx, esi
shr ebx, 8
mov dword [esp + 0x20], esi
movzx esi, bl
mov esi, dword [esi*4 + 0x1017f910]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [ebx*4 + 0x1017fd10]
mov ebx, edx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x10180110]
movzx ebx, cl
xor esi, dword [ebx*4 + 0x1017f510]
mov ebx, dword [esp + 0x20]
mov dword [eax], esi
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + 0x1017fd10]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x10180110]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x1017f910]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x1017f510]
mov ebx, edx
mov dword [eax + 4], esi
mov esi, dword [esp + 0x20]
shr esi, 0x18
mov esi, dword [esi*4 + 0x10180110]
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x1017f910]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [ebx*4 + 0x1017fd10]
mov ebx, dword [esp + 0x1c]
movzx ebp, bl
xor esi, dword [ebp*4 + 0x1017f510]
shr ebx, 8
mov dword [eax + 8], esi
shr edx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + 0x1017f910]
movzx edx, dl
xor esi, dword [edx*4 + 0x1017fd10]
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x10180110]
movzx ecx, byte [esp + 0x20]
xor esi, dword [ecx*4 + 0x1017f510]
mov dword [eax + 0xc], esi
mov ecx, dword [edi + 0x30]
dec ecx
cmp ecx, 1
jbe 0x10033645
mov edx, ecx
shl edx, 4
dec ecx
lea esi, [edx + edi + 0x38]
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov ebp, dword [esi + 4]
xor ebp, dword [eax + 8]
mov ecx, dword [esi - 4]
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, dword [esi]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esi + 8]
xor ebp, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x1017f910]
mov dword [esp + 0x20], ebp
shr eax, 0x10
movzx ebp, al
xor ebx, dword [ebp*4 + 0x1017fd10]
mov eax, dword [esp + 0xc]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x10180110]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x1017f510]
mov ebp, dword [esp + 0x1c]
mov dword [eax], ebx
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x1017fd10]
mov dword [esp + 0xc], ecx
shr ecx, 8
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x10180110]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x1017f910]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x1017f510]
mov ecx, edx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x20]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x10180110]
shr ecx, 8
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x1017f910]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
shr ecx, 0x10
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x1017fd10]
movzx ebp, byte [esp + 0x1c]
xor ebx, dword [ebp*4 + 0x1017f510]
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x1c]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x1017f910]
shr edx, 0x10
movzx edx, dl
xor ebx, dword [edx*4 + 0x1017fd10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x10180110]
movzx ecx, byte [esp + 0x20]
xor ebx, dword [ecx*4 + 0x1017f510]
sub esi, 0x10
sub dword [esp + 0x10], 1
mov dword [eax + 0xc], ebx
jne 0x10033520
mov esi, dword [edi + 0x4c]
xor esi, dword [eax + 8]
mov ecx, dword [edi + 0x44]
xor ecx, dword [eax]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x1c], esi
mov esi, dword [edi + 0x50]
xor esi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [esp + 0x20], esi
movzx esi, cl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax], bl
mov ebx, dword [esp + 0x20]
shr ebx, 8
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 2], bl
mov esi, edx
shr esi, 0x18
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 3], bl
movzx esi, dl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 4], bl
mov ebx, ecx
shr ebx, 8
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 5], bl
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
mov esi, dword [esp + 0x1c]
mov byte [eax + 6], bl
shr esi, 0x18
movzx ebx, byte [esi + 0x10180510]
movzx esi, byte [esp + 0x1c]
mov byte [eax + 7], bl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 8], bl
mov ebx, edx
shr ebx, 8
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
mov esi, dword [esp + 0x20]
mov byte [eax + 0xa], bl
shr esi, 0x18
movzx ebx, byte [esi + 0x10180510]
movzx esi, byte [esp + 0x20]
mov byte [eax + 0xb], bl
movzx ebx, byte [esi + 0x10180510]
mov byte [eax + 0xc], bl
mov ebx, dword [esp + 0x1c]
shr ebx, 8
shr edx, 0x10
movzx esi, bl
movzx ebx, byte [esi + 0x10180510]
movzx edx, dl
mov byte [eax + 0xd], bl
mov dl, byte [edx + 0x10180510]
mov byte [eax + 0xe], dl
shr ecx, 0x18
mov cl, byte [ecx + 0x10180510]
mov byte [eax + 0xf], cl
mov edx, dword [edi + 0x34]
xor dword [eax], edx
mov ecx, dword [edi + 0x38]
xor dword [eax + 4], ecx
mov edx, dword [edi + 0x3c]
xor dword [eax + 8], edx
mov ecx, dword [edi + 0x40]
xor dword [eax + 0xc], ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8