joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105a553
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x105a602
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x105a601
push 0x100280c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x105a601
and dword [ebp - 0x214], ebx
and dword [ebp - 0x210], ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010569c6
test eax, eax
jl 0x105a601
mov eax, dword [ebp - 0x214]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x210]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007d80
push dword [ebp + 0xc]
push esi
call fcn.0103592d
add esp, 0x1c
test eax, eax
jl 0x105a601
inc ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8

Function at 0x105a619
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x420]
push eax
push 0x20019
push 0
push 0x100a610
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a6fd
push esi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0x100a5d4
push dword [ebp - 0x420]
xor esi, esi
inc esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a6f0
cmp dword [ebp - 0x424], esi
jne 0x105a6f0
push esi
push 0x100a5c4
lea eax, [ebp - 0x41c]
push eax
push 0x100a5ac
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0103592d
add esp, 0x18
test eax, eax
jl 0x105a6ea
lea eax, [ebp - 0x210]
push eax
call fcn.010561eb
test eax, eax
je 0x105a6ea
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 0x10
jl 0x105a6a3
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047480
leave
ret
Function at 0x105a70e
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x418]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x1009b98
push 0x80000002
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105a873
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push 4
pop edi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x430], edi
push esi
jmp 0x105a84b
lea eax, [ebp - 0x20c]
push eax
push 0x1009c00
push 0x100286c
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0103592d
add esp, 0x14
test eax, eax
jl 0x105a81b
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a81b
push edi
lea eax, [ebp - 0x428]
push eax
push edi
push esi
push 0x100429c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x41c]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov dword [ebp - 0x424], 0x104
call ebx
test eax, eax
je 0x105a7a2
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
push 0x1009b98
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret
Function at 0x105a895
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x41c], 0
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x105a997
push ebx
push eax
push 0x100a688
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0103592d
add esp, 0x10
test eax, eax
jl 0x105a996
and dword [ebp - 0x418], 0
push esi
mov esi, 0x20019
call fcn.0105c74e
test eax, eax
je 0x105a8ff
mov esi, 0x20119
lea eax, [ebp - 0x418]
push eax
push esi
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a995
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
push 0
push 0x100a668
push dword [ebp - 0x418]
xor esi, esi
inc esi
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a989
cmp dword [ebp - 0x420], esi
jne 0x105a989
push ebx
lea eax, [ebp - 0x414]
push eax
push edi
mov dword [ebp - 0x41c], esi
call fcn.0105824d
test eax, eax
je 0x105a989
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x10]
push edi
call fcn.01035831
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
xor ecx, ebp
pop edi
call fcn.01047480
leave
ret 0xc
Function at 0x105af12
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x105afe6
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x105afd5
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035831
push 0x100a8e0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x105afd5
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
je 0x105afd5
xor esi, esi
inc esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0105720c
test eax, eax
jne 0x105afd5
push eax
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0105aaf1
push edi
push 0x100a8bc
push 4
call fcn.01055c8a
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01047480
leave
ret 4
Function at 0x105b5c6
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0x100ae14
push 4
mov dword [ebp - 4], 1
call fcn.01055c8a
mov eax, dword [ebp + 8]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x105b5fb
cmp word [eax], si
jne 0x105b5fb
xor eax, eax
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x105b636
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x105b61e
push 0x57
pop eax
push eax
push edi
push 0x100ade0
push 2
call fcn.01055c8a
add esp, 0x10
xor eax, eax
jmp 0x105b79f
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x105b671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x105b657
push 0x57
pop eax
push eax
push edi
push 0x100ada8
push 2
call fcn.01055c8a
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x105b62f
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x105b6bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jne 0x105b68d
push 0x57
pop edi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp edi, 0x420
jne 0x105b6ad
xor eax, eax
inc eax
jmp 0x105b79f
push edi
push dword [ebp + 0xc]
push 0x100ad70
jmp 0x105b625
cmp dword [ebp + 0x10], esi
je 0x105b769
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp + 0x10], 0x927c0
call ebx
test eax, eax
jne 0x105b6f6
push edi
push 0x100ad4c
push 2
call fcn.01055c8a
add esp, 0xc
mov dword [ebp - 4], esi
jmp 0x105b769
cmp dword [ebp - 0x28], 4
je 0x105b769
mov edi, 0x1f4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add esi, 0x7530
cmp esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jle 0x105b739
mov dword [ebp + 0x10], esi
jmp 0x105b739
cmp dword [ebp - 0x28], 4
je 0x105b73d
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x105b7a6
sub esi, edi
add dword [ebp - 8], edi
test esi, esi
jg 0x105b71a
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
jg 0x105b753
cmp dword [ebp - 0x28], 4
je 0x105b769
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
jne 0x105b701
push dword [ebp + 0xc]
push 0x100ad34
push 2
call fcn.01055c8a
add esp, 0xc
and dword [ebp - 4], 0
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0
mov eax, 0x100acb4
jne 0x105b789
mov eax, 0x100aca4
push eax
push dword [ebp + 0xc]
push 0x100ad18
push 4
call fcn.01055c8a
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 0xc]
push 0x100acf4
jmp 0x105b75b
Function at 0x105b7b5
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], edi
je 0x105b893
cmp dword [ebp + 0x10], edi
je 0x105b893
cmp dword [ebp + 0x14], edi
je 0x105b893
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x105b7f0
cmp word [eax], di
jne 0x105b7f0
xor eax, eax
mov esi, 0xf003f
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
je 0x105b86e
push edi
push 0x100ae88
push dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, edi
je 0x105b846
push eax
call esi
push 0x100acb4
push dword [ebp + 0xc]
push 0x100ae6c
push 4
jmp 0x105b861
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105b856
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ae34
push 2
call fcn.01055c8a
add esp, 0x10
push ebx
call esi
jmp 0x105b896
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105b87e
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ade0
push 2
call fcn.01055c8a
add esp, 0x10
jmp 0x105b896
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x105b8a5
Capabilities:
Delete service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], ebx
jne 0x105b8c3
mov dword [ebp - 4], ebx
jmp 0x105b9ac
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x105b8d2
cmp word [edi], bx
jne 0x105b8d2
xor edi, edi
push dword [ebp + 0xc]
push ebx
call fcn.0105b3bf
test eax, eax
je 0x105b988
mov esi, 0xf003f
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x105b96d
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x105b954
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x105b93d
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b92a
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100af08
push 2
call fcn.01055c8a
add esp, 0x10
push dword [ebp + 0xc]
push 0x100aee0
push 4
call fcn.01055c8a
add esp, 0xc
push edi
call esi
jmp 0x105b966
push dword [ebp + 0xc]
push 0x100aebc
push 4
call fcn.01055c8a
add esp, 0xc
push dword [ebp + 8]
call esi
jmp 0x105b9ab
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b97d
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ade0
jmp 0x105b9a1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b998
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100af08
push 2
call fcn.01055c8a
add esp, 0x10
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x105bba1
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push 0x100afc8
push 4
mov dword [ebp - 4], 1
mov dword [ebp - 8], ebx
call fcn.01055c8a
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, ebx
je 0x105bbe5
push 0x100acc8
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x105bbe5
xor esi, esi
push 0xf003f
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x105bc0f
push 0xf01ff
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x105bc1a
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
jmp 0x105bca3
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x105bc0f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 2
push 0x40
mov dword [eax], ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x105bcae
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x105bca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x105bca3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x105bcae
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x105bc8e
and dword [ebp - 4], eax
jmp 0x105bca3
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x105bca3
xor esi, esi
test esi, esi
je 0x105bcae
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
cmp dword [ebp + 8], edi
je 0x105bcc0
push dword [ebp + 8]
call esi
cmp dword [ebp - 8], edi
je 0x105bcca
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
mov eax, 0x100acb4
jne 0x105bcdc
mov eax, 0x100aca4
push eax
push dword [ebp + 0xc]
push 0x100afac
push 4
call fcn.01055c8a
mov eax, dword [ebp - 4]
add esp, 0x10
leave
ret 0x10
Function at 0x105c7a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
xor eax, eax
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
xor edi, edi
push edi
push 0x1004a68
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
call ebx
push 4
pop esi
test eax, eax
jne 0x105c821
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x100b22c
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105c80f
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], esi
jne 0x105c80f
cmp dword [ebp - 0x10], edi
sete al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x105c8d8
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x100b1d0
push 0x80000002
call ebx
test eax, eax
jne 0x105c87a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x100b1b4
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105c871
mov dword [ebp - 8], edi
cmp dword [ebp - 0x10], esi
jne 0x105c871
cmp dword [ebp - 0xc], edi
sete al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x105c8d8
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x100b140
push 0x80000001
call ebx
test eax, eax
jne 0x105c8d8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x100b104
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105c8cf
mov dword [ebp - 8], edi
cmp dword [ebp - 0x10], esi
jne 0x105c8cf
cmp dword [ebp - 0xc], edi
sete al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x105c8e5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov edi, 0x1001794
cmp dword [ebp + 8], esi
je 0x105c8ff
mov edi, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1001c88
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105c945
lea eax, [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_time]
pop ecx
push 4
lea eax, [ebp + 8]
push eax
push 3
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret 4
Function at 0x105cbde
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0xffffffffffffffff
xor edi, edi
push 0x1001e44
mov dword [ebp - 8], edi
call fcn.0106de7c
mov ebx, eax
cmp ebx, edi
jl 0x105cd8c
lea ecx, [ebp - 0x30]
call fcn.0106d6aa
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0x7fff
call fcn.0106d6aa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0106de34
mov ebx, eax
cmp ebx, edi
jge 0x105cc43
lea ecx, [ebp - 0x24]
call fcn.0106de2a
lea ecx, [ebp - 0x30]
call fcn.0106de2a
jmp 0x105cd8c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x105cc74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105cc64
push 0x57
pop eax
cmp eax, edi
jle 0x105cc70
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x105cc2e
push esi
push 0x44
pop esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x105cc92
mov ebx, 0x8007000e
jmp 0x105cd6b
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0xc], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x14], esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
test ebx, ebx
jne 0x105ccda
cmp eax, 0x7a
je 0x105ccda
test eax, eax
jle 0x105ccd3
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x105cd6b
lea ecx, [ebp - 0x3c]
call fcn.0106d6aa
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea ecx, [ebp - 0x3c]
call fcn.0106de34
mov ebx, eax
test ebx, ebx
jl 0x105cd63
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 0x24]
push 0
call edi
mov edi, eax
call esi
test edi, edi
jne 0x105cd26
test eax, eax
jle 0x105cd61
and eax, 0xffff
or eax, 0x80070000
jmp 0x105cd61
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x105cd41
call esi
test eax, eax
jne 0x105cd18
push 0x57
pop eax
jmp 0x105cd16
push 0xffffffffffffffff
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
call fcn.0106de7c
mov ebx, eax
test ebx, ebx
jl 0x105cd63
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.0106e051
mov ebx, eax
lea ecx, [ebp - 0x3c]
call fcn.0106de2a
lea ecx, [ebp - 0x24]
call fcn.0106de2a
lea ecx, [ebp - 0x30]
call fcn.0106de2a
xor edi, edi
pop esi
cmp dword [ebp - 4], edi
je 0x105cd8c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x105cd9a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x105cda7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x101
xor edi, edi
push edi
push 0x1001c88
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105ce11
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x100b2e4
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105ce04
cmp dword [ebp - 0xc], esi
je 0x105ce07
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 8]
pop edi
leave
ret