Function at 0x4179c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x34]
mov eax, 1
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov edi, dword [edi]
cmp dword [ebx], edi
cmova edi, dword [ebx]
cmp edi, eax
cmovb edi, eax
mov ecx, edi
mov dword [esp + 0x40], edi
call fcn.004155e0
mov ecx, edi
mov esi, eax
call fcn.004155e0
mov ebp, eax
mov eax, dword [ebx]
cmp dword [esi], eax
cmovb eax, dword [esi]
mov dword [esp + 0x28], eax
lea edi, [eax*4]
push edi
push dword [ebx + 4]
push dword [esi + 4]
call sub.VCRUNTIME140.dll_memmove
mov ebx, dword [esi + 4]
add esp, 0xc
add ebx, edi
je 0x417a47
mov edi, dword [esi]
sub edi, dword [esp + 0x28]
shl edi, 2
test edi, edi
je 0x417a47
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push ebx
call eax
add esp, 8
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx]
cmp dword [ebp], ebx
cmovb ebx, dword [ebp]
lea edi, [ebx*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp + 4]
add esp, 0xc
add eax, edi
mov dword [esp + 0x44], eax
je 0x417a9c
mov edi, dword [ebp]
sub edi, ebx
shl edi, 2
test edi, edi
je 0x417a9c
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push dword [esp + 0x48]
call eax
add esp, 8
mov edi, dword [esp + 0x40]
lea ecx, [edi + 1]
call fcn.004155e0
mov ebx, eax
lea ecx, [edi + 1]
mov dword [esp + 0x34], ebx
call fcn.004155e0
mov ecx, dword [esp + 0x40]
mov edi, eax
mov dword [esp + 0x44], edi
call fcn.004155e0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
shl eax, 6
mov dword [esp + 0x40], eax
add eax, eax
mov ecx, eax
mov dword [esp + 0x1c], eax
shr ecx, 5
call fcn.004155e0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x417bfe
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov edx, dword [esi]
cmp dword [ebp], edx
push 1
cmova edx, dword [ebp]
xor ecx, ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ebp
call fcn.00415c80
mov ecx, dword [esi + 4]
add esp, 0x14
mov edx, dword [ecx]
mov ecx, dword [ebp + 4]
mov edi, dword [ecx]
mov ecx, edx
and edi, edx
xor ecx, eax
and edi, 1
and ecx, edi
mov dword [esp + 0x28], edi
mov edi, dword [esi]
xor ecx, edx
and ecx, 1
xor edx, edx
mov eax, ecx
mov dword [esp + 0x30], ecx
neg eax
mov dword [esp + 0x20], eax
test edi, edi
je 0x417b75
nop
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 4]
mov eax, dword [eax + edx*4]
xor eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x20]
and ecx, eax
mov eax, dword [esi + 4]
xor dword [eax + edx*4], ecx
mov eax, dword [ebp + 4]
xor dword [eax + edx*4], ecx
inc edx
mov edi, dword [esi]
cmp edx, edi
jb 0x417b50
mov ecx, dword [esp + 0x28]
mov edx, edi
neg ecx
mov eax, ecx
and eax, 1
push eax
push ecx
push ecx
mov ecx, dword [esi + 4]
push ebp
push esi
call fcn.00415c80
add esp, 0x14
mov edx, esi
mov ecx, esi
push 1
call fcn.00416690
mov edx, dword [ebx + 4]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
shr edi, 5
and ecx, 0x1f
mov eax, dword [edx + edi*4]
btr eax, ecx
mov dword [edx + edi*4], eax
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x28]
shl edx, cl
mov ecx, dword [esp + 0x18]
or dword [eax + edi*4], edx
inc ecx
mov edx, dword [ebx + 4]
and ecx, 0x1f
add dword [esp + 0x18], 2
mov eax, dword [edx + edi*4]
btr eax, ecx
mov dword [edx + edi*4], eax
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x30]
shl edx, cl
or dword [eax + edi*4], edx
sub dword [esp + 0x24], 1
jne 0x417b02
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x2c], 0
je 0x417f3a
cmp dword [esi], 0
jbe 0x417c15
mov eax, dword [esi + 4]
mov ecx, dword [eax]
jmp 0x417c17
xor ecx, ecx
mov eax, dword [ebx + 4]
and ecx, 1
mov dword [eax], ecx
cmp dword [ebp], 0
jbe 0x417c2c
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
jmp 0x417c2e
xor ecx, ecx
mov eax, dword [edi + 4]
and ecx, 1
mov dword [eax], ecx
mov ecx, dword [ebx]
cmp dword [esi], ecx
cmovb ecx, dword [esi]
mov dword [esp + 0x34], ecx
lea edi, [ecx*4]
push edi
push dword [ebx + 4]
push dword [esi + 4]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esi + 4]
add esp, 0xc
add eax, edi
mov dword [esp + 0x30], eax
je 0x417c8a
mov edi, dword [esi]
sub edi, dword [esp + 0x34]
shl edi, 2
test edi, edi
je 0x417c8a
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push dword [esp + 0x34]
call eax
add esp, 8
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
cmp dword [ebp], edx
cmovb edx, dword [ebp]
mov dword [esp + 0x34], edx
lea edi, [edx*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp + 4]
add esp, 0xc
add eax, edi
mov dword [esp + 0x30], eax
je 0x417ce5
mov edi, dword [ebp]
sub edi, dword [esp + 0x34]
shl edi, 2
test edi, edi
je 0x417ce5
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push dword [esp + 0x34]
call eax
add esp, 8
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x417e84
mov edx, dword [esp + 0x14]
add edx, 4
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
sub eax, 2
mov ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
shr ecx, 5
mov edi, dword [eax]
cmp ecx, edi
jae 0x417d32
lea edx, [eax + 4]
mov eax, dword [edx]
mov dword [esp + 0x28], edx
mov eax, dword [eax + ecx*4]
jmp 0x417d34
xor eax, eax
mov ecx, dword [esp + 0x1c]
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
shr ecx, 5
cmp ecx, edi
jae 0x417d58
mov eax, dword [edx]
mov edx, dword [eax + ecx*4]
jmp 0x417d65
mov eax, dword [esp + 0x14]
xor edx, edx
add eax, 4
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x34]
and ecx, 0x1f
shr edx, cl
mov ecx, dword [ebx + 4]
and edx, 1
push 0
push 0
mov dword [esp + 0x2c], edx
mov edi, dword [ecx]
mov edx, dword [ebx]
and edi, 1
neg edi
push edi
push ebp
push ebx
call fcn.00415c80
add esp, 0x14
push 0
push 0
push edi
mov edi, dword [esp + 0x50]
push esi
push edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
call fcn.00415c80
add esp, 0x14
mov edx, ebx
mov ecx, ebx
push 1
call fcn.00416690
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [edi]
and eax, 1
mov ecx, dword [edi + 4]
neg eax
mov dword [esp + 0x20], eax
push 0
push 0
push eax
push ebx
push edi
call fcn.00415c80
add esp, 0x14
mov edx, esi
mov ecx, esi
push 1
call fcn.004165b0
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push 0
push 0
push eax
push ebp
push esi
call fcn.00415c80
mov eax, dword [esp + 0x38]
xor edx, edx
neg eax
add esp, 0x14
mov dword [esp + 0x34], eax
cmp dword [esi], edx
jbe 0x417e33
nop dword [eax]
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 4]
mov eax, dword [eax + edx*4]
xor eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x34]
and ecx, eax
mov eax, dword [esi + 4]
xor dword [eax + edx*4], ecx
mov eax, dword [ebp + 4]
xor dword [eax + edx*4], ecx
inc edx
cmp edx, dword [esi]
jb 0x417e10
mov eax, dword [esp + 0x24]
xor edx, edx
neg eax
mov dword [esp + 0x34], eax
cmp dword [ebx], edx
jbe 0x417e66
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 4]
mov eax, dword [eax + edx*4]
xor eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x34]
and ecx, eax
mov eax, dword [ebx + 4]
xor dword [eax + edx*4], ecx
mov eax, dword [edi + 4]
xor dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebx]
jb 0x417e43
mov eax, dword [esp + 0x18]
xor eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x417d01
jmp 0x417e88
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push ebx
push ebp
call fcn.00415c80
mov eax, dword [esp + 0x24]
add esp, 0x14
mov edx, ebx
mov ecx, ebx
push dword [esp + 0x18]
push eax
call fcn.004156f0
mov eax, dword [esp + 0x18]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push edi
push esi
call fcn.00415c80
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov edx, edi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004156f0
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx]
cmp dword [edx], ecx
cmovb ecx, dword [edx]
mov dword [esp + 0x48], ecx
lea edi, [ecx*4]
push edi
push dword [ebx + 4]
push dword [edx + 4]
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov eax, dword [ecx + 4]
add eax, edi
mov dword [esp + 0x34], eax
je 0x417f3a
mov edi, dword [ecx]
sub edi, dword [esp + 0x40]
shl edi, 2
test edi, edi
je 0x417f3a
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push dword [esp + 0x38]
call eax
add esp, 8
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
test eax, eax
je 0x417f69
mov edi, dword [esi]
shl edi, 2
test edi, edi
je 0x417f69
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push dword [esp + 0x44]
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
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
mov eax, dword [ebp + 4]
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
je 0x417fb6
mov edi, dword [ebp]
shl edi, 2
test edi, edi
je 0x417fb6
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push dword [esp + 0x44]
call eax
add esp, 8
mov eax, dword [fcn.0040ae20]
xorps xmm0, xmm0
push 8
push ebp
movq qword [ebp], xmm0
call eax
push ebp
call esi
mov ebp, dword [ebx + 4]
add esp, 0xc
test ebp, ebp
je 0x417ff6
mov edi, dword [ebx]
shl edi, 2
test edi, edi
je 0x417ff6
push edi
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push ebp
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 esi
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x418039
mov edi, dword [ebx]
shl edi, 2
test edi, edi
je 0x418039
push edi
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push ebp
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 esi
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x41807d
mov edi, dword [ebp]
shl edi, 2
test edi, edi
je 0x41807d
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push ebx
call eax
add esp, 8
mov eax, dword [fcn.0040ae20]
xorps xmm0, xmm0
push 8
push ebp
movq qword [ebp], xmm0
call eax
push ebp
call esi
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x4180c1
mov edi, dword [ebx]
shl edi, 2
test edi, edi
je 0x4180c1
push edi
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push edi
push ebp
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 esi
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret