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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016c470
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x10618
call fcn.10126240
mov eax, dword [0x1017455c]
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.10116880
push 0x1d8
push ebx
lea edx, [ebp - 0x300]
push edx
call fcn.10116880
push 0x290
push ebx
lea eax, [ebp - 0x10630]
push eax
call fcn.10116880
add esp, 0x24
cmp edi, ebx
je 0x1005fdf4
mov dword [edi], ebx
cmp esi, ebx
je 0x1005fdfa
mov byte [esi], bl
mov eax, dword [ebp - 0x10354]
cmp eax, ebx
je 0x1005fe06
mov byte [eax], bl
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x1005fe13
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x10320], esi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1005fe28
mov dword [edi], 0x65
mov ecx, str.ntdll.dll
call fcn.10032000
mov dword [ebp - 0x1032c], eax
cmp eax, ebx
jne 0x1005fe60
cmp edi, ebx
je 0x1005fe46
mov dword [edi], 1
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x1017455c
call fcn.1011b2a8
add esp, 0xc
xor eax, eax
jmp 0x10060897
cmp edi, ebx
je 0x1005fe6a
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 0x1005feb9
lea edx, [ebp - 0x1032c]
push edx
call fcn.100674d0
add esp, 4
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1005fe9f
mov dword [edi], 2
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1017455c
call fcn.1011b2a8
add esp, 0xc
xor eax, eax
jmp 0x10060897
cmp edi, ebx
je 0x1005fec3
mov dword [edi], 0x67
push esi
push 0x410
call fcn.1005f650
add esp, 8
mov dword [ebp - 0x10324], eax
cmp eax, 0xffffffff
jne 0x1005ff15
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.100674d0
add esp, 4
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1005fefb
mov dword [edi], 3
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x1017455c
call fcn.1011b2a8
add esp, 0xc
xor eax, eax
jmp 0x10060897
cmp edi, ebx
je 0x1005ff1f
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 0x1005ff6f
lea eax, [ebp - 0x10324]
push eax
call fcn.100673f0
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.100674d0
add esp, 4
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1005fefb
mov dword [edi], 5
jmp 0x1005fefb
cmp edi, ebx
je 0x1005ff79
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 0x1005ffa1
mov dword [edi], 0x6b
cmp eax, ebx
jl 0x1006004a
cmp dword [ebp - 0x10344], 0x18
jbe 0x1006004a
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 0x10060027
lea eax, [ebp - 0x10324]
push eax
call fcn.100673f0
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.100674d0
add esp, 4
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x1005fefb
mov dword [edi], 6
jmp 0x1005fefb
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 0x10060054
mov dword [edi], 0x6c
cmp eax, ebx
jne 0x10060061
cmp dword [esi + 4], ebx
jne 0x10060418
cmp dword [ebp - 0x10354], ebx
je 0x10060418
mov esi, 1
mov dword [ebp - 0x1035c], esi
call fcn.1004f190
test eax, eax
je 0x1006040e
mov dword [ebp - 0x10364], ebx
cmp edi, ebx
je 0x10060095
mov dword [edi], 0x6d
cmp dword [0x101a2130], ebx
jne 0x100600b0
mov dword [0x101a2130], esi
push 0x101a2134
call fcn.1004f1e0
add esp, 4
cmp edi, ebx
je 0x100600ba
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 0x100600e7
lea ecx, [ebp - 0x10364]
push ecx
push esi
call eax
xor edx, edx
mov ax, word [0x101a2134]
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 0x10060125
mov dword [edi], 0x6f
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
call fcn.1010dced
add esp, 4
mov dword [ebp - 0x10340], eax
cmp edi, ebx
je 0x10060147
mov dword [edi], 0x70
add esi, 0x10
mov dword [ebp - 0x10358], esi
push esi
call fcn.1010dced
add esp, 4
mov dword [ebp - 0x10338], eax
cmp edi, ebx
je 0x10060169
mov dword [edi], 0x71
cmp dword [ebp - 0x10340], ebx
je 0x100603e1
cmp dword [ebp - 0x10338], 0
je 0x100603e1
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
push 0
mov edx, dword [ebp - 0x10340]
push edx
call fcn.10116880
mov eax, dword [ebp - 0x10358]
push eax
push 0
mov ecx, dword [ebp - 0x10338]
push ecx
call fcn.10116880
add esp, 0x18
test edi, edi
je 0x100601bc
mov dword [edi], 0x72
cmp dword [ebp - 0x10364], 0
je 0x100603e1
push 0x30
push 0
lea edx, [ebp - 0x103a0]
push edx
call fcn.10116880
add esp, 0xc
test edi, edi
je 0x100601e6
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 0x100603d7
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 0x100603d7
test edi, edi
je 0x1006022f
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 0x10060270
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 0x10060275
mov eax, 0x57
test edi, edi
je 0x1006027f
mov dword [edi], 0x75
test eax, eax
jne 0x100603cb
mov edx, dword [ebp - 0x1034c]
mov eax, dword [ebp - 0x10340]
lea esi, [eax + edx]
lea ecx, [ebp - 0x10350]
test edi, edi
je 0x100602a6
mov dword [edi], 0x76
xor eax, eax
mov dword [ebp - 0x1036c], eax
cmp eax, 8
jge 0x100602bc
mov dl, byte [eax + esi]
mov byte [eax + ecx], dl
inc eax
jmp 0x100602a8
test edi, edi
je 0x100602c6
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 0x100603bf
test edi, edi
je 0x10060301
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.1010dced
add esp, 4
mov esi, eax
test esi, esi
je 0x100603b3
test edi, edi
je 0x10060337
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 0x1006039e
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.1010dc10
add esp, 4
jmp 0x100603e1
test edi, edi
je 0x100603a8
mov dword [edi], 0x1a
push esi
call fcn.1010dc10
add esp, 4
jmp 0x100603e1
test edi, edi
je 0x100603e1
mov dword [edi], 0x19
jmp 0x100603e1
test edi, edi
je 0x100603e1
mov dword [edi], 0x18
jmp 0x100603e1
test edi, edi
je 0x100603e1
mov dword [edi], 0x17
jmp 0x100603e1
test edi, edi
je 0x100603e1
mov dword [edi], 0x16
mov eax, dword [ebp - 0x10340]
test eax, eax
je 0x100603f4
push eax
call fcn.1010dc10
add esp, 4
cmp dword [ebp - 0x10338], 0
je 0x10060418
mov eax, dword [ebp - 0x10338]
push eax
call fcn.1010dc10
add esp, 4
jmp 0x10060418
cmp edi, ebx
je 0x10060418
mov dword [edi], 0x14
cmp dword [ebp - 0x1035c], 0
jne 0x1006085e
test edi, edi
je 0x1006042f
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 0x1006046b
mov dword [edi], 0xf0
cmp dword [eax + 4], 0
je 0x1006082c
test edi, edi
je 0x1006047f
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 0x100607db
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x10318], eax
mov cl, byte [ebp - 0x2fe]
mov byte [ebp - 0x10304], cl
test edi, edi
je 0x100604cf
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 0x100607cf
mov dword [ebp - 0x10330], 1
test edi, edi
je 0x10060512
mov dword [edi], 0xcc
mov ax, word [ebp - 0x105f0]
test ax, ax
jbe 0x1006066c
test edi, edi
je 0x1006052c
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 0x10060727
test edi, edi
je 0x10060559
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 0x10060606
mov ecx, 0x8000
mov ax, word [ebp - 0x105f0]
cmp ax, cx
jb 0x10060595
lea eax, [ecx - 1]
jmp 0x10060598
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 0x100605c0
mov dword [edi], 0xcf
mov edx, dword [ebp - 0x10354]
test edx, edx
je 0x1006061a
test edi, edi
je 0x100605d4
mov dword [edi], 0x816
cmp byte [ebp - 0x8303], 0
je 0x1006061a
test edi, edi
je 0x100605e7
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 0x100605f0
test edi, edi
je 0x1006061a
mov dword [edi], 0x819
jmp 0x1006061a
test edi, edi
je 0x10060610
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 0x10060672
mov esi, dword [ebp - 0x10328]
test edi, edi
je 0x1006067c
mov dword [edi], 0x818
mov ax, word [ebp - 0x105f8]
test ax, ax
jbe 0x1006083c
mov ebx, dword [ebp - 0x10368]
test ebx, ebx
je 0x1006083c
test edi, edi
je 0x100606a4
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 0x100607b9
test edi, edi
je 0x100606db
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 0x10060788
test edi, edi
je 0x10060711
mov dword [edi], 0xd2
mov edx, 0x8000
mov ax, word [ebp - 0x105f8]
cmp ax, dx
jb 0x10060740
lea eax, [edx - 1]
jmp 0x10060743
test edi, edi
je 0x10060731
mov dword [edi], 8
mov dword [ebp - 0x10330], 0
jmp 0x10060672
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 0x1006079c
lea ecx, [ebp - 0x10303]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10060772
mov dword [ebp - 0x10330], 1
jmp 0x1006079c
test edi, edi
je 0x10060792
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 0x1006083c
test edi, edi
je 0x100607c3
mov dword [edi], 0xa
mov dword [ebp - 0x10330], 0
jmp 0x1006083c
test edi, edi
je 0x10060836
mov dword [edi], 0xb
jmp 0x10060836
call fcn.10060930
test eax, eax
je 0x10060820
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea edx, [ebp - 0x127]
push edx
call fcn.10116880
push 0x104
lea esi, [ebp - 0x128]
call fcn.10049da0
mov eax, esi
push eax
push str._MONITOR__ReadProcessMemory_Failed__Reason:__s
push 0
call fcn.10053700
add esp, 0x1c
test edi, edi
je 0x10060836
mov dword [edi], 0xc
jmp 0x10060836
test edi, edi
je 0x10060836
mov dword [edi], 0xd
mov esi, dword [ebp - 0x10328]
cmp dword [ebp - 0x10320], 4
jne 0x10060864
push 0x8000
lea ecx, [ebp - 0x10303]
push ecx
push str._SystemRoot_System32_ntoskrnl.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x10060864
mov esi, dword [ebp - 0x10328]
xor edi, edi
mov eax, dword [ebp - 0x10334]
cmp eax, edi
je 0x10060885
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.100608bb
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.1010d699
mov esp, ebp
pop ebp
ret