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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 4
mov dword [ebp - 0x1c], eax
mov edx, edi
mov esi, 4
jmp 0x100010a0
mov al, byte [edx]
lea edx, [edx + 4]
mov byte [ecx], al
inc ecx
dec esi
jne 0x100010a0
inc edi
dec ebx
jne 0x10001094
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 4]
lea edx, [edi + 0xa]
jmp 0x100010c0
movzx eax, byte [edx - 2]
lea ecx, [ecx + 1]
xor byte [ecx - 5], al
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
xor byte [ecx - 1], al
movzx eax, byte [edx - 4]
xor byte [ecx + 3], al
movzx eax, byte [edx - 3]
xor byte [ecx + 7], al
dec esi
jne 0x100010c0
cmp dword [edi], 1
mov bh, 1
jbe 0x100011b5
mov dword [ebp - 0x18], 1
jmp 0x10001100
lea eax, [ebp - 0x14]
mov esi, 4
jmp 0x10001110
mov edx, 4
movzx ecx, byte [eax]
mov cl, byte [ecx + 0x1026e000]
mov byte [eax], cl
inc eax
dec edx
jne 0x10001115
dec esi
jne 0x10001110
lea edi, [edx + 1]
mov bl, 1
lea edx, [ebp - 0x10]
nop
test bl, bl
je 0x10001152
mov esi, edi
mov cl, byte [edx]
movzx eax, byte [edx + 1]
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 1], al
movzx eax, byte [edx + 3]
mov byte [edx + 2], al
mov byte [edx + 3], cl
dec esi
jne 0x10001136
inc bl
inc edi
add edx, 4
cmp bl, 4
jb 0x10001130
lea eax, [ebp - 0x14]
push eax
call fcn.10001750
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add esp, 4
shl eax, 4
mov esi, 4
lea edx, [edi + 0xa]
add edx, eax
nop
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor byte [ecx - 4], al
lea ecx, [ecx + 1]
movzx eax, byte [edx - 5]
xor byte [ecx - 1], al
movzx eax, byte [edx - 4]
xor byte [ecx + 3], al
movzx eax, byte [edx - 3]
xor byte [ecx + 7], al
dec esi
jne 0x10001180
inc bh
movzx ecx, bh
mov dword [ebp - 0x18], ecx
cmp ecx, dword [edi]
jb 0x10001100
lea ecx, [ebp - 0x14]
mov esi, 4
lea ecx, [ecx]
mov edx, 4
movzx eax, byte [ecx]
mov al, byte [eax + 0x1026e000]
mov byte [ecx], al
inc ecx
dec edx
jne 0x100011c5
dec esi
jne 0x100011c0
lea edi, [edx + 1]
mov bl, 1
lea edx, [ebp - 0x10]
nop
test bl, bl
je 0x10001202
mov esi, edi
mov cl, byte [edx]
movzx eax, byte [edx + 1]
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 1], al
movzx eax, byte [edx + 3]
mov byte [edx + 2], al
mov byte [edx + 3], cl
dec esi
jne 0x100011e6
inc bl
inc edi
add edx, 4
cmp bl, 4
jb 0x100011e0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov esi, 4
movzx eax, byte [edx]
add edx, 0xa
shl eax, 4
add edx, eax
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor byte [ecx - 4], al
lea ecx, [ecx + 1]
movzx eax, byte [edx - 5]
xor byte [ecx - 1], al
movzx eax, byte [edx - 4]
xor byte [ecx + 3], al
movzx eax, byte [edx - 3]
xor byte [ecx + 7], al
dec esi
jne 0x10001223
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
lea edi, [esi + 4]
mov edx, ebx
mov esi, 4
mov al, byte [ecx]
lea edx, [edx + 4]
inc ecx
mov byte [edx - 4], al
dec esi
jne 0x10001258
inc ebx
dec edi
jne 0x10001251
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret