Function at 0x4016b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x3cc], 0x10
lea eax, [ebx + 0x3f4]
mov dword [ebx + 0x3c8], 0x10
movups xmm0, xmmword [0x404b48]
movups xmmword [ebx + 0x3d4], xmm0
push dword [ebx + 0x3cc]
push 0x404b48
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x401721
cmp eax, 0x18
je 0x401713
mov dword [ebx + 0x3d0], 0xe
jmp 0x401746
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
jmp 0x401739
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x401731
lea eax, [ecx - 6]
jmp 0x401740
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
lea esi, [edx + eax]
xor edx, edx
sar esi, 2
mov dword [ebp - 8], esi
cmp dword [ebx + 0x3d0], edx
jl 0x40178c
lea edi, [ebx + 8]
mov dword [ebp - 0x14], edi
nop dword [eax]
test esi, esi
jle 0x40177d
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
inc edx
add edi, 0x20
mov dword [ebp - 0x14], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x401770
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x4017bc
lea edi, [ebx + 0x1e8]
mov dword [ebp - 0x14], edi
nop
test esi, esi
jle 0x4017ad
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
inc edx
add edi, 0x20
mov dword [ebp - 0x14], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x4017a0
mov eax, dword [ebx + 0x3d0]
mov ecx, 0x405c60
inc eax
imul eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add eax, edx
lea edx, [ebx + 0x414]
sar eax, 2
mov dword [ebp - 4], eax
test eax, eax
jle 0x401822
mov edi, eax
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
shl eax, 0x18
lea edx, [edx + 4]
mov dword [edx - 4], eax
movzx eax, byte [ecx - 3]
shl eax, 0x10
or dword [edx - 4], eax
movzx eax, byte [ecx - 2]
shl eax, 8
or dword [edx - 4], eax
movzx eax, byte [ecx - 1]
or dword [edx - 4], eax
sub edi, 1
jne 0x4017f0
mov eax, dword [ebp - 4]
xor edi, edi
test eax, eax
jle 0x401873
lea ecx, [ebx + 0x414]
mov dword [ebp - 0x10], ecx
cmp edi, dword [ebp - 0xc]
jge 0x401a09
mov eax, edi
mov ecx, dword [ecx]
cdq
inc edi
idiv esi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 8]
sub ecx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0x10], ecx
cmp edi, eax
jl 0x401831
cmp edi, dword [ebp - 0xc]
jge 0x401a09
add eax, 0x104
mov dword [ebp - 0x10], 0x406cd8
lea eax, [ebx + eax*4]
mov dword [ebp - 0x1c], eax
nop
mov edx, dword [eax]
mov eax, edx
sar eax, 0x10
movzx eax, al
movsx ecx, byte [eax + 0x405760]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x405760]
xor ecx, eax
movzx eax, dl
shl ecx, 8
sar edx, 0x18
movzx eax, byte [eax + 0x405760]
xor ecx, eax
movzx eax, dl
shl ecx, 8
lea edx, [ebx + 0x414]
movzx eax, byte [eax + 0x405760]
xor ecx, eax
mov eax, dword [ebp - 4]
xor dword [edx], ecx
cmp eax, 8
je 0x401916
cmp eax, 1
jle 0x4019a7
lea ecx, [ebx + 0x418]
lea edx, [eax - 1]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x401903
jmp 0x40199e
lea eax, [ebx + 0x418]
mov edx, 3
mov ecx, dword [eax - 4]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x401921
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
movsx ecx, byte [eax + 0x405760]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x405760]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x405760]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + 0x405760]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
nop dword [eax]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x401990
mov eax, dword [ebp - 4]
lea edx, [ebx + 0x414]
mov dword [ebp - 0x18], 0
test eax, eax
jle 0x4019fa
mov ecx, edx
mov dword [ebp - 0x14], edx
cmp edi, dword [ebp - 0xc]
jge 0x401a09
mov eax, edi
mov ecx, dword [ecx]
cdq
inc edi
idiv esi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 8]
sub ecx, eax
mov eax, dword [ebp - 0x14]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp - 4]
jl 0x4019b7
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0xc]
jl 0x401890
mov ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebx + 0x3d0], ecx
jle 0x401aa4
mov eax, dword [ebp - 8]
lea edx, [ebx + 0x208]
mov dword [ebp - 0x14], edx
nop dword [eax]
test eax, eax
jle 0x401a85
mov esi, edx
mov edi, eax
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x4070f8]
xor ecx, dword [eax*4 + 0x405860]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x406078]
movzx eax, dl
xor ecx, dword [eax*4 + 0x406cf8]
mov dword [esi - 4], ecx
sub edi, 1
jne 0x401a38
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
inc ecx
add edx, 0x20
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
cmp ecx, dword [ebx + 0x3d0]
jl 0x401a30
pop edi
pop esi
mov byte [ebx + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov byte [ebx + 4], cl
pop ebx
mov esp, ebp
pop ebp
ret 0x10