joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc46979
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0xc46add
mov eax, dword [edi]
push dword [eax]
push 0xa27320
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0xc46add
push 2
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAclInformation]
test eax, eax
je 0xc46add
push ebx
push esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x20]
push 2
pop ebx
push 1
push 4
push eax
push dword [edi + 8]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAclInformation]
test eax, eax
je 0xc469ee
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov dword [ebp - 0x14], eax
mov ecx, 0xffff
add eax, 8
add esi, eax
cmp eax, ecx
ja 0xc46adb
cmp esi, ecx
ja 0xc46adb
lea ecx, [ebp - 0x1c]
add eax, esi
push ecx
push eax
call fcn.00a4a1ac
test eax, eax
js 0xc46adb
push ebx
mov ebx, dword [ebp - 0x1c]
push esi
push ebx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeAcl]
mov ecx, dword [ebp - 0x14]
add esi, ebx
push ecx
lea eax, [ecx + 8]
mov byte [esi], 1
mov word [esi + 2], ax
mov dword [esi + 4], 2
mov eax, dword [edi]
push dword [eax]
lea eax, [esi + 8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 8
push eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAce]
test eax, eax
je 0xc46ad4
and dword [ebp - 0x14], 0
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0xc46abd
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [edi + 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
je 0xc46ab0
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAce]
test eax, eax
jne 0xc46ab0
inc eax
mov dword [ebp - 0x14], eax
jmp 0xc46ab3
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0xc46a7f
test eax, eax
jne 0xc46ad4
push 0
push ebx
push 0
push 0
push 0x20000004
push 4
push dword [edi + 4]
call dword [sym.imp.api_ms_win_security_provider_l1_1_0.dll_SetSecurityInfo]
push ebx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00ab3c50
leave
ret
Function at 0xc48277
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0xb06a1f
call fcn.00af8df7
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
mov edx, 0x9fe5c8
mov dword [ebp - 0x10], ebx
mov ecx, 0x9fe6b4
call fcn.00c1c55b
mov ecx, dword [ebp + 4]
test eax, eax
jns 0xc482c2
push eax
push 0x9fe6cc
mov edx, 0x418
call fcn.00ab606d
jmp 0xc482fb
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push 8
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0xc482f6
cmp dword [ebp - 0x14], 4
jbe 0xc482f6
cmp byte [esi], 0xe
je 0xc482fb
mov dword [esi], ebx
mov byte [esi], 0xe
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0xc4830e
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
call fcn.00af8dc0
ret 0x14
Function at 0xc486bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0xb06a8b
call fcn.00af8e99
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0xc4871d
call fcn.00c1a63e
mov esi, eax
jmp 0xc48835
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0xc4873c
call fcn.00c1a63e
jmp 0xc4882c
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0xc48732
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0xc48788
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0xc4877e
lea ecx, [ebp - 0x418]
call fcn.00c1b5d9
mov esi, 0x8007000e
jmp 0xc4884e
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.00c1563e
cmp eax, 0x400
jbe 0xc487af
push eax
lea ecx, [ebp - 0x418]
call fcn.00c1a302
mov eax, dword [ebp - 0x418]
jmp 0xc487bb
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0xc487e5
test eax, eax
jne 0xc487f0
mov esi, 0x8007000e
jmp 0xc4882e
push ebx
push eax
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0xc48732
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.00c48421
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0xc4884e
lea ecx, [ebp - 0x418]
call fcn.00c1b5d9
lea ecx, [ebp - 0x428]
call fcn.00c18953
mov eax, esi
call fcn.00af8de6
ret 0x10
Function at 0xc49d56
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push ecx
mov edi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00a9f034
test eax, eax
jns 0xc49d84
push 8
pop esi
jmp 0xc49dca
push esi
lea eax, [ebp - 0xc]
mov ebx, 0xa24a90
push eax
push esi
push 0x60000
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0xc49dca
lea ecx, [ebp - 0x10]
call fcn.00c4b946
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00c46979
cmp dword [ebp - 0xc], 0
je 0xc49dd9
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0xc4a03c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0xc4a059
mov ecx, 0x80004005
call fcn.00bf22df
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0xc4a06a
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0xc4a062
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xc4a10d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0xc4a128
mov ecx, 0x80004005
call fcn.00bf22df
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0xc4a12f
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0xc4b67f
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx + 0x30]
movzx eax, byte [ecx + 0x18]
push eax
push dword [ecx + 0xa4]
movzx eax, byte [ecx + 0x1c]
push eax
movzx eax, byte [ecx + 0x1d]
push eax
push dword [ecx + 0x24]
movzx eax, byte [ecx + 0x1b]
push eax
movzx eax, byte [ecx + 0x15]
push eax
movzx eax, byte [ecx + 0x14]
push eax
push dword [ecx + 0x98]
movzx eax, byte [ecx + 0x1a]
push dword [ecx + 0x94]
mov edi, dword [ebp + 8]
push eax
push dword [ecx + 0xa0]
movzx eax, byte [ecx + 0x11]
push dword [ecx + 0x90]
push eax
push dword [ecx + 0x8c]
movzx eax, byte [ecx + 0x10]
push dword [ecx + 0x88]
push eax
push dword [ecx + 0x84]
movzx eax, byte [ecx + 0xf]
push dword [ecx + 0x80]
push eax
push dword [ecx + 0x7c]
movzx eax, byte [ecx + 0xe]
push dword [ecx + 0x78]
push eax
push dword [ecx + 0x2c]
movzx eax, byte [ecx + 0x17]
push eax
push dword [ecx + 0x28]
movzx eax, byte [ecx + 0x16]
push eax
push dword [ecx + 0x9c]
movzx eax, byte [ecx + 0x19]
push eax
push dword [ecx + 0x74]
movzx eax, byte [ecx + 0xd]
push eax
push dword [ecx + 0x6c]
movzx eax, byte [ecx + 0x13]
push eax
push dword [ecx + 0x70]
movzx eax, byte [ecx + 0x12]
push eax
push dword [ecx + 0x68]
movzx eax, byte [ecx + 0xc]
push dword [ecx + 0x64]
push eax
push dword [ecx + 0x60]
movzx eax, byte [ecx + 0xb]
push dword [ecx + 0x5c]
push eax
push dword [ecx + 0x58]
movzx eax, byte [ecx + 0xa]
push dword [ecx + 0x54]
push eax
push dword [ecx + 0x44]
movzx eax, byte [ecx + 9]
push dword [ecx + 0x40]
push eax
push dword [ecx + 0x3c]
movzx eax, byte [ecx + 8]
push dword [ecx + 0x38]
push eax
push dword [ecx + 0x50]
movzx eax, byte [ecx + 7]
push eax
movzx eax, byte [ecx + 6]
push eax
push dword [ecx + 0x4c]
movzx eax, byte [ecx + 5]
push eax
movzx eax, byte [ecx + 4]
push eax
push dword [ecx + 0x48]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
push dword [ecx + 0x20]
movzx eax, byte [ecx + 1]
push eax
push dword [ecx + 0x34]
movzx eax, byte [ecx]
push eax
push 0xa24cc0
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00a60c0c
mov esi, eax
add esp, 0x10c
test esi, esi
jns 0xc4b7eb
mov edx, 0x12f
mov ecx, dword [ebp + 4]
push esi
push 0x9fe6cc
call fcn.00aa4c55
mov eax, esi
jmp 0xc4b821
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xc4b7f4
sub ecx, edx
lea eax, [ebp - 0x404]
push edi
sar ecx, 1
push ecx
push ecx
push eax
call fcn.00a54bd0
mov esi, eax
test esi, esi
jns 0xc4b81f
mov edx, 0x130
jmp 0xc4b7d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00ab3c50
leave
ret 4
Function at 0xc4da96
Capabilities:
Delete file

Disassembly:
push 0x2c
mov eax, 0xb06cc1
call fcn.00af8df7
push 0x60
push 0x9f75fc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0xa25dbc
mov dword [ebp - 0x24], 0xa25d84
call fcn.00c1883e
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00a398c6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00c46d22
test al, al
je 0xc4dc03
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
lea eax, [ebp - 0x1c]
push eax
push 0x10000
push esi
mov ecx, edi
call dword [0xc99200]
call edi
test eax, eax
js 0xc4dacb
test dword [ebp - 0x1c], 0x10000
je 0xc4dacb
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov edi, dword [eax + 0x48]
lea eax, [ebp - 0x20]
push eax
push 0x9f7810
push esi
mov ecx, edi
call dword [0xc99200]
call edi
test eax, eax
js 0xc4dbe7
cmp dword [ebp - 0x20], 1
jne 0xc4dbe7
mov eax, dword [esi]
mov ebx, dword [ebp - 0x10]
mov edi, dword [eax + 0x44]
mov dword [ebp - 0x14], edi
test ebx, ebx
je 0xc4db6b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov edi, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x9fdac8
push esi
mov ecx, edi
call dword [0xc99200]
call edi
test eax, eax
js 0xc4dbe7
lea ebx, [ebp - 0x28]
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x10]
call fcn.00a3aa70
test eax, eax
je 0xc4dbdd
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
mov eax, dword [esi]
and dword [ebp - 0x14], 0
mov edi, dword [eax + 0x14]
lea eax, [ebp - 0x14]
push eax
push 0x80058000
push esi
mov ecx, edi
call dword [0xc99200]
call edi
test eax, eax
js 0xc4dbca
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0xc4dbdd
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
add ebx, 4
lea eax, [ebp - 0x20]
cmp ebx, eax
jne 0xc4db8a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0xc4dacb
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0xc4dacb
lea ecx, [ebp - 0x18]
call fcn.00a398c6
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x30], 0
test ecx, ecx
je 0xc4dc2d
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xc99200]
call esi
lea ecx, [ebp - 0x34]
call fcn.00a3ac6f
call fcn.00af8dc0
ret
Function at 0xc52c54
Capabilities:
Lock the desktop

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ProcessIdToSessionId]
test eax, eax
je 0xc52d0c
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0xc52cd8
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00c5315b
call fcn.00c53256
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
jne 0xc52d49
mov eax, dword [0xc93264]
cmp eax, 0xc93264
je 0xc52d49
test byte [eax + 0x1c], 2
je 0xc52d49
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xc52cc8
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xc93264]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
jmp 0xc52d3e
mov eax, dword [0xc93264]
cmp eax, 0xc93264
je 0xc52d49
test byte [eax + 0x1c], 2
je 0xc52d49
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xc52cfc
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xc93264]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0xc52d3e
mov eax, dword [0xc93264]
cmp eax, 0xc93264
je 0xc52d49
test byte [eax + 0x1c], 2
je 0xc52d49
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xc52d30
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xc93264]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
mov edx, 0xa27598
pop ecx
call fcn.00b7b7a6
xor eax, eax
leave
ret

Function at 0xc5315b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
cmp dword [0xc97b48], edi
jne 0xc53251
mov dword [0xc97b4c], ecx
lea ecx, [ebp - 4]
push esi
mov dword [ebp - 8], edi
call fcn.00c52e39
push eax
lea ecx, [ebp - 8]
call fcn.00c190ba
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0xc531aa
mov dword [ebp - 4], edi
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xc99200]
call esi
mov esi, dword [ebp - 8]
test esi, esi
jne 0xc531bb
mov edi, 0x8007000e
jmp 0xc53250
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 0xc52f20
push edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov dword [0xc97b48], eax
test eax, eax
je 0xc531fe
mov eax, dword [0xc93264]
cmp eax, 0xc93264
je 0xc53240
test byte [eax + 0x1c], 8
je 0xc53240
push dword [eax + 0x14]
mov edx, 0xa275fc
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00c5149f
jmp 0xc53240
mov edi, 0x80004005
mov eax, dword [0xc93264]
cmp eax, 0xc93264
je 0xc53240
test byte [eax + 0x1c], 2
je 0xc53240
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xc53227
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xc93264]
mov edx, 0xa275fc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.00b7b7a6
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xc99200]
call esi
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0xc54393
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x488
lea eax, [ebp - 0x48c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00ab4bf6
mov edi, dword [0x9e65cc]
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x460], 0x20000
mov esi, 0x80004005
mov dword [ebp - 0x45c], 8
mov dword [ebp - 0x44c], 0x20801
push 0x104
push eax
push dword [0x9e65d0]
mov dword [ebp - 0x420], 0x78
mov dword [ebp - 0x41c], 0x280
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_SHExpandEnvironmentStringsW]
test eax, eax
je 0xc54557
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_292_1]
push edi
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
mov esi, eax
test esi, esi
js 0xc54557
push 0xa27708
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAddExtension]
mov esi, eax
test esi, esi
js 0xc54557
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x494], ebx
push eax
push edi
lea eax, [ebp - 0x494]
mov dword [ebp - 0x490], ebx
push eax
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StartTraceW]
mov esi, eax
test esi, esi
jle 0xc544a2
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070057
jne 0xc544e3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
je 0xc54568
lea eax, [ebp - 0x48c]
push eax
push edi
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StartTraceW]
mov esi, eax
test esi, esi
jle 0xc544e5
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0xc54557
mov edi, ebx
test esi, esi
js 0xc54530
mov eax, dword [0x9e65dc]
push ebx
push ebx
push ebx
push ebx
add eax, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push 1
push eax
push dword [ebp - 0x490]
push dword [ebp - 0x494]
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_EnableTraceEx2]
mov esi, eax
test esi, esi
jle 0xc54524
movzx esi, si
or esi, 0x80070000
add edi, 0x18
cmp edi, 0x18
jb 0xc544e9
test esi, esi
jns 0xc54557
lea eax, [ebp - 0x48c]
push eax
push ebx
push dword [ebp - 0x490]
push dword [ebp - 0x494]
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StopTraceW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0xc5457f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0xc544e3
mov esi, 0x80004005
jmp 0xc54557
Function at 0xc55332
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0xc97b54]
test esi, esi
jne 0xc553d0
push edi
push 2
pop esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0xa27878
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0xc553c9
push ebx
push 4
pop ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push edi
push edi
push 0xa1b148
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0xc553bf
cmp dword [ebp - 4], edi
je 0xc553bf
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0xa1b178
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0xc553bc
cmp dword [ebp - 4], edi
jne 0xc553bf
xor esi, esi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop ebx
mov dword [0xc97b54], esi
pop edi
xor eax, eax
cmp esi, 1
pop esi
sete al
leave
ret

Function at 0xc5637e
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10
pop ebx
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], ebx
push eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetComputerNameW]
test eax, eax
je 0xc5649e
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00ab4bf6
add esp, 0xc
mov dword [ebp - 0xe0], edi
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xdc], ebx
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
je 0xc5649d
push edi
lea eax, [ebp - 0xac]
push esi
push eax
call fcn.00ab4bf6
add esp, 0xc
mov dword [ebp - 0xe4], edi
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x26
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
je 0xc5649d
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
test eax, eax
je 0xc5649d
lea edx, [ebp - 0xd0]
call fcn.00a9eff6
test eax, eax
js 0xc56492
push 0xffffffffffffffff
push dword [ebp - 0xd0]
push 0xffffffffffffffff
push dword [ebp - 0xd4]
push 1
push 0x7f
call fcn.00ab54ef
push dword [ebp - 0xd0]
sub eax, 2
neg eax
sbb esi, esi
inc esi
call fcn.00ab53aa
push dword [ebp - 0xd4]
call fcn.00ab53aa
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret
Function at 0xc56680
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], edx
xor edi, edi
mov dword [ebp - 8], ecx
cmp edi, 3
jae 0xc5670d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0x5000
push esi
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
js 0xc56705
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCommonPrefixW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0xc566fd
push dword [ebp - 4]
call fcn.00ab53f5
cmp dword [ebp - 0xc], eax
jne 0xc566fd
mov ebx, dword [ebp - 0x10]
push ebx
push dword [ebp - 8]
push esi
call fcn.00ab5491
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 8]
push eax
mov edx, ebx
call fcn.00a4355b
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call fcn.00ab538c
inc edi
add esi, 0x10
test ebx, ebx
je 0xc56698
pop edi
pop esi
test ebx, ebx
pop ebx
jne 0xc56722
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
call fcn.00a535e0
leave
ret 0xc