joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e97
Capabilities:
Create directory
Create thread
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41e45c], 0
jne 0x402fee
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x404]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x404]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x402fec
push 0x413500
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x413504
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x404]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x404]
mov edi, 0x80
push esi
push edi
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41e49c], eax
cmp eax, 0xffffffff
je 0x402f6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x41e49c], 0xffffffff
push esi
push edi
push 3
push esi
push 3
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41e49c], eax
cmp eax, 0xffffffff
je 0x402fec
push esi
push 0x7fffffff
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push esi
xor edi, edi
mov dword [0x41e490], eax
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41e494], eax
cmp dword [0x41e490], esi
je 0x402fec
test eax, eax
je 0x402fec
push esi
push 4
push 0x41c4c0
push 0x4030a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41e498], eax
test eax, eax
je 0x402fec
push eax
mov dword [0x41e45c], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d350
leave
ret
Function at 0x4030b7
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x40e93d
call fcn.0040e648
mov edi, ecx
mov eax, dword [edi + 0x1fd0]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x1fd4]
push 0xffffffffffffffff
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4031e0
lea eax, [edi + 0x1fa0]
lea ebx, [edi + 0x1fb8]
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ecx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp eax, ebx
je 0x40313a
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], esi
mov dword [ebx], edx
mov dword [ebp - 0x34], ecx
mov dword [ebx + 4], edx
mov dword [ebp - 0x30], eax
mov dword [ebx + 8], edx
mov dword [ebp - 0x2c], ecx
lea eax, [edi + 0x1fa0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [ebp - 0x34]
je 0x4031b6
mov ebx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0
mov edx, esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.004042d8
pop ecx
push 2
push 0
push 0
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x28]
call fcn.00403d29
add esi, 0x18
cmp esi, ebx
jne 0x40314f
lea ebx, [edi + 0x1fb8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403cae
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
lea eax, [edi + 0x1fa0]
je 0x4030fb
xor eax, eax
call fcn.0040e603
ret
Function at 0x403546
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov edx, dword [ebp + 0xc]
test ecx, ecx
je 0x403628
mov eax, 0xd0
test edx, edx
push esi
push edi
lea esi, [eax - 0x10]
cmove eax, esi
mov edi, dword [eax + ecx]
test edi, edi
je 0x403626
cmp dword [eax + ecx + 4], 0
je 0x403626
cmp edi, dword [ebp + 8]
jae 0x403626
test edx, edx
jne 0x403590
mov edi, dword [edi + ebx + 0xc]
jmp 0x403594
mov edi, dword [edi + ebx + 0x18]
test edi, edi
je 0x403626
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.004034df
add esp, 4
test eax, eax
je 0x403626
jmp 0x40360f
push dword [ebp + 8]
mov edx, ebx
mov ecx, esi
call fcn.004034df
add esp, 4
test eax, eax
je 0x403615
call fcn.004034fc
test eax, eax
je 0x403615
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 0xc], 0
je 0x4035eb
mov byte [esi], 0xc3
jmp 0x4035fc
mov ax, word [0x41c034]
mov word [esi], ax
mov al, byte [0x41c036]
mov byte [esi + 2], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 4
mov esi, dword [edi]
test esi, esi
jne 0x4035b1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408326
Capabilities:
Create process on windows

Disassembly:
push 0x94
mov eax, 0x40fa27
call fcn.0040e648
mov esi, ecx
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_void_]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::MakeLower_void_]
call fcn.0040b69e
test al, al
je 0x4083e2
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.004080f4
test eax, eax
je 0x4083e2
lea ecx, [ebp - 0x48]
call fcn.00408273
test eax, eax
je 0x4083e2
push 0x44
pop edi
push edi
lea eax, [ebp - 0xa0]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0xa0], edi
xor eax, eax
lea edi, [ebp - 0x58]
add esp, 0xc
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__void_const]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4083d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4083e2
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
call fcn.0040e603
ret
Function at 0x409a97
Capabilities:
Enumerate processes

Disassembly:
push 0x294
mov eax, 0x40e715
call fcn.0040e648
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.004043f2
xor ebx, ebx
mov dword [esi + 4], esi
push ebx
mov dword [esi], esi
mov dword [esi + 8], esi
push 2
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409ad7
xor eax, eax
jmp 0x409bcb
push 0x228
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
add esp, 0xc
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x288]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x409bb1
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x28c], ebx
push eax
mov ecx, edi
call fcn.00404b13
mov eax, dword [ebp - 0x290]
cmp byte [eax + 0xd], 0
jne 0x409b52
cmp ebx, dword [eax + 0x10]
jb 0x409b52
cmp eax, dword [edi]
jne 0x409b54
xor ebx, ebx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x30]
push eax
mov edx, ebx
call fcn.0040995f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.00403d87
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.00404ec9
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00403d29
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409b1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00403d29
xor eax, eax
inc eax
call fcn.0040e603
ret

Function at 0x409e2b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x409e3c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409e57
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409e57
mov edx, 0x410
xor ecx, ecx
and eax, edx
inc ecx
cmp eax, edx
cmove esi, ecx
mov eax, esi
pop esi
ret
Function at 0x409e5b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x408]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x41e4dc], esi
je 0x409e9a
mov eax, dword [0x41c040]
jmp 0x409f46
push esi
push 0x1a
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x409f21
push 0x413500
lea eax, [ebp - 0x408]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x413504
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x408]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41c038], eax
call fcn.00402144
xor edi, edi
inc edi
test eax, eax
je 0x409f38
call fcn.00409da1
test eax, eax
je 0x409f38
mov esi, edi
mov dword [0x41c040], esi
mov eax, esi
mov dword [0x41e4dc], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d350
leave
ret

Function at 0x409f54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x409fa7
mov eax, dword [0x41c038]
cmp eax, 0xffffffff
je 0x409fa7
push edi
xor edi, edi
push 2
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x409f7f
sub ecx, edx
lea eax, [ebp - 4]
push edi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [0x41c038]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
jmp 0x409fa9
xor eax, eax
pop esi
leave
ret
Function at 0x40a69b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
xor esi, esi
lea eax, [ebp - 0x808]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a710
push 0x4134c4
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x80c]
mov dword [ebp - 0x80c], esi
lea ecx, [ebp - 0x808]
call fcn.00409fac
test eax, eax
jne 0x40a710
cmp dword [ebp - 0x80c], esi
jne 0x40a713
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d350
leave
ret
Function at 0x40ace3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40ad85
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, ebx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push dword [esi + 0x414fc0]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40ad7d
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ad3f
sub ecx, edx
je 0x40ad7d
cmp byte [ebp + ecx - 0x405], 0x5c
jne 0x40ad67
lea eax, [ecx - 1]
mov ecx, eax
cmp eax, 0x400
jae 0x40ad9b
mov byte [ebp + eax - 0x404], bl
push ecx
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x40ad96
add esi, 4
cmp esi, 8
jb 0x40ad1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d350
leave
ret
xor eax, eax
inc eax
jmp 0x40ad87
call fcn.0040d960
int3

Function at 0x40b074
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0xc30], esi
je 0x40b0a6
cmp dword [edi + 0xc34], esi
je 0x40b0a6
xor eax, eax
inc eax
jmp 0x40b1d5
cmp dword [ebp + 8], esi
jne 0x40b0b2
xor eax, eax
jmp 0x40b1d5
push 0x410
lea eax, [ebp - 0x418]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
push dword [ebp + 8]
mov edx, 0x82
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040adfa
mov ebx, 0x104
lea ecx, [ebp - 0x418]
push 0x414594
mov edx, ebx
call fcn.0040ada1
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x40b11a
push str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x410
lea eax, [ebp - 0x828]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x418]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x828]
call fcn.0040adfa
push str.ucrtbase.dll
mov edx, ebx
lea ecx, [ebp - 0x828]
call fcn.0040ada1
push 8
push esi
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push str.CptShare.dll
mov edx, ebx
lea ecx, [ebp - 0x418]
call fcn.0040ada1
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040aeb4
mov ecx, eax
lea eax, [edi + 0xc34]
mov dword [edi + 0xc30], ecx
mov dword [eax], esi
test ecx, ecx
je 0x40b1c4
push str.cpt_create_helper
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [edi + 0xc34]
test ebx, ebx
je 0x40b1c4
push eax
mov ecx, ebx
call dword [0x411650]
call ebx
pop ecx
lea eax, [edi + 0xc34]
cmp dword [edi + 0xc30], esi
je 0x40b1d3
cmp dword [eax], esi
je 0x40b1d3
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d350
leave
ret 8
Function at 0x40b1e6
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40b2aa
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b20d
sub ecx, edx
sar ecx, 1
je 0x40b2aa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b2aa
push 0x410
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push edi
push 0x411cb4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b29e
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b2aa
lea esi, [ebp - 0x414]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40b2ad
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d350
leave
ret 4
Function at 0x40b540
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x40fe00
call fcn.0040e648
push ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push 0x414594
mov dword [ebp - 4], ebx
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push str.Installer.exe
lea ecx, [ebp - 0x64]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
push str._upgrade
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
call dword [sym.imp.Cmmlib.dll_public:_static_class_Cmm::CommandLine____cdecl_Cmm::CommandLine::ForCurrentProcess_void_]
mov esi, eax
test esi, esi
je 0x40b5c7
push str.___prevParam
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push esi
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
call fcn.004010b0
test eax, eax
jne 0x40b5e8
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push ebx
xor edx, edx
mov ecx, eax
call fcn.0040180c
pop ecx
test eax, eax
je 0x40b60f
push 1
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__void_const]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, ebx
call fcn.0040e603
ret
Function at 0x40b629
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40b68e
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.0040d350
leave
ret

Function at 0x40b69e
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0xf01ff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b6cb
xor al, al
jmp 0x40b742
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x12
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0xc], 3
jne 0x40b711
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40b720
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jmp 0x40b723
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40b737
call fcn.0040b629
push dword [ebp - 4]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret