Function at 0x10001f51
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x68
mov al, byte [str.forcePassiveMode]
xor ecx, ecx
mov byte [ebp - 0x10], al
mov edx, ecx
push esi
push edi
test al, al
je 0x10001fbb
mov eax, dword [0x1003ea98]
or eax, 0xf83fb864
mov dword [ebp - 0x18], eax
mov dword [0x1003eac8], eax
inc edx
cmp byte [edx + str.forcePassiveMode], cl
jne 0x10001f8d
mov esi, dword [ebp - 0x1c]
cmp esi, edx
jae 0x10001fc3
cmp esi, 0x1f63
jne 0x10001fb4
mov eax, dword [0x1003eb38]
and eax, 0x6133ba82
mov dword [0x1003eac8], eax
inc esi
cmp esi, edx
jb 0x10001f9d
jmp 0x10001fc0
mov eax, dword [0x1003eac8]
mov dword [ebp - 0x18], eax
lea edi, [eax + 0x3eb23920]
mov esi, ecx
mov edx, edi
or edx, 0x2e3d9b3e
mov dword [0x1003ea98], edx
inc esi
cmp word [esi*2 + str.._AVEventRoutingImpl_lic_asw__], cx
jne 0x10001fd9
cmp dword [ebp - 0x1c], esi
jae 0x10001ffd
sub esi, dword [ebp - 0x1c]
xor edx, 0x64597325
sub esi, 1
jne 0x10001fec
mov dword [0x1003ea98], edx
mov esi, ecx
cmp byte [ebp - 0x10], cl
je 0x1000202e
inc esi
cmp byte [esi + str.forcePassiveMode], cl
jne 0x10002004
jmp 0x10002029
cmp dword [ebp - 0x1c], 0x1806
jne 0x10002020
mov edi, edx
xor edi, 0x7ac7aa4c
sub edi, 0x51a958ec
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jb 0x1000200f
mov esi, str.forcePassiveMode
cmp byte [ebp - 0x10], cl
je 0x1000204e
mov ecx, esi
xor edx, 0x1d97c046
inc ecx
cmp byte [ecx], 0
jne 0x1000203a
mov dword [0x1003ea98], edx
xor ecx, ecx
cmp byte [ebp - 0x10], 0
lea eax, [edx - 0x2a0e4770]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
je 0x10002073
add eax, 0xe6d4c19
inc esi
mov dword [0x1003eac8], eax
cmp byte [esi], 0
jne 0x10002060
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x10], 0
mov esi, ecx
je 0x100020c0
add edx, 0xdce3b45
inc esi
cmp byte [esi + str.forcePassiveMode], 0
jne 0x1000207b
mov dword [0x1003ea98], edx
cmp dword [ebp - 0x1c], esi
jae 0x100020c0
imul ecx, dword [ebp - 0x1c], 0xa60960e
cmp dword [ebp - 0x1c], 0x37e
jne 0x100020b1
imul eax, edi, 0xb4eaea58
mov dword [0x1003eac8], eax
inc dword [ebp - 0x1c]
mov edi, ecx
cmp dword [ebp - 0x1c], esi
jb 0x1000209d
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov esi, str.SNX_WEB_UPDATERS
mov dword [ebp - 0x1c], ecx
mov cl, byte [ebp - 0x10]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp cl, byte [ebp - 0x30]
jne 0x1000211a
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x10]
test al, al
je 0x100020f6
cmp byte [ebp + ecx - 0x30], 0
je 0x100020f6
mov al, byte [ecx + 0x1003eaf1]
inc ecx
cmp al, byte [ebp + ecx - 0x30]
je 0x100020de
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp esi, ecx
jae 0x1000211a
cmp esi, 0x89b
jne 0x10002112
and eax, 0xf8d7325b
mov dword [0x1003eac8], eax
inc esi
cmp esi, ecx
jb 0x10002100
mov dword [ebp - 0x18], eax
push 0xd
pop ecx
mov esi, str.._AVPamSyncExceptionClientDenied_passwdmgr_avast_com__
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebp - 0x10]
lea eax, [edx - 0x77eee94]
mov dword [0x1003eb38], eax
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp cl, byte [ebp - 0x68]
jne 0x10002157
test cl, cl
je 0x10002157
cmp byte [ebp + eax - 0x68], 0
je 0x10002157
mov cl, byte [eax + 0x1003eaf1]
inc eax
cmp cl, byte [ebp + eax - 0x68]
je 0x1000213f
movzx ecx, byte [eax + str.forcePassiveMode]
movzx eax, byte [ebp + eax - 0x68]
sub ecx, eax
cmp ecx, 0xc9f
jne 0x10002175
or edx, 0x380f746a
jmp 0x1000217e
mov edx, dword [ebp - 0x18]
or edx, 0x2d74f26d
pop edi
mov dword [0x1003eb34], edx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret