Function at 0x1007cf10
Capabilities:
Patch process command line
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10181c40
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x10618
call fcn.10140530
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x10368], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10354], eax
mov edi, edx
mov dword [ebp - 0x10370], edi
xor ebx, ebx
mov dword [ebp - 0x10330], ebx
mov dword [ebp - 0x10344], ebx
mov dword [ebp - 0x1033c], ebx
mov dword [ebp - 0x10328], ebx
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
mov dword [ebp - 0x10334], ebx
push 0x10020
push ebx
lea ecx, [ebp - 0x10320]
push ecx
call fcn.1012e060
push 0x1d8
push ebx
lea edx, [ebp - 0x300]
push edx
call fcn.1012e060
push 0x290
push ebx
lea eax, [ebp - 0x10630]
push eax
call fcn.1012e060
add esp, 0x24
cmp edi, ebx
je 0x1007cfd4
mov dword [edi], ebx
cmp esi, ebx
je 0x1007cfda
mov byte [esi], bl
mov eax, dword [ebp - 0x10354]
cmp eax, ebx
je 0x1007cfe6
mov byte [eax], bl
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x1007cff3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x10320], esi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1007d008
mov dword [edi], 0x65
mov ecx, str.ntdll.dll
call fcn.1005a380
mov dword [ebp - 0x1032c], eax
cmp eax, ebx
jne 0x1007d040
cmp edi, ebx
je 0x1007d026
mov dword [edi], 1
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x10189710
call fcn.1013548c
add esp, 0xc
xor eax, eax
jmp 0x1007da77
cmp edi, ebx
je 0x1007d04a
mov dword [edi], 0x66
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1034c], eax
cmp eax, ebx
jne 0x1007d099
lea edx, [ebp - 0x1032c]
push edx
call fcn.10082ef0
add esp, 4
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1007d07f
mov dword [edi], 2
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10189710
call fcn.1013548c
add esp, 0xc
xor eax, eax
jmp 0x1007da77
cmp edi, ebx
je 0x1007d0a3
mov dword [edi], 0x67
push esi
push 0x410
call fcn.1007c830
add esp, 8
mov dword [ebp - 0x10324], eax
cmp eax, 0xffffffff
jne 0x1007d0f5
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.10082ef0
add esp, 4
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1007d0db
mov dword [edi], 3
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x10189710
call fcn.1013548c
add esp, 0xc
xor eax, eax
jmp 0x1007da77
cmp edi, ebx
je 0x1007d0ff
mov dword [edi], 0x68
push 0x18
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10334], esi
cmp esi, ebx
jne 0x1007d14f
lea eax, [ebp - 0x10324]
push eax
call fcn.10082e10
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.10082ef0
add esp, 4
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1007d0db
mov dword [edi], 5
jmp 0x1007d0db
cmp edi, ebx
je 0x1007d159
mov dword [edi], 0x6a
lea eax, [ebp - 0x10344]
push eax
push 0x18
push esi
push ebx
mov ecx, dword [ebp - 0x10324]
push ecx
call dword [ebp - 0x1034c]
mov dword [ebp - 0x1035c], eax
cmp edi, ebx
je 0x1007d181
mov dword [edi], 0x6b
cmp eax, ebx
jl 0x1007d22a
cmp dword [ebp - 0x10344], 0x18
jbe 0x1007d22a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10334], ebx
mov edx, dword [ebp - 0x10344]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10334], esi
cmp esi, ebx
jne 0x1007d207
lea eax, [ebp - 0x10324]
push eax
call fcn.10082e10
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.10082ef0
add esp, 4
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1007d0db
mov dword [edi], 6
jmp 0x1007d0db
lea eax, [ebp - 0x10344]
push eax
mov ecx, dword [ebp - 0x10344]
push ecx
push esi
push ebx
mov edx, dword [ebp - 0x10324]
push edx
call dword [ebp - 0x1034c]
mov dword [ebp - 0x1035c], eax
cmp edi, ebx
je 0x1007d234
mov dword [edi], 0x6c
cmp eax, ebx
jne 0x1007d241
cmp dword [esi + 4], ebx
jne 0x1007d5f8
cmp dword [ebp - 0x10354], ebx
je 0x1007d5f8
mov esi, 1
mov dword [ebp - 0x1035c], esi
call fcn.1006b040
test eax, eax
je 0x1007d5ee
mov dword [ebp - 0x10364], ebx
cmp edi, ebx
je 0x1007d275
mov dword [edi], 0x6d
cmp dword [0x101cb840], ebx
jne 0x1007d290
mov dword [0x101cb840], esi
push 0x101cb844
call fcn.1006b090
add esp, 4
cmp edi, ebx
je 0x1007d29a
mov dword [edi], 0x6e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1007d2c7
lea ecx, [ebp - 0x10364]
push ecx
push esi
call eax
xor edx, edx
mov ax, word [0x101cb844]
cmp ax, 9
setne dl
dec edx
and edx, 0x10
add edx, 0x10
mov dword [ebp - 0x1034c], edx
xor ecx, ecx
cmp ax, 9
setne cl
dec ecx
and ecx, 0x30
add ecx, 0x40
mov esi, ecx
mov dword [ebp - 0x10360], esi
cmp edi, ebx
je 0x1007d305
mov dword [edi], 0x6f
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
call fcn.10128320
add esp, 4
mov dword [ebp - 0x10340], eax
cmp edi, ebx
je 0x1007d327
mov dword [edi], 0x70
add esi, 0x10
mov dword [ebp - 0x10358], esi
push esi
call fcn.10128320
add esp, 4
mov dword [ebp - 0x10338], eax
cmp edi, ebx
je 0x1007d349
mov dword [edi], 0x71
cmp dword [ebp - 0x10340], ebx
je 0x1007d5c1
cmp dword [ebp - 0x10338], 0
je 0x1007d5c1
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
push 0
mov edx, dword [ebp - 0x10340]
push edx
call fcn.1012e060
mov eax, dword [ebp - 0x10358]
push eax
push 0
mov ecx, dword [ebp - 0x10338]
push ecx
call fcn.1012e060
add esp, 0x18
test edi, edi
je 0x1007d39c
mov dword [edi], 0x72
cmp dword [ebp - 0x10364], 0
je 0x1007d5c1
push 0x30
push 0
lea edx, [ebp - 0x103a0]
push edx
call fcn.1012e060
add esp, 0xc
test edi, edi
je 0x1007d3c6
mov dword [edi], 0x73
push str.NtWow64QueryInformationProcess64
push str.ntdll.dll
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007d5b7
push 0
push 0x30
lea ecx, [ebp - 0x103a0]
push ecx
push 0
mov esi, dword [ebp - 0x10324]
push esi
call eax
test eax, eax
jne 0x1007d5b7
test edi, edi
je 0x1007d40f
mov dword [edi], 0x74
push str.NtWow64ReadVirtualMemory64
push str.ntdll.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1007d450
push 0
push 0
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
mov edx, dword [ebp - 0x10340]
push edx
mov eax, dword [ebp - 0x10394]
push eax
mov ecx, dword [ebp - 0x10398]
push ecx
push esi
call ebx
jmp 0x1007d455
mov eax, 0x57
test edi, edi
je 0x1007d45f
mov dword [edi], 0x75
test eax, eax
jne 0x1007d5ab
mov edx, dword [ebp - 0x1034c]
mov eax, dword [ebp - 0x10340]
lea esi, [eax + edx]
lea ecx, [ebp - 0x10350]
test edi, edi
je 0x1007d486
mov dword [edi], 0x76
xor eax, eax
mov dword [ebp - 0x1036c], eax
cmp eax, 8
jge 0x1007d49c
mov dl, byte [eax + esi]
mov byte [eax + ecx], dl
inc eax
jmp 0x1007d488
test edi, edi
je 0x1007d4a6
mov dword [edi], 0x77
push 0
push 0
mov eax, dword [ebp - 0x10358]
push eax
mov ecx, dword [ebp - 0x10338]
push ecx
mov edx, dword [ebp - 0x1034c]
push edx
mov eax, dword [ebp - 0x10350]
push eax
mov ecx, dword [ebp - 0x10324]
push ecx
call ebx
test eax, eax
jne 0x1007d59f
test edi, edi
je 0x1007d4e1
mov dword [edi], 0x78
mov edx, dword [ebp - 0x10338]
mov eax, dword [ebp - 0x10360]
lea eax, [edx + eax + 2]
mov dword [ebp - 0x10358], eax
movzx ecx, word [eax]
push ecx
call fcn.10128320
add esp, 4
mov esi, eax
test esi, esi
je 0x1007d593
test edi, edi
je 0x1007d517
mov dword [edi], 0x79
push 0
mov edx, dword [ebp - 0x10358]
movzx eax, word [edx]
cdq
push edx
push eax
push esi
mov eax, dword [ebp - 0x10338]
mov ecx, dword [ebp - 0x10360]
mov edx, dword [eax + ecx + 0xc]
push edx
mov eax, dword [eax + ecx + 8]
push eax
mov ecx, dword [ebp - 0x10324]
push ecx
call ebx
test eax, eax
jne 0x1007d57e
push eax
push eax
push 0x8000
mov edx, dword [ebp - 0x10354]
push edx
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, 1
mov dword [ebp - 0x1035c], eax
mov dword [ebp - 0x10330], eax
push esi
call fcn.10128243
add esp, 4
jmp 0x1007d5c1
test edi, edi
je 0x1007d588
mov dword [edi], 0x1a
push esi
call fcn.10128243
add esp, 4
jmp 0x1007d5c1
test edi, edi
je 0x1007d5c1
mov dword [edi], 0x19
jmp 0x1007d5c1
test edi, edi
je 0x1007d5c1
mov dword [edi], 0x18
jmp 0x1007d5c1
test edi, edi
je 0x1007d5c1
mov dword [edi], 0x17
jmp 0x1007d5c1
test edi, edi
je 0x1007d5c1
mov dword [edi], 0x16
mov eax, dword [ebp - 0x10340]
test eax, eax
je 0x1007d5d4
push eax
call fcn.10128243
add esp, 4
cmp dword [ebp - 0x10338], 0
je 0x1007d5f8
mov eax, dword [ebp - 0x10338]
push eax
call fcn.10128243
add esp, 4
jmp 0x1007d5f8
cmp edi, ebx
je 0x1007d5f8
mov dword [edi], 0x14
cmp dword [ebp - 0x1035c], 0
jne 0x1007da3e
test edi, edi
je 0x1007d60f
mov dword [edi], 0xc8
mov eax, dword [ebp - 0x10334]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1031c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1030c], edx
mov ecx, dword [eax]
mov dword [ebp - 0x10308], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10314], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10310], ecx
test edi, edi
je 0x1007d64b
mov dword [edi], 0xf0
cmp dword [eax + 4], 0
je 0x1007da0c
test edi, edi
je 0x1007d65f
mov dword [edi], 0xca
lea edx, [ebp - 0x1033c]
push edx
push 0x1d8
lea ecx, [ebp - 0x300]
push ecx
mov edx, dword [eax + 4]
push edx
mov ebx, dword [ebp - 0x10324]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call esi
test eax, eax
je 0x1007d9bb
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x10318], eax
mov cl, byte [ebp - 0x2fe]
mov byte [ebp - 0x10304], cl
test edi, edi
je 0x1007d6af
mov dword [edi], 0xcb
mov dword [ebp - 0x1033c], 0
lea edx, [ebp - 0x1033c]
push edx
push 0x290
lea eax, [ebp - 0x10630]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
push ebx
call esi
test eax, eax
je 0x1007d9af
mov dword [ebp - 0x10330], 1
test edi, edi
je 0x1007d6f2
mov dword [edi], 0xcc
mov ax, word [ebp - 0x105f0]
test ax, ax
jbe 0x1007d84c
test edi, edi
je 0x1007d70c
mov dword [edi], 0xcd
movzx edx, ax
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10328], esi
test esi, esi
je 0x1007d907
test edi, edi
je 0x1007d739
mov dword [edi], 0xce
lea eax, [ebp - 0x1033c]
push eax
movzx ecx, word [ebp - 0x105f0]
push ecx
push esi
mov edx, dword [ebp - 0x105ec]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1007d7e6
mov ecx, 0x8000
mov ax, word [ebp - 0x105f0]
cmp ax, cx
jb 0x1007d775
lea eax, [ecx - 1]
jmp 0x1007d778
movzx eax, ax
push 0
push 0
push 0x8000
lea edx, [ebp - 0x8303]
push edx
shr eax, 1
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test edi, edi
je 0x1007d7a0
mov dword [edi], 0xcf
mov edx, dword [ebp - 0x10354]
test edx, edx
je 0x1007d7fa
test edi, edi
je 0x1007d7b4
mov dword [edi], 0x816
cmp byte [ebp - 0x8303], 0
je 0x1007d7fa
test edi, edi
je 0x1007d7c7
mov dword [edi], 0x817
lea ecx, [ebp - 0x8303]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007d7d0
test edi, edi
je 0x1007d7fa
mov dword [edi], 0x819
jmp 0x1007d7fa
test edi, edi
je 0x1007d7f0
mov dword [edi], 7
mov dword [ebp - 0x10330], 0
mov dword [ebp - 4], 1
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10328], esi
mov dword [ebp - 4], esi
jmp 0x1007d852
mov esi, dword [ebp - 0x10328]
test edi, edi
je 0x1007d85c
mov dword [edi], 0x818
mov ax, word [ebp - 0x105f8]
test ax, ax
jbe 0x1007da1c
mov ebx, dword [ebp - 0x10368]
test ebx, ebx
je 0x1007da1c
test edi, edi
je 0x1007d884
mov dword [edi], 0xd0
mov dword [ebp - 0x1033c], 0
movzx eax, ax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10328], esi
test esi, esi
je 0x1007d999
test edi, edi
je 0x1007d8bb
mov dword [edi], 0xd1
lea ecx, [ebp - 0x1033c]
push ecx
movzx edx, word [ebp - 0x105f8]
push edx
push esi
mov eax, dword [ebp - 0x105f4]
push eax
mov ecx, dword [ebp - 0x10324]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1007d968
test edi, edi
je 0x1007d8f1
mov dword [edi], 0xd2
mov edx, 0x8000
mov ax, word [ebp - 0x105f8]
cmp ax, dx
jb 0x1007d920
lea eax, [edx - 1]
jmp 0x1007d923
test edi, edi
je 0x1007d911
mov dword [edi], 8
mov dword [ebp - 0x10330], 0
jmp 0x1007d852
movzx eax, ax
push 0
push 0
push 0x8000
lea ecx, [ebp - 0x10303]
push ecx
shr eax, 1
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [ebp - 0x10303], 0
je 0x1007d97c
lea ecx, [ebp - 0x10303]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007d952
mov dword [ebp - 0x10330], 1
jmp 0x1007d97c
test edi, edi
je 0x1007d972
mov dword [edi], 9
mov dword [ebp - 0x10330], 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov dword [ebp - 0x10328], esi
jmp 0x1007da1c
test edi, edi
je 0x1007d9a3
mov dword [edi], 0xa
mov dword [ebp - 0x10330], 0
jmp 0x1007da1c
test edi, edi
je 0x1007da16
mov dword [edi], 0xb
jmp 0x1007da16
call fcn.1007db10
test eax, eax
je 0x1007da00
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea edx, [ebp - 0x127]
push edx
call fcn.1012e060
push 0x104
lea esi, [ebp - 0x128]
call fcn.10065360
mov eax, esi
push eax
push str._MONITOR__ReadProcessMemory_Failed__Reason:__s
push 0
call fcn.1006ed90
add esp, 0x1c
test edi, edi
je 0x1007da16
mov dword [edi], 0xc
jmp 0x1007da16
test edi, edi
je 0x1007da16
mov dword [edi], 0xd
mov esi, dword [ebp - 0x10328]
cmp dword [ebp - 0x10320], 4
jne 0x1007da44
push 0x8000
lea ecx, [ebp - 0x10303]
push ecx
push str._SystemRoot_System32_ntoskrnl.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1007da44
mov esi, dword [ebp - 0x10328]
xor edi, edi
mov eax, dword [ebp - 0x10334]
cmp eax, edi
je 0x1007da65
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10334], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.1007da9b
mov eax, dword [ebp - 0x10330]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10127db1
mov esp, ebp
pop ebp
ret