Function at 0x40666a
Capabilities:
Delete file
Terminate process

Disassembly:
push 0x180
push 0x403ca0
call fcn.00404ca9
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov eax, dword [0x40505c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll__wcsnicmp]
push eax
xor ebx, ebx
inc ebx
push ebx
push 0x1fffff
call dword [0x4010a0]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x406884
push 0x44
pop edi
push edi
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.00406f95
mov dword [ebp - 0x8c], edi
xor eax, eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x60], 0x181
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x24], esi
je 0x4066f7
push 0x104
lea eax, [ebp - 0x190]
push eax
call fcn.00406498
test eax, eax
jne 0x406704
push ebx
lea eax, [ebp - 0x190]
push eax
call fcn.004068cf
cmp dword [ebp + 8], esi
je 0x406785
lea edi, [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push esi
push 0x2000000
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
test eax, eax
je 0x40673f
push 4
lea eax, [ebp - 0x44]
push eax
push 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
lea edi, [ebp - 0x20]
push esi
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call fcn.00407424
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp - 0x40]
push 0x404
push ebx
push esi
push esi
lea eax, [ebp - 0x190]
push eax
push esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtDeleteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4067a8
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_LdrLoadDll]
jmp 0x4067a8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
push esi
push 4
push ebx
push esi
push esi
lea eax, [ebp - 0x190]
push eax
push esi
call dword [sym.imp.ntdll.dll__allmul]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], esi
je 0x4067d2
cmp dword [ebp - 0x1c], esi
je 0x406826
push esi
lea eax, [ebp - 0x190]
push eax
call fcn.004068cf
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0x190]
push eax
call fcn.00406558
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x406884
cmp dword [ebp - 0x24], esi
jne 0x4067e7
mov eax, dword [0x40500c]
push esi
push 0x80
mov ecx, 0x405080
push ecx
sub eax, dword [0x40500c]
add eax, ecx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_ZwOpenKey]
cmp dword [ebp - 0x24], esi
je 0x40684e
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
mov eax, dword [0x40505c]
push dword [eax + 0x34]
push dword [ebp - 0x34]
call fcn.00406a50
cmp dword [ebp - 0x1c], esi
jne 0x406857
cmp dword [ebp - 0x34], esi
je 0x40683e
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_wcsncpy]
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_LdrLoadDll]
cmp dword [ebp - 0x30], esi
je 0x406884
push dword [ebp - 0x30]
call dword [sym.imp.ntdll.dll_LdrLoadDll]
jmp 0x406884
push dword [ebp - 0x30]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [0x405074], esi
jne 0x406879
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 0x34]
push 0x402e38
push esi
push esi
call dword [0x4010cc]
mov dword [ebp - 0x3c], eax
jmp 0x406884
push dword [ebp - 0x34]
call fcn.004065c8
mov dword [ebp - 0x34], esi
or dword [ebp - 4], 0xffffffff
call fcn.0040689a
mov eax, dword [ebp - 0x1c]
call fcn.00406bf9
ret 4