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

Disassembly:
push 0xffffffffffffffff
push 0x44ea6d
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
or ebp, 0xffffffff
call fcn.00421f35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d62a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push str..htm
push SysReAllocStringLen
mov dword [esp + 0xc4], 0
call ebx
test eax, eax
jne 0x40db2c
push 0x4527d5
lea ecx, [esp + 0x2c]
call fcn.00401dc0
mov byte [esp + 0xb0], 1
mov dword [esp + 0x20], 0x104
call fcn.00421f35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d6a0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov eax, dword [edi - 8]
mov edx, dword [esp + 0x20]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
mov byte [esp + 0xb0], 2
jge 0x40d6db
push edx
lea ecx, [esp + 0x28]
call fcn.00401340
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0x3c]
push edx
push 0
push eax
push ecx
call ebp
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00438d74
add esp, 8
test eax, eax
jl 0x40d96d
cmp eax, dword [edi - 8]
jg 0x40d96d
mov dword [edi - 0xc], eax
push str._shellopencommand
lea edx, [esp + 0x28]
mov byte [eax + edi], 0
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00402630
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov byte [esp + 0xb4], 3
call edi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push eax
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x40d7d7
mov dword [esp + 0x20], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40d792
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401340
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push esi
lea edx, [esp + 0x3c]
push edx
push 0
push eax
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00438d74
add esp, 8
test eax, eax
jl 0x40d96d
cmp eax, dword [esi - 8]
jg 0x40d96d
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea ecx, [esp + 0x14]
call fcn.0040c4a0
lea ecx, [esp + 0x14]
call fcn.0040d320
mov esi, dword [esp + 0x14]
mov bl, 5
nop
xor ebp, ebp
cmp dword [esi - 0xc], ebp
jle 0x40d8f2
push 0x22
push esi
call fcn.00439976
add esp, 8
cmp eax, ebp
je 0x40d8f2
sub eax, esi
mov edi, eax
js 0x40d8e9
mov eax, dword [esi - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c5f0
mov esi, eax
push edi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 4
call fcn.0040c670
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0xbc], bl
call fcn.004018a0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 6
call fcn.004017c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp edi, 0xffffffff
jne 0x40d7f0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40d918
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401340
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov edi, esi
cmp byte [esi], bl
je 0x40d991
cmp ebx, ebp
jne 0x40d991
cmp byte [edi], 0x20
jne 0x40d98b
lea ecx, [esp + 0x3c]
mov byte [edi], 0
call fcn.00426d29
push ebp
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 7
call fcn.00426dbe
test eax, eax
je 0x40d977
lea ecx, [esp + 0x3c]
call fcn.00426a2d
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x40]
call eax
test eax, eax
jne 0x40d977
lea ebx, [eax + 1]
jmp 0x40d97a
push 0x80070057
call fcn.00401000
mov byte [edi], 0x20
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 3
call fcn.00426d4f
inc edi
cmp byte [edi], 0
jne 0x40d920
xor ecx, ecx
mov edx, 1
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x80], 1
mov word [esp + 0x86], cx
mov dword [esp + 0x88], ebp
mov word [esp + 0x84], dx
call fcn.00421f35
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40d9e8
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx]
push eax
push esi
lea edx, [esp + 0x20]
push str._s__s
push edx
mov byte [esp + 0xc0], 8
call fcn.00401880
mov edi, dword [esp + 0x28]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x100
add esp, 0x10
or eax, ecx
jge 0x40da47
push 0x100
lea ecx, [esp + 0x1c]
call fcn.00401340
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
mov eax, dword [esi - 8]
neg ebp
sbb ebp, ebp
push eax
neg ebp
push esi
dec ebp
call fcn.00438d74
add esp, 8
test eax, eax
jl 0x40d96d
cmp eax, dword [esi - 8]
jg 0x40d96d
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [edi - 0x10]
mov byte [esp + 0xb0], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dab4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dadc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret