Function at 0x440846
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using aes via x86 extensions
Reference aes constants

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebx + 0xc]
push edi
mov eax, dword [esi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call dword [eax + 0x14]
mov eax, edi
lea ecx, [esi + 0x10]
shr eax, 2
mov dword [ebp - 0xc], eax
add eax, 6
mov dword [esi + 0xc], eax
lea eax, [eax*4 + 4]
push eax
call fcn.0043fb30
mov al, byte [0x67673c]
mov esi, dword [esi + 0x11c]
test al, al
jne 0x440893
call fcn.0045a330
mov al, byte [0x67673c]
cmp byte [0x676742], 0
je 0x440a7d
test al, al
jne 0x4408a9
call fcn.0045a330
cmp byte [0x676741], 0
je 0x440a7d
mov eax, dword [ebp - 0x10]
push edi
push eax
push esi
movups xmm0, xmmword [edi + eax - 0x10]
movaps xmmword [ebp - 0x40], xmm0
call fcn.005b3c60
mov edx, dword [ebp - 0xc]
add esp, 0xc
movaps xmm1, xmmword [ebp - 0x40]
lea edi, [esi + edx*4]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
xor ecx, 1
mov dword [ebp - 0x10], 0x603ac4
mov dword [edi], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [eax + esi], ecx
mov dword [ebp - 8], eax
lea eax, [edx*4 + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x118]
mov eax, dword [eax + 0x11c]
lea ecx, [eax + ecx*4]
lea eax, [edx + 4]
lea eax, [esi + eax*4]
cmp eax, ecx
je 0x440a0c
nop
mov eax, dword [ebp - 0x14]
cmp eax, 0x18
jne 0x440961
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x4409a6
cmp eax, 0x20
jne 0x44099f
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x4409a6
pinsrd xmm1, dword [esi + 0x1c], 3
mov eax, dword [ebp - 0xc]
mov esi, edi
mov ecx, dword [ebp - 0x10]
mov edx, edi
lea edi, [esi + eax*4]
aeskeygenassist xmm0, xmm1, 0
pextrd eax, xmm0, 3
xor eax, dword [ecx]
add ecx, 4
xor eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [edi]
mov dword [edi + 4], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + esi], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x118]
mov eax, dword [eax + 0x11c]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 0xc]
add eax, 4
lea eax, [edx + eax*4]
cmp eax, ecx
jne 0x440940
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x44123b
mov eax, dword [esi + 0xc]
mov ecx, 4
mov edx, dword [esi + 0x11c]
add eax, eax
movaps xmm0, xmmword [edx + eax*8]
movaps xmm1, xmmword [edx]
movaps xmmword [edx], xmm0
movaps xmmword [edx + eax*8], xmm1
mov eax, dword [esi + 0xc]
lea eax, [eax*4 - 4]
cmp eax, ecx
jbe 0x440a6e
nop
aesimc xmm0, xmmword [edx + eax*4]
aesimc xmm1, xmmword [edx + ecx*4]
movaps xmmword [edx + ecx*4], xmm0
add ecx, 4
movaps xmmword [edx + eax*4], xmm1
sub eax, 4
cmp ecx, eax
jb 0x440a50
aesimc xmm0, xmmword [edx + ecx*4]
movaps xmmword [edx + ecx*4], xmm0
jmp 0x44123b
mov eax, dword [ebp - 0xc]
push edi
push dword [ebp - 0x10]
shl eax, 2
push eax
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], 4
call fcn.00419cd0
mov ecx, dword [ebp - 0xc]
lea eax, [ecx*4]
sub eax, edi
push eax
lea eax, [edi + esi]
push 0
push eax
call fcn.005b41e0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043f420
push eax
push esi
push esi
call fcn.0043b120
mov ecx, dword [ebp - 0xc]
add esp, 0x30
mov dword [ebp - 8], 0x604f9c
lea edi, [ecx*4]
mov ecx, dword [edi + esi - 4]
add edi, esi
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x10], edi
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [esi]
xor edx, dword [0x604f98]
mov dword [edi], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [eax + esi], ecx
mov dword [ebp - 0x1c], eax
lea eax, [edx*4 + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x118]
mov eax, dword [eax + 0x11c]
lea ecx, [eax + ecx*4]
lea eax, [edx*4]
add eax, 0x10
add eax, esi
cmp eax, ecx
je 0x440cb9
mov eax, dword [ebp - 0x14]
cmp eax, 0x18
jne 0x440b9e
mov ecx, dword [esi + 0x24]
xor ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
jmp 0x440c0a
cmp eax, 0x20
jne 0x440c0a
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
mov ecx, dword [esi + 0x18]
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, dword [esi + 0x14]
xor edx, dword [esi + 0x10]
xor eax, edx
mov dword [esi + 0x30], edx
mov edx, dword [ebp - 0xc]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov esi, dword [ebp - 0x10]
lea eax, [edx*4]
add eax, esi
mov dword [ebp - 0x10], eax
mov ecx, dword [eax - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shr ecx, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp - 0x10]
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 8]
xor edx, dword [eax]
add eax, 4
xor edx, dword [esi]
mov dword [ecx], edx
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + esi], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x118]
mov eax, dword [eax + 0x11c]
lea ecx, [eax + ecx*4]
lea eax, [edx*4]
add eax, 0x10
add eax, edi
mov edi, dword [ebp - 0x10]
cmp eax, ecx
jne 0x440b83
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov esi, dword [edi + 0x11c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], esi
call eax
test al, al
je 0x440d04
cmp byte [0x676660], 0
jne 0x440ce2
call fcn.0043fac0
push 0x10
push esi
push esi
call fcn.0043b120
mov eax, dword [edi + 0xc]
shl eax, 4
add eax, esi
push 0x10
push eax
push eax
call fcn.0043b120
add esp, 0x18
jmp 0x44120d
cmp byte [0x676661], 0
jne 0x440d12
call fcn.0043f960
mov eax, dword [edi + 0xc]
mov ecx, 4
mov dword [ebp - 0x10], ecx
lea eax, [eax*4 - 4]
cmp eax, ecx
jbe 0x441038
mov edi, eax
lea eax, [edi + 2]
lea eax, [esi + eax*4]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x18]
mov dword [ebp - 0xc], eax
nop dword [eax]
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx - 8]
xor esi, dword [eax*8 + 0x675e62]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e63]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [edx - 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov eax, dword [ebp - 0xc]
mov dword [eax - 8], ecx
mov dword [edx - 8], esi
mov edx, dword [eax - 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx - 4]
xor esi, dword [eax*8 + 0x675e62]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e63]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [edx - 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov eax, dword [ebp - 0xc]
mov dword [eax - 4], ecx
mov dword [edx - 4], esi
mov edx, dword [eax]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx]
xor esi, dword [eax*8 + 0x675e62]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e63]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [edx]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [edx], esi
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx + 4]
xor esi, dword [eax*8 + 0x675e62]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x675e63]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [edx + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], esi
add ecx, 4
add eax, 0x10
mov dword [ebp - 0x10], ecx
sub edi, 4
mov dword [ebp - 0xc], eax
sub edx, 0x10
mov dword [ebp - 0x14], edx
cmp ecx, edi
jb 0x440d40
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [esi + edx*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov dword [esi + edx*4], ecx
mov edx, dword [esi + edx*4 + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [esi + edx*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov dword [esi + edx*4 + 4], ecx
mov edx, dword [esi + edx*4 + 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [esi + edx*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov dword [esi + edx*4 + 8], ecx
mov edx, dword [esi + edx*4 + 0xc]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x675e64]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e61]
movzx eax, dl
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e62]
movzx eax, byte [esi + edx*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x675e63]
mov dword [esi + edx*4 + 0xc], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi]
add eax, eax
bswap ecx
mov eax, dword [esi + eax*8]
bswap eax
mov dword [esi], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [esi + eax*8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 4]
add eax, eax
bswap ecx
mov eax, dword [esi + eax*8 + 4]
bswap eax
mov dword [esi + 4], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [esi + eax*8 + 4], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 8]
add eax, eax
bswap ecx
mov eax, dword [esi + eax*8 + 8]
bswap eax
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [esi + eax*8 + 8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
add eax, eax
bswap ecx
mov eax, dword [esi + eax*8 + 0xc]
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [esi + eax*8 + 0xc], ecx
cmp byte [0x67673c], 0
jne 0x44121b
call fcn.0045a330
cmp byte [0x676742], 0
je 0x44123b
mov ecx, dword [edi + 0xc]
lea eax, [esi + 0x10]
shl ecx, 4
sub ecx, 0x10
push ecx
push eax
push eax
call fcn.0043b120
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b07f1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc