Function at 0x100174e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, ecx
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2c]
push 0x10093020
push esi
call fcn.10017a70
add esp, 8
cmp dword [esi], 0
je 0x100177a6
mov dword [ebp - 0x30], edi
cmp dword [0x100a5204], 0xffffffff
jne 0x10017781
mov esi, 0x104
mov dword [ebp - 0x38], 0
xor ebx, ebx
dec ebx
lea eax, [esi + esi]
test esi, esi
mov dword [ebp - 0x3c], eax
cmovns ebx, eax
push ebx
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov edi, eax
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x1001778a
push esi
mov dword [ebp - 0x34], edi
push edi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x10017798
cmp eax, esi
mov ebx, 0xffffffff
je 0x100177b5
mov edi, dword [ebp - 0x34]
movzx eax, word [edi]
test ax, ax
je 0x100175aa
lea ecx, [edi + 2]
lea edx, [eax - 0x41]
cmp dx, 0x19
jbe 0x100175a1
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001758b
jmp 0x100175aa
add eax, 0x20
mov word [ecx - 2], ax
jmp 0x10017594
push 0x12
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov word [eax + 0x10], 0
movzx ecx, word [edi]
xor esi, esi
mov eax, 0
test cx, cx
je 0x100175f1
mov edx, edi
add edx, 2
xor eax, eax
movzx ecx, cx
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x100175d8
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.100178b0
add esp, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
mov edi, dword [ebp - 0x2c]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x100177d2
lea ecx, [ebp - 0x28]
mov edx, esi
push esi
push edi
call fcn.10017900
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 0x20
mov edi, dword [ebp - 0x30]
jae 0x100177f3
lea ecx, [ebp - 0x28]
mov edx, 0x20
push 0x20
push str.MozillaFirefoxSkeletonUILock_
call fcn.10017900
add esp, 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x10017803
lea ecx, [ebp - 0x28]
mov edx, eax
push eax
push ebx
call fcn.10017900
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x1001769e
mov eax, dword [ebp - 0x28]
jmp 0x100176a1
lea eax, [ebp - 0x28]
sub esp, 0x1c
movaps xmm0, xmmword [0x10093c10]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [0x100a5204], eax
cmp eax, 0xffffffff
je 0x10017774
xor eax, eax
mov byte [edi + 4], al
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x100176fd
mov eax, dword [ebp - 0x28]
inc ecx
test ecx, 0x7ffff800
jne 0x10017813
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
push ebx
call sym.mozglue.dll__aligned_free
add esp, 4
push dword [ebp - 0x34]
call sym.mozglue.dll__aligned_free
add esp, 4
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
test esi, esi
je 0x10017760
mov ecx, dword [0x100a661c]
test ecx, ecx
jne 0x10017757
push str.ole32
call dword [sym.imp.kernel32.dll_LoadLibraryW]
test eax, eax
je 0x1001782e
push 0x10097735
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x100a661c], eax
test eax, eax
je 0x10017835
call dword [section..00cfg]
push esi
call ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi], 9
mov al, 1
jmp 0x100176d9
mov edi, dword [ebp - 0x30]
mov byte [edi + 4], 0
jmp 0x10017711
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001755b
push dword [ebp - 0x34]
call sym.mozglue.dll__aligned_free
add esp, 4
mov edi, dword [ebp - 0x30]
mov byte [edi + 4], 1
mov dword [edi], 0xa
jmp 0x10017711
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp - 0x3c]
cmp eax, 0x7a
je 0x1001752e
jmp 0x1001757d
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], esi
mov ecx, esi
add ecx, esi
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [ebp + esi*2 - 0x28], 0
jmp 0x1001763c
lea edx, [eax + 0x20]
mov dword [ebp - 0x18], edx
cmp ecx, 8
jb 0x10017847
mov ecx, dword [ebp - 0x28]
jmp 0x1001784a
lea esi, [ecx + eax]
mov dword [ebp - 0x18], esi
cmp edx, 8
jb 0x10017888
mov edi, dword [ebp - 0x28]
jmp 0x1001788b
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x100178a9
mov eax, ecx
mov edi, dword [ebp - 0x30]
jmp 0x100176f4
push str.Could_not_load_ole32___will_not_free_with_CoTaskMemFree
jmp 0x1001783a
push str.Could_not_find_CoTaskMemFree
call fcn.1007bae0
add esp, 4
jmp 0x10017760
lea ecx, [ebp - 0x28]
movups xmm0, xmmword [0x1009b832]
movups xmmword [ecx + eax*2 + 0x30], xmm0
movups xmm0, xmmword [0x1009b822]
movups xmmword [ecx + eax*2 + 0x20], xmm0
movups xmm0, xmmword [0x1009b812]
movups xmmword [ecx + eax*2 + 0x10], xmm0
movups xmm0, xmmword [str.MozillaFirefoxSkeletonUILock_]
movups xmmword [ecx + eax*2], xmm0
mov word [ecx + eax*2 + 0x40], 0
mov edi, dword [ebp - 0x30]
jmp 0x10017669
lea edi, [ebp - 0x28]
lea ecx, [edi + ecx*2]
add eax, eax
push eax
push ebx
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + esi*2], 0
mov edi, dword [ebp - 0x30]
jmp 0x10017693
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3