Function at 0x409c70
Capabilities:
Delete registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44aa60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x6c], 2
mov eax, dword [esp + 0x80]
xor ebx, ebx
xor ecx, ecx
mov word [esp + 0x2c], cx
mov edi, 7
mov ecx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x409ce0
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.00401680
mov byte [esp + 0x6c], 3
xor edx, edx
push ebx
mov eax, 0x457f40
lea esi, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
call fcn.00401680
mov byte [esp + 0x6c], 4
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov ecx, 0x459d90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409d58
cmp dx, bx
je 0x409d54
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409d58
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x409d32
xor eax, eax
jmp 0x409d5d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x409d70
mov dword [esp + 0x1c], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x409d8e
lea eax, [esp + 0x7c]
push str.HKCU
push eax
call fcn.0040c1f0
add esp, 8
test al, al
je 0x409d8e
mov dword [esp + 0x1c], SysStringLen
mov eax, dword [esp + 0x84]
mov ecx, str.DRIVER
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409dc6
cmp dx, bx
je 0x409dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409dc6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x409da0
xor eax, eax
jmp 0x409dcb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
mov edi, 8
cmp al, bl
jne 0x409f31
lea ecx, [esp + 0x84]
push str.SERVICE
push ecx
call fcn.0040c1f0
add esp, 8
test al, al
jne 0x409f31
mov eax, dword [esp + 0x84]
cmp dword [eax - 0xc], ebx
jl 0x409fc3
push str._AUTORUN
push eax
call fcn.00432aee
add esp, 8
cmp eax, ebx
je 0x409fc3
mov ecx, dword [esp + 0x84]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x409fc3
cmp dword [ecx - 0xc], ebx
jge 0x409e3e
or eax, 0xffffffff
jmp 0x409e5e
push str._AUTORUN
push ecx
call fcn.00432aee
add esp, 8
cmp eax, ebx
jne 0x409e55
or eax, 0xffffffff
jmp 0x409e5e
sub eax, dword [esp + 0x84]
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x8c]
call fcn.0040bb40
mov byte [esp + 0x6c], 5
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x409e80
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x48]
call fcn.00401680
mov byte [esp + 0x6c], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ebe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jae 0x409ecc
lea eax, [esp + 0x2c]
neg ebp
lea ecx, [esp + 0x20]
push ecx
sbb ebp, ebp
lea edx, [esp + 0x18]
push edx
push ebx
and ebp, 0x200
add ebp, 0xf003f
push ebp
push ebx
push 0x457f40
push ebx
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409fc3
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], edi
jae 0x409f11
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x409fc3
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 3
cmp dword [esp + 0x40], edi
jae 0x409f47
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x18]
push edx
push ebx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push ebx
push 0x457f40
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409fa5
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push ebx
push str.Start
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jae 0x409fb3
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push ebp
call fcn.00409b50
cmp dword [esp + 0x5c], edi
jb 0x409fd6
mov edx, dword [esp + 0x48]
push edx
call fcn.0041455c
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
cmp dword [esp + 0x40], edi
jb 0x409ffd
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041455c
add esp, 4
mov byte [esp + 0x6c], 1
mov eax, dword [esp + 0x7c]
xor edx, edx
add eax, 0xfffffff0
mov word [esp + 0x2c], dx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a031
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a083
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00430e7d
add esp, 0x5c
ret 0x14