Function at 0x4218b0
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, 0x48
mov eax, dword [0x4af0a0]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push edi
mov dword [esp + 0x2c], esi
call dword [eax + 0x14]
mov eax, edi
shr eax, 2
mov dword [esp + 0x14], eax
add eax, 6
mov dword [esi + 0xc], eax
lea eax, [eax*4 + 4]
lea ecx, [esi + 0x10]
push eax
call fcn.004234c0
mov al, byte [0x4b4ab1]
mov esi, dword [esi + 0x114]
test al, al
jne 0x421914
call fcn.0040cfe0
mov al, byte [0x4b4ab1]
cmp byte [0x4b4aa6], 0
je 0x421b4e
test al, al
jne 0x42192a
call fcn.0040cfe0
cmp byte [0x4b4ab3], 0
je 0x421b4e
mov eax, dword [esp + 0x20]
push edi
movdqu xmm0, xmmword [edi + eax - 0x10]
push eax
push esi
movdqa xmmword [esp + 0x3c], xmm0
call fcn.00440490
movdqa xmm1, xmmword [esp + 0x3c]
mov eax, dword [esp + 0x20]
shl eax, 2
mov dword [esp + 0x28], eax
lea edx, [eax + esi]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
mov dword [esp + 0x24], edx
xor ecx, 1
mov dword [edx], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + 4], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [esp + 0x54], eax
mov dword [eax + esi], ecx
lea eax, [edx*4 + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea eax, [edx*4 + 0x10]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x114]
mov ecx, dword [edx + 0x110]
add esp, 0xc
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x20], 0x49aab8
cmp eax, ecx
je 0x421aca
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 4]
mov dword [esp + 0x2c], ecx
nop
cmp edi, 0x18
jne 0x421a12
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x421a5b
cmp edi, 0x20
jne 0x421a54
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 + 0x3c], eax
pinsrd xmm1, eax, 3
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x38], ecx
jmp 0x421a5b
pinsrd xmm1, dword [esi + 0x1c], 3
mov esi, dword [esp + 0x18]
aeskeygenassist xmm0, xmm1, 0
lea ecx, [eax + esi]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
pextrd eax, xmm0, 3
xor eax, dword [ecx]
mov ecx, dword [esp + 0x18]
xor eax, dword [esi]
add dword [esp + 0x20], 4
mov dword [ecx], eax
mov eax, dword [esi + 4]
xor eax, dword [ecx]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x48]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + esi], eax
mov eax, dword [edx + 0x114]
mov ecx, dword [edx + 0x110]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
mov eax, dword [esp + 0x1c]
jne 0x4219f0
mov esi, edx
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x422362
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x114]
add eax, eax
movdqa xmm1, xmmword [edx]
movdqa xmm0, xmmword [edx + eax*8]
movdqa xmmword [edx], xmm0
movdqa xmmword [edx + eax*8], xmm1
mov eax, dword [esi + 0xc]
mov ecx, 4
lea eax, [eax*4 - 4]
cmp eax, ecx
jbe 0x421b30
nop
aesimc xmm1, xmmword [edx + ecx*4]
aesimc xmm0, xmmword [edx + eax*4]
movdqa xmmword [edx + ecx*4], xmm0
movdqa xmmword [edx + eax*4], xmm1
add ecx, 4
sub eax, 4
cmp ecx, eax
jb 0x421b10
aesimc xmm0, xmmword [edx + ecx*4]
movdqa xmmword [edx + ecx*4], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0043c933
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x14]
push edi
push dword [esp + 0x24]
shl eax, 2
push eax
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], 4
mov dword [esp + 0x2c], eax
call fcn.0043eb56
mov eax, dword [esp + 0x2c]
sub eax, edi
push eax
lea eax, [edi + esi]
push 0
push eax
call fcn.004410c0
add esp, 0x1c
lea edx, [esp + 0x24]
lea ecx, [esp + 0x48]
call fcn.0040c8c0
mov edx, eax
shr edx, 2
xor ecx, ecx
test edx, edx
je 0x421bad
mov edi, edi
mov eax, dword [esi + ecx*4]
bswap eax
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edx
jb 0x421ba0
mov eax, dword [esp + 0x1c]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x20], 0x4895bc
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, 1
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [esp + 0x18]
xor edx, eax
xor edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [esp + 0x48], eax
mov dword [eax + esi], ecx
lea eax, [edx*4 + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
mov eax, dword [esp + 0x28]
lea edx, [edx*4 + 0x10]
mov ecx, dword [eax + 0x110]
mov eax, dword [eax + 0x114]
mov dword [esp + 0x14], edx
lea ecx, [eax + ecx*4]
lea eax, [edx + esi]
cmp eax, ecx
je 0x421da9
mov edx, dword [esp + 0x1c]
lea eax, [edx + 4]
mov dword [esp + 0x24], eax
cmp edi, 0x18
jne 0x421c8d
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 0x421cfa
cmp edi, 0x20
jne 0x421cfa
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]
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
xor eax, edx
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov esi, dword [esp + 0x18]
mov ecx, dword [edx + esi - 4]
lea eax, [edx + esi]
mov dword [esp + 0x18], eax
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
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + str.cw]
mov ecx, dword [esp + 0x18]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x20]
add eax, 4
xor edx, dword [eax - 4]
mov dword [esp + 0x20], eax
xor edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x24]
xor eax, edx
mov dword [ecx + esi], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x110]
mov eax, dword [eax + 0x114]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
jne 0x421c75
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x114]
mov eax, dword [eax + 0x1c]
lea ecx, [edi + 4]
mov dword [esp + 0x20], esi
call eax
test al, al
je 0x421e0b
cmp byte [0x4b4aba], 0
jne 0x421dd4
call fcn.004216b0
xor ecx, ecx
mov eax, dword [esi + ecx*4]
bswap eax
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, 4
jb 0x421dd6
mov ecx, dword [edi + 0xc]
shl ecx, 4
add ecx, esi
mov esi, ecx
sub esi, ecx
mov edx, 4
mov eax, dword [esi + ecx]
bswap eax
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x421df5
mov esi, dword [esp + 0x20]
jmp 0x42232e
cmp byte [0x4b4ab9], 0
jne 0x421e19
call fcn.00421730
mov eax, dword [edi + 0xc]
mov ecx, 4
lea eax, [eax*4 - 4]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jbe 0x422155
mov edi, eax
lea eax, [edi + 2]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x18]
mov dword [esp + 0x18], eax
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
mov esi, dword [ecx*8 + 0x4b676c]
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx - 8]
xor esi, dword [eax*8 + 0x4b676a]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b676b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [edx - 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
mov eax, dword [esp + 0x18]
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
mov esi, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx - 4]
xor esi, dword [eax*8 + 0x4b676a]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b676b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [edx - 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
mov eax, dword [esp + 0x18]
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
mov esi, dword [ecx*8 + 0x4b676c]
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx]
xor esi, dword [eax*8 + 0x4b676a]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b676b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [edx]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
mov eax, dword [esp + 0x18]
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
mov esi, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx + 4]
xor esi, dword [eax*8 + 0x4b676a]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4b676b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [edx + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
mov eax, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], esi
add ecx, 4
add eax, 0x10
sub edi, 4
sub edx, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
cmp ecx, edi
jb 0x421e47
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [esi + edx*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
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
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [esi + edx*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
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
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [esi + edx*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
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
mov ecx, dword [ecx*8 + 0x4b676c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b6769]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676a]
movzx eax, byte [esi + edx*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4b676b]
mov dword [esi + edx*4 + 0xc], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi]
bswap ecx
add eax, eax
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]
bswap ecx
add eax, eax
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]
bswap ecx
add eax, eax
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]
bswap ecx
add eax, eax
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 [0x4b4ab1], 0
jne 0x42233c
call fcn.0040cfe0
cmp byte [0x4b4aa6], 0
je 0x422362
mov edx, dword [edi + 0xc]
dec edx
shl edx, 4
shr edx, 2
lea ecx, [esi + 0x10]
test edx, edx
je 0x422362
mov eax, dword [ecx]
bswap eax
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x422356
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0043c933
mov esp, ebp
pop ebp
ret 0xc