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

Disassembly:
mov eax, 0x2a60
call fcn.00405580
push ebx
push ebp
push esi
push edi
mov ecx, 0x11
mov esi, 0x40b160
lea edi, [esp + 0x870]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x6f
lea edi, [esp + 0x8b4]
rep stosd dword es:[edi], eax
mov ecx, 8
mov esi, 0x40b13c
lea edi, [esp + 0x470]
mov dword [esp + 0x28], 0x200
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x77
lea edi, [esp + 0x492]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x12
mov esi, 0x40b0f0
lea edi, [esp + 0x670]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x6d
lea edi, [esp + 0x6ba]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x870]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401275
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
lea eax, [esp + 0x70]
push edx
push eax
push 0
push 0
push 0x40b0e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401275
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0xa70]
push eax
push 0x40b0d0
push ecx
mov dword [esp + 0x38], 0x44
call fcn.00405520
lea edx, [esp + 0xa7c]
push 0
push edx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x401275
lea eax, [esp + 0x70]
lea ecx, [esp + 0xa70]
push eax
push 0x40b0c0
push ecx
call fcn.00405520
mov eax, dword [0x40c2d0]
add esp, 0xc
test eax, eax
je 0x40119b
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xa8c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40119b
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2a60
ret
mov ebp, dword [0x4102d4]
test ebp, ebp
jle 0x401247
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebx, [esp + 0xa70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0xa70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0xa70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x4011ae
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xa8c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40116a
lea edx, [esp + 0x10]
lea eax, [esp + 0x470]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401463
lea ecx, [esp + 0x28]
lea edx, [esp + 0x70]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x40b0e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401463
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esp + 0x70]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0xa74]
push 0x40b0d0
push eax
mov dword [esp + 0x38], 0x44
call fcn.00405520
lea ecx, [esp + 0xa7c]
push 0
push ecx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x401463
lea edx, [esp + 0x70]
lea eax, [esp + 0xa70]
push edx
push 0x40b0c0
push eax
call fcn.00405520
mov eax, dword [0x40c2d0]
add esp, 0xc
test eax, eax
je 0x40135c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa8c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401432
mov ebp, dword [0x4102d4]
test ebp, ebp
jle 0x401408
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebx, [esp + 0xa70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0xa70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0xa70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x40136f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa8c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401463
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2a60
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x670]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4016af
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x70]
push eax
push ecx
push 0
push 0
push 0x40b0e0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4016af
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esp + 0xa70]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x2c], 0x44
push ecx
push 0x40b0a8
push edx
call fcn.00405520
lea eax, [esp + 0xa7c]
push 0
push eax
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x4016af
lea ecx, [esp + 0x70]
lea edx, [esp + 0xa70]
push ecx
push 0x40b094
push edx
call fcn.00405520
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea eax, [esp + 0xa70]
lea ecx, [esp + 0xa70]
push eax
lea edx, [esp + 0xa74]
push ecx
push edx
push 0x40b08c
call ebp
lea eax, [esp + 0xa70]
lea ecx, [esp + 0xa70]
push eax
push 0
push ecx
push 0x40b08c
call ebp
mov eax, dword [0x4102d4]
xor ebx, ebx
test eax, eax
jle 0x40163a
mov dword [esp + 0x24], 0x40c2d4
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x270]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x270]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x270]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x40b088
cmp byte [esp + ecx + 0x26f], 0x5c
je 0x4015be
mov edi, 0x40b080
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xa70]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x274]
lea edx, [esp + 0x274]
push ecx
push edx
push 0x40b078
call ebp
lea eax, [esp + 0xa70]
lea ecx, [esp + 0x270]
push eax
push 0x40b074
push ecx
push 0x40b078
call ebp
mov ecx, dword [esp + 0x24]
mov eax, dword [0x4102d4]
inc ebx
add ecx, 0x200
cmp ebx, eax
mov dword [esp + 0x24], ecx
jl 0x40156a
lea edx, [esp + 0x70]
lea eax, [esp + 0xa70]
push edx
push 0x40b030
push eax
call fcn.00405520
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
lea eax, [esp + 0xa70]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4016af
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2a60
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2a60
ret