Function at 0x1d86ec0
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2b0
mov esi, dword [ebp + 0xc]
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [esp + 0x2a8], eax
lea edi, [esp + 0x118]
push 0x190
push 0
push edi
call fcn.01e63410
add esp, 0xc
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1d86f01
mov eax, dword [esi]
push 0xc8
push eax
push edi
call fcn.01d96450
add esp, 0xc
push edi
call sym.msedge_elf.dll_OQS_destroy
add esp, 4
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x11], 0
je 0x1d86f41
movzx ebx, byte [eax]
mov bh, byte [eax + 0x10]
movzx eax, byte [esi + 0xb]
test al, al
js 0x1d87078
test esi, esi
je 0x1d87089
jmp 0x1d87091
movzx eax, byte [0x1f09738]
xor ebx, ebx
mov byte [esp + 0xb], al
test al, 0x19
jne 0x1d877cc
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0xfc], 0xffffffff
mov dword [esp + 0xf8], 0xffffffff
mov dword [esp + 0xf4], 0xffffffff
lea edi, [esp + 0xa0]
push 0x120
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push edi
call fcn.01da46e0
add esp, 0x10
lea ecx, [esp + 0xf4]
push 0x1f104d0
push edi
call fcn.01d93560
pxor xmm0, xmm0
movdqa xmmword [esp + 0x100], xmm0
mov dword [esp + 0xf0], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xdc], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
lea ecx, [esp + 0xa0]
call fcn.01de5190
mov edi, dword [ebp + 0x10]
cmp byte [edi + 0x42], 0
je 0x1d87033
call fcn.01d83030
xor ebx, ebx
cmp eax, 0x10
setge bl
movzx eax, byte [edi + 0x43]
add ebx, eax
mov edx, dword [edi + 0x18]
xor ecx, ecx
cmp edx, dword [edi + 0x1c]
setne cl
add ecx, ebx
movzx edx, byte [edi + 0x44]
add edx, ecx
je 0x1d870d9
lea ecx, [esp + 0xa0]
push edx
call fcn.01de51f0
test al, al
mov ebx, dword [ebp + 8]
je 0x1d87290
movzx eax, byte [edi + 0x43]
mov dword [esp + 4], 0x80000
jmp 0x1d870e4
mov eax, dword [esi + 4]
test eax, eax
js 0x1d8779d
mov esi, dword [esi]
test esi, esi
jne 0x1d87091
test eax, eax
jne 0x1d877ae
lea edi, [esp + 0xa0]
push eax
push esi
push edi
call fcn.01daad20
add esp, 0xc
movzx eax, bl
movzx esi, bh
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edx, edi
push eax
push esi
call fcn.01d86bb0
add esp, 8
mov ecx, edi
call fcn.01daa640
mov ecx, dword [esp + 0x2a8]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x9c], 2
test al, al
je 0x1d87116
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xa0]
push 4
push eax
push 0x20012
call fcn.01de52a0
test al, al
je 0x1d87290
cmp byte [edi + 0x42], 0
je 0x1d87151
call fcn.01d83030
cmp eax, 0x10
jl 0x1d87151
or byte [esp + 0x10b], 0x20
lea eax, [esp + 0x100]
lea ecx, [esp + 0xa0]
push 0x10
push eax
push 0x20007
call fcn.01de52a0
test al, al
je 0x1d87290
cmp byte [edi + 0x44], 0
je 0x1d87185
mov dword [esp + 0xf0], 1
lea eax, [esp + 0xf0]
lea ecx, [esp + 0xa0]
push 4
push eax
push 0x2001c
call fcn.01de52a0
test al, al
je 0x1d87290
cmp dword [edi + 0x14], 1
mov ebx, dword [edi + 0x18]
sete cl
mov edi, dword [edi + 0x1c]
cmp ebx, edi
je 0x1d87231
cmp edi, ebx
jns 0x1d871f0
jmp 0x1d8728d
push 0x17b
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x3c]
push eax
call fcn.01da46e0
add esp, 0x10
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.01dad2f0
add esp, 8
lea ecx, [esp + 0x98]
call fcn.01dad3d0
jmp 0x1d87200
push 1
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1d871a3
add ebx, 4
cmp ebx, edi
jne 0x1d871f0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
sub edx, eax
je 0x1d87825
lea ecx, [esp + 0xa0]
push edx
push eax
push 0x20002
call fcn.01de52a0
mov cl, 1
test al, al
je 0x1d8728d
mov edi, dword [ebp + 0x10]
cmp byte [edi + 0x12], 0
je 0x1d87242
or byte [esp + 0xd0], 0x80
mov byte [esp + 3], cl
cmp byte [edi + 0x2c], 0
je 0x1d87257
mov dword [esp + 0xac], 0x1eb1752
mov eax, dword [esp + 0xd0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xd0], ecx
mov edx, dword [edi + 0x24]
mov cx, 0xa
cmp edx, 5
ja case.0x1d8727a.1
jmp dword [edx*4 + 0x1ebc388]
movzx ecx, byte [edi + 0x10]
xor ecx, 1
jmp case.0x1d8727a.1
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.01d86660
lea ecx, [esp + 0xa0]
call fcn.01de51c0
lea ecx, [esp + 0xf4]
call fcn.01d93680
test byte [esp + 0xb], 0x19
mov eax, dword [esp + 0x1c]
je 0x1d870c1
cmp byte [eax], 0
je 0x1d870c1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa4], ecx
sub esp, 0x10
movq xmm0, qword [esp + 0xb0]
movq qword [esp + 8], xmm0
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.01d7f2e0
add esp, 0x10
jmp 0x1d870c1
mov cx, 2
jmp case.0x1d8727a.1
mov cx, 1
jmp case.0x1d8727a.1
mov cx, 7
jmp case.0x1d8727a.1
xor ecx, ecx
mov word [esp + 0xd4], cx
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x38]
mov edi, dword [edi + 0x3c]
test ecx, ecx
jne 0x1d8733a
test edx, edx
jne 0x1d8733a
test edi, edi
je 0x1d87386
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x18]
cmp ebx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
jne 0x1d87365
test ecx, ecx
je 0x1d87843
test edx, edx
je 0x1d87846
test edi, edi
je 0x1d87849
or eax, 0x101
mov dword [esp + 0xd0], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], edi
mov eax, dword [esp + 4]
lea ebx, [eax + 0x1000000]
mov edi, dword [ebp + 0x10]
cmp byte [edi + 0x40], 0
cmove ebx, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movzx eax, byte [edi + 0xf]
test al, al
js 0x1d873bf
lea ecx, [edi + 4]
xor edx, edx
test al, al
cmovne edx, ecx
mov dword [esp + 4], edx
jmp 0x1d873d1
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
test eax, eax
je 0x1d873d1
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
cmp byte [esi + 0xb], 0
js 0x1d87418
mov eax, dword [esi + 8]
mov dword [esp + 0x78], eax
movq xmm0, qword [esi]
movq qword [esp + 0x70], xmm0
cmp byte [edi + 0x45], 0
je 0x1d8742c
call fcn.01de5370
test eax, eax
je 0x1d87436
or ebx, 4
mov dword [esp + 0xc], eax
jmp 0x1d87444
lea ecx, [esp + 0x70]
push dword [esi + 4]
push dword [esi]
call fcn.01d741c0
cmp byte [edi + 0x45], 0
jne 0x1d87406
mov dword [esp + 0xc], 0
jmp 0x1d87444
mov dword [esp + 0xc], 0
or ebx, 0x8000
lea esi, [esp + 0xa4]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x1d87493
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
push 0
push eax
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1d875af
or ebx, 0x400
cmp byte [edi + 0x46], 0
mov eax, dword [esp + 0x30]
je 0x1d874f1
cmp byte [esp + 0x7b], 0
jns 0x1d875df
mov ecx, dword [esp + 0x70]
jmp 0x1d875e3
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
cmp byte [edi + 0x54], 0
je 0x1d87567
lea eax, [edi + 0x48]
lea ecx, [esp + 0x60]
push eax
push 0x1ebc364
push ecx
call fcn.01de53d0
add esp, 0xc
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], eax
movq xmm0, qword [esp + 0x60]
movq qword [esp + 0x30], xmm0
cmp byte [esp + 0x3b], 0
movzx ecx, byte [esp + 3]
jns 0x1d8750a
mov eax, dword [esp + 0x30]
jmp 0x1d8750e
movzx ecx, byte [esp + 3]
cmp byte [esp + 0x7b], 0
jns 0x1d87602
mov edx, dword [esp + 0x70]
jmp 0x1d87606
lea eax, [esp + 0x30]
or ebx, 0x400
movzx ecx, cl
cmp byte [esp + 0x7b], 0
jns 0x1d87524
mov edx, dword [esp + 0x70]
jmp 0x1d87528
lea edx, [esp + 0x70]
lea edi, [esp + 0x80]
push edi
push esi
push dword [esp + 0xc]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1d875b7
cmp byte [esp + 0x3b], 0
mov ebx, dword [ebp + 8]
jns 0x1d8755f
push dword [esp + 0x30]
call fcn.01e5f36c
add esp, 4
mov edi, dword [ebp + 0x10]
jmp 0x1d8763f
cmp dword [edi + 0x50], 0
je 0x1d87791
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x1d875af
lea edx, [edi + 0x48]
lea ecx, [esp + 0x60]
push edx
push eax
push ecx
mov edi, eax
call fcn.01de53d0
add esp, 0xc
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], eax
movq xmm0, qword [esp + 0x60]
movq qword [esp + 0x30], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1d874df
mov ebx, dword [ebp + 8]
jmp 0x1d87721
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.01d86660
cmp byte [esp + 0x3b], 0
jns 0x1d87775
push dword [esp + 0x30]
call fcn.01e5f36c
add esp, 4
jmp 0x1d87775
lea ecx, [esp + 0x70]
lea edx, [esp + 0x80]
push edx
push esi
push dword [esp + 0xc]
push eax
push ebx
push ecx
push 0
push 0
push dword [edi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x1d87629
lea edx, [esp + 0x70]
lea edi, [esp + 0x80]
push edi
push esi
push dword [esp + 0xc]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
mov edi, dword [ebp + 0x10]
push dword [edi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
push dword [esp + 0x30]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
mov ebx, dword [ebp + 8]
je 0x1d87721
mov esi, dword [esp + 0xc]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
lea eax, [esp + 0x80]
lea ecx, [esp + 0x60]
push eax
call fcn.01de57b0
test esi, esi
je 0x1d87683
cmp byte [edi + 0x45], 0
je 0x1d87683
mov ecx, esi
mov esi, dword [esp + 0x68]
call dword [section..00cfg]
push 4
push esi
call ecx
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 0x30]
test eax, eax
je 0x1d8769d
push dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x1d8772c
cmp byte [edi + 0x41], 0
je 0x1d876b6
push dword [esp + 0x60]
call fcn.01d86b00
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [edi], 0
je 0x1d8770e
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea esi, [esp + 0x20]
push 0x21e
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.01da46e0
add esp, 0x10
lea edi, [esp + 0x30]
mov ecx, edi
push 0
push esi
call fcn.01d93760
push 0xffffffffffffffff
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.01d937e0
lea ecx, [esp + 0x60]
call fcn.01de59a0
mov ecx, ebx
push eax
call fcn.01d86660
jmp 0x1d8776c
mov ecx, ebx
push 0
call fcn.01d86660
jmp 0x1d87775
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.01de59a0
lea esi, [esp + 0x30]
mov ecx, esi
push eax
call fcn.01d86660
mov ecx, esi
push 1
push 1
call fcn.01d86a20
mov ecx, ebx
push 0
call fcn.01d86660
mov ecx, esi
call fcn.01ce04a0
lea ecx, [esp + 0x60]
call fcn.01de5900
cmp byte [esp + 0x7b], 0
jns 0x1d87299
push dword [esp + 0x70]
call fcn.01e5f36c
add esp, 4
jmp 0x1d87299
xor eax, eax
movzx ecx, byte [esp + 3]
jmp 0x1d87514
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
jmp 0x1d877bd
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
sub esp, 0x24
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x1f09738
mov dword [esp], 0x58
mov dword [esp + 0x40], 0x1f09738
mov dword [esp + 0x3c], str.LaunchProcess
call fcn.01d0e570
add esp, 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jmp 0x1d86f76
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x60b
push str....._third_partylibc_srcinclude_vector
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
int3
int3
int3