Function at 0x10016350
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 [0x100a400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2c]
push 0x10092020
push esi
call fcn.100168e0
add esp, 8
cmp dword [esi], 0
je 0x10016616
mov dword [ebp - 0x30], edi
cmp dword [0x100a4204], 0xffffffff
jne 0x100165f1
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 0x100165fa
push esi
mov dword [ebp - 0x34], edi
push edi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x10016608
cmp eax, esi
mov ebx, 0xffffffff
je 0x10016625
mov edi, dword [ebp - 0x34]
movzx eax, word [edi]
test ax, ax
je 0x1001641a
lea ecx, [edi + 2]
lea edx, [eax - 0x41]
cmp dx, 0x19
jbe 0x10016411
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100163fb
jmp 0x1001641a
add eax, 0x20
mov word [ecx - 2], ax
jmp 0x10016404
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 0x10016461
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 0x10016448
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.10016720
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 0x10016642
lea ecx, [ebp - 0x28]
mov edx, esi
push esi
push edi
call fcn.10016770
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 0x10016663
lea ecx, [ebp - 0x28]
mov edx, 0x20
push 0x20
push str.MozillaFirefoxSkeletonUILock_
call fcn.10016770
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 0x10016673
lea ecx, [ebp - 0x28]
mov edx, eax
push eax
push ebx
call fcn.10016770
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x1001650e
mov eax, dword [ebp - 0x28]
jmp 0x10016511
lea eax, [ebp - 0x28]
sub esp, 0x1c
movaps xmm0, xmmword [0x10092c60]
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 [0x100a4204], eax
cmp eax, 0xffffffff
je 0x100165e4
xor eax, eax
mov byte [edi + 4], al
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1001656d
mov eax, dword [ebp - 0x28]
inc ecx
test ecx, 0x7ffff800
jne 0x10016683
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 0x100165d0
mov ecx, dword [0x100a561c]
test ecx, ecx
jne 0x100165c7
push str.ole32
call dword [sym.imp.kernel32.dll_LoadLibraryW]
test eax, eax
je 0x1001669e
push 0x10096781
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x100a561c], eax
test eax, eax
je 0x100166a5
call dword [section..00cfg]
push esi
call ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f020
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi], 9
mov al, 1
jmp 0x10016549
mov edi, dword [ebp - 0x30]
mov byte [edi + 4], 0
jmp 0x10016581
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x100163cb
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 0x10016581
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 0x1001639e
jmp 0x100163ed
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 0x100164ac
lea edx, [eax + 0x20]
mov dword [ebp - 0x18], edx
cmp ecx, 8
jb 0x100166b7
mov ecx, dword [ebp - 0x28]
jmp 0x100166ba
lea esi, [ecx + eax]
mov dword [ebp - 0x18], esi
cmp edx, 8
jb 0x100166f8
mov edi, dword [ebp - 0x28]
jmp 0x100166fb
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10016719
mov eax, ecx
mov edi, dword [ebp - 0x30]
jmp 0x10016564
push str.Could_not_load_ole32___will_not_free_with_CoTaskMemFree
jmp 0x100166aa
push str.Could_not_find_CoTaskMemFree
call fcn.1007b2d0
add esp, 4
jmp 0x100165d0
lea ecx, [ebp - 0x28]
movups xmm0, xmmword [0x1009a90a]
movups xmmword [ecx + eax*2 + 0x30], xmm0
movups xmm0, xmmword [0x1009a8fa]
movups xmmword [ecx + eax*2 + 0x20], xmm0
movups xmm0, xmmword [0x1009a8ea]
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 0x100164d9
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 0x10016503
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3