Function at 0x401c70
Capabilities:
Create process on windows
Create process suspended
Query or enumerate registry value
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x2878
call fcn.00405580
push ebx
push ebp
push esi
push edi
mov ecx, 7
mov esi, 0x40b2e0
lea edi, [esp + 0x688]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x78
lea edi, [esp + 0x6a6]
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b2d4]
mov edx, dword [0x40b2d8]
stosw word es:[edi], ax
mov eax, dword [0x40b2d0]
mov dword [esp + 0x28c], ecx
mov dword [esp + 0x288], eax
mov al, byte [0x40b2dc]
mov byte [esp + 0x294], al
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x295]
mov dword [esp + 0x290], edx
lea edx, [esp + 0x688]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x200
stosw word es:[edi], ax
push ecx
push edx
push 0x80000002
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x30], 0xb
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401f81
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x488]
push eax
push ecx
push 0
push 0
push 0x40b2c8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401f81
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x29c]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401e8e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
push 4
push 0x4102d4
push ebx
call ebp
mov eax, dword [0x4102d4]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x401e83
mov edx, 0x40c2d4
mov dword [esp + 0x14], edx
jmp 0x401dbc
mov edx, dword [esp + 0x14]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x88]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x14]
push ecx
push 4
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esp + 0x90]
push ecx
push edx
push ebx
call ebp
lea eax, [esp + 0x88]
push 0
push eax
call fcn.00409106
add esp, 8
cmp eax, 0xffffffff
push 0
je 0x401e4f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push 4
push edx
jmp 0x401e5b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push 4
push ecx
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4102d4]
inc eax
add edx, 0x200
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x401db8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x401e94
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x488]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x88c]
push 0x40b2b8
push eax
mov dword [esp + 0x4c], 0x44
call fcn.00405520
lea ecx, [esp + 0x894]
push 0
push ecx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x401f81
lea edx, [esp + 0x488]
lea eax, [esp + 0x888]
push edx
push 0x40b2a8
push eax
call fcn.00405520
mov edi, 0x40b294
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x888]
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 + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x88c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401f81
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x30]
push ecx
call ebx
mov edx, dword [esp + 0x34]
push edx
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2878
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2878
ret