Function at 0x4173f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
push edi
mov dword [esp + 0x24], ebx
mov ecx, dword [ebx + 0x14]
mov esi, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004155e0
mov edi, eax
mov ecx, dword [edi]
shl ecx, 2
push ecx
push esi
push dword [edi + 4]
call sub.VCRUNTIME140.dll_memcpy
mov dword [esp + 0x3c], edi
add esp, 0xc
mov edi, 1
mov ecx, dword [ebx + 8]
call fcn.004155e0
push dword [esp + 0xc]
mov esi, eax
mov ecx, ebx
push dword [esp + edi*4 + 0x30]
mov edx, esi
call fcn.004171c0
mov dword [esp + edi*4 + 0x38], esi
add esp, 8
inc edi
cmp edi, 0x20
jb 0x417441
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
lea esi, [eax*4]
mov eax, esi
not eax
cmp eax, 8
jb 0x4178c7
lea eax, [esi + 8]
mov ecx, 1
test eax, eax
cmove eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x4178c7
mov eax, dword [esp + 0xc]
mov dword [edi], eax
lea eax, [edi + 8]
mov dword [edi + 4], eax
test eax, eax
je 0x4174d8
test esi, esi
je 0x4174d8
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + 8]
push esi
push eax
mov eax, dword [fcn.0040ae20]
call eax
add esp, 8
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx]
cmp dword [edi], edx
cmovb edx, dword [edi]
mov dword [esp + 0xc], edx
lea esi, [edx*4]
push esi
push dword [ecx + 4]
push dword [edi + 4]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 4]
add esp, 0xc
add eax, esi
mov dword [esp + 0x14], eax
je 0x41752f
mov esi, dword [edi]
sub esi, dword [esp + 0xc]
shl esi, 2
test esi, esi
je 0x41752f
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push esi
push dword [esp + 0x18]
call eax
add esp, 8
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
lea esi, [eax*4]
mov eax, esi
not eax
cmp eax, 8
jb 0x4178c7
lea eax, [esi + 8]
mov ecx, 1
test eax, eax
cmove eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4178c7
mov eax, dword [esp + 0xc]
mov dword [ebx], eax
lea eax, [ebx + 8]
mov dword [ebx + 4], eax
test eax, eax
je 0x41759e
test esi, esi
je 0x41759e
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebx + 8]
push esi
push eax
mov eax, dword [fcn.0040ae20]
call eax
add esp, 8
mov eax, dword [ebp + 8]
mov byte [esp + 0x13], 1
mov ecx, dword [eax]
mov eax, 0xcccccccd
shl ecx, 5
dec ecx
mul ecx
mov eax, dword [esp + 0x30]
shr edx, 2
mov dword [esp + 0x2c], eax
lea ecx, [edx + edx*4]
lea esi, [ecx + 2]
mov eax, dword [ebp + 8]
mov ebx, ecx
shr ebx, 5
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ecx
mov edx, dword [eax]
cmp ebx, edx
jae 0x4175e5
mov eax, dword [eax + 4]
mov ebx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
jmp 0x4175e7
xor ebx, ebx
and ecx, 0x1f
dec esi
shr ebx, cl
mov ecx, esi
shr ecx, 5
and ebx, 1
cmp ecx, edx
jae 0x417601
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
jmp 0x417603
xor eax, eax
and esi, 0x1f
mov ecx, esi
mov esi, dword [esp + 0x14]
shr eax, cl
mov ecx, esi
and eax, 1
shr ecx, 5
add eax, eax
or ebx, eax
cmp ecx, edx
jae 0x417629
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
jmp 0x41762b
xor eax, eax
mov ecx, esi
inc esi
and ecx, 0x1f
shr eax, cl
mov ecx, esi
and eax, 1
shr ecx, 5
shl eax, 2
or ebx, eax
cmp ecx, edx
jae 0x41764f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
jmp 0x417651
xor eax, eax
and esi, 0x1f
mov ecx, esi
mov esi, dword [esp + 0x14]
shr eax, cl
add esi, 2
and eax, 1
mov ecx, esi
shl eax, 3
shr ecx, 5
or ebx, eax
cmp ecx, edx
jae 0x41767b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
jmp 0x41767d
xor eax, eax
and esi, 0x1f
mov ecx, esi
shr eax, cl
mov ecx, dword [esp + 0x18]
and eax, 1
shl eax, 4
or ebx, eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
cmp dword [ecx], edx
mov eax, dword [esp + 0x2c]
cmovb edx, dword [ecx]
mov dword [esp + 0x28], edx
lea esi, [edx*4]
push esi
push dword [eax + 4]
push dword [ecx + 4]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [eax + 4]
add ecx, esi
mov dword [esp + 0x1c], ecx
je 0x4176f0
mov esi, dword [eax]
sub esi, dword [esp + 0x28]
shl esi, 2
test esi, esi
je 0x4176f0
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push esi
push dword [esp + 0x20]
call eax
add esp, 8
mov edi, dword [esp + 0x18]
mov esi, 1
nop dword [eax]
mov edx, dword [esp + esi*4 + 0x30]
mov eax, esi
xor eax, ebx
mov ecx, edi
add eax, 0x1f
shr eax, 5
push eax
push edi
call fcn.004156f0
inc esi
add esp, 8
cmp esi, 0x20
jb 0x417700
cmp byte [esp + 0x13], 0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
jne 0x417741
mov ecx, dword [esp + 0x24]
mov edx, edi
push ebx
push edi
call fcn.004171c0
add esp, 8
jmp 0x41779a
mov ecx, dword [ebx]
cmp dword [edi], ecx
cmovb ecx, dword [edi]
mov dword [esp + 0x1c], ecx
lea esi, [ecx*4]
push esi
push dword [ebx + 4]
push dword [edi + 4]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 4]
add esp, 0xc
add eax, esi
mov dword [esp + 0x28], eax
je 0x417795
mov esi, dword [edi]
sub esi, dword [esp + 0x1c]
shl esi, 2
test esi, esi
je 0x417795
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push esi
push dword [esp + 0x2c]
call eax
add esp, 8
mov byte [esp + 0x13], 0
cmp dword [esp + 0xc], 0
je 0x4177ce
mov esi, 5
mov ecx, dword [esp + 0x24]
mov edx, edi
push edi
push edi
call fcn.004171c0
add esp, 8
sub esi, 1
jne 0x4177a6
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
sub ecx, 5
sub esi, 5
jmp 0x4175c4
xor eax, eax
mov dword [esp + 0xc], eax
mov esi, dword [esp + eax*4 + 0x30]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x41780e
mov eax, dword [esi]
shl eax, 2
mov dword [esp + 0x20], eax
test eax, eax
je 0x41780e
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
add esp, 8
mov eax, dword [fcn.0040ae20]
xorps xmm0, xmm0
push 8
push esi
movq qword [esi], xmm0
call eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 0xc
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x20
jb 0x4177d4
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
test eax, eax
je 0x417866
mov esi, dword [ebx]
shl esi, 2
test esi, esi
je 0x417866
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push esi
push dword [esp + 0x24]
call eax
add esp, 8
mov eax, dword [fcn.0040ae20]
xorps xmm0, xmm0
push 8
push ebx
movq qword [ebx], xmm0
call eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x30]
add esp, 0xc
mov esi, dword [eax + 0x20]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4178b0
mov esi, dword [esi]
shl esi, 2
test esi, esi
je 0x4178b0
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push esi
push ebx
call eax
add esp, 8
mov ecx, dword [esp + 0xb4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043505d
mov esp, ebp
pop ebp
ret
call fcn.00413280
int3