Function at 0x1001d029
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x10071120]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x124
mov eax, 0x1005c4ae
call fcn.1002f7a8
mov eax, dword [ebp + 0x70]
xor edi, edi
inc edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x78]
push edi
xor ebx, ebx
push 2
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], ebx
mov byte [ebp + 0xf], bl
call fcn.10010789
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x74]
mov ecx, esi
call fcn.10007e5d
test eax, eax
je 0x1001d1fd
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1001d1fd
push esi
push dword [esi + 4]
lea ecx, [ebp]
call fcn.1000618d
mov eax, dword [ebp]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x10], eax
jmp 0x1001d13e
add byte [eax], al
push esi
push dword [0x10070638]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [str.IDRService.exe]
mov ecx, ebp
cmp word [esi], bp
je 0x1001d161
inc ecx
cmp word [esi + ecx*2], bp
jne 0x1001d15a
push 0x5c
pop edx
jmp 0x1001d16d
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
cmp word [esi + ecx*2 - 2], dx
jne 0x1001d166
movzx eax, word [ebx]
mov edx, ebp
mov edi, eax
test ax, ax
je 0x1001d193
lea eax, [esi + ecx*2]
inc edx
mov word [eax], di
lea eax, [eax + 2]
movzx edi, word [ebx + edx*2]
test di, di
jne 0x1001d183
push 0x44
pop edx
lea ecx, [esp + 0x20]
call fcn.1001d0bf
push 0x10
pop edx
lea ecx, [esp + 0x10]
call fcn.1001d0bf
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.1002fc50
push 0x44
pop esi
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.1002fc50
push dword [ebp - 0x1c]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x130], esi
call fcn.1002028e
mov byte [ebp - 4], 7
push dword [ebp - 0x20]
lea eax, [ebp + 0x48]
push eax
call fcn.1002028e
add esp, 0x28
mov byte [ebp - 4], 8
cmp dword [ebp + 0x5c], ebx
je 0x1001d258
cmp dword [ebp + 0x60], 0x10
jb 0x1001d253
mov esi, dword [ebp + 0x4c]
jmp 0x1001d25a
lea esi, [ebp + 0x4c]
jmp 0x1001d25a
xor esi, esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xec]
call fcn.1000eed3
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], ebx
jne 0x1001d276
xor eax, eax
jmp 0x1001d29a
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xec]
call fcn.1000eed3
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 8], edi
jb 0x1001d297
mov eax, dword [eax + 4]
jmp 0x1001d29a
add eax, 4
cmp dword [ebp + 0x28], 0x10
mov ecx, dword [ebp + 0x14]
jae 0x1001d2a6
lea ecx, [ebp + 0x14]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x130]
push edx
push esi
push eax
push 0x8000400
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [ebp - 4], 9
test byte [ebp + 8], 1
je 0x1001d2e0
and dword [ebp + 8], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.100012ad
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.100012ad
cmp esi, ebx
je 0x1001d306
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp + 0xf], 1
call esi
push dword [ebp - 0x4c]
call esi
mov byte [ebp - 4], 7
push ebx
push edi
lea ecx, [ebp + 0x48]
call fcn.100012ad
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x10]
call fcn.100012ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.1000dd63
lea ecx, [ebp - 0xa0]
call fcn.10001b97
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.1002f799
add ebp, 0x68
leave
ret