joyce8/EMBER2024-capa huggingface dataset:
Function at 0x23a0fb90
Capabilities:
Get token membership

Disassembly:
push 0xffffffffffffffff
push 0x23bced40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.Setup.exe_void___cdecl_logError_char_const__]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebx
jne 0x23a0fbe7
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x23c41734
call ebp
add esp, 8
cmp esi, ebx
pop esi
jne 0x23a0fc59
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x23a0fc6d
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], bl
cmp eax, ebx
je 0x23a0fc30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x23a0fc2c
push eax
push str.RegCloseKey___failed_with_0x_08X_error
call ebp
add esp, 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], 0xffffffff
cmp edi, ebx
je 0x23a0fc59
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x23a0fc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CloseServiceHandle_m_hServiceManager__0x_08X__failed_with_0x_08X_error
call ebp
add esp, 0xc
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x23a0fcdb
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.23a0fa90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.23a0c530
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x23a0fcf8
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
setne byte [esp + 0xf]
mov byte [esp + 0x30], bl
call fcn.23a0fa90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.23a0c530
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0xf]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x23a0fd40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x23bced60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov dword [esp + 4], 0
mov eax, dword [0x23c7a190]
mov eax, dword [eax + 0x48]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x23a0fdfc
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x10]
call fcn.23a05090
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.23a05300
mov eax, dword [esp + 4]
push 0x30
lea edx, [esp + 0x30]
push edx
push 3
push esi
push str.AEDK
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x64], 0xffffffff
test eax, eax
je 0x23a0fe26
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x23a0fe26
push eax
push str.RegCloseKey___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 4

Function at 0x23a112a0
Capabilities:
Move file

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [ebp]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
lea esp, [esp]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp]
test edi, edi
je 0x23a112ce
cmp edi, eax
je 0x23a112d3
call fcn.23a49e3d
cmp esi, ebx
je 0x23a11364
test edi, edi
jne 0x23a1132d
call fcn.23a49e3d
cmp esi, dword [edi + 0x18]
jne 0x23a112ee
call fcn.23a49e3d
mov eax, dword [esi + 0x2c]
cmp dword [eax - 0xc], 0
je 0x23a1134e
mov ecx, dword [esi + 0x28]
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x23a11331
mov ecx, dword [esi + 0x2c]
mov edi, dword [sym.Setup.exe_void___cdecl_logInformation_wchar_t_const__]
push ecx
push str.Temporary_file:__s
call edi
mov edx, dword [esi + 0x28]
push edx
push str.scheduled_to_replace_file:__s
call edi
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
jmp 0x23a1134b
mov edi, dword [edi]
jmp 0x23a112e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
push eax
push ecx
push edx
push str.MoveFileEx___s_____s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.23a0ffd0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x23a112c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x23a11770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [ecx]
push 4
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x23a117b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1
push str.d:_builds_temporary_activitymon20_sources_actbasic_advapi.h
lea ecx, [esp + 0x10]
call fcn.23a01270
push 0x23c614bc
lea ecx, [esp + 8]
push ecx
call fcn.23a49c94
add esp, 0x2c
ret 4
Function at 0x23a11960
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x23bcede8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebp
push edi
mov edi, dword [esp + 0x7c]
mov eax, dword [edi + 0x14]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x23a1199d
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 4
push ebx
push esi
push eax
call fcn.23a05830
mov eax, 7
xor ebx, ebx
xor ecx, ecx
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
xor edx, edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 1
call fcn.23a01000
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x84], 2
call fcn.23a03ac0
add esp, 8
cmp dword [esp + 0x70], 0x10
mov byte [esp + 0x7c], 1
jb 0x23a11a19
mov eax, dword [esp + 0x5c]
push eax
call fcn.23a2ed1b
add esp, 4
mov eax, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x23a11a2c
lea eax, [esp + 0x40]
mov ecx, dword [ebp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.23a034b0
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x23a11a48
lea eax, [esp + 0x24]
push eax
push str.Closed:__s
call dword [0x23c41f20]
mov eax, dword [esp + 0x2c]
add esp, 8
cmp dword [esp + 0x38], esi
jae 0x23a11a65
lea eax, [esp + 0x24]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x23a11ac7
movzx eax, word [edi + 0x1a]
movzx ecx, word [edi + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x23a11ac0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x23a11ac0
lea ecx, [esp + 0x10]
push ecx
push ebx
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [edi + 0x1c]
and eax, 0x26
cmp dword [ebp + 0x30], 2
jne 0x23a11ad7
or eax, 2
mov ecx, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x23a11aea
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x54], esi
jb 0x23a11b05
mov eax, dword [esp + 0x40]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x38], esi
pop esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], cx
pop ebx
jb 0x23a11b2d
mov edx, dword [esp + 0x1c]
push edx
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x70
ret 4
Function at 0x23a12500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0xc]
push edx
push 0
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x23a12607
push ebp
mov ebp, dword [esp + 4]
shr ebp, 1
jne 0x23a12545
mov ecx, dword [esp + 0x18]
call fcn.23a02410
xor eax, eax
pop ebp
add esp, 0xc
ret 8
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp ebp, eax
ja 0x23a1255d
push 0xffffffffffffffff
push ebp
call fcn.23a029c0
jmp 0x23a12569
mov edx, ebp
push 0
sub edx, eax
push edx
call fcn.23a02550
mov ecx, dword [esi + 0x18]
push ebx
push edi
lea edi, [esi + 4]
cmp ecx, 8
jb 0x23a1257a
mov ebx, dword [edi]
jmp 0x23a1257c
mov ebx, edi
test ebx, ebx
je 0x23a125a4
cmp ecx, 8
jb 0x23a12589
mov eax, dword [edi]
jmp 0x23a1258b
mov eax, edi
cmp eax, ebx
ja 0x23a125a4
cmp ecx, 8
jb 0x23a12598
mov eax, dword [edi]
jmp 0x23a1259a
mov eax, edi
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebx, edx
jbe 0x23a125a9
call fcn.23a49e3d
cmp esi, 0xfffffffc
je 0x23a125c5
cmp dword [esi + 0x18], 8
jb 0x23a125b6
mov edi, dword [edi]
mov eax, dword [esi + 0x14]
lea ecx, [edi + eax*2]
cmp ebx, ecx
jb 0x23a125c5
call fcn.23a49e3d
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x23a12603
lea edi, [ebp - 1]
push edi
mov ecx, esi
call fcn.23a024e0
cmp word [eax], 0
jne 0x23a12601
push edi
mov ecx, esi
call fcn.23a02520
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 8
Function at 0x23a13800
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x23bcee58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, dword [0x23c7a190]
lea eax, [esi + 0x24]
mov dword [ecx + 0x24], 5
add ecx, 0x28
push eax
call fcn.23a11600
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 8]
call fcn.23a01070
mov esi, dword [esi + 0x40]
mov eax, esi
mov dword [esp + 0x28], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x23a13850
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xc]
call fcn.23a028a0
cmp dword [esp + 0x1c], 8
mov esi, dword [esp + 8]
jae 0x23a13879
lea esi, [esp + 8]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x23a13899
push eax
push esi
push str.SHDeleteKey___s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0xc
cmp dword [esp + 0x1c], 8
pop esi
jb 0x23a138ae
mov ecx, dword [esp + 4]
push ecx
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x23a15c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x23bcee58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
call fcn.23a01070
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xc]
lea ecx, [esi + 0x3c]
push edx
mov dword [esp + 0x34], 0
call fcn.23a02610
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x28], 0xffffffff
jb 0x23a15cde
mov eax, dword [esp + 8]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
push esi
mov word [esp + 0xc], cx
mov ecx, dword [esp + 0x34]
push 0x23a15570
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
call fcn.23a064d0
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x23a1c640
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x23bced83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.23a13680
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
call fcn.23a13680
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call fcn.23a13680
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov ecx, dword [eax]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 8]
mov dword [esi + 0x1c], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x23a1fcc0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x23a1fcd7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret 8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret 8

Function at 0x23a1fcf0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x23a1fd07
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
ret 8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
ret 8
Function at 0x23a21220
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x23bcfc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x24], 8
lea esi, [edi + 0xc]
mov dword [ebp - 0x10], esp
jb 0x23a21251
mov eax, dword [esi + 4]
jmp 0x23a21254
lea eax, [esi + 4]
mov ebx, dword [ebp + 8]
push ebx
push eax
call fcn.23a496bc
add esp, 8
test eax, eax
je 0x23a212fd
cmp dword [edi + 0x28], 0xffffffff
mov dword [ebp - 4], 0
je 0x23a212a3
mov eax, dword [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x23a2129c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x28]
push eax
push ecx
push str.CloseHandle_0x_08X__failed_with_0x_08X_error
call sym.Setup.exe_void___cdecl_logError_char_const__
add esp, 0xc
mov dword [edi + 0x28], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x23a212ae
mov eax, dword [esi + 4]
jmp 0x23a212b1
lea eax, [esi + 4]
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x23a212f1
push ebx
lea ecx, [ebp - 0x30]
call fcn.23a01070
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x30]
push edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.23a02610
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 0
jb 0x23a212f1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [edi + 0x2c]
push ecx
push ebx
mov ecx, edi
call fcn.23a20ef0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x23a21cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.23a3a640

Function at 0x23a221c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
lea eax, [esp + 8]
push eax
push 0x28
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call ebp
test eax, eax
je 0x23a22266
mov edx, dword [esp + 8]
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push 1
push str.SeShutdownPrivilege
push edx
call fcn.23a220c0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call edi
test esi, esi
je 0x23a22264
push 0x30002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 0x10]
push ecx
push 0x20
mov dword [esp + 0x18], 0
call ebx
push eax
call ebp
test eax, eax
je 0x23a22264
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push edx
push str.SeShutdownPrivilege
push eax
call fcn.23a220c0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x23a24cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x23bcee58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], eax
mov word [esp + 4], dx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 8]
call fcn.23a034b0
cmp dword [esp + 0x18], 8
mov eax, dword [esp + 4]
jae 0x23a24d22
lea eax, [esp + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x1c], 8
jb 0x23a24d44
mov edx, dword [esp + 8]
push edx
call fcn.23a2ed1b
add esp, 4
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x23a24de0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x23bcee58
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x23bf0558
push 1
xor ebx, ebx
push ebx
push 0x23bf06a8
mov esi, ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jge 0x23a24e31
push edi
push str.CoCreateInstance_CLSID_ShellLink__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
jmp 0x23a24fa5
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x23bf0668
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x23a24f8a
xor ecx, ecx
push ebp
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
call fcn.23a034b0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x50]
push eax
push ecx
call edx
cmp eax, ebx
mov ebp, dword [sym.Setup.exe_void___cdecl_logError_wchar_t_const__]
jge 0x23a24ea4
push eax
mov eax, dword [esi + 4]
push eax
push str.pShellLink__SetPath___s___failed_with_0x_08X_error
call ebp
add esp, 0xc
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x23a24ecc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
cmp eax, ebx
jge 0x23a24ecc
mov ecx, dword [esi + 8]
push eax
push ecx
push str.pShellLink__SetArguments___s___failed_with_0x_08X_error
call ebp
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
cmp eax, ebx
jge 0x23a24eef
mov ecx, dword [esi + 0xc]
push eax
push ecx
push str.pShellLink__SetDescription___s___failed_with_0x_08X_error
call ebp
add esp, 0xc
mov esi, dword [esi]
mov edx, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push edx
mov ecx, esi
call fcn.23a034b0
push 4
push str..lnk
mov ecx, esi
call fcn.23a028a0
cmp dword [esi + 0x18], 8
lea ebx, [esi + 4]
jb 0x23a24f1d
mov eax, dword [ebx]
jmp 0x23a24f1f
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov edi, eax
test edi, edi
jge 0x23a24f48
cmp dword [esi + 0x18], 8
jb 0x23a24f3c
mov ebx, dword [ebx]
push edi
push ebx
push str.pShellLink__Save___s___failed_with_0x_08X_error
call ebp
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x30], 8
mov dword [esp + 0x3c], 0xffffffff
pop ebp
jb 0x23a24f71
mov eax, dword [esp + 0x18]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
jmp 0x23a24f99
push edi
push str.pShellLink__QueryInterface_IID_IPersistFile__failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x23a25150
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x23bd018c
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
xor ebx, ebx
cmp dword [ecx + 0x3cc], ebx
jne 0x23a2518e
mov al, 1
pop ebx
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
push esi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea eax, [esp + 0xc]
push eax
add ecx, 0x3b8
push ecx
mov dword [esp + 0x198], ebx
call fcn.23a039b0
add esp, 8
lea ecx, [esp + 0x6c]
call fcn.23a0d350
mov eax, dword [esp + 0x10]
mov esi, 0x10
mov byte [esp + 0x190], 1
cmp dword [esp + 0x24], esi
jae 0x23a251de
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x70]
call fcn.23a0d390
mov byte [esp + 0x190], bl
lea ecx, [esp + 0x6c]
test al, al
jne 0x23a2522c
call fcn.23a0d380
cmp dword [esp + 0x24], esi
jb 0x23a2531a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.23a2ed1b
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
call fcn.23a0d380
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.23a05000
mov eax, dword [esp + 0x10]
mov byte [esp + 0x190], 2
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x24], esi
jae 0x23a25282
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0xa0]
push ecx
push 0x1d
lea edx, [esp + 0x60]
push edx
push eax
call fcn.23a2e130
lea eax, [esp + 0x68]
push 0x1d
push eax
call fcn.23a01e30
add esp, 0x24
mov dword [esp + 8], ebx
mov ecx, dword [0x23c7a190]
mov eax, dword [ecx + 0x48]
push ebx
push 0x20006
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 3
call fcn.23a0fac0
test eax, eax
je 0x23a25333
lea ecx, [esp + 8]
mov byte [esp + 0x190], 2
call fcn.23a0fa90
push 0xf4
lea edx, [esp + 0x98]
push ebx
push edx
call fcn.23a49830
add esp, 0xc
cmp dword [esp + 0x24], esi
jb 0x23a2531a
mov eax, dword [esp + 0x10]
push eax
call fcn.23a2ed1b
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
mov edx, dword [esp + 8]
push 0x2d
lea ecx, [esp + 0x40]
push ecx
push 3
push ebx
push str.AKValue
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [esp + 0x190], 2
lea ecx, [esp + 8]
test eax, eax
je 0x23a2539a
call fcn.23a0fa90
push 0xf4
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.23a49830
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.23a03210
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
call fcn.23a0fa90
push 0xf4
lea ecx, [esp + 0x98]
push ebx
push ecx
call fcn.23a49830
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.23a03210
mov ecx, dword [esp + 0x188]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret