Function at 0x100335ae
Capabilities:
Create process on windows
Query or enumerate registry value
Read file via mapping
Terminate process

Disassembly:
push 0x5c0
mov eax, 0x10167ba3
call fcn.10004365
mov dword [ebp - 0x564], edx
mov dword [ebp - 0x544], ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x578]
mov dword [ebp - 0x54c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x5cc], 0x44
stosd dword es:[edi], eax
push 0x40
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c8]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x548], ebx
lea edi, [ebp - 0x588]
mov dword [ebp - 0x568], ebx
stosd dword es:[edi], eax
mov esi, ebx
mov dword [ebp - 0x554], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x54c]
add esp, 0x18
mov byte [ebp - 0x53d], 1
test edi, edi
je 0x10033c65
cmp byte [0x10219960], bl
je 0x10033691
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10214e34]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1021a818]
cmp eax, dword [ecx + 0x30]
jg 0x10033f08
mov ecx, 0x1021a81c
call fcn.1006b423
push 0
test al, al
je 0x1003398c
mov ecx, dword [ebp - 0x544]
mov eax, dword [ecx]
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RaiseFailFastException]
push 0x102176f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
push edi
call dword [eax + 0x38]
test eax, eax
je 0x100336ab
call fcn.100334d5
cmp dword [0x10219438], 0
je 0x100336c1
cmp dword [0x10219a10], 0
je 0x10033c50
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventExW]
lea eax, [ebp - 0x578]
push 0x1f0003
push 0
push 0
push eax
mov dword [ebp - 0x578], 0xc
mov dword [ebp - 0x570], 1
call edi
mov dword [ebp - 0x55c], eax
test eax, eax
je 0x10033c50
push 0x1f0003
push 0
push 0
lea eax, [ebp - 0x578]
push eax
call edi
mov dword [ebp - 0x560], eax
test eax, eax
je 0x10033c22
push 0x1f0003
push 0
push 0
lea eax, [ebp - 0x578]
push eax
call edi
mov dword [ebp - 0x56c], eax
test eax, eax
je 0x10033c22
push 0
push 0
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x548], edi
test edi, edi
je 0x10033c28
push 0
push 0x9c9c
push 0
push 4
lea eax, [ebp - 0x578]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x558], eax
test eax, eax
je 0x10033c28
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x550], edi
test edi, edi
je 0x10033c11
push 0x9c9c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x54c]
add esp, 0xc
mov dword [edi], 0x9c9c
mov dword [edi + 4], 0x20000
mov eax, dword [ecx]
push ecx
call dword [eax]
mov dword [edi + 0x28], eax
test eax, eax
je 0x10033c0a
mov esi, dword [ebp - 0x54c]
push esi
mov eax, dword [esi]
call dword [eax + 4]
mov dword [edi + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x8470]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x55c]
mov ecx, dword [ebp - 0x544]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x560]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x548]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x56c]
mov dword [edi + 0x1c], eax
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x4c], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x48], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x44], eax
xor eax, eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xc
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x21
mov dword [edi + 0x3c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
test eax, eax
jne 0x10033872
or dword [edi + 0x2c], 0x80
mov eax, dword [ebp - 0x544]
cmp dword [eax + 0x20], 0
je 0x10033882
or dword [edi + 0x38], 4
cmp dword [eax + 0xc], 0
lea ecx, [edi + 0x9ac]
je 0x100338a0
or dword [edi + 0x2c], 1
push dword [eax + 0xc]
call fcn.100d5326
lea ecx, [edi + 0x9ac]
mov eax, dword [esi]
push 0x400
push ecx
push esi
call dword [eax + 0x18]
test eax, eax
je 0x100338b4
or dword [edi + 0x2c], 1
mov ecx, dword [ebp - 0x544]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x100338d1
push 0x400
lea edx, [edi + 0x19ac]
call fcn.10008124
mov eax, dword [ebp + 8]
push 0
push 0x10214f50
mov dword [edi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
push eax
push str.skulcid_d
lea eax, [edi + 0x59c]
push 0xffffffffffffffff
push eax
call fcn.10034064
add esp, 0x10
lea edx, [edi + 0x50]
mov ecx, str.Microsoft_Office_16
push 0x104
call fcn.10008124
add edi, 0x7a4
mov esi, str.mso.dll
push 0x1f
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x544]
mov edi, dword [ebp - 0x550]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003393d
push 0x38
lea edx, [edi + 0x21ac]
call fcn.10008124
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10033954
push 0x104
lea edx, [edi + 0x3d1c]
call fcn.10008124
mov ecx, dword [ebp - 0x54c]
lea esi, [edi + 0x258]
push 0x104
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
test eax, eax
jne 0x1003399b
push 0x104
cmp word [0x10219218], ax
je 0x10033992
mov edx, esi
mov ecx, 0x10219218
call fcn.10008124
jmp 0x1003399b
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x10219a10], 0
je 0x100339e7
push 0x1f0003
push 0
push 0
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventExW]
mov ecx, dword [0x10219a10]
mov esi, eax
mov dword [ebp - 0x554], esi
test ecx, ecx
je 0x10033b7f
mov eax, dword [ecx]
push esi
push dword [ebp - 0x564]
push dword [ebp - 0x558]
call dword [eax + 0x48]
jmp 0x10033b7f
lea eax, [ebp - 0x550]
mov ecx, 0x20019
push eax
call fcn.1001456c
push eax
push 0
push str.SoftwareMicrosoftPCHealthErrorReportingDWInstalled
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10033c04
lea eax, [ebp - 0x564]
mov dword [ebp - 0x564], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.DW0200
push dword [ebp - 0x550]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x550]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10033c04
push dword [ebp - 0x558]
lea eax, [ebp - 0x114]
push eax
push str.__S___x__s__Iu
push 0xffffffffffffffff
lea eax, [ebp - 0x524]
push 0x208
push eax
call fcn.10013d23
and dword [ebp - 0x52c], esi
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x528], 7
mov word [ebp - 0x53c], ax
mov byte [ebp - 4], 1
call fcn.100331dd
test al, al
je 0x10033b0f
lea edx, [ebp - 0x558]
lea ecx, [ebp - 0x53c]
call fcn.100330d6
test al, al
je 0x10033bec
cmp dword [ebp - 0x528], 8
lea ecx, [ebp - 0x588]
push ecx
lea ecx, [ebp - 0x5cc]
push ecx
lea eax, [ebp - 0x53c]
cmovae eax, dword [ebp - 0x53c]
xor ecx, ecx
push ecx
push ecx
push 0x2000400
push 1
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10033bec
push dword [ebp - 0x584]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10033bee
lea eax, [ebp - 0x588]
xor ecx, ecx
push eax
lea eax, [ebp - 0x5cc]
push eax
push ecx
push ecx
push 0x4000020
push 1
push ecx
push ecx
lea eax, [ebp - 0x524]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10033bec
push dword [ebp - 0x584]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54c]
push dword [ebp - 0x580]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x588]
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x568], eax
mov byte [ebp - 4], 0
call fcn.1000860f
mov esi, dword [ebp - 0x554]
mov edx, dword [ebp - 0x568]
xor eax, eax
test edx, edx
mov byte [ebp - 0x53e], 1
setne al
add eax, 2
mov dword [ebp - 0x56c], eax
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x530], ecx
mov ecx, dword [ebp - 0x560]
push 0x4e20
mov dword [ebp - 0x52c], ecx
mov dword [ebp - 0x528], edx
lea edx, [ebp - 0x530]
push ecx
mov ecx, eax
call fcn.10050f1c
test eax, eax
jne 0x10033c85
mov ecx, dword [ebp - 0x54c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov al, byte [ebp - 0x53d]
jmp 0x10033d6d
xor al, al
test al, al
jne 0x10033b4c
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], al
call fcn.1000860f
mov esi, dword [ebp - 0x554]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x558]
test eax, eax
je 0x10033c22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x548]
push dword [ebp - 0x55c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x560]
test eax, eax
je 0x10033c45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10033c50
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
je 0x10033c65
call fcn.100333fc
push 0x102176f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x10033c7b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.100045f2
ret 8
cmp eax, 1
je 0x10033d9c
cmp eax, 2
je 0x10033d90
cmp eax, 0x102
je 0x10033cb0
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x6998ce
call dword [eax + 4]
mov byte [ebp - 0x53e], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1021a310]
mov edx, 0x4e20
mov ecx, dword [ebp - 0x548]
sete byte [ebp - 0x564]
push dword [ebp - 0x564]
push 0
call fcn.10050db7
pop ecx
pop ecx
cmp eax, 0x102
je 0x10033d9c
cmp eax, 0x80
je 0x10033d82
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1021a310]
jne 0x10033d18
mov ecx, dword [ebp - 0x55c]
xor edx, edx
inc edx
call fcn.10050be2
jmp 0x10033d28
push 0
push 1
push dword [ebp - 0x55c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov dword [ebp - 0x550], eax
test eax, eax
je 0x10033d3e
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x548]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
movzx eax, byte [ebp - 0x53d]
xor ecx, ecx
mov edx, dword [ebp - 0x550]
test edx, edx
cmove ecx, eax
sete byte [ebp - 0x53e]
mov al, cl
mov byte [ebp - 0x53d], al
test al, al
je 0x10033d9c
mov eax, dword [ebp - 0x56c]
mov edx, dword [ebp - 0x568]
jmp 0x10033b9c
push dword [ebp - 0x548]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10033d9c
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x54c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp dword [0x10219a10], 0
je 0x10033dee
test esi, esi
je 0x10033f4b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1021a310]
jne 0x10033dd3
or edx, 0xffffffff
mov ecx, esi
call fcn.10050be2
jmp 0x10033dde
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x10033f4b
xor ebx, ebx
inc ebx
jmp 0x10033c0a
mov eax, dword [edi + 0x9a84]
test eax, eax
je 0x10033c0a
cmp byte [ebp - 0x53e], 0
mov ecx, dword [ebp - 0x544]
je 0x10033e7b
test dword [ecx + 0x18], eax
je 0x10033e7b
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [edi + 0x9a84]
test ebx, ebx
jne 0x10033e5f
sub eax, 1
je 0x10033e57
sub eax, 1
je 0x10033e53
dec eax
sub eax, 1
je 0x10033e4f
push 0x6998d0
mov eax, dword [0x10210270]
mov ecx, 0x10210270
call dword [eax + 4]
xor ebx, ebx
jmp 0x10033c0a
push 7
jmp 0x10033e59
push 6
jmp 0x10033e59
push 9
pop ebx
jmp 0x10033c0a
mov dword [ebx], eax
mov eax, dword [ebp - 0x558]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x568]
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
jmp 0x10033c50
test dword [ecx + 0x1c], eax
je 0x10033eac
sub eax, 1
je 0x10033ea8
sub eax, 1
je 0x10033ea4
dec eax
sub eax, 1
je 0x10033ea0
sub eax, 0xc
je 0x10033de6
push 0x6998d2
jmp 0x10033e3b
push 3
jmp 0x10033e59
push 2
jmp 0x10033e59
push 5
jmp 0x10033e59
mov ecx, dword [ebp - 0x54c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
je 0x10033c0a
mov eax, dword [edi + 0x9a84]
test eax, eax
je 0x10033edd
cmp eax, 2
jbe 0x10033efe
cmp eax, 4
je 0x10033ef4
cmp eax, 0x10
je 0x10033de6
push 0x6998d5
mov eax, dword [0x10210270]
mov ecx, 0x10210270
call dword [eax + 4]
jmp 0x10033c0a
push 3
pop ebx
push 0x6998d3
jmp 0x10033ee2
mov eax, dword [ebp - 0x544]
mov eax, dword [eax]
jmp 0x10033f65
push 0x1021a818
call fcn.10163b74
cmp dword [0x1021a818], 0xffffffff
pop ecx
jne 0x1003366a
push str.Microsoft.Office.Telemetry.ResiliencyRaiseFailFast
mov ecx, 0x1021a81c
call fcn.10032ef8
push 0x10181552
call fcn.10003c8c
mov dword [esp], 0x1021a818
call fcn.10163b30
pop ecx
jmp 0x1003366a
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x6998cf
call dword [eax + 4]
mov ecx, dword [ebp - 0x544]
mov eax, dword [ecx]
mov ecx, dword [eax]
mov ecx, dword [ecx]
call fcn.100333ed
int3