Function at 0x10008d00
Capabilities:
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fd58
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x24c], 0xffffffff
mov dword [ebp - 0x248], 0
push 0x228
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.10055aa0
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x258], edi
mov dword [ebp - 4], edi
mov dword [ebp - 4], 1
call fcn.1003ccd0
test eax, eax
je 0x10008da9
mov ecx, esi
call fcn.10009190
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, esi
jmp 0x10009174
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24c], eax
cmp eax, 0xffffffff
jne 0x10008e75
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10008dfe
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10008e5a
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10008e39
mov byte [esi + 0xffff], 0
push esi
push str.KillProcessName
push 1
mov edx, 0x3c1
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10008e51
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x10009174
mov dword [ebp - 0x248], 0x22c
lea ecx, [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10008ef9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10008de4
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10008e39
mov byte [esi + 0xffff], 0
push esi
push str.KillProcessName
push 1
mov edx, 0x3c5
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10008e51
mov ebx, dword [ebp - 0x24c]
nop
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
jne 0x1000906c
test edi, edi
je 0x10008f23
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x240]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x258], edi
test edi, edi
jne 0x100090a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x25c], edi
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x250], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov esi, eax
cmp dword [ebp - 0x250], edi
je 0x10009028
test esi, esi
je 0x10009028
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x254]
push str.Error_opening_the_process:__s____d
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x10009013
xor eax, eax
mov word [esi + 0x1fffe], ax
push 0xfffffffffffffffe
push esi
call fcn.10051b84
push 0xffffffffffffffff
push esi
inc eax
push eax
push dword [ebp - 0x250]
lea eax, [ebp - 0x25c]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x10008ff1
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push dword [ebp - 0x250]
push str.KillProcessName
push 4
mov edx, 0x3d2
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10009040
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1000903a
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x10009053
push eax
call fcn.10052152
add esp, 4
test esi, esi
je 0x10009060
push esi
call fcn.10052152
add esp, 4
mov esi, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x24c]
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1000908b
cmp dword [0x1009dcac], 1
je 0x10008f00
mov dword [ebp - 4], 0
call fcn.100090bc
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10009174
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1000906c
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret