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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001a024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov edx, 0x10
sub dword [ebp + 0xc], edi
sub esi, edi
sub ebx, edi
mov dword [ebp - 0x20], edi
mov ecx, edi
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp + 0xc]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
mov al, byte [edi + ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x10001033
mov edi, dword [ebp - 0x20]
mov dl, 0x10
lea esi, [edi + 0x10]
mov ecx, esi
mov al, byte [ecx + ebx - 1]
lea ecx, [ecx - 1]
xor byte [ecx], al
add dl, 0xff
jne 0x10001053
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0x10013160
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
mov dl, 0x10
mov ecx, esi
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [ecx - 1]
lea ecx, [ecx - 1]
mov al, byte [eax + str.cw]
mov byte [ecx], al
add dl, 0xff
jne 0x10001090
mov ch, byte [edi + 5]
mov al, byte [edi + 9]
mov byte [edi + 5], al
mov al, byte [edi + 0xd]
mov byte [edi + 9], al
mov bh, byte [edi + 0xa]
mov cl, byte [edi + 1]
mov al, byte [edi + 2]
mov byte [edi + 0xa], al
mov al, byte [edi + 0xe]
mov ah, byte [edi + 0xf]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
mov al, byte [edi + 0xb]
mov byte [edi + 0xf], al
mov al, byte [edi + 7]
mov byte [edi + 0xb], al
mov al, byte [edi + 3]
mov byte [edi + 7], al
mov byte [edi + 1], ch
mov byte [edi + 0xe], cl
mov byte [edi + 2], bh
mov byte [edi + 3], ah
mov bl, byte [edi]
movzx esi, bl
movzx edx, ch
mov byte [ebp - 0x15], ch
mov al, byte [esi + 0x10013270]
xor al, bh
xor al, byte [edx + 0x10013270]
xor al, ch
movzx ecx, bh
xor al, ah
mov byte [edi], al
mov al, bh
xor al, bl
xor al, byte [ecx + 0x10013270]
xor al, byte [edx + 0x10013270]
xor al, ah
movzx edx, ah
mov byte [edi + 1], al
mov al, byte [ecx + 0x10013270]
xor al, bl
xor al, byte [edx + 0x10013270]
xor al, byte [ebp - 0x15]
xor al, ah
mov byte [edi + 2], al
mov al, byte [esi + 0x10013270]
xor al, bh
xor al, bl
xor al, byte [edx + 0x10013270]
xor al, byte [ebp - 0x15]
mov byte [edi + 3], al
mov al, byte [edi + 4]
mov bl, byte [edi + 7]
mov ah, byte [edi + 5]
mov bh, byte [edi + 6]
movzx esi, al
mov byte [ebp - 0x15], al
movzx ecx, ah
movzx edx, bh
mov al, byte [esi + 0x10013270]
xor al, bl
xor al, bh
xor al, ah
xor al, byte [ecx + 0x10013270]
mov byte [edi + 4], al
mov al, byte [edx + 0x10013270]
xor al, byte [ebp - 0x15]
xor al, bl
xor al, bh
xor al, byte [ecx + 0x10013270]
mov byte [edi + 5], al
mov al, ah
xor al, byte [ebp - 0x15]
xor al, byte [edx + 0x10013270]
movzx ecx, bl
xor al, byte [ecx + 0x10013270]
xor al, bl
mov byte [edi + 6], al
mov al, byte [esi + 0x10013270]
xor al, ah
xor al, byte [ebp - 0x15]
xor al, byte [ecx + 0x10013270]
xor al, bh
mov byte [edi + 7], al
mov ah, byte [edi + 8]
mov bh, byte [edi + 9]
mov bl, byte [edi + 0xb]
mov dl, byte [edi + 0xa]
movzx esi, ah
movzx ecx, bh
mov byte [ebp - 0x15], dl
mov al, byte [esi + 0x10013270]
xor al, byte [ecx + 0x10013270]
xor al, bl
xor al, bh
xor al, dl
movzx edx, dl
mov byte [edi + 8], al
mov al, byte [edx + 0x10013270]
xor al, byte [ecx + 0x10013270]
xor al, ah
movzx ecx, bl
xor al, bl
xor al, byte [ebp - 0x15]
mov byte [edi + 9], al
mov al, byte [ecx + 0x10013270]
xor al, byte [edx + 0x10013270]
xor al, ah
xor al, bl
xor al, bh
mov byte [edi + 0xa], al
mov al, byte [esi + 0x10013270]
xor al, byte [ecx + 0x10013270]
xor al, ah
xor al, bh
xor al, byte [ebp - 0x15]
mov byte [edi + 0xb], al
mov bh, byte [edi + 0xc]
mov dl, byte [edi + 0xd]
mov ah, byte [edi + 0xe]
mov bl, byte [edi + 0xf]
movzx esi, bh
movzx ecx, dl
mov byte [ebp - 0x15], dl
mov al, byte [esi + 0x10013270]
xor al, ah
xor al, byte [ecx + 0x10013270]
xor al, dl
movzx edx, ah
xor al, bl
mov byte [edi + 0xc], al
mov al, byte [edx + 0x10013270]
xor al, ah
xor al, byte [ecx + 0x10013270]
xor al, bh
movzx ecx, bl
xor al, bl
mov byte [edi + 0xd], al
mov al, byte [ecx + 0x10013270]
xor al, byte [edx + 0x10013270]
xor al, bh
mov edx, dword [ebp - 8]
xor al, byte [ebp - 0x15]
xor al, bl
mov byte [edi + 0xe], al
mov al, byte [esi + 0x10013270]
xor al, ah
xor al, byte [ecx + 0x10013270]
xor al, bh
xor al, byte [ebp - 0x15]
mov byte [edi + 0xf], al
movzx eax, byte [ebp - 6]
mov al, byte [eax + str.cw]
mov byte [ebp - 0x1b], al
movzx eax, byte [ebp - 5]
mov al, byte [eax + str.cw]
mov byte [ebp - 0x1a], al
movzx eax, dl
mov al, byte [eax + str.cw]
mov ecx, dword [ebp - 0x24]
lea esi, [edi + 0x10]
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0x19], al
movzx eax, dh
mov al, byte [eax + str.cw]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x1c]
xor ecx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 0x10], ecx
xor edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 8], edx
mov dl, 0x10
nop
mov cl, byte [eax + ebx - 1]
lea eax, [eax - 1]
xor byte [eax], cl
add dl, 0xff
jne 0x10001310
inc dword [ebp - 0x24]
sub dword [ebp - 0x20], 1
jne 0x10001080
mov dl, 0x10
mov ecx, esi
nop
movzx eax, byte [ecx - 1]
lea ecx, [ecx - 1]
mov al, byte [eax + str.cw]
mov byte [ecx], al
add dl, 0xff
jne 0x10001330
mov al, byte [edi + 5]
mov cl, byte [edi + 1]
mov byte [edi + 1], al
mov al, byte [edi + 9]
mov byte [edi + 5], al
mov al, byte [edi + 0xd]
mov byte [edi + 9], al
mov al, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
mov al, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
mov al, byte [edi + 0xb]
mov edx, dword [ebp - 8]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 0xf]
mov byte [edi + 0xf], al
mov al, byte [edi + 7]
mov byte [edi + 0xb], al
mov al, byte [edi + 3]
mov byte [edi + 7], al
movzx eax, byte [ebp - 6]
mov byte [edi + 3], cl
mov ecx, dword [ebp - 0x2c]
mov al, byte [eax + str.cw]
mov byte [ebp - 0x1b], al
movzx eax, byte [ebp - 5]
mov al, byte [eax + str.cw]
mov byte [ebp - 0x1a], al
movzx eax, dl
mov al, byte [eax + str.cw]
mov byte [ebp - 0x19], al
movzx eax, dh
mov al, byte [eax + str.cw]
xor al, 0x36
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x10]
xor ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
xor ecx, edx
mov dword [ebp - 8], ecx
mov cl, 0x10
mov al, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor byte [esi], al
add cl, 0xff
jne 0x100013e1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008cc1
mov esp, ebp
pop ebp
ret