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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x48d1f4]
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 0x45171d
cmp edi, dword [ebp + 4]
jg 0x451715
cmp esi, ebx
jge 0x451702
lea esp, [esp]
cmp eax, 4
jge 0x451705
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 0x4516d0
cmp eax, 4
jne 0x451708
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4516c3
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 4]
jg 0x45190a
mov esi, 0x48cc58
jmp 0x451730
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 0x4517e0
cmp ebx, 1
jle 0x4517d1
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 0x4517a0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x4518fd
jmp 0x4518a0
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 0x4517f0
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 0x451870
mov edi, dword [esp + 0x18]
xor esi, esi
mov ebx, dword [esp + 0x20]
nop
cmp edi, dword [ebp + 4]
jg 0x4518f5
cmp esi, ebx
jge 0x4518e2
lea esp, [esp]
cmp eax, 4
jge 0x4518e5
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 0x4518b0
cmp eax, 4
jne 0x4518e8
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4518a0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
cmp edi, dword [ebp + 4]
jle 0x451730
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x3c
ret 4