Function at 0x401780
Capabilities:
Delete file
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40df08
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x412050]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x412050]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
mov ecx, str.SOFTWAREGIZMO2_
mov ebx, edx
call fcn.00401b90
push eax
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
mov dword [esp + 0x488], edi
call fcn.00401c40
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, str.gadget
mov byte [esp + 0x490], 1
call fcn.00401c40
add esp, 0x10
mov byte [esp + 0x480], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40182a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x480], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
mov byte [esp + 0x488], 5
mov edx, dword [esp + 0x30]
push edi
push edx
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x401a8c
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
call fcn.00401d20
mov dword [esp + 0x20], edi
nop
push 0x208
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.00404cb0
add esp, 0xc
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x24]
push edi
push edi
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
mov ebx, 0x104
push esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x4019f3
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x10]
push eax
push 0x20019
push edi
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x490], 7
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40191d
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
push 0x208
lea eax, [esp + 0x268]
push edi
push eax
call fcn.00404cb0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x14]
lea esi, [esp + 0x268]
mov dword [esp + 0x14], ebx
call fcn.00403380
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x60]
call fcn.00401b90
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x484], 8
call fcn.00401b90
lea ebx, [esp + 0x2c]
lea edi, [esp + 0x3c]
mov byte [esp + 0x480], 9
call fcn.00401dd0
mov byte [esp + 0x480], 7
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 0x4019ab
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x4019e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], esi
inc dword [esp + 0x20]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x4018a0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, edx
sub ecx, eax
sar ecx, 3
xor ebx, ebx
cmp ecx, edi
jbe 0x401a46
cmp ebx, ecx
jb 0x401a15
call fcn.0040416f
mov eax, dword [esp + 0x48]
lea edi, [eax + ebx*8]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x401a30
mov edi, dword [edi]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, edx
sub ecx, eax
inc ebx
sar ecx, 3
cmp ebx, ecx
jb 0x401a15
xor edi, edi
cmp eax, edi
je 0x401a68
mov ecx, dword [esp + 0x24]
push ecx
mov edi, edx
call fcn.00402a60
mov edx, dword [esp + 0x4c]
add esp, 4
push edx
call fcn.00403ddf
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.00403ddf
add esp, 4
cmp esi, edi
je 0x401a8c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x480], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00403dea
mov esp, ebp
pop ebp
ret