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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10047810]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x4c]
mov ecx, 8
push edi
mov ebx, dword [ebp + 4]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
sub ebx, 6
mov dword [esp + 0x1c], ebp
xor edi, edi
mov dword [esp + 0x20], ebx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x1001fc9d
cmp edi, dword [ebp + 4]
jg 0x1001fc95
cmp esi, ebx
jge 0x1001fc82
lea esp, [esp]
cmp eax, 4
jge 0x1001fc85
movzx ecx, byte [esp + esi*4 + 0x28]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
inc eax
movzx ecx, byte [esp + esi*4 + 0x29]
mov byte [ebp + edx*4 + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x2a]
mov byte [ebp + edx*4 + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x2b]
inc esi
mov byte [ebp + edx*4 + 0x1b], cl
cmp esi, ebx
jl 0x1001fc50
cmp eax, 4
jne 0x1001fc88
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x1001fc43
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 4]
jg 0x1001fe8a
mov esi, 0x10047298
jmp 0x1001fcb0
movzx ecx, byte [esp + ebx*4 + 0x25]
mov dl, byte [esp + 0x28]
xor dl, byte [ecx + str.cw]
mov byte [esp + 0x28], dl
movzx ecx, byte [esp + ebx*4 + 0x26]
mov cl, byte [ecx + str.cw]
xor cl, byte [esp + 0x29]
mov byte [esp + 0x13], cl
mov byte [esp + 0x29], cl
movzx ecx, byte [esp + ebx*4 + 0x27]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + ebx*4 + 0x24]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2b], cl
movzx ecx, byte [esi]
inc esi
xor cl, dl
mov dword [esp + 0x24], esi
mov byte [esp + 0x28], cl
cmp ebx, 8
je 0x1001fd60
cmp ebx, 1
jle 0x1001fd51
mov al, byte [esp + 0x13]
lea esi, [esp + 0x29]
lea ebp, [ebx - 1]
lea ecx, [ecx]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
mov bl, byte [esi]
xor byte [esi + 1], cl
xor bl, al
movzx ecx, byte [esi - 2]
mov al, bl
xor byte [esi + 2], cl
mov byte [esi], bl
sub ebp, 1
jne 0x1001fd20
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x1001fe7d
jmp 0x1001fe20
mov al, byte [esp + 0x13]
lea esi, [esp + 0x29]
mov ebp, 3
lea ecx, [ecx]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
mov bl, byte [esi]
xor byte [esi + 1], cl
xor bl, al
movzx ecx, byte [esi - 2]
mov al, bl
xor byte [esi + 2], cl
mov byte [esi], bl
sub ebp, 1
jne 0x1001fd70
movzx ecx, byte [esp + 0x34]
lea esi, [esp + 0x39]
mov bh, byte [esp + 0x39]
mov edi, 3
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x38], cl
movzx ecx, byte [esp + 0x35]
xor bh, byte [ecx + str.cw]
movzx ecx, byte [esp + 0x36]
mov byte [esp + 0x39], bh
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3a], cl
movzx ecx, byte [esp + 0x37]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3b], cl
lea esp, [esp]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
mov bl, byte [esi]
xor byte [esi + 1], cl
xor bl, bh
movzx ecx, byte [esi - 2]
mov bh, bl
xor byte [esi + 2], cl
mov byte [esi], bl
sub edi, 1
jne 0x1001fdf0
mov edi, dword [esp + 0x18]
xor esi, esi
mov ebx, dword [esp + 0x20]
nop
cmp edi, dword [ebp + 4]
jg 0x1001fe75
cmp esi, ebx
jge 0x1001fe62
lea esp, [esp]
cmp eax, 4
jge 0x1001fe65
movzx ecx, byte [esp + esi*4 + 0x28]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
inc eax
movzx ecx, byte [esp + esi*4 + 0x29]
mov byte [ebp + edx*4 + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x2a]
mov byte [ebp + edx*4 + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x2b]
inc esi
mov byte [ebp + edx*4 + 0x1b], cl
cmp esi, ebx
jl 0x1001fe30
cmp eax, 4
jne 0x1001fe68
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x1001fe20
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
cmp edi, dword [ebp + 4]
jle 0x1001fcb0
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100308d8
add esp, 0x3c
ret 4