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

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x180]
test edi, edi
je 0x401c2b
cmp byte [edi], 0
je 0x401c2b
push 0x40c218
push edi
call fcn.004037d0
add esp, 8
test eax, eax
je 0x401ba5
call fcn.004014e0
mov ecx, dword [0x40c038]
call fcn.004016c0
call fcn.004017f0
test eax, eax
jne 0x401c1c
call fcn.004019b0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 0x10
mov eax, dword [0x40c048]
xor ebx, ebx
test eax, eax
je 0x401bd4
mov esi, 0x40c050
mov eax, dword [esi]
test eax, eax
je 0x401bc9
push eax
push edi
call fcn.004037d0
add esp, 8
test eax, eax
jne 0x401c3d
mov eax, dword [esi + 8]
add esi, 0x10
inc ebx
test eax, eax
jne 0x401bb5
mov al, byte [edi]
mov esi, edi
test al, al
mov bl, 0x20
je 0x401bea
cmp al, bl
ja 0x401bea
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401bde
mov al, byte [esi]
test al, al
je 0x401c1c
cmp al, 0x2f
je 0x401c1c
push 0
push esi
call fcn.00403530
add esp, 8
cmp eax, esi
jbe 0x401c0d
cmp byte [eax - 1], bl
ja 0x401c0d
dec eax
cmp eax, esi
ja 0x401c03
mov edx, 1
mov ecx, esi
mov byte [eax], 0
call section..text
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 0x10
mov edi, dword [0x40c038]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x70]
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]
shl ebx, 4
or ecx, 0xffffffff
mov edi, dword [ebx + 0x40c048]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x78]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c1c
lea edx, [esp + 0x18]
lea eax, [esp + 0x70]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x40c214
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d58
cmp dword [esp + 0x14], 1
jne 0x401d58
mov al, byte [esp + 0x70]
test al, al
je 0x401d58
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x1c], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x44], eax
push eax
mov eax, dword [ebx + 0x40c054]
lea ecx, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401d58
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x164
ret 0x10