joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ab9d
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x577698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push str..
push eax
call fcn.004eb87e
pop ecx
pop ecx
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49abf7
xor eax, eax
jmp 0x49ac6d
xor ebx, ebx
inc ebx
cmp word [ebp - 0x43c], 0x2e
jne 0x49ac20
cmp word [ebp - 0x43a], si
je 0x49ac4e
cmp word [ebp - 0x43a], 0x2e
jne 0x49ac20
cmp word [ebp - 0x438], si
je 0x49ac4e
lea eax, [ebp - 0x43c]
push str.desktop.ini
push eax
call fcn.004eb1aa
pop ecx
pop ecx
test eax, eax
jne 0x49ac4e
lea eax, [ebp - 0x43c]
push str..lnk
push eax
call fcn.004eb1aa
pop ecx
pop ecx
test eax, eax
je 0x49ac62
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49abfa
jmp 0x49ac64
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e736b
leave
ret
Function at 0x49fdcb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x582e91
mov esi, 0x4000
push esi
call fcn.004eb416
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49fe77
push esi
push 0
push edi
call fcn.004e7380
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x49fe70
cmp eax, 0x3fff
ja 0x49fe70
push edi
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49fe70
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x53c890
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49fe70
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov ax, word [eax + 0xc]
mov word [edx], cx
mov ecx, dword [ebp + 0x18]
push edi
mov word [ecx], ax
call fcn.004e85e3
xor eax, eax
pop ecx
inc eax
jmp 0x49fe79
push edi
call fcn.004e85e3
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4a1f66
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 8]
push ecx
or ebx, 0xffffffff
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.004a1a4d
test al, al
jne 0x4a1fb4
cmp dword [ebp - 0x14], ebx
je 0x4a210a
cmp dword [ebp - 0x14], 0
je 0x4a210a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a210a
mov eax, dword [esi + 8]
xor edi, edi
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4a1fde
cmp eax, 0xb7
je 0x4a1fde
cmp dword [ebp - 0x14], ebx
je 0x4a210a
cmp dword [ebp - 0x14], edi
jmp 0x4a1fa0
mov esi, dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
push esi
lea edi, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.004a1b35
test al, al
jne 0x4a201d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x4a200b
cmp dword [ebp - 4], 0
je 0x4a200b
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4a210a
cmp dword [ebp - 0x14], 0
jmp 0x4a2103
lea eax, [ebp - 8]
push eax
lea esi, [ebp - 0x14]
call fcn.004a1ac4
mov esi, 0x400
cmp eax, esi
ja 0x4a1ff5
push 0x582e91
xor edi, edi
push esi
mov dword [ebp - 0x18], edi
call fcn.004eb416
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4a20de
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], edi
call fcn.004a1b04
test al, al
je 0x4a20de
mov eax, dword [0x58557c]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
call fcn.004076f4
pop ecx
test al, al
je 0x4a20d6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.004a1bac
test al, al
je 0x4a20d6
lea esi, [ebp - 0x24]
call fcn.004076c6
lea esi, [ebp - 0x1c]
call fcn.004076c6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x4a20c3
cmp dword [ebp - 4], edi
je 0x4a20c3
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4a20d2
cmp dword [ebp - 0x14], edi
je 0x4a20d2
push dword [ebp - 0x14]
call esi
mov al, 1
jmp 0x4a210c
lea esi, [ebp - 0x24]
call fcn.004076c6
lea esi, [ebp - 0x1c]
call fcn.004076c6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x4a20fb
cmp dword [ebp - 4], edi
je 0x4a20fb
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4a210a
cmp dword [ebp - 0x14], edi
je 0x4a210a
push dword [ebp - 0x14]
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a2111
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 8]
push ecx
or ebx, 0xffffffff
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.004a1a4d
test al, al
jne 0x4a215f
cmp dword [ebp - 0x14], ebx
je 0x4a22a4
cmp dword [ebp - 0x14], 0
je 0x4a22a4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a22a4
mov eax, dword [esi]
xor edi, edi
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4a2188
cmp eax, 0xb7
je 0x4a2188
cmp dword [ebp - 0x14], ebx
je 0x4a22a4
cmp dword [ebp - 0x14], edi
jmp 0x4a214b
mov esi, dword [esi + 4]
lea eax, [ebp - 8]
push eax
push esi
lea edi, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.004a1b35
test al, al
jne 0x4a21c7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x4a21b5
cmp dword [ebp - 4], 0
je 0x4a21b5
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4a22a4
cmp dword [ebp - 0x14], 0
jmp 0x4a229d
push 0x582e91
mov esi, 0x800
xor edi, edi
push esi
mov dword [ebp - 0x18], edi
call fcn.004eb416
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4a2278
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], edi
call fcn.004a1b04
test al, al
je 0x4a2278
mov eax, dword [0x58557c]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
call int.00407787
pop ecx
test al, al
je 0x4a2270
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.004a1bac
test al, al
je 0x4a2270
lea esi, [ebp - 0x24]
call fcn.004076c6
lea esi, [ebp - 0x1c]
call fcn.004076c6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x4a225d
cmp dword [ebp - 4], edi
je 0x4a225d
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4a226c
cmp dword [ebp - 0x14], edi
je 0x4a226c
push dword [ebp - 0x14]
call esi
mov al, 1
jmp 0x4a22a6
lea esi, [ebp - 0x24]
call fcn.004076c6
lea esi, [ebp - 0x1c]
call fcn.004076c6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x4a2295
cmp dword [ebp - 4], edi
je 0x4a2295
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4a22a4
cmp dword [ebp - 0x14], edi
je 0x4a22a4
push dword [ebp - 0x14]
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a22ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x10]
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x4a22d5
cmp eax, edi
je 0x4a22d5
cmp dword [esi + 4], edi
je 0x4a22d5
mov eax, esi
call fcn.0040ea97
test al, al
jne 0x4a231e
lea eax, [ebp + 8]
push eax
push edi
push ebx
push 0x4a24b2
push edi
push edi
mov dword [ebp + 8], edi
call fcn.004eb0fa
add esp, 0x18
cmp eax, edi
jne 0x4a22f5
xor al, al
jmp 0x4a2320
mov edi, dword [ebp + 8]
lea edx, [ebp - 4]
mov ecx, eax
cmp edx, esi
je 0x4a2305
mov ecx, dword [esi]
mov dword [esi], eax
cmp ecx, 0xffffffff
je 0x4a2315
test ecx, ecx
je 0x4a2315
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0x1c
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a240d
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x51ffae
call fcn.004f215e
mov eax, dword [0x582d44]
mov ecx, 0x582d44
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x52f388
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsopera.exe
push reloc.OLEAUT32.dll_SysReAllocString
xor ecx, ecx
call fcn.00424efd
mov esi, dword [ebp - 0x10]
add esp, 0x10
test al, al
jne 0x4a2466
xor bl, bl
lea eax, [esi - 0x10]
call fcn.0040557a
mov al, bl
call fcn.004f2236
ret
push 0x22
pop eax
cmp ax, word [esi]
jne 0x4a249e
mov eax, dword [esi - 0xc]
cmp eax, 3
jl 0x4a249e
lea edi, [eax - 2]
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x14]
call fcn.00417278
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [edi - 0x10]
setne bl
call fcn.0040557a
jmp 0x4a24aa
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
test bl, bl
je 0x4a2454
mov bl, 1
jmp 0x4a2456
Function at 0x4a3197
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x577698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov eax, dword [edi + 0x60]
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
cmp eax, ebx
je 0x4a31c6
push ecx
call eax
jmp 0x4a32a8
cmp dword [edi + 0x5c], ebx
jne 0x4a3210
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004e7380
add esp, 0xc
push str.safemon360hipsPopWnd.dll
push 0x585d80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x210]
push eax
call fcn.004426d5
pop ecx
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x5c]
cmp eax, ebx
je 0x4a32a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateTrayClient
push eax
call esi
push str.SetStatSender
push dword [edi + 0x5c]
mov dword [ebp - 0x214], eax
call esi
cmp eax, ebx
je 0x4a3244
push 0x4a3b80
call eax
push str.SetSpecialLogSender2
push dword [edi + 0x5c]
call esi
cmp eax, ebx
je 0x4a3259
push 0x4a2f7a
call eax
cmp dword [ebp - 0x214], ebx
je 0x4a32be
cmp dword [edi + 0x70], ebx
jne 0x4a32be
lea eax, [ebp - 0x218]
push eax
push 1
mov dword [ebp - 0x218], ebx
call dword [ebp - 0x214]
cmp eax, ebx
je 0x4a32be
mov edx, dword [eax]
lea ecx, [ebp - 0x214]
push ecx
push dword [edi + 0x6c]
mov ecx, eax
mov dword [ebp - 0x214], ebx
call dword [edx + 8]
test eax, eax
jne 0x4a32b7
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x5c], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e736b
leave
ret
mov dword [edi + 0x70], 1
push str.Hips_SetProperty
push dword [edi + 0x5c]
call esi
mov dword [edi + 0x68], eax
cmp eax, ebx
je 0x4a3304
push ebx
push ecx
call fcn.00408c5f
add esp, 4
call fcn.004707db
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0x218], al
mov eax, 0x585d80
call fcn.00443792
movzx eax, al
push eax
push dword [ebp - 0x218]
call fcn.004a35e4
push str.Hips_CreateNotifyWnd
push dword [edi + 0x5c]
call esi
mov dword [edi + 0x60], eax
cmp eax, ebx
je 0x4a32a6
push dword [ebp - 0x21c]
jmp 0x4a31bf
Function at 0x4a4509
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea esi, [edi + 0x30]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4a4559
lea ebx, [edi + 0x2c]
cmp dword [0x580680], eax
jne 0x4a4531
and dword [0x580680], eax
lea eax, [ebx + 0x20]
push eax
push 0x580650
call fcn.0042a738
movzx eax, ax
push eax
xor eax, eax
push eax
push 0x88
push 0x8600c200
push eax
push eax
push eax
push ebx
call fcn.004a1842
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a45cd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
push edi
call fcn.004a468a
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x24]
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call fcn.0046e56f
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
push 0x10
sub eax, edx
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x10]
call fcn.004463ee
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
leave
ret

Function at 0x4a501c
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x523d4e
call fcn.004f215e
push 0x585190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x57a2b0], eax
call esi
push 0x582e91
push 0x20
mov dword [0x57a074], eax
call fcn.004eb6e3
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4a5073
mov esi, eax
call fcn.004a530c
jmp 0x4a5075
xor eax, eax
mov dword [0x585704], eax
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push 0x4a4c0e
push ebx
push ebx
mov dword [ebp - 0x10], ebx
call fcn.004eb0fa
add esp, 0x18
mov dword [0x57a2b4], eax
cmp eax, 0xffffffff
je 0x4a50c1
cmp dword [0x57a2b0], 0xffffffff
je 0x4a50c1
cmp dword [0x57a074], 0xffffffff
je 0x4a50c1
xor eax, eax
mov byte [0x5856ce], 1
mov byte [0x5856cd], bl
inc eax
jmp 0x4a50c3
xor eax, eax
call fcn.004f2236
ret

Function at 0x4a5680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Start
push 0x549ee0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], 2
sete al
leave
ret
Function at 0x4a5f00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514651
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.00504570
push ebx
push esi
push edi
mov eax, dword [0x577698]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 4], 0
push 0x54a010
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.0042450a
or esi, 0xffffffff
cmp eax, esi
jne 0x4a5f68
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4a5f49
mov edi, dword [ebp - 0x10]
shr edi, 2
xor esi, esi
test edi, edi
jbe 0x4a5fb8
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.0040499b
add eax, 0x10
mov dword [ebx], eax
push dword [ebp + esi*4 - 0x1014]
call fcn.004a6079
test eax, eax
jne 0x4a5fbd
inc esi
cmp esi, edi
jb 0x4a5f8d
or esi, 0xffffffff
jmp 0x4a5f49
mov esi, dword [ebp + esi*4 - 0x1014]
jmp 0x4a5f49

Function at 0x4a5fc6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x577698]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x4a605c
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004e7380
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4a6049
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x228]
je 0x4a603c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004ead89
pop ecx
pop ecx
test eax, eax
je 0x4a604f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a601c
jmp 0x4a6055
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040557a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e736b
leave
ret 8
Function at 0x4a6079
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1214
call fcn.00504570
mov eax, dword [0x577698]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4a60c7
xor esi, esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040557a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e736b
leave
ret 8
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004e7380
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x1000
lea eax, [ebp - 0x1214]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4a6166
xor esi, esi
test dword [ebp - 0x214], 0xfffffffc
jbe 0x4a6166
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004e7380
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1214]
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4a6158
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
call fcn.004ead89
pop ecx
pop ecx
test eax, eax
je 0x4a6172
mov eax, dword [ebp - 0x214]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4a6110
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a60a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x4a60aa

Function at 0x4a6206
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x4a6225
push str.GlobalSystem_ShutDown_Continue
push edi
push edi
push edi
call ebx
mov dword [esi + 4], eax
cmp dword [esi + 8], edi
jne 0x4a6237
push str.GlobalSystem_ShutDown_Cancel
push edi
push edi
push edi
call ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x406
cmp dword [esi + 0xc], edi
jne 0x4a6264
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4a61f3
push edi
push edi
mov dword [ebp + 8], edi
call fcn.004eb0fa
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret 4
Function at 0x4a642b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x280
mov eax, 0x520e9d
call fcn.004f21c7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x22c]
call fcn.00405fd8
lea ecx, [ebp - 0x220]
push str.LeakFixHelper64.exe
xor ebx, ebx
push ecx
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.0040603b
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.0040557a
push dword [ebp - 0x220]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4a6614
push dword [ebp - 0x220]
call fcn.00405f50
pop ecx
test eax, eax
je 0x4a6614
lea eax, [ebp - 0x228]
call fcn.00405fd8
lea ecx, [ebp - 0x224]
push str.LeakFixHelper64.dll
push ecx
mov edi, eax
mov byte [ebp - 4], 3
call fcn.0040603b
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.0040557a
push dword [ebp - 0x224]
call esi
test eax, eax
je 0x4a662e
push dword [ebp - 0x224]
call fcn.00405f50
pop ecx
test eax, eax
je 0x4a662e
push 0x40
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.004e7380
xor eax, eax
mov dword [ebp - 0x240], ebx
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
mov dword [ebp - 0x28c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 5
pop eax
mov word [ebp - 0x25c], ax
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor edi, edi
lea eax, [ebp - 0x21a]
push ebx
inc edi
push eax
mov dword [ebp - 0x260], edi
call fcn.004e7380
add esp, 0xc
push 0x52f388
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push str.__s___s
push 0x103
push eax
call fcn.004ef4ec
add esp, 0x14
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a6606
push 0x3e8
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x240]
call esi
xor esi, esi
push str.GlobalSystem_ShutDown_Notify
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
cmp eax, ebx
jne 0x4a662c
push 0x64
call sub.KERNEL32.dll_Sleep
inc esi
cmp esi, 0xa
jl 0x4a65dc
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040557a
xor eax, eax
call fcn.004f224a
ret 4
mov ebx, edi
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, ebx
jmp 0x4a6624
Function at 0x4a664e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4a666f
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4a666b
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
sbb eax, eax
neg eax
leave
ret