Function at 0x4d10f0
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 + 0x14], eax
lea edi, [ecx + 0x18]
add eax, 6
mov dword [esp + 0x18], ecx
push ecx
mov dword [ecx + 0x10], eax
mov ecx, edi
lea esi, [eax*4 + 4]
push esi
push dword [edi + 0x100]
push dword [edi + 0x104]
call fcn.004d3340
cmp byte [0x5993bf], 0
mov dword [edi + 0x100], esi
mov esi, dword [esp + 0x18]
mov dword [edi + 0x104], eax
mov esi, dword [esi + 0x11c]
jne 0x4d1152
call fcn.004d4c30
cmp byte [0x599519], 0
je 0x4d1360
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push esi
movups xmm0, xmmword [eax + ecx - 0x10]
movaps xmmword [esp + 0x3c], xmm0
call fcn.00510a20
mov edx, dword [esp + 0x20]
add esp, 0xc
movaps xmm1, xmmword [esp + 0x30]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
lea eax, [edx*4]
lea edx, [eax + esi]
mov dword [esp + 0x1c], eax
xor ecx, 1
mov dword [esp + 0x20], edx
mov dword [edx], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [esp + 0x10], 0x573f80
mov dword [edx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
lea edx, [eax*4 + 8]
mov dword [esi + eax*4 + 8], ecx
mov dword [esp + 0x24], edx
lea edx, [eax*4 + 0xc]
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esp + 0x28], edx
mov dword [edx + esi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x100]
lea edx, [eax*4 + 0x10]
mov eax, dword [edi + 0x104]
mov dword [esp + 0x14], edx
lea ecx, [eax + ecx*4]
lea eax, [edx + esi]
mov edx, dword [esp + 0x20]
cmp eax, ecx
je 0x4d12ec
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x20], eax
nop dword [eax + eax]
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x4d1241
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 0x4d1286
cmp eax, 0x20
jne 0x4d127f
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 0x4d1286
pinsrd xmm1, dword [esi + 0x1c], 3
mov ecx, dword [esp + 0x10]
mov esi, edx
mov edx, dword [esp + 0x1c]
aeskeygenassist xmm0, xmm1, 0
add edx, esi
pextrd eax, xmm0, 3
xor eax, dword [ecx]
add ecx, 4
xor eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
xor eax, dword [edx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x24]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + esi], eax
mov eax, dword [edi + 0x104]
mov ecx, dword [edi + 0x100]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
jne 0x4d1220
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 0x4d1b65
mov eax, dword [esi + 0x10]
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 + 0x10]
lea eax, [eax*4 - 4]
cmp eax, ecx
jbe 0x4d134e
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 0x4d1330
aesimc xmm0, xmmword [edx + ecx*4]
movaps xmmword [edx + ecx*4], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
lea edi, [edx*4]
mov dword [esp + 0x2c], eax
mov edx, edi
mov dword [esp + 0x30], 4
call fcn.004d3760
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push edi
add eax, esi
push 0
push eax
call fcn.00510fa0
add esp, 0x14
lea edx, [esp + 0x28]
lea ecx, [esp + 0x24]
call fcn.004d3670
push eax
mov edx, esi
mov ecx, esi
call fcn.004cea40
mov eax, dword [esp + 0x18]
add esp, 4
shl eax, 2
mov dword [esp + 0x10], eax
add eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x559144
mov ecx, dword [eax - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x559268]
mov eax, ecx
shr eax, 8
xor edx, 1
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x559268]
xor edx, eax
movzx eax, cl
shr ecx, 0x18
shl edx, 8
movzx eax, byte [eax + 0x559268]
xor edx, eax
movzx eax, byte [ecx + 0x559268]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x1c]
xor edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
lea edi, [eax*4 + 8]
mov dword [esi + eax*4 + 8], ecx
mov dword [esp + 0x24], edi
lea edi, [eax*4 + 0xc]
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esp + 0x2c], edi
mov dword [edi + esi], eax
mov eax, dword [esp + 0x14]
lea edi, [eax*4 + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x118]
mov eax, dword [eax + 0x11c]
lea ecx, [eax + ecx*4]
lea eax, [edi + esi]
mov edi, dword [ebp + 0xc]
cmp eax, ecx
je 0x4d15c4
mov eax, dword [esp + 0x10]
lea ecx, [eax + 4]
mov dword [esp + 0x28], ecx
nop
cmp edi, 0x18
jne 0x4d14a8
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 0x4d1515
cmp edi, 0x20
jne 0x4d1519
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + 0x559268]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x559268]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x559268]
xor edx, eax
movzx eax, cl
mov ecx, dword [esi + 0x18]
shl edx, 8
movzx eax, byte [eax + 0x559268]
xor edx, eax
mov eax, dword [esi + 0x14]
xor edx, dword [esi + 0x10]
xor eax, edx
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x1c]
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 eax, dword [esp + 0x10]
mov esi, edx
mov edx, dword [eax + esi - 4]
add eax, esi
mov dword [esp + 0x1c], eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x559268]
xor ecx, eax
movzx eax, dl
shl ecx, 8
shr edx, 0x18
movzx eax, byte [eax + 0x559268]
xor ecx, eax
movzx eax, byte [edx + 0x559268]
mov edx, dword [esp + 0x1c]
shl ecx, 8
xor ecx, eax
mov eax, dword [esp + 0x20]
xor ecx, dword [esi]
xor ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x24]
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 + 0x18]
mov ecx, dword [eax + 0x118]
mov eax, dword [eax + 0x11c]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
mov eax, dword [esp + 0x10]
jne 0x4d1490
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov esi, dword [edi + 0x11c]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x20], esi
call eax
test al, al
je 0x4d1616
cmp byte [0x5993bd], 0
jne 0x4d15ef
call fcn.004d0f20
push 0x10
mov edx, esi
mov ecx, esi
call fcn.004cea40
mov ecx, dword [edi + 0x10]
add esp, 4
shl ecx, 4
add ecx, esi
mov edx, ecx
push 0x10
call fcn.004cea40
add esp, 4
jmp 0x4d1b39
cmp byte [0x5993be], 0
jne 0x4d1624
call fcn.004d0f90
mov eax, dword [edi + 0x10]
mov ecx, 4
mov dword [esp + 0x1c], ecx
lea eax, [eax*4 - 4]
cmp eax, ecx
jbe 0x4d1960
mov edi, eax
lea eax, [edi + 2]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x18]
mov dword [esp + 0x10], eax
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
mov edx, dword [edx - 8]
xor esi, dword [eax*8 + 0x59a5ea]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5eb]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [edx - 8]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov eax, dword [esp + 0x10]
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 + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
mov edx, dword [edx - 4]
xor esi, dword [eax*8 + 0x59a5ea]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5eb]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [edx - 4]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov eax, dword [esp + 0x10]
mov dword [eax - 4], ecx
mov dword [edx - 4], esi
mov edx, dword [eax]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
mov edx, dword [edx]
xor esi, dword [eax*8 + 0x59a5ea]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5eb]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [edx], esi
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
mov edx, dword [edx + 4]
xor esi, dword [eax*8 + 0x59a5ea]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + 0x559268]
xor esi, dword [eax*8 + 0x59a5eb]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [edx + 4]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov eax, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], esi
add ecx, 4
add eax, 0x10
mov dword [esp + 0x1c], ecx
sub edi, 4
mov dword [esp + 0x10], eax
sub edx, 0x10
mov dword [esp + 0x14], edx
cmp ecx, edi
jb 0x4d1652
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [esi + edx*4]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov dword [esi + edx*4], ecx
mov edx, dword [esi + edx*4 + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [esi + edx*4 + 4]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov dword [esi + edx*4 + 4], ecx
mov edx, dword [esi + edx*4 + 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [esi + edx*4 + 8]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov dword [esi + edx*4 + 8], ecx
mov edx, dword [esi + edx*4 + 0xc]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + 0x559268]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x59a5ec]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5e9]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5ea]
movzx eax, byte [esi + edx*4 + 0xc]
movzx eax, byte [eax + 0x559268]
xor ecx, dword [eax*8 + 0x59a5eb]
mov dword [esi + edx*4 + 0xc], ecx
mov eax, dword [edi + 0x10]
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 + 0x10]
add eax, eax
mov dword [esi + eax*8], ecx
mov eax, dword [edi + 0x10]
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 + 0x10]
add eax, eax
mov dword [esi + eax*8 + 4], ecx
mov eax, dword [edi + 0x10]
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 + 0x10]
add eax, eax
mov dword [esi + eax*8 + 8], ecx
mov eax, dword [edi + 0x10]
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 + 0x10]
add eax, eax
mov dword [esi + eax*8 + 0xc], ecx
cmp byte [0x5993bf], 0
jne 0x4d1b47
call fcn.004d4c30
cmp byte [0x599519], 0
je 0x4d1b65
mov eax, dword [edi + 0x10]
lea ecx, [esi + 0x10]
dec eax
mov edx, ecx
shl eax, 4
push eax
call fcn.004cea40
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc