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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb115c8
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x10618
call fcn.00a91950
mov eax, dword [0xb196ec]
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.00a7ffb0
add esp, 0xc
push 0x1d8
push ebx
lea edx, [ebp - 0x300]
push edx
call fcn.00a7ffb0
add esp, 0xc
push 0x290
push ebx
lea eax, [ebp - 0x10630]
push eax
call fcn.00a7ffb0
add esp, 0xc
cmp edi, ebx
je 0x97b65a
mov dword [edi], ebx
cmp esi, ebx
je 0x97b660
mov byte [esi], bl
mov eax, dword [ebp - 0x10354]
cmp eax, ebx
je 0x97b66c
mov byte [eax], bl
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x97b679
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x10320], esi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x97b68e
mov dword [edi], 0x65
mov ecx, 0xab713c
call fcn.0094c620
mov dword [ebp - 0x1032c], eax
cmp eax, ebx
jne 0x97b6c6
cmp edi, ebx
je 0x97b6ac
mov dword [edi], 1
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0xb196ec
call fcn.00a858f0
add esp, 0xc
xor eax, eax
jmp 0x97c103
cmp edi, ebx
je 0x97b6d0
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 0x97b71f
lea edx, [ebp - 0x1032c]
push edx
call fcn.00985370
add esp, 4
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x97b705
mov dword [edi], 2
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0xb196ec
call fcn.00a858f0
add esp, 0xc
xor eax, eax
jmp 0x97c103
cmp edi, ebx
je 0x97b729
mov dword [edi], 0x67
push esi
push 0x410
call fcn.0097af50
add esp, 8
mov dword [ebp - 0x10324], eax
cmp eax, 0xffffffff
jne 0x97b77b
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.00985370
add esp, 4
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x97b761
mov dword [edi], 3
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0xb196ec
call fcn.00a858f0
add esp, 0xc
xor eax, eax
jmp 0x97c103
cmp edi, ebx
je 0x97b785
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 0x97b7d5
lea eax, [ebp - 0x10324]
push eax
call fcn.00985290
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.00985370
add esp, 4
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x97b761
mov dword [edi], 5
jmp 0x97b761
cmp edi, ebx
je 0x97b7df
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 0x97b807
mov dword [edi], 0x6b
cmp eax, ebx
jl 0x97b8b0
cmp dword [ebp - 0x10344], 0x18
jbe 0x97b8b0
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 0x97b88d
lea eax, [ebp - 0x10324]
push eax
call fcn.00985290
lea ecx, [ebp - 0x1032c]
push ecx
call fcn.00985370
add esp, 4
mov dword [ebp - 0x10324], ebx
mov dword [ebp - 0x1032c], ebx
cmp edi, ebx
je 0x97b761
mov dword [edi], 6
jmp 0x97b761
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 0x97b8ba
mov dword [edi], 0x6c
cmp eax, ebx
jne 0x97b8c7
cmp dword [esi + 4], ebx
jne 0x97bc81
cmp dword [ebp - 0x10354], ebx
je 0x97bc81
mov esi, 1
mov dword [ebp - 0x1035c], esi
call fcn.00968110
test eax, eax
je 0x97bc77
mov dword [ebp - 0x10364], ebx
cmp edi, ebx
je 0x97b8fb
mov dword [edi], 0x6d
cmp dword [0xc00c50], ebx
jne 0x97b916
mov dword [0xc00c50], esi
push 0xc00c54
call fcn.00968160
add esp, 4
cmp edi, ebx
je 0x97b920
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 0x97b94d
lea ecx, [ebp - 0x10364]
push ecx
push esi
call eax
xor edx, edx
mov ax, word [0xc00c54]
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 0x97b98b
mov dword [edi], 0x6f
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
call fcn.00a7a155
add esp, 4
mov dword [ebp - 0x10340], eax
cmp edi, ebx
je 0x97b9ad
mov dword [edi], 0x70
add esi, 0x10
mov dword [ebp - 0x10358], esi
push esi
call fcn.00a7a155
add esp, 4
mov dword [ebp - 0x10338], eax
cmp edi, ebx
je 0x97b9cf
mov dword [edi], 0x71
cmp dword [ebp - 0x10340], ebx
je 0x97bc4a
cmp dword [ebp - 0x10338], 0
je 0x97bc4a
mov eax, dword [ebp - 0x1034c]
add eax, 8
push eax
push 0
mov edx, dword [ebp - 0x10340]
push edx
call fcn.00a7ffb0
add esp, 0xc
mov eax, dword [ebp - 0x10358]
push eax
push 0
mov ecx, dword [ebp - 0x10338]
push ecx
call fcn.00a7ffb0
add esp, 0xc
test edi, edi
je 0x97ba25
mov dword [edi], 0x72
cmp dword [ebp - 0x10364], 0
je 0x97bc4a
push 0x30
push 0
lea edx, [ebp - 0x103a0]
push edx
call fcn.00a7ffb0
add esp, 0xc
test edi, edi
je 0x97ba4f
mov dword [edi], 0x73
push str.NtWow64QueryInformationProcess64
push 0xab713c
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x97bc40
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 0x97bc40
test edi, edi
je 0x97ba98
mov dword [edi], 0x74
push str.NtWow64ReadVirtualMemory64
push 0xab713c
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x97bad9
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 0x97bade
mov eax, 0x57
test edi, edi
je 0x97bae8
mov dword [edi], 0x75
test eax, eax
jne 0x97bc34
mov edx, dword [ebp - 0x1034c]
mov eax, dword [ebp - 0x10340]
lea esi, [eax + edx]
lea ecx, [ebp - 0x10350]
test edi, edi
je 0x97bb0f
mov dword [edi], 0x76
xor eax, eax
mov dword [ebp - 0x1036c], eax
cmp eax, 8
jge 0x97bb25
mov dl, byte [eax + esi]
mov byte [eax + ecx], dl
inc eax
jmp 0x97bb11
test edi, edi
je 0x97bb2f
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 0x97bc28
test edi, edi
je 0x97bb6a
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.00a7a155
add esp, 4
mov esi, eax
test esi, esi
je 0x97bc1c
test edi, edi
je 0x97bba0
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 0x97bc07
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.00a78fec
add esp, 4
jmp 0x97bc4a
test edi, edi
je 0x97bc11
mov dword [edi], 0x1a
push esi
call fcn.00a78fec
add esp, 4
jmp 0x97bc4a
test edi, edi
je 0x97bc4a
mov dword [edi], 0x19
jmp 0x97bc4a
test edi, edi
je 0x97bc4a
mov dword [edi], 0x18
jmp 0x97bc4a
test edi, edi
je 0x97bc4a
mov dword [edi], 0x17
jmp 0x97bc4a
test edi, edi
je 0x97bc4a
mov dword [edi], 0x16
mov eax, dword [ebp - 0x10340]
test eax, eax
je 0x97bc5d
push eax
call fcn.00a78fec
add esp, 4
cmp dword [ebp - 0x10338], 0
je 0x97bc81
mov eax, dword [ebp - 0x10338]
push eax
call fcn.00a78fec
add esp, 4
jmp 0x97bc81
cmp edi, ebx
je 0x97bc81
mov dword [edi], 0x14
cmp dword [ebp - 0x1035c], 0
jne 0x97c0ca
test edi, edi
je 0x97bc98
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 0x97bcd4
mov dword [edi], 0xf0
cmp dword [eax + 4], 0
je 0x97c098
test edi, edi
je 0x97bce8
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 0x97c041
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x10318], eax
mov cl, byte [ebp - 0x2fe]
mov byte [ebp - 0x10304], cl
test edi, edi
je 0x97bd38
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 0x97c035
mov dword [ebp - 0x10330], 1
test edi, edi
je 0x97bd7b
mov dword [edi], 0xcc
mov ax, word [ebp - 0x105f0]
test ax, ax
jbe 0x97bed2
test edi, edi
je 0x97bd95
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 0x97bf8d
test edi, edi
je 0x97bdc2
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 0x97be6c
mov ecx, 0x8000
mov ax, word [ebp - 0x105f0]
cmp ax, cx
jb 0x97bdfe
lea eax, [ecx - 1]
jmp 0x97be01
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 0x97be29
mov dword [edi], 0xcf
mov edx, dword [ebp - 0x10354]
test edx, edx
je 0x97be80
test edi, edi
je 0x97be3d
mov dword [edi], 0x816
cmp byte [ebp - 0x8303], 0
je 0x97be80
test edi, edi
je 0x97be50
mov dword [edi], 0x817
lea ecx, [ebp - 0x8303]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x97be56
test edi, edi
je 0x97be80
mov dword [edi], 0x819
jmp 0x97be80
test edi, edi
je 0x97be76
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 0x97bed8
mov esi, dword [ebp - 0x10328]
test edi, edi
je 0x97bee2
mov dword [edi], 0x818
mov ax, word [ebp - 0x105f8]
test ax, ax
jbe 0x97c0a8
mov ebx, dword [ebp - 0x10368]
test ebx, ebx
je 0x97c0a8
test edi, edi
je 0x97bf0a
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 0x97c01f
test edi, edi
je 0x97bf41
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 0x97bfee
test edi, edi
je 0x97bf77
mov dword [edi], 0xd2
mov edx, 0x8000
mov ax, word [ebp - 0x105f8]
cmp ax, dx
jb 0x97bfa6
lea eax, [edx - 1]
jmp 0x97bfa9
test edi, edi
je 0x97bf97
mov dword [edi], 8
mov dword [ebp - 0x10330], 0
jmp 0x97bed8
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 0x97c002
lea ecx, [ebp - 0x10303]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x97bfd8
mov dword [ebp - 0x10330], 1
jmp 0x97c002
test edi, edi
je 0x97bff8
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 0x97c0a8
test edi, edi
je 0x97c029
mov dword [edi], 0xa
mov dword [ebp - 0x10330], 0
jmp 0x97c0a8
test edi, edi
je 0x97c0a2
mov dword [edi], 0xb
jmp 0x97c0a2
call fcn.0097c1a0
test eax, eax
je 0x97c08c
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea edx, [ebp - 0x127]
push edx
call fcn.00a7ffb0
add esp, 0xc
push 0x104
lea esi, [ebp - 0x128]
call fcn.00960b00
add esp, 4
mov eax, esi
push eax
push str._MONITOR__ReadProcessMemory_Failed__Reason:__s
push 0
call fcn.0096a780
add esp, 0xc
test edi, edi
je 0x97c0a2
mov dword [edi], 0xc
jmp 0x97c0a2
test edi, edi
je 0x97c0a2
mov dword [edi], 0xd
mov esi, dword [ebp - 0x10328]
cmp dword [ebp - 0x10320], 4
jne 0x97c0d0
push 0x8000
lea ecx, [ebp - 0x10303]
push ecx
push str._SystemRoot_System32_ntoskrnl.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x97c0d0
mov esi, dword [ebp - 0x10328]
xor edi, edi
mov eax, dword [ebp - 0x10334]
cmp eax, edi
je 0x97c0f1
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.0097c127
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.00a78f21
mov esp, ebp
pop ebp
ret