joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp dword [eax + 0x10], 0
je 0x4d7288
call fcn.004d73b0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d72a7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
push esi
call fcn.004d7b40
test eax, eax
je 0x4d7293
push esi
lea eax, [ebp - 0x20c]
push 0x5aa160
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x4d730c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d730c
lea eax, [ebp - 0x224]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d7385
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004d7990
test eax, eax
je 0x4d7385
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x218]
jne 0x4d7385
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
jne 0x4d7385
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x228]
jne 0x4d7385
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x22c]
jne 0x4d7385
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004d8280
test al, al
jne 0x4d7395
mov eax, dword [edi + 4]
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.004d75a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 8

Function at 0x4d7450
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x4d7461
mov dword [edi], ecx
pop edi
xor eax, eax
pop esi
ret
push 2
push 0
push esi
call fcn.00557b5c
push esi
call fcn.00558192
push 0
push 0
push esi
mov dword [edi], eax
call fcn.00557b5c
mov eax, dword [edi]
add esp, 0x1c
test eax, eax
jle 0x4d745c
push ebx
push eax
call fcn.00540b06
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d74ae
push esi
push 1
push dword [edi]
push ebx
call fcn.005583ad
push 0
push 0
push esi
call fcn.00557b5c
add esp, 0x1c
mov eax, ebx
pop ebx
pop edi
pop esi
ret
Function at 0x4d7b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d7b64
cmp dword [esi + 4], 0
je 0x4d7b5d
push eax
call fcn.0052ea76
add esp, 4
mov dword [esi + 0x10], 0
push 0x5a8e74
push dword [ebp + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.005576f7
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d7b8e
pop edi
pop esi
pop ebp
ret 4
push ebx
push 2
push 0
push edi
call fcn.00557b5c
push edi
call fcn.00558192
push 0
push 0
push edi
mov ebx, eax
call fcn.00557b5c
add esp, 0x1c
test ebx, ebx
jle 0x4d7bce
push ebx
mov ecx, esi
call fcn.004d7c50
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d7bce
push edi
push 1
push ebx
push eax
call fcn.005583ad
add esp, 0x10
push edi
call fcn.00558554
add esp, 4
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d8280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5886c6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ca104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.004d8c70
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 0
test eax, eax
je 0x4d833a
push 0x5a8e74
push eax
call fcn.005576f7
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4d833a
push edi
call fcn.00559da7
push eax
call fcn.00559d91
push edi
push 1
mov esi, eax
lea eax, [ebp - 0x20]
push 8
push eax
call fcn.005583ad
add esp, 0x18
mov byte [ebp + 0xb], 0
cmp dword [ebp - 0x20], 0x78646972
jne 0x4d83c3
cmp dword [ebp - 0x1c], 0x8000
jb 0x4d8350
push edi
call fcn.00558554
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add esi, 0xfffffff8
push esi
call fcn.00540b06
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4d83c3
push edi
push 1
push esi
push ebx
call fcn.005583ad
lea edx, [ebx + esi]
mov ecx, ebx
xor ebx, ebx
mov dword [ebp + 8], edx
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
jle 0x4d83b1
mov edi, dword [ebp - 0x10]
mov esi, dword [ecx + 0xc]
add esi, 0x12
add esi, ecx
cmp esi, edx
ja 0x4d83ae
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
push eax
call fcn.004d7ed0
mov edx, dword [ebp + 8]
inc ebx
mov ecx, esi
cmp ebx, dword [ebp - 0x1c]
jl 0x4d8384
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0052ea76
add esp, 4
cmp ebx, dword [ebp - 0x1c]
sete byte [ebp + 0xb]
push edi
call fcn.00558554
mov al, byte [ebp + 0xb]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4da2d0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588886
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.00520260
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 8], 0
jne 0x4da318
cmp dword [edi + 4], 0
je 0x4da476
lea ebx, [edi + 0x14]
push ebx
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x2018], 1
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
jle 0x4da36e
test esi, esi
je 0x4da46f
cmp dword [eax - 0xc], 0
jl 0x4da46f
push esi
push eax
call fcn.0052419a
add esp, 8
test eax, eax
je 0x4da46f
sub eax, dword [edi + 0x10]
sar eax, 1
js 0x4da46f
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00524040
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2010]
call fcn.0042efc0
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4da3ac
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4da3c1
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4da3c3
call edx
add eax, 0x10
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2010]
mov byte [ebp - 4], 1
push eax
push esi
lea eax, [ebp - 0x2014]
push str.__s___s_r_n
push eax
call fcn.00420660
mov esi, dword [ebp - 0x2014]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x4da3ff
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 4], 0
je 0x4da42e
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x4da42e
push 0
mov dword [ebp - 0x2014], 0
lea edx, [ebp - 0x2014]
mov eax, dword [esi - 0xc]
push edx
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4da46f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4da46d
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4da46d
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4da46f
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret
Function at 0x4da810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588918
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ca104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x140], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [edi + 0x144]
sub ebx, 0x10
lea ecx, [eax - 0x10]
cmp ecx, ebx
je 0x4da89e
cmp dword [ebx + 0xc], 0
jl 0x4da88c
mov edx, dword [ecx]
cmp edx, dword [ebx]
jne 0x4da88c
push ecx
call fcn.00405650
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00407070
lea eax, [esi + 0x10]
mov dword [edi + 0x144], eax
jmp 0x4da89b
push dword [eax - 0xc]
lea ecx, [edi + 0x144]
push eax
call fcn.00405730
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x164], 0
movups xmm0, xmmword [ebp + 0x14]
mov ecx, dword [ebp + 0x2c]
movups xmmword [edi + 0x148], xmm0
movq xmm0, qword [ebp + 0x24]
movq qword [edi + 0x158], xmm0
mov dword [edi + 0x160], ecx
jne 0x4da8e5
push 0
push 0
push edi
push 0x4da7a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x164], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4da92b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4da927
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4da927
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4da92b
mov ecx, edx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4dbfd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x30], 8
lea eax, [ecx + 0x1c]
jb 0x4dbfeb
mov eax, dword [eax]
push esi
push eax
lea eax, [ecx + 0x124]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004e16a0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp ecx, 8
jb 0x4dc02c
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.0041fd20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051fefc
mov esp, ebp
pop ebp
ret
Function at 0x4dc3f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x5ca104]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edi
push ecx
lea ecx, [edi + 4]
call fcn.004e0c60
mov ecx, dword [esp + 0x10]
or esi, 0xffffffff
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4dc474
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dc563
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4dc563
push 0
push dword [edx + 4]
call ebx
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 4]
call fcn.004e0d60
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4dc4bf
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dc56c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4dc56c
push 0
push dword [edx + 4]
call ebx
cmp dword [edi + 0x120], 8
lea esi, [edi + 0x10c]
jb 0x4dc4d2
mov eax, dword [esi]
jmp 0x4dc4d4
mov eax, esi
push ecx
push 1
push eax
call fcn.004df230
cmp dword [esi + 0x14], 8
jb 0x4dc4e7
mov eax, dword [esi]
jmp 0x4dc4e9
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x208
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00524040
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4dc510
mov esi, dword [esi]
push esi
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0054159d
add esp, 0xc
lea eax, [esp + 0x18]
push str.setup.config
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [edi + 0x170]
lea eax, [esp + 0x1c]
push dword [esp + 0x18]
push eax
push ecx
lea ecx, [edi + 4]
call fcn.004e9100
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 4
mov ecx, edx
call edi
jmp 0x4dc470
mov ecx, edx
call esi
jmp 0x4dc4bf
Function at 0x4dce10
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588d73
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x4dce5b
mov eax, 0x80004003
jmp 0x4dcf09
push 0xf01ff
push str.ScreenDrv
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4dce86
mov esi, 0x80004005
jmp 0x4dcf07
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x120], esi
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00404e80
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4dcebe
push eax
call fcn.0052ea76
add esp, 4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4dced4
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
push esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
test esi, esi
je 0x4dceec
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
lea ecx, [ebp - 0x14]
test ebx, ebx
mov esi, 0x80004005
cmovne esi, eax
call fcn.00404e00
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret
Function at 0x4e0b30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
push 0
push eax
mov esi, ecx
call fcn.00524040
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x4e0b7d
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4e0b8d
push esi
push 0x5a0e1c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.00524040
add esp, 0xc
mov dword [ebp - 0x84c], 0x44
lea eax, [ebp - 0x85c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x85c], xmm0
push eax
lea eax, [ebp - 0x84c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4e0bf3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0
je 0x4e0c25
push dword [ebp + 0x10]
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x85c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x858]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e1770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5891a3
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x220], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.004e3860
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x4e18b0
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.004e1f90
test eax, eax
je 0x4e18aa
cmp dword [ebp - 0x21c], 0
je 0x4e18aa
mov eax, dword [ebp - 0x220]
mov esi, dword [eax]
mov dword [ebp - 0x224], esi
cmp esi, eax
je 0x4e18b0
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00524040
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call fcn.004e2080
test eax, eax
je 0x4e188d
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.00540fa6
add esp, 8
test eax, eax
jne 0x4e188d
push dword [esi + 0x10]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4e188d
push 0
push esi
call ebx
test eax, eax
je 0x4e188d
push esi
call edi
lea ecx, [ebp - 0x224]
call fcn.0043aa50
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
cmp esi, eax
jne 0x4e1830
jmp 0x4e18b0
mov eax, dword [ebp - 0x220]
push eax
push dword [eax]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.0043ab90
push dword [ebp - 0x220]
call fcn.0051f63e
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e191c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1918
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4e1918
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e191c
mov ecx, edx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 4
Function at 0x4e1f90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x234], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e1ff8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00524040
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4e200c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 4
push ebx
mov ecx, edi
call fcn.0043a840
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
nop word [eax + eax]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4e204f
push dword [ebp - 0x234]
lea eax, [ebp - 0x228]
push eax
push ecx
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.0043b170
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e2020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 4
Function at 0x4e53e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e53f0
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
and eax, 0x80004005
pop ebx
pop ebp
ret

Function at 0x4e5420
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x5ca104]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsDllRepairOfficial_Installer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e546f
xor esi, esi
jmp 0x4e5507
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsDllRepairOfficial_Installer.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4e5507
push 0x80
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00524040
push 0
call fcn.00543278
push edx
push eax
lea eax, [esp + 0x20]
push str._I64d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x28]
add esp, 0x20
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e54d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.Date
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret
Function at 0x4e5530
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x424]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e56c9
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4e5601
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00524040
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x4e5601
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x4e55f8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x4e55d0
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.00524040
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0054159d
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0052478b
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4e5671
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.0052478b
mov esi, eax
add esp, 8
test esi, esi
je 0x4e56c6
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x4e56d9
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e56be
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 8
call fcn.00520060
int3