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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 1
je 0x10006b13
mov dword [ebp - 0x304], 0x104
mov dword [ebp - 0x308], 0
push 0x104
push 0
lea eax, [ebp - 0x300]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x2e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
jne 0x10006928
xor al, al
jmp 0x10006b6c
lea edx, [ebp - 0x1fc]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x30c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006953
xor al, al
jmp 0x10006b6c
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0x300]
push edx
push 0
mov eax, dword [ebp - 0x1fc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x1fc]
push ecx
mov edx, dword [ebp - 4]
call dword [edx + 0x44]
push 0x1f4
push 0
lea eax, [ebp - 0x1f8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x300]
push ecx
push str._s_shellopencommand
lea edx, [ebp - 0x1f8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x1f8]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100069da
xor al, al
jmp 0x10006b6c
push 0x104
push 0
lea edx, [ebp - 0x300]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x304], 0x104
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x300]
push ecx
push 0
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [ebp - 0x1fc]
push eax
mov ecx, dword [ebp - 4]
call dword [ecx + 0x44]
push 0x10020ea4
lea edx, [ebp - 0x300]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x10006a63
push 0x10020ea0
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x10006a91
push 0x10020e9c
lea ecx, [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10006aa2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x350], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x34c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x350], 0x44
cmp dword [ebp + 0xc], 0
je 0x10006ad7
mov dword [ebp - 0x348], str.WinSta0Default
jmp 0x10006aea
mov dword [ebp - 0x324], 1
mov word [ebp - 0x320], 0
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x350]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x300]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0xc], 1
jne 0x10006b6c
mov dword [ebp - 0x3a4], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x3a0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3a4], 0x44
mov dword [ebp - 0x39c], str.WinSta0Default
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x3a4]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8