Function at 0x4587d0
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
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
shr ebx, 2
lea eax, [ebx + 6]
mov dword [edi + 0xc], eax
lea eax, [eax*4 + 4]
lea esi, [edi + 0x10]
push eax
mov dword [esp + 0x18], edi
call fcn.00459890
cmp byte [0x602f81], 0
mov edi, dword [edi + 0x114]
jne 0x458812
call fcn.0045ab40
cmp byte [0x602f8a], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
je 0x4589c4
movdqu xmm0, xmmword [eax + ecx - 0x10]
push eax
push edi
movdqa xmmword [esp + 0x2c], xmm0
call fcn.00563210
movdqa xmm0, xmmword [esp + 0x2c]
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 3
xor eax, dword [edi]
add esp, 0xc
xor eax, 1
mov dword [edi + ebx*4], eax
mov ecx, dword [edi + 4]
xor ecx, eax
mov dword [edi + ebx*4 + 4], ecx
mov eax, dword [edi + 8]
xor eax, ecx
mov dword [edi + ebx*4 + 8], eax
mov ecx, dword [edi + 0xc]
xor ecx, eax
mov dword [edi + ebx*4 + 0xc], ecx
mov ecx, dword [esi + 0x104]
mov eax, dword [esi + 0x100]
lea eax, [ecx + eax*4]
lea ecx, [edi + ebx*4 + 0x10]
mov edx, 0x5ca0e0
cmp ecx, eax
je 0x45893f
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x4588ac
mov eax, dword [edi + 0x24]
xor eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
xor ecx, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
jmp 0x4588e9
cmp eax, 0x20
jne 0x4588e6
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x14]
pinsrd xmm0, eax, 3
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 2
xor eax, dword [edi + 0x10]
xor ecx, eax
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x18]
xor eax, ecx
mov dword [edi + 0x34], ecx
mov ecx, dword [edi + 0x1c]
xor ecx, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
jmp 0x4588e9
mov ecx, dword [edi + 0x1c]
lea edi, [edi + ebx*4]
pinsrd xmm0, ecx, 3
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 3
xor eax, dword [edx]
add edx, 4
xor eax, dword [edi]
mov dword [edi + ebx*4], eax
mov eax, dword [edi + 4]
xor eax, dword [edi + ebx*4]
mov dword [edi + ebx*4 + 4], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + ebx*4 + 8], ecx
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + ebx*4 + 0xc], eax
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0x100]
lea ecx, [eax + ecx*4]
lea eax, [edi + ebx*4 + 0x10]
cmp eax, ecx
jne 0x458891
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x1c]
lea ecx, [esi + 4]
call eax
test al, al
jne 0x4590cc
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x114]
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 [esi + 0xc]
mov edx, 4
lea ecx, [ecx*4 - 4]
cmp ecx, edx
jbe 0x4589b0
jmp 0x458990
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 0x458990
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 ecx, ebx
call fcn.00459920
mov ecx, dword [edi + ebx*4 - 4]
mov edx, ecx
shr edx, 0x10
movzx eax, dl
movzx eax, byte [eax + str.cw]
mov edx, ecx
shr edx, 8
xor eax, 1
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
movzx edx, cl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl eax, 8
xor eax, ecx
xor eax, dword [edi]
add esp, 4
mov dword [edi + ebx*4], eax
mov ecx, dword [edi + 4]
xor ecx, eax
mov dword [edi + ebx*4 + 4], ecx
mov eax, dword [edi + 8]
xor eax, ecx
mov dword [edi + ebx*4 + 8], eax
mov edx, dword [edi + 0xc]
xor edx, eax
mov dword [edi + ebx*4 + 0xc], edx
mov eax, dword [esi + 0x100]
mov ecx, dword [esi + 0x104]
lea edx, [ecx + eax*4]
lea eax, [edi + ebx*4 + 0x10]
mov dword [esp + 0x18], 0x5bffb4
cmp eax, edx
je 0x458b6d
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x458a74
mov eax, dword [edi + 0x24]
xor eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
xor ecx, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
jmp 0x458add
cmp eax, 0x20
jne 0x458add
mov ecx, dword [edi + 0x2c]
mov edx, ecx
shr edx, 0x18
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
movzx ecx, cl
xor eax, edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [edi + 0x14]
shl eax, 8
xor eax, edx
xor eax, dword [edi + 0x10]
xor ecx, eax
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x18]
xor eax, ecx
mov dword [edi + 0x34], ecx
mov ecx, dword [edi + 0x1c]
xor ecx, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
lea edi, [edi + ebx*4]
mov eax, dword [edi + ebx*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [edi]
mov eax, dword [esp + 0x18]
xor edx, dword [eax]
add eax, 4
mov dword [edi + ebx*4], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
xor eax, edx
mov dword [edi + ebx*4 + 4], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + ebx*4 + 8], ecx
mov edx, dword [edi + 0xc]
xor edx, ecx
mov dword [edi + ebx*4 + 0xc], edx
mov eax, dword [esi + 0x100]
mov ecx, dword [esi + 0x104]
lea edx, [ecx + eax*4]
lea eax, [edi + ebx*4 + 0x10]
cmp eax, edx
jne 0x458a59
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x1c]
mov esi, dword [edi + 0x114]
lea ecx, [edi + 4]
call eax
test al, al
je 0x458bc8
mov cl, byte [0x602f7b]
test cl, cl
jne 0x458b95
call fcn.004585d0
xor eax, eax
mov edx, dword [esi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
inc eax
cmp eax, 4
jb 0x458b97
mov eax, dword [edi + 0xc]
shl eax, 4
add eax, esi
mov ecx, eax
sub ecx, eax
mov edx, 4
mov ebx, dword [ecx + eax]
bswap ebx
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x458bb6
jmp 0x459097
mov cl, byte [0x602f80]
test cl, cl
jne 0x458bd7
call fcn.00458660
mov eax, dword [edi + 0xc]
mov edx, 4
lea eax, [eax*4 - 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
cmp eax, edx
jbe 0x458ece
lea ecx, [esi + eax*4 + 8]
lea eax, [esi + 0x18]
lea ecx, [ecx]
mov edx, dword [eax - 8]
mov ebx, edx
mov edi, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x601f64]
xor edi, dword [ebx*8 + 0x601f61]
xor edi, dword [edx*8 + 0x601f62]
movzx edx, byte [eax - 8]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x601f63]
mov edx, dword [ecx - 8]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x601f64]
xor ebx, dword [edx*8 + 0x601f61]
mov edx, dword [ecx - 8]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f62]
movzx edx, byte [ecx - 8]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f63]
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 + str.cw]
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x601f64]
xor edi, dword [ebx*8 + 0x601f61]
xor edi, dword [edx*8 + 0x601f62]
movzx edx, byte [eax - 4]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x601f63]
mov edx, dword [ecx - 4]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x601f64]
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f61]
mov edx, dword [ecx - 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f62]
movzx edx, byte [ecx - 4]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f63]
mov dword [eax - 4], ebx
mov dword [ecx - 4], edi
mov edx, dword [eax]
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x601f64]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*8 + 0x601f61]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x601f62]
movzx edx, byte [eax]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x601f63]
mov edx, dword [ecx]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x601f64]
xor ebx, dword [edx*8 + 0x601f61]
mov edx, dword [ecx]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f62]
movzx edx, byte [ecx]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f63]
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 + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x601f64]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*8 + 0x601f61]
sub ecx, 0x10
xor edi, dword [edx*8 + 0x601f62]
movzx edx, byte [eax - 0xc]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x601f63]
mov edx, dword [ecx + 0x14]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x601f64]
xor ebx, dword [edx*8 + 0x601f61]
mov edx, dword [ecx + 0x14]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f62]
movzx edx, byte [ecx + 0x14]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x601f63]
mov edx, dword [esp + 0x18]
mov dword [eax - 0xc], ebx
mov dword [ecx + 0x14], edi
mov edi, dword [esp + 0x1c]
add edx, 4
sub edi, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
cmp edx, edi
jb 0x458c00
mov edi, dword [esp + 0x14]
mov eax, dword [esi + edx*4]
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x601f64]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x601f61]
xor ecx, dword [eax*8 + 0x601f62]
movzx eax, byte [esi + edx*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x601f63]
mov eax, dword [esi + edx*4 + 4]
mov dword [esi + edx*4], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x601f64]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x601f61]
xor ecx, dword [eax*8 + 0x601f62]
movzx eax, byte [esi + edx*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x601f63]
mov eax, dword [esi + edx*4 + 8]
mov dword [esi + edx*4 + 4], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x601f64]
shr eax, 8
shr ebx, 0x10
movzx eax, al
movzx eax, byte [eax + str.cw]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x601f61]
xor ecx, dword [eax*8 + 0x601f62]
movzx eax, byte [esi + edx*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x601f63]
mov eax, dword [esi + edx*4 + 0xc]
mov dword [esi + edx*4 + 8], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x601f64]
shr eax, 8
shr ebx, 0x10
movzx eax, al
movzx eax, byte [eax + str.cw]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x601f61]
xor ecx, dword [eax*8 + 0x601f62]
movzx eax, byte [esi + edx*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x601f63]
mov dword [esi + edx*4 + 0xc], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [esi]
add ecx, ecx
mov ecx, dword [esi + ecx*8]
bswap ecx
mov dword [esi], ecx
mov edx, dword [edi + 0xc]
bswap eax
add edx, edx
mov dword [esi + edx*8], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 4]
add ecx, ecx
mov ecx, dword [esi + ecx*8 + 4]
bswap ecx
mov dword [esi + 4], ecx
mov edx, dword [edi + 0xc]
bswap eax
add edx, edx
mov dword [esi + edx*8 + 4], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 8]
add ecx, ecx
mov ecx, dword [esi + ecx*8 + 8]
bswap ecx
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
bswap eax
add edx, edx
mov dword [esi + edx*8 + 8], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 0xc]
add ecx, ecx
mov ecx, dword [esi + ecx*8 + 0xc]
bswap ecx
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0xc]
bswap eax
add edx, edx
mov dword [esi + edx*8 + 0xc], eax
cmp byte [0x602f81], 0
jne 0x4590a5
call fcn.0045ab40
cmp byte [0x602f8a], 0
je 0x4590cc
mov edi, dword [edi + 0xc]
dec edi
shl edi, 4
shr edi, 2
test edi, edi
je 0x4590cc
lea eax, [esi + 0x10]
nop
mov ecx, dword [eax]
bswap ecx
mov dword [eax], ecx
add eax, 4
dec edi
jne 0x4590c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc