Function at 0x401c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4b8], eax
call fcn.00402170
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4a0], eax
lea esi, [eax + 1]
push esi
call fcn.00403fa5
cmp dword [ebp - 0x14], 0x10
mov ecx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4b4], ecx
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
push esi
call fcn.00403fa5
cmp dword [ebp - 0x14], 0x10
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4b8], edi
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov dword [ebp - method.AES.virtual_0], vtable.AES.0
mov byte [ebp - 0x498], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
add esp, 0x18
mov byte [ebp - 4], 1
push str.33EC79A6E5F61468
push ecx
lea ecx, [ebp - 0x49c]
call fcn.00401730
cmp byte [ebp - 0x498], 0
mov esi, dword [ebp - 0x4a0]
je 0x401f06
test esi, esi
je 0x401f06
xor edx, edx
mov eax, esi
div dword [ebp - 0xd0]
mov ecx, eax
test edx, edx
jne 0x401f06
mov eax, dword [ebp - 0x4b4]
mov esi, edi
mov dword [ebp - 0x4ac], edx
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4a8], esi
test ecx, ecx
je 0x401f00
xor edi, edi
push esi
push eax
lea ecx, [ebp - 0x49c]
call fcn.00401450
cmp byte [ebp - 0x498], 0
lea edx, [ebp - 0xa8]
mov eax, esi
mov esi, dword [ebp - 0xd0]
je 0x401e9c
xor edi, edi
test esi, esi
jle 0x401e96
cmp esi, 0x40
jb 0x401e7a
mov ecx, dword [ebp - 0x4a8]
dec ecx
add ecx, esi
mov dword [ebp - 0x4a4], ecx
lea ecx, [ebp + esi - 0xa9]
cmp dword [ebp - 0x4a8], ecx
ja 0x401e09
mov ecx, edx
cmp dword [ebp - 0x4a4], ecx
jae 0x401e7a
mov ecx, esi
and ecx, 0x8000003f
jns 0x401e18
dec ecx
or ecx, 0xffffffc0
inc ecx
mov dword [ebp - 0x4a4], esi
sub dword [ebp - 0x4a4], ecx
mov ecx, dword [ebp - 0x4a4]
nop word [eax + eax]
movups xmm1, xmmword [eax]
add edi, 0x40
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [eax], xmm1
movups xmm1, xmmword [eax + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [eax + 0x10], xmm1
movups xmm1, xmmword [eax + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + 0x30]
add edx, 0x40
movups xmmword [eax + 0x20], xmm1
movups xmm1, xmmword [eax + 0x30]
pxor xmm1, xmm0
movups xmmword [eax + 0x30], xmm1
add eax, 0x40
cmp edi, ecx
jl 0x401e30
cmp edi, esi
jge 0x401e96
sub edx, eax
sub esi, edi
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x401e82
mov esi, dword [ebp - 0xd0]
mov edi, dword [ebp - 0x4ac]
push esi
mov esi, dword [ebp - 0x4b0]
lea eax, [ebp - 0xa8]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0xd0]
xor edx, edx
mov eax, dword [ebp - 0x4a0]
add esi, ecx
div ecx
mov dword [ebp - 0x4b0], esi
inc edi
mov esi, dword [ebp - 0x4a8]
add esp, 0xc
add esi, ecx
mov dword [ebp - 0x4ac], edi
cmp edi, eax
mov dword [ebp - 0x4a8], esi
mov eax, dword [ebp - 0x4b0]
jb 0x401da6
mov edi, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4a0]
mov al, byte [eax + edi - 1]
jmp 0x401f0a
mov esi, dword [ebp - 0x4a0]
mov al, byte [edi + esi - 1]
movsx esi, al
mov eax, dword [ebp - 0x4a0]
mov edx, eax
sub edx, esi
lea ecx, [eax - 1]
cmp ecx, edx
jb 0x401f44
nop
movsx eax, byte [ecx + edi]
cmp eax, esi
jne 0x401f33
mov byte [ecx + edi], 0
dec ecx
cmp ecx, edx
jae 0x401f20
jmp 0x401f44
push dword [ebp - 0x4a0]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, dword [ebp - 0x4bc]
mov ecx, edi
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f60
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00402030
push dword [ebp - 0x4b4]
call fcn.00403f70
push edi
call fcn.00403f70
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 0x10
jb 0x401fbc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401fb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401fb2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00403f3f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f2e
mov esp, ebp
pop ebp
ret 8