Function at 0x4e548ed0
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, 0x38
mov eax, dword [ebp + 0xc]
push esi
shr eax, 2
push edi
mov dword [esp + 0x10], eax
add eax, 6
push ecx
lea edi, [ecx + 0x18]
lea esi, [eax*4 + 4]
mov dword [ecx + 0x10], eax
push esi
push dword [edi + 0x100]
mov dword [esp + 0x24], ecx
push dword [edi + 0x104]
mov ecx, edi
call fcn.4e54a950
cmp byte [0x4e5db01a], 0
mov dword [edi + 0x100], esi
mov esi, dword [esp + 0x18]
mov dword [edi + 0x104], eax
mov esi, dword [esi + 0x11c]
jne 0x4e548f32
call fcn.4e548a60
cmp byte [0x4e5db01b], 0
je 0x4e549146
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
movdqu xmm0, xmmword [eax + ecx - 0x10]
push eax
push esi
movdqa xmmword [esp + 0x3c], xmm0
call fcn.4e5869a0
movdqa xmm1, xmmword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
shl eax, 2
aeskeygenassist xmm0, xmm1, 0
lea edx, [eax + esi]
mov dword [esp + 0x20], eax
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
mov dword [esp + 0x28], edx
xor ecx, 1
mov dword [edx], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [eax*4 + 8]
mov dword [esi + eax*4 + 8], ecx
mov dword [esp + 0x20], edx
lea edx, [eax*4 + 0xc]
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [edx + esi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x100]
mov dword [esp + 0x24], edx
lea edx, [eax*4 + 0x10]
mov eax, dword [edi + 0x104]
mov dword [esp + 0x10], edx
lea ecx, [eax + ecx*4]
lea eax, [edx + esi]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], 0x4e5bbc4c
cmp eax, ecx
je 0x4e5490cc
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x4e549021
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 0x4e549066
cmp eax, 0x20
jne 0x4e54905f
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 0x4e549066
pinsrd xmm1, dword [esi + 0x1c], 3
mov ecx, dword [esp + 0xc]
mov esi, edx
mov edx, dword [esp + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd eax, xmm0, 3
xor eax, dword [ecx]
add ecx, 4
xor eax, dword [esi]
add edx, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esi + 4]
xor eax, dword [edx]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x20]
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 [edi + 0x104]
mov ecx, dword [edi + 0x100]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, ecx
jne 0x4e549000
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4e549933
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x11c]
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 + 0x10]
mov ecx, 4
lea eax, [eax*4 - 4]
cmp eax, ecx
jbe 0x4e549133
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 0x4e549113
aesimc xmm0, xmmword [edx + ecx*4]
movdqa xmmword [edx + ecx*4], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
push dword [ebp + 8]
mov edx, esi
push eax
call fcn.4e54a9d0
mov eax, dword [esp + 0x1c]
shl eax, 2
mov dword [esp + 0x20], eax
mov ecx, dword [eax + esi - 4]
add eax, esi
mov dword [esp + 0x18], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
add esp, 0xc
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]
xor edx, eax
xor edx, dword [esi]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], 0x4e5b9c68
mov dword [eax], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [esp + 0xc]
mov dword [edx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x10]
lea edx, [eax*4 + 8]
mov dword [esi + eax*4 + 8], ecx
mov dword [esp + 0x28], edx
lea edx, [eax*4 + 0xc]
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [edx + esi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x100]
mov dword [esp + 0x2c], edx
lea edx, [eax*4 + 0x10]
mov eax, dword [edi + 0x104]
mov dword [esp + 0x10], edx
lea ecx, [eax + ecx*4]
lea eax, [edx + esi]
mov edx, dword [esp + 0xc]
cmp eax, ecx
je 0x4e549373
mov eax, dword [esp + 0x14]
lea ecx, [eax - 4]
add eax, 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x4e54925b
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 0x4e5492c8
cmp eax, 0x20
jne 0x4e5492c8
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 + 0xc]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x24]
mov esi, edx
mov edx, dword [eax + esi]
mov eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0xc], eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
shl ecx, 8
mov eax, edx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
xor ecx, eax
shl ecx, 8
movzx eax, dl
shr edx, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, byte [edx + str.cw]
mov edx, dword [esp + 0xc]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi]
mov eax, dword [esp + 0x1c]
add eax, 4
xor ecx, dword [eax - 4]
mov dword [esp + 0x1c], eax
mov dword [edx], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x28]
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 [edi + 0x104]
mov ecx, dword [edi + 0x100]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, ecx
jne 0x4e549240
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x11c]
mov eax, dword [eax + 0x1c]
lea ecx, [esi + 4]
mov dword [esp + 0x28], edi
call eax
test al, al
je 0x4e5493d6
cmp byte [0x4e5db020], 0
jne 0x4e54939e
call fcn.4e548cd0
xor ecx, ecx
mov eax, dword [edi + ecx*4]
bswap eax
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, 4
jb 0x4e5493a0
mov ecx, dword [esi + 0x10]
shl ecx, 4
add ecx, edi
mov esi, ecx
sub esi, ecx
mov edx, 4
nop
mov eax, dword [esi + ecx]
bswap eax
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4e5493c0
mov esi, dword [esp + 0x18]
jmp 0x4e5498ff
cmp byte [0x4e5db021], 0
jne 0x4e5493e4
call fcn.4e548d50
mov eax, dword [esi + 0x10]
mov ecx, 4
lea eax, [eax*4 - 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
cmp eax, ecx
jbe 0x4e549726
add eax, 2
lea eax, [edi + eax*4]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xc], 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 + 0x4e5dba6c]
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx - 8]
xor esi, dword [eax*8 + 0x4e5dba6a]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba6b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edx - 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov eax, dword [esp + 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
mov esi, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx - 4]
xor esi, dword [eax*8 + 0x4e5dba6a]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba6b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edx - 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov eax, dword [esp + 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
mov esi, dword [ecx*8 + 0x4e5dba6c]
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx]
xor esi, dword [eax*8 + 0x4e5dba6a]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba6b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edx]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov eax, dword [esp + 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
mov esi, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
mov edx, dword [edx + 4]
xor esi, dword [eax*8 + 0x4e5dba6a]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4e5dba6b]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edx + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov eax, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], esi
add ecx, 4
add eax, 0x10
sub edi, 4
sub edx, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
cmp ecx, edi
jb 0x4e549418
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov edx, dword [edi + ecx*4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edi + edx*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov dword [edi + edx*4], ecx
mov edx, dword [edi + edx*4 + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edi + edx*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov dword [edi + edx*4 + 4], ecx
mov edx, dword [edi + edx*4 + 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edi + edx*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov dword [edi + edx*4 + 8], ecx
mov edx, dword [edi + edx*4 + 0xc]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*8 + 0x4e5dba6c]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba69]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6a]
movzx eax, byte [edi + edx*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4e5dba6b]
mov dword [edi + edx*4 + 0xc], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [edi]
bswap ecx
add eax, eax
mov eax, dword [edi + eax*8]
bswap eax
mov dword [edi], eax
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [edi + eax*8], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 4]
bswap ecx
add eax, eax
mov eax, dword [edi + eax*8 + 4]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [edi + eax*8 + 4], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 8]
bswap ecx
add eax, eax
mov eax, dword [edi + eax*8 + 8]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [edi + eax*8 + 8], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0xc]
bswap ecx
add eax, eax
mov eax, dword [edi + eax*8 + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [edi + eax*8 + 0xc], ecx
cmp byte [0x4e5db01a], 0
jne 0x4e54990d
call fcn.4e548a60
cmp byte [0x4e5db01b], 0
je 0x4e549933
mov edx, dword [esi + 0x10]
dec edx
shl edx, 4
shr edx, 2
lea ecx, [edi + 0x10]
test edx, edx
je 0x4e549933
mov eax, dword [ecx]
bswap eax
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4e549927
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc