Function at 0x684de970
Capabilities:
Create process on windows
Create process suspended
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2dc
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0x20a
test byte [0x684eb2d0], 8
jne 0x684debf0
lea edi, [ebp - 0x29c]
mov dword [esp + 8], 0x20019
mov dword [esp + 0xc], edi
mov dword [esp + 4], str.LocalServer32
mov dword [esp], ebx
call fcn.684ca720
mov dword [ebp - 0x2ac], 0
mov esi, eax
test eax, eax
js 0x684dec90
lea eax, [ebp - 0x294]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x238]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x29c]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x684defb6
lea edx, [ebp - 0x278]
mov ecx, 0x10
mov eax, esi
cmp word [ebp - 0x238], 0
mov dword [ebp - 0x27c], 0x44
mov edi, edx
lea edx, [ebp - 0x238]
rep stosd dword es:[edi], eax
je 0x684dea69
add edx, 2
cmp word [edx], 0
jne 0x684dea60
xor eax, eax
mov ecx, 0x20
jmp 0x684dea7f
movzx ecx, word [eax + str.__Embedding]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x684dea78
test byte [0x684eb2d0], 8
jne 0x684ded70
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x684deb60
lea eax, [ebp - 0x290]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
lea eax, [ebp - 0x28c]
sub esp, 4
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x27c]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x238]
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], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x684dee38
test byte [0x684eb2d0], 4
jne 0x684def1a
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x290]
test ebx, ebx
jle 0x684deed0
mov dword [esp], eax
movzx esi, bx
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
or esi, 0x80070000
sub esp, 4
jmp 0x684debe6
lea eax, [ebp - 0x28c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x27c]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x238]
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], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x684dee50
mov eax, dword [ebp - 0x28c]
mov edi, dword [ebp - 0x2b0]
mov dword [edi], eax
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x684deef0
shr eax, 0x10
je 0x684dee80
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
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_server_for__s_n
mov dword [esp + 8], str.create_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 3
call fcn.684dbd80
jmp 0x684de9a5
lea eax, [ebp - 0x298]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x684decbc
mov edx, dword [ebp - 0x298]
test edx, edx
jne 0x684dee98
test byte [0x684eb2d0], 2
je 0x684debe6
test ebx, ebx
je 0x684defac
mov eax, ebx
shr eax, 0x10
je 0x684def52
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x684f2320
mov dword [esp + 4], eax
call fcn.684db860
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.class__s_not_registered_n
mov dword [esp + 8], str.create_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 1
call fcn.684dbd80
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x684def6a
mov eax, ebx
shr eax, 0x10
je 0x684def00
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x684f2320
mov dword [esp + 4], eax
call fcn.684db860
mov ebx, eax
lea eax, [ebp - 0x238]
call fcn.684dbb10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.activating_local_server__s_for__s_n
mov dword [esp + 8], str.create_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 3
call fcn.684dbd80
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x684deb60
jmp 0x684deaa6
mov eax, dword [ebp - 0x290]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x684debc6
test byte [0x684eb2d0], 4
jne 0x684def74
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
jmp 0x684debe6
movzx eax, bx
mov dword [esp], 0x684f2311
mov dword [esp + 4], eax
call fcn.684db860
jmp 0x684dec63
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x20119
mov dword [esp + 4], str.LocalServer32
mov dword [esp], ebx
call fcn.684ca720
mov esi, eax
test eax, eax
js 0x684decbc
mov dword [ebp - 0x2ac], 1
jmp 0x684de9db
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
test ebx, ebx
je 0x684debc6
mov esi, ebx
jmp 0x684debe6
mov eax, 0x684f24c4
jmp 0x684dec63
movzx ebx, bx
mov dword [esp], 0x684f2311
mov dword [esp + 4], ebx
call fcn.684db860
mov ebx, eax
jmp 0x684dede7
lea eax, [ebp - 0x238]
call fcn.684dbb10
mov dword [esp + 0xc], str.failed_to_run_local_server__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 2
call fcn.684dbd80
jmp 0x684deb2b
movzx ebx, bx
mov dword [esp], 0x684f2311
mov dword [esp + 4], ebx
call fcn.684db860
jmp 0x684ded3e
mov ebx, 0x684f24c4
jmp 0x684dede7
lea eax, [ebp - 0x238]
call fcn.684dbb10
mov dword [esp + 0xc], str.failed_to_run_local_server__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 2
call fcn.684dbd80
jmp 0x684dee5d
mov eax, 0x684f24c4
jmp 0x684ded3e
mov esi, 0x80040154
test byte [0x684eb2d0], 4
je 0x684debe6
mov dword [esp + 0xc], str.No_default_value_for_LocalServer32_key_n
mov dword [esp + 8], str.create_server
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 2
call fcn.684dbd80
jmp 0x684debe6