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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
cmp byte [ebp + 4], 0
je 0x1001048b
mov edx, dword [esp + 0x2c]
push ebx
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 3]
or ebx, eax
movzx eax, byte [edx + 5]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 7]
or ecx, eax
xor ecx, dword [ebp + 0xc]
movzx eax, byte [edx + 9]
mov dword [esp + 8], ecx
movzx ecx, byte [edx + 8]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xa]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
or ecx, eax
xor ecx, dword [ebp + 0x10]
movzx eax, byte [edx + 0xd]
xor ebx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
movzx ecx, byte [edx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xe]
shl eax, 8
mov dword [esp + 0x30], eax
movzx eax, byte [edx + 0xf]
mov edx, dword [esp + 0x30]
or edx, eax
mov eax, dword [ebp + 0x3d0]
or edx, ecx
xor edx, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov esi, 0xff
cmp eax, 1
jle 0x100102f3
add ebp, 0x30
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
sar eax, 0x10
and eax, esi
mov ecx, edx
mov edx, dword [esp + 0x10]
sar ecx, 8
and ecx, esi
mov edi, dword [ecx*4 + 0x100850f8]
xor edi, dword [eax*4 + 0x100848f8]
mov ecx, dword [esp + 0x38]
mov eax, edx
sar eax, 0x18
and eax, esi
sar ecx, 0x10
xor edi, dword [eax*4 + 0x10086358]
and ecx, esi
movzx eax, bl
xor edi, dword [eax*4 + 0x100844f8]
mov eax, dword [esp + 0x14]
sar eax, 0x18
and eax, esi
mov esi, dword [ecx*4 + 0x100848f8]
xor esi, dword [eax*4 + 0x10086358]
mov ecx, dword [esp + 0x38]
mov eax, ebx
sar eax, 8
and eax, 0xff
sar ecx, 0x18
xor esi, dword [eax*4 + 0x100850f8]
movzx eax, dl
and ecx, 0xff
xor esi, dword [eax*4 + 0x100844f8]
mov eax, edx
mov edx, dword [ecx*4 + 0x10086358]
mov ecx, dword [esp + 0x14]
sar eax, 8
and eax, 0xff
xor edi, dword [ebp - 4]
xor edx, dword [eax*4 + 0x100850f8]
mov ebp, dword [esp + 0x20]
mov eax, ebx
sar eax, 0x10
xor esi, dword [ebp]
and eax, 0xff
sar ebx, 0x18
xor edx, dword [eax*4 + 0x100848f8]
movzx eax, cl
sar ecx, 8
xor edx, dword [eax*4 + 0x100844f8]
mov eax, dword [esp + 0x10]
xor edx, dword [ebp + 4]
and ecx, 0xff
sar eax, 0x10
mov ecx, dword [ecx*4 + 0x100850f8]
and eax, 0xff
and ebx, 0xff
xor ecx, dword [eax*4 + 0x100848f8]
mov eax, dword [esp + 0x38]
xor ecx, dword [ebx*4 + 0x10086358]
movzx eax, al
add ebp, 0x20
xor ecx, dword [eax*4 + 0x100844f8]
mov eax, esi
xor ecx, dword [ebp - 0x28]
dec dword [esp + 0x24]
mov ebx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], ebp
mov esi, 0xff
jne 0x100101bf
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
shl eax, 5
mov dword [esp + 0x18], eax
mov edx, dword [eax + ebp + 8]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
sar ecx, 0x18
and ecx, esi
mov esi, dword [esp + 0x3c]
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x10085e58]
mov ecx, dword [esp + 0x10]
mov byte [esi], al
sar ecx, 0x10
and ecx, 0xff
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x10085e58]
mov ecx, ebp
mov byte [esi + 1], al
sar ecx, 8
and ecx, 0xff
mov eax, edx
sar eax, 8
xor al, byte [ecx + 0x10085e58]
mov ecx, dword [esp + 0x10]
mov byte [esi + 2], al
mov eax, dword [esp + 0x38]
movzx eax, al
sar ecx, 0x18
mov al, byte [eax + 0x10085e58]
xor al, dl
mov edx, dword [esp + 0x1c]
mov byte [esi + 3], al
mov eax, dword [esp + 0x18]
mov edi, 0xff
mov edx, dword [eax + edx + 0xc]
and ecx, edi
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x10085e58]
mov ecx, ebp
mov byte [esi + 4], al
sar ecx, 0x10
and ecx, edi
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x10085e58]
mov ecx, dword [esp + 0x38]
mov byte [esi + 5], al
sar ecx, 8
and ecx, edi
mov edi, dword [esp + 0x1c]
mov eax, edx
sar eax, 8
xor al, byte [ecx + 0x10085e58]
mov ecx, ebp
mov byte [esi + 6], al
movzx eax, bl
sar ecx, 0x18
mov al, byte [eax + 0x10085e58]
xor al, dl
mov byte [esi + 7], al
mov eax, dword [esp + 0x18]
mov ebp, 0xff
mov edx, dword [eax + edi + 0x10]
and ecx, ebp
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x10085e58]
mov ecx, dword [esp + 0x38]
sar ecx, 0x10
mov byte [esi + 8], al
and ecx, ebp
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x10085e58]
mov ecx, ebx
sar ecx, 8
mov byte [esi + 9], al
and ecx, ebp
mov eax, edx
sar eax, 8
xor al, byte [ecx + 0x10085e58]
sar ebx, 0x10
mov byte [esi + 0xa], al
mov eax, dword [esp + 0x10]
movzx eax, al
and ebx, ebp
mov al, byte [eax + 0x10085e58]
xor al, dl
mov edx, dword [esp + 0x38]
mov byte [esi + 0xb], al
mov eax, dword [esp + 0x18]
sar edx, 0x18
mov ecx, dword [eax + edi + 0x14]
and edx, ebp
mov eax, ecx
sar eax, 0x18
xor al, byte [edx + 0x10085e58]
mov edx, dword [esp + 0x10]
mov byte [esi + 0xc], al
mov eax, ecx
sar eax, 0x10
xor al, byte [ebx + 0x10085e58]
sar edx, 8
mov byte [esi + 0xd], al
and edx, ebp
mov eax, ecx
sar eax, 8
xor al, byte [edx + 0x10085e58]
pop edi
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x10]
movzx eax, al
mov al, byte [eax + 0x10085e58]
xor al, cl
mov byte [esi + 0xf], al
pop esi
pop ebx
pop ebp
add esp, 0x24
ret 8
push 0x1009a9d8
lea ecx, [esp + 0x20]
call fcn.1005850b
push 0x100887f8
lea eax, [esp + 0x20]
push eax
call fcn.1005ff7b
int3