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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
shr edi, 2
lea eax, [edi + 6]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0x11c]
lea eax, [eax*4 + 4]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x118]
push eax
push ecx
lea eax, [ebx + 0x18]
mov dword [esp + 0x28], ebx
call fcn.1002c050
cmp byte [0x100ad45b], 0
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x118], edx
mov esi, eax
jne 0x10029fa0
call fcn.1002ed60
cmp byte [0x100ad464], 0
mov ecx, dword [ebp + 0xc]
push ecx
je 0x1002a145
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax + ecx - 0x10]
push eax
push esi
movdqa xmmword [esp + 0x2c], xmm0
call fcn.100434e0
movdqa xmm0, xmmword [esp + 0x2c]
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 3
xor eax, dword [esi]
add esp, 0xc
xor eax, 1
mov dword [esi + edi*4], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + edi*4 + 4], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + edi*4 + 8], eax
mov ecx, dword [esi + 0xc]
xor ecx, eax
mov dword [esi + edi*4 + 0xc], ecx
mov ecx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x118]
lea eax, [ecx + eax*4]
lea ecx, [esi + edi*4 + 0x10]
mov edx, 0x10079ff4
cmp ecx, eax
je 0x1002a0ce
nop
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x1002a03b
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
jmp 0x1002a078
cmp eax, 0x20
jne 0x1002a075
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x14]
pinsrd xmm0, eax, 3
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 2
xor eax, dword [esi + 0x10]
xor ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jmp 0x1002a078
mov ecx, dword [esi + 0x1c]
lea esi, [esi + edi*4]
pinsrd xmm0, ecx, 3
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 3
xor eax, dword [edx]
add edx, 4
xor eax, dword [esi]
mov dword [esi + edi*4], eax
mov eax, dword [esi + 4]
xor eax, dword [esi + edi*4]
mov dword [esi + edi*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edi*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edi*4 + 0xc], eax
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebx + 0x118]
lea ecx, [eax + ecx*4]
lea eax, [esi + edi*4 + 0x10]
cmp eax, ecx
jne 0x1002a020
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x1c]
lea ecx, [ebx + 4]
call eax
test al, al
jne 0x1002a8ac
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x11c]
movdqa xmm0, xmmword [eax]
add ecx, ecx
movdqa xmm1, xmmword [eax + ecx*8]
movdqa xmmword [eax], xmm1
movdqa xmmword [eax + ecx*8], xmm0
mov ecx, dword [ebx + 0x10]
mov edx, 4
lea ecx, [ecx*4 - 4]
cmp ecx, edx
jbe 0x1002a131
aesimc xmm0, xmmword [eax + edx*4]
aesimc xmm1, xmmword [eax + ecx*4]
movdqa xmmword [eax + edx*4], xmm1
movdqa xmmword [eax + ecx*4], xmm0
add edx, 4
sub ecx, 4
cmp edx, ecx
jb 0x1002a111
aesimc xmm0, xmmword [eax + edx*4]
movdqa xmmword [eax + edx*4], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
push ecx
lea eax, [edi*4]
push eax
push esi
mov dword [esp + 0x24], 4
call fcn.100459cb
mov eax, dword [ebp + 0xc]
lea edx, [edi*4]
sub edx, eax
push edx
add eax, esi
push 0
push eax
call fcn.10043bc0
lea ecx, [esp + 0x34]
add esp, 0x1c
push ecx
lea ecx, [esp + 0x18]
call fcn.10026800
shr eax, 2
mov ecx, eax
add esp, 4
xor eax, eax
test ecx, ecx
je 0x1002a1ad
lea esp, [esp]
mov edx, dword [esi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
inc eax
cmp eax, ecx
jb 0x1002a1a0
mov ecx, dword [esi + edi*4 - 4]
mov eax, ecx
shr eax, 0x10
movzx edx, al
movzx eax, byte [edx + 0x1006f840]
mov edx, ecx
shr edx, 8
xor eax, 1
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shl eax, 8
xor eax, edx
movzx edx, cl
movzx edx, byte [edx + 0x1006f840]
shl eax, 8
xor eax, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x1006f840]
shl eax, 8
xor eax, ecx
xor eax, dword [esi]
mov dword [esp + 0x14], 0x1006fa44
mov dword [esi + edi*4], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + edi*4 + 4], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + edi*4 + 8], eax
mov edx, dword [esi + 0xc]
xor edx, eax
mov dword [esi + edi*4 + 0xc], edx
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x11c]
lea edx, [ecx + eax*4]
lea eax, [esi + edi*4 + 0x10]
cmp eax, edx
je 0x1002a34c
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x1002a253
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
jmp 0x1002a2bc
cmp eax, 0x20
jne 0x1002a2bc
mov ecx, dword [esi + 0x2c]
mov edx, ecx
shr edx, 0x18
movzx eax, byte [edx + 0x1006f840]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shl eax, 8
movzx ecx, cl
xor eax, edx
movzx edx, byte [ecx + 0x1006f840]
mov ecx, dword [esi + 0x14]
shl eax, 8
xor eax, edx
xor eax, dword [esi + 0x10]
xor ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
lea esi, [esi + edi*4]
mov eax, dword [esi + edi*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
movzx edx, byte [ecx + 0x1006f840]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x1006f840]
shl edx, 8
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + 0x1006f840]
shl edx, 8
xor edx, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x1006f840]
shl edx, 8
xor edx, eax
xor edx, dword [esi]
mov eax, dword [esp + 0x14]
xor edx, dword [eax]
add eax, 4
mov dword [esi + edi*4], edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + edi*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edi*4 + 8], ecx
mov edx, dword [esi + 0xc]
xor edx, ecx
mov dword [esi + edi*4 + 0xc], edx
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x11c]
lea edx, [ecx + eax*4]
lea eax, [esi + edi*4 + 0x10]
cmp eax, edx
jne 0x1002a238
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x1c]
mov esi, dword [ebx + 0x11c]
lea ecx, [ebx + 4]
call eax
test al, al
je 0x1002a3a3
mov cl, byte [0x100ad459]
test cl, cl
jne 0x1002a370
call fcn.10029d40
xor eax, eax
mov edx, dword [esi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
inc eax
cmp eax, 4
jb 0x1002a372
mov eax, dword [ebx + 0x10]
shl eax, 4
add eax, esi
mov ecx, eax
sub ecx, eax
mov edx, 4
mov edi, dword [ecx + eax]
bswap edi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x1002a391
jmp 0x1002a877
mov cl, byte [0x100ad45a]
test cl, cl
jne 0x1002a3b2
call fcn.10029dd0
mov eax, dword [ebx + 0x10]
mov edx, 4
lea eax, [eax*4 - 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x1002a6a6
lea ecx, [esi + eax*4 + 8]
lea eax, [esi + 0x18]
mov edx, dword [eax - 8]
mov ebx, edx
mov edi, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x1006f840]
shr edi, 0x18
movzx edi, byte [edi + 0x1006f840]
mov edi, dword [edi*8 + 0x100ac08c]
xor edi, dword [ebx*8 + 0x100ac089]
xor edi, dword [edx*8 + 0x100ac08a]
movzx edx, byte [eax - 8]
movzx edx, byte [edx + 0x1006f840]
xor edi, dword [edx*8 + 0x100ac08b]
mov edx, dword [ecx - 8]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1006f840]
mov ebx, dword [ebx*8 + 0x100ac08c]
xor ebx, dword [edx*8 + 0x100ac089]
mov edx, dword [ecx - 8]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08a]
movzx edx, byte [ecx - 8]
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08b]
mov dword [eax - 8], ebx
mov dword [ecx - 8], edi
mov edx, dword [eax - 4]
mov ebx, edx
mov edi, edx
shr ebx, 0x10
shr edx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x1006f840]
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shr edi, 0x18
movzx edi, byte [edi + 0x1006f840]
mov edi, dword [edi*8 + 0x100ac08c]
xor edi, dword [ebx*8 + 0x100ac089]
xor edi, dword [edx*8 + 0x100ac08a]
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x1006f840]
xor edi, dword [edx*8 + 0x100ac08b]
mov edx, dword [ecx - 4]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1006f840]
mov ebx, dword [ebx*8 + 0x100ac08c]
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac089]
mov edx, dword [ecx - 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08a]
movzx edx, byte [ecx - 4]
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08b]
mov dword [eax - 4], ebx
mov dword [ecx - 4], edi
mov edx, dword [eax]
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + 0x1006f840]
mov edi, dword [edi*8 + 0x100ac08c]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x1006f840]
xor edi, dword [ebx*8 + 0x100ac089]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
xor edi, dword [edx*8 + 0x100ac08a]
movzx edx, byte [eax]
movzx edx, byte [edx + 0x1006f840]
xor edi, dword [edx*8 + 0x100ac08b]
mov edx, dword [ecx]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1006f840]
mov ebx, dword [ebx*8 + 0x100ac08c]
xor ebx, dword [edx*8 + 0x100ac089]
mov edx, dword [ecx]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08a]
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08b]
add eax, 0x10
mov dword [eax - 0x10], ebx
mov dword [ecx], edi
mov edx, dword [eax - 0xc]
mov ebx, edx
mov edi, edx
shr edx, 8
shr ebx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shr edi, 0x18
movzx edi, byte [edi + 0x1006f840]
mov edi, dword [edi*8 + 0x100ac08c]
movzx ebx, bl
movzx ebx, byte [ebx + 0x1006f840]
xor edi, dword [ebx*8 + 0x100ac089]
sub ecx, 0x10
xor edi, dword [edx*8 + 0x100ac08a]
movzx edx, byte [eax - 0xc]
movzx edx, byte [edx + 0x1006f840]
xor edi, dword [edx*8 + 0x100ac08b]
mov edx, dword [ecx + 0x14]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1006f840]
mov ebx, dword [ebx*8 + 0x100ac08c]
xor ebx, dword [edx*8 + 0x100ac089]
mov edx, dword [ecx + 0x14]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08a]
movzx edx, byte [ecx + 0x14]
movzx edx, byte [edx + 0x1006f840]
xor ebx, dword [edx*8 + 0x100ac08b]
mov edx, dword [esp + 0x14]
mov dword [eax - 0xc], ebx
mov dword [ecx + 0x14], edi
mov edi, dword [esp + 0x18]
add edx, 4
sub edi, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp edx, edi
jb 0x1002a3d8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi + edx*4]
mov eax, edi
shr eax, 0x18
movzx ecx, byte [eax + 0x1006f840]
mov ecx, dword [ecx*8 + 0x100ac08c]
mov eax, edi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x1006f840]
xor ecx, dword [eax*8 + 0x100ac089]
mov eax, edi
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x1006f840]
xor ecx, dword [eax*8 + 0x100ac08a]
movzx eax, byte [esi + edx*4]
movzx eax, byte [eax + 0x1006f840]
xor ecx, dword [eax*8 + 0x100ac08b]
mov edi, dword [esi + edx*4 + 4]
mov dword [esi + edx*4], ecx
mov ecx, edi
shr ecx, 0x18
movzx eax, byte [ecx + 0x1006f840]
mov eax, dword [eax*8 + 0x100ac08c]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x1006f840]
xor eax, dword [ecx*8 + 0x100ac089]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x1006f840]
xor eax, dword [ecx*8 + 0x100ac08a]
movzx ecx, byte [esi + edx*4 + 4]
movzx ecx, byte [ecx + 0x1006f840]
xor eax, dword [ecx*8 + 0x100ac08b]
mov edi, dword [esi + edx*4 + 8]
mov dword [esi + edx*4 + 4], eax
mov eax, edi
shr eax, 0x18
movzx ecx, byte [eax + 0x1006f840]
mov ecx, dword [ecx*8 + 0x100ac08c]
mov eax, edi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x1006f840]
xor ecx, dword [eax*8 + 0x100ac089]
mov eax, edi
mov edi, dword [esi + edx*4 + 0xc]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x1006f840]
xor ecx, dword [eax*8 + 0x100ac08a]
movzx eax, byte [esi + edx*4 + 8]
movzx eax, byte [eax + 0x1006f840]
xor ecx, dword [eax*8 + 0x100ac08b]
mov dword [esi + edx*4 + 8], ecx
mov ecx, edi
shr ecx, 0x18
movzx eax, byte [ecx + 0x1006f840]
mov eax, dword [eax*8 + 0x100ac08c]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x1006f840]
xor eax, dword [ecx*8 + 0x100ac089]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x1006f840]
xor eax, dword [ecx*8 + 0x100ac08a]
movzx ecx, byte [esi + edx*4 + 0xc]
movzx ecx, byte [ecx + 0x1006f840]
xor eax, dword [ecx*8 + 0x100ac08b]
mov dword [esi + edx*4 + 0xc], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [esi]
add edx, edx
mov ecx, dword [esi + edx*8]
bswap eax
bswap ecx
mov dword [esi], ecx
mov ecx, dword [ebx + 0x10]
add ecx, ecx
mov dword [esi + ecx*8], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 4]
add edx, edx
mov ecx, dword [esi + edx*8 + 4]
bswap ecx
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 0x10]
add ecx, ecx
bswap eax
mov dword [esi + ecx*8 + 4], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 8]
add edx, edx
mov ecx, dword [esi + edx*8 + 8]
bswap ecx
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0x10]
add ecx, ecx
bswap eax
mov dword [esi + ecx*8 + 8], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 0xc]
add edx, edx
mov ecx, dword [esi + edx*8 + 0xc]
bswap ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 0x10]
bswap eax
add ecx, ecx
mov dword [esi + ecx*8 + 0xc], eax
cmp byte [0x100ad45b], 0
jne 0x1002a885
call fcn.1002ed60
cmp byte [0x100ad464], 0
je 0x1002a8ac
mov ebx, dword [ebx + 0x10]
dec ebx
shl ebx, 4
shr ebx, 2
test ebx, ebx
je 0x1002a8ac
lea eax, [esi + 0x10]
nop
mov edx, dword [eax]
bswap edx
mov dword [eax], edx
add eax, 4
dec ebx
jne 0x1002a8a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc