joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423fdb
Capabilities:
Acquire debug privileges

Disassembly:
push 0x28
push 0x50c7a0
call fcn.004dfae8
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x424060
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x424060
xor edi, edi
inc edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x424060
mov dword [ebp - 0x20], edi
or dword [ebp - 4], 0xffffffff
call fcn.00424074
mov eax, dword [ebp - 0x20]
call fcn.004dfb23
ret

Function at 0x4240d2
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42413f
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x42413f
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x42413f
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp dword [ebp - 4], esi
je 0x42414d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
leave
ret
Function at 0x4244ae
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
je 0x4244cd
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov edi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.KillProcessByPid_TerminateProcess_return:_d__error:_d__pid:_d
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0x10
mov eax, edi
pop edi
pop esi
ret
Function at 0x424c8f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x51bfcc], 1
jne 0x424cc8
mov eax, dword [0x519a54]
or dword [0x51bfcc], 1
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
push 0x4e31ce
mov dword [0x51bfc8], eax
call fcn.00494b1f
pop ecx
mov eax, dword [0x51bfc8]
cmp dword [eax - 0xc], 0
jne 0x424d12
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x424d0d
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x51bfc8
push esi
call fcn.00401b70
call fcn.00423728
push str.drivers_
push esi
call fcn.0040554e
pop esi
mov eax, dword [0x51bfc8]
add eax, 0xfffffff0
call fcn.00401667
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x424f23
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
mov word [ebp - 0x218], si
call fcn.004923b0
add esp, 0xc
push esi
push esi
push 3
push esi
push 1
push esi
push str..KAVBase
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x424f7e
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push 0x830020e0
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push str.SYSTEMCurrentControlSet_serviceskavbase
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00425211
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push str.system32driversKAVBase.sys
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp edi, 0xffffffff
je 0x424fda
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x4250c3
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.004923b0
push str.ALLUSERSPROFILE
call fcn.00494ff8
add esp, 0x10
push eax
call fcn.0040104b
cmp dword [esi + 0x14], edi
jne 0x425135
push edi
push 0x23
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push eax
call fcn.004926b1
pop ecx
lea ecx, [ebp - 0x208]
call fcn.004011e2
cmp dword [esi + 0x14], edi
je 0x4251bb
mov eax, dword [esi + 0x14]
push ebx
lea ebx, [eax - 1]
cmp eax, ebx
ja 0x425145
call fcn.00491351
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x425152
mov eax, dword [edi]
jmp 0x425154
mov eax, edi
movzx eax, word [eax + ebx*2]
cmp ax, 0x5c
je 0x42516f
cmp ax, 0x2f
je 0x42516f
push 0x4efd98
push esi
call fcn.00401061
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp al, 5
jne 0x42519e
mov ebx, str.Application_Data
push ebx
call fcn.004926b1
pop ecx
push eax
push ebx
mov eax, esi
call fcn.0042982d
cmp eax, 0xffffffff
jne 0x42519e
push str.Application_Data_
push esi
call fcn.00401061
push str.kingsoftkis_
push esi
call fcn.00401061
cmp dword [esi + 0x18], 8
pop ebx
jb 0x4251b2
mov edi, dword [edi]
push edi
call fcn.00423928
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x425211
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x425297
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42525c
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call fcn.00425211
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x42529d
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x200
call edi
test eax, eax
je 0x425244
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x425297
Function at 0x4252ad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.004923b0
add esp, 0xc
mov ecx, 0x519a54
call fcn.004016bf
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x425332
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00401b70
push str.kantivirus_
push esi
call fcn.0040554e
push dword [esi]
call fcn.00423928
mov dword [esp], str.kavsetup.log
push esi
call fcn.0040554e
jmp 0x425337
call fcn.004015eb
mov eax, esi
pop esi
leave
ret

Function at 0x42533c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00401e81
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4253e9
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4253e8
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call fcn.00401ee0
mov esi, eax
mov dword [ebp - 8], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4253e8
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4253e8
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x425399
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x4253d3
xor eax, eax
jmp 0x4253da
push eax
call fcn.00494970
pop ecx
mov edx, esi
call fcn.00401ec0
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x425b22
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x425b44
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
leave
ret
mov dword [ebp - 4], 0x110
call fcn.004433e6
cmp eax, 8
jne 0x425b66
call fcn.0044373e
cmp eax, 2
jne 0x425b66
mov dword [ebp - 4], 0x10
push ebx
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x425c03
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
cmp eax, 0x431
je 0x425bb2
call ebx
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop ebx
jmp 0x425b41
push 2
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x425b9f
push dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x425c03
call ebx
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425a35
add esp, 0x18
jmp 0x425ba1
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x425c1f
cmp word [eax], si
je 0x425c1f
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x425ba3
Function at 0x425c2b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push str.CreateShellLink_start...
mov esi, 0x51b95c
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0044cc8c
pop ecx
lea eax, [ebp - 4]
push eax
push 0x4e494c
push 1
push edi
push 0x4e495c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jl 0x425cff
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x425c8f
cmp word [eax], di
je 0x425c8f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4e496c
push eax
call dword [ecx]
test eax, eax
jl 0x425ced
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
call fcn.004019de
lea eax, [ebp - 0xc]
call fcn.0042376c
mov edi, dword [ebp - 0xc]
push edi
call fcn.00423928
pop ecx
lea eax, [edi - 0x10]
call fcn.0040153b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
test ebx, ebx
setge al
mov edi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push str.CreateShellLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.0044cc8c
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425d1d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x519a54]
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x51b6f4]
add eax, 0xfffffff0
call fcn.00401667
mov esi, eax
add esi, 0x10
lea eax, [ebp - 0xc]
lea edi, [ebp - 4]
mov dword [ebp - 0xc], esi
call fcn.0040208c
lea eax, [esi - 0x10]
call fcn.0040153b
push str.kavmenu.dll
mov eax, edi
push eax
call fcn.0040554e
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425db3
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x425db3
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
test edi, edi
je 0x425db3
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebx - 0x10]
call fcn.0040153b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425e0a
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.0049130d
mov edi, eax
test edi, edi
pop ecx
je 0x425e57
push dword [ebp - 4]
push 0
push edi
call fcn.004923b0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x425e5d
push edi
call fcn.0049242a
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x425e20
test esi, esi
jne 0x425ea4
test edi, edi
mov esi, edi
je 0x425eaf
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0049814c
add esp, 0xc
test eax, eax
jne 0x425e89
mov esi, dword [esi]
test esi, esi
jne 0x425e67
jmp 0x425ea4
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.00492ac0
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x425eaf
push edi
call fcn.0049242a
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425f91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.004923b0
add esp, 0xc
mov ecx, 0x519a54
call fcn.004016bf
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x42600a
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00401b70
push str.kantivirusTemp_
push esi
call fcn.0040554e
push dword [esi]
call fcn.00423928
pop ecx
jmp 0x42600f
call fcn.004015eb
mov eax, esi
pop esi
leave
ret

Function at 0x4261a1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
push str.2012.sp3.0
mov eax, ebx
call fcn.004019de
and word [ebp - 0x210], 0
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.004923b0
mov eax, dword [0x51b6f4]
add eax, 0xfffffff0
call fcn.00401667
lea esi, [eax + 0x10]
push 0x4ecb24
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
call fcn.0041e7cc
add esp, 0x10
push dword [eax]
lea eax, [ebp - 0x210]
push 0x208
push eax
push str.2012.3.0
push str.Version
push 0x4ec858
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [esi - 0x10]
call fcn.0040153b
test edi, edi
pop edi
pop esi
jle 0x426244
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.00401b70
mov eax, ebx
call fcn.004053c9
push 0x4f6898
push 0x4ecb60
push ebx
call fcn.00405254
mov eax, ebx
leave
ret
Function at 0x42625f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x27c]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x280], edi
call fcn.004923b0
mov eax, dword [0x519a54]
add esp, 0xc
mov ecx, 0x519a54
call dword [eax + 0xc]
mov ebx, eax
add ebx, 0x10
lea esi, [ebp - 0x4c]
mov dword [ebp - 8], ebx
call fcn.0044c626
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x426400
lea eax, [ebp - 0x280]
push eax
push esi
mov dword [ebp - 0x280], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4263f9
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebp - 0x18]
je 0x4263de
cmp eax, edi
je 0x4263de
cmp eax, 4
je 0x4263de
lea eax, [ebp - 0x25c]
push str.LdTermDaemon.exe
push eax
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
jne 0x4263de
push dword [ebp - 0x278]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0044c66d
lea edi, [ebp - 8]
call fcn.0040208c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
je 0x4263de
mov eax, edi
call fcn.0042376c
xor edi, edi
inc edi
or dword [ebp - 4], edi
push str.LdTerm.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.0041e7cc
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0049472d
test eax, eax
pop ecx
pop ecx
jne 0x4263ab
or dword [ebp - 4], 2
push str.LdxManager.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0041e7cc
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0049472d
test eax, eax
pop ecx
pop ecx
jne 0x4263ab
mov bl, 1
jmp 0x4263ad
xor bl, bl
test byte [ebp - 4], 2
je 0x4263c2
mov eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040153b
test byte [ebp - 4], 1
je 0x4263d7
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040153b
test bl, bl
mov ebx, dword [ebp - 8]
jne 0x4263f6
lea eax, [ebp - 0x280]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x4263f9
xor edi, edi
jmp 0x4262e6
mov dword [ebp - 0xc], edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edi, [ebp - 0x4c]
call fcn.0044c65b
lea eax, [ebx - 0x10]
call fcn.0040153b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42663f
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor edi, edi
push edi
xor esi, esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.004923b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
call fcn.004926b1
test eax, eax
pop ecx
je 0x426738
mov eax, dword [0x519a54]
mov edi, 0x519a54
push ebx
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x4f6bbc
lea eax, [ebp - 0x218]
push eax
mov esi, str._s_s.lnk
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e7b9
mov eax, dword [0x519a54]
add esp, 0x10
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x4f6be0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041e7b9
mov edi, dword [ebp - 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push edi
call esi
test eax, eax
mov ebx, dword [ebp - 0x10]
jne 0x426722
push ebx
call esi
test eax, eax
jne 0x426722
xor esi, esi
jmp 0x426725
xor esi, esi
inc esi
lea eax, [ebx - 0x10]
call fcn.0040153b
lea eax, [edi - 0x10]
call fcn.0040153b
xor edi, edi
pop ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x426755
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x426768
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x426e99
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x426fcb
push 0x21a
lea eax, [esp + 0x46e]
push esi
push eax
mov word [esp + 0x474], si
call fcn.004923b0
push dword [ebp + 8]
lea eax, [esp + 0x478]
push 0x4f6c88
push eax
call fcn.0042c6c2
push 0x24c
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x34], esi
call fcn.004923b0
add esp, 0x24
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x426fcb
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
test eax, eax
je 0x426fc1
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x3c]
push 0x4ecaf0
push eax
call fcn.00494674
test eax, eax
pop ecx
pop ecx
je 0x426fae
lea eax, [esp + 0x3c]
push 0x4efa44
push eax
call fcn.00494674
test eax, eax
pop ecx
pop ecx
je 0x426fae
test byte [esp + 0x10], 0x10
je 0x426fac
push 0x206
lea eax, [esp + 0x266]
push esi
push eax
mov word [esp + 0x26c], si
call fcn.004923b0
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x274]
push 0x4efa4c
push eax
call fcn.0042c6dd
lea eax, [esp + 0x27c]
push ebx
push eax
call fcn.00426e99
add esp, 0x24
jmp 0x426fae
inc dword [ebx]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call edi
test eax, eax
jne 0x426f33
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret