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

Disassembly:
push 0x3fc
push 0x4361d0
call fcn.00403685
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x1c], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0xc], ebx
je 0x435ffb
mov eax, dword [esi]
cmp eax, ebx
je 0x435ffb
cmp eax, 0xffffffff
je 0x435ffb
mov byte [ebp - 0x128], bl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov word [ebp - 0x330], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x32e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00435c4c
test eax, eax
lea eax, [ebp - 0x334]
push eax
push 0x20019
push ebx
je 0x435d96
push 0x4361a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435d85
mov dword [ebp - 0x338], 0x104
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x33c]
push eax
push ebx
push 0x436198
push dword [ebp - 0x334]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x435d85
cmp dword [ebp - 0x33c], 1
jne 0x435d85
lea edi, [ebp - 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x435d4b
mov esi, 0x436184
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x104
lea eax, [ebp - 0x330]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x340], eax
cmp eax, ebx
jne 0x435dfd
push dword [ebp - 0x334]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x435ffb
push 0x436140
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435d85
mov dword [ebp - 0x344], 0x104
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x348]
push eax
push ebx
push 0x43611c
push dword [ebp - 0x334]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435d85
cmp dword [ebp - 0x348], 1
jne 0x435d85
push 0x4360f8
lea eax, [ebp - 0x330]
push eax
call fcn.00414818
pop ecx
pop ecx
jmp 0x435e00
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x334]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x43c
call fcn.0040366c
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x34c], eax
push 0x18
pop eax
call fcn.0040366c
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x350], edi
call fcn.00435c4c
test eax, eax
je 0x435e76
push 0xc
pop eax
call fcn.0040366c
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x354], eax
push dword [esi]
push 0x4360f0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 4
push edi
push 0xffffffffffffffff
push dword [ebp - 0x354]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x435e87
push dword [esi]
push 0x4360e0
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x34c]
call fcn.00436ea3
push 0x4360d0
push dword [ebp - 0x34c]
call fcn.00414818
push edi
push dword [ebp - 0x34c]
call fcn.00414818
push 0x4360c0
push dword [ebp - 0x34c]
call fcn.00414818
push dword [esi + 0xc]
push dword [ebp - 0x34c]
call fcn.00414818
add esp, 0x28
call fcn.00435c4c
push 0x10
pop ecx
test eax, eax
je 0x435faf
mov dword [ebp - 0x398], ebx
xor eax, eax
lea edi, [ebp - 0x394]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x398], 0x44
lea eax, [ebp - 0x330]
push eax
call fcn.0040cd33
pop ecx
lea edi, [eax + eax + 2]
mov dword [ebp - 0x39c], edi
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x3a0], eax
push ebx
push ebx
dec edi
push edi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
push ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call edi
push dword [ebp - 0x34c]
call fcn.0040cd33
pop ecx
lea esi, [eax + eax + 2]
mov dword [ebp - 0x3a4], esi
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x3a8], eax
push ebx
push ebx
dec esi
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x34c]
push ebx
push ebx
call edi
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x398]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp - 0x3a8]
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x435ff1
mov dword [ebp - 0x400], ebx
xor eax, eax
lea edi, [ebp - 0x3fc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x400], 0x44
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x400]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp - 0x34c]
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x3bc], eax
cmp eax, ebx
jne 0x436009
or dword [ebp - 4], 0xffffffff
mov eax, 0x80004005
jmp 0x4360a9
push 0x7530
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x404], eax
cmp eax, ebx
jne 0x436052
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x40c], eax
cmp eax, ebx
je 0x436049
cmp dword [ebp - 0x408], ebx
je 0x43606e
mov dword [ebp - 0x24], 0x80004005
jmp 0x43606e
cmp eax, 0x102
jne 0x43606e
mov dword [ebp - 0x24], 0x80004005
push 1
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x3b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3b4]
call esi
or dword [ebp - 4], 0xffffffff
jmp 0x43609e
cmp dword [ebp - 0x24], ebx
jl 0x4360a6
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x418]
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp + 4]
call fcn.004037c0
call fcn.004036c0
ret