Function at 0x684dd960
Capabilities:
Create process on windows
Create process suspended
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x32c
mov dword [ebp - 0x300], edx
mov dword [ebp - 0x2e8], 0
test byte [0x684eb2d0], 8
jne 0x684ddc38
lea esi, [ebp - 0x2ec]
mov dword [esp + 8], 0x20019
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.684ca720
mov ebx, eax
test eax, eax
js 0x684ddd70
mov eax, dword [ebp - 0x2ec]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x304], eax
call eax
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x20019
mov dword [esp], edi
call fcn.684ca820
mov ebx, eax
test eax, eax
js 0x684ddbd0
mov dword [ebp - 0x2fc], 0
lea eax, [ebp - 0x2e4]
lea esi, [ebp - 0x288]
mov dword [ebp - 0x2e4], 0x20a
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllSurrogate
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x2ec]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x304]
call eax
mov edx, dword [ebp - 0x308]
sub esp, 4
test edx, edx
jne 0x684dda72
mov edx, dword [ebp - 0x2e4]
test edx, edx
jne 0x684dde00
test byte [0x684eb2d0], 8
jne 0x684dde78
mov dword [esp + 4], 0xf7
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, dword [sym.imp.ucrtbase.dll_wcscat]
sub esp, 8
mov dword [ebp - 0x304], edx
mov dword [esp + 4], str.dllhost.exe
mov dword [esp], esi
call edx
mov edx, dword [ebp - 0x304]
mov dword [esp + 4], str.__PROCESSID:
mov dword [esp], esi
call edx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], edi
lea eax, [esi + eax*2]
mov dword [esp + 8], 0x27
mov dword [esp + 4], eax
call sym.combase.dll_StringFromGUID2
lea edx, [ebp - 0x2c8]
mov ecx, 0x10
xor eax, eax
mov dword [ebp - 0x2cc], 0x44
mov edi, edx
sub esp, 0xc
rep stosd dword es:[edi], eax
test byte [0x684eb2d0], 8
jne 0x684dde40
mov eax, dword [ebp - 0x2fc]
test eax, eax
je 0x684ddce0
lea eax, [ebp - 0x2e0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
lea eax, [ebp - 0x2dc]
sub esp, 4
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x684dddd0
mov eax, dword [ebp - 0x2e0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
test ebx, ebx
js 0x684ddbc2
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0x300]
xor ebx, ebx
mov dword [ecx], eax
mov eax, dword [ebp - 0x2d8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2e8]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov dword [ebp - 0x2fc], eax
sub esp, 8
test eax, eax
je 0x684dd9f8
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2fc], eax
test eax, eax
je 0x684dd9f8
mov dword [esp + 8], esi
mov dword [esp + 4], 0x20119
mov dword [esp], edi
call fcn.684ca820
mov ebx, eax
test eax, eax
js 0x684ddbc2
mov dword [ebp - 0x2fc], 1
jmp 0x684dd9f8
test eax, eax
je 0x684ddea8
shr eax, 0x10
je 0x684dde20
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x684f2320
mov dword [esp + 4], eax
call fcn.684db860
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Attempting_to_start_surrogate_server_for__s_n
mov dword [esp + 8], str.create_surrogate_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 3
call fcn.684dbd80
jmp 0x684dd98b
lea eax, [ebp - 0x2dc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x684ddb9c
test byte [0x684eb2d0], 4
jne 0x684ddeb8
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
test ebx, ebx
jle 0x684ddb9c
movzx eax, bx
or eax, 0x80070000
mov ebx, eax
jmp 0x684ddbc2
lea eax, [ebp - 0x2e8]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x684ddbc2
mov ecx, dword [ebp - 0x2e8]
test ecx, ecx
je 0x684ddbc2
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20119
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.684ca720
mov ebx, eax
test eax, eax
jns 0x684dd9b7
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x684eb2d0], 4
jne 0x684ddef0
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
jmp 0x684ddb8a
cmp word [ebp - 0x288], 0
mov edx, dword [sym.imp.ucrtbase.dll_wcscat]
jne 0x684ddab2
jmp 0x684dda72
movzx eax, di
mov dword [esp], 0x684f2311
mov dword [esp + 4], eax
call fcn.684db860
jmp 0x684ddcab
mov eax, esi
call fcn.684dbb10
mov dword [esp + 0xc], str.Activating_surrogate_local_server__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_surrogate_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 3
call fcn.684dbd80
jmp 0x684ddb0a
mov dword [esp + 0xc], str.No_value_for_DllSurrogate_key_n
mov dword [esp + 8], str.create_surrogate_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 3
call fcn.684dbd80
jmp 0x684dda7f
mov eax, 0x684f24c4
jmp 0x684ddcab
mov eax, esi
call fcn.684dbb10
mov dword [esp + 0xc], str.failed_to_run_surrogate_local_server__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_surrogate_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 2
call fcn.684dbd80
jmp 0x684ddd4d
mov eax, esi
call fcn.684dbb10
mov dword [esp + 0xc], str.failed_to_run_surrogate_local_server__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_surrogate_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 2
call fcn.684dbd80
jmp 0x684ddddd