joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076674
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98c
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push edi
push 0x48
pop edi
push edi
xor ebx, ebx
mov dword [ebp - 0x968], esi
push ebx
push eax
call fcn.100cd120
mov dword [ebp - 0x958], edi
lea eax, [ebp - 0x94c]
mov edi, 0x800
push edi
push ebx
push eax
call fcn.100cd120
mov dword [ebp - 0x960], edi
lea eax, [ebp - 0x14c]
mov edi, 0x100
push edi
push ebx
push eax
call fcn.100cd120
push str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x95c], edi
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x950], ebx
mov dword [ebp - 0x964], ebx
call fcn.10076842
add esp, 0x28
test eax, eax
je 0x100767f4
push str.SeRestorePrivilege
call fcn.10076842
pop ecx
test eax, eax
je 0x100767f4
lea eax, [ebp - 0x958]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x96c]
push eax
lea eax, [ebp - 0x95c]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x100767f4
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x98c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x964]
xor edi, edi
push eax
push ebx
lea eax, [ebp - 0x950]
inc edi
push eax
push ebx
push ebx
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
push 3
push edi
push 0x10000000
push str.everyone
lea eax, [ebp - 0x98c]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x954]
push eax
push dword [ebp - 0x950]
lea eax, [ebp - 0x98c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x100767f4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x94c]
push eax
push edi
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
call esi
push ebx
push dword [ebp - 0x954]
lea eax, [ebp - 0x94c]
push ebx
push eax
push 5
push edi
push dword [ebp - 0x968]
call esi
test eax, eax
cmove ebx, edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret
Function at 0x10076a85
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10076af5
push ebx
push esi
push esi
push 0x102de6e0
push esi
push esi
push dword [ebp + 0x10]
push 1
push 2
push 0x110
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
je 0x10076aeb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x10076afb
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 7
pop ecx
push 0xf003f
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10076b6e
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x10076b5e
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10076b5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x10076b6e
push esi
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.10053a94
leave
ret 4
Function at 0x10076b81
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x10076bb5
xor eax, eax
jmp 0x10076d33
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10076bd1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10076bae
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10076d22
cmp dword [ebp - 0x24], 1
je 0x10076bfd
cmp dword [ebp - 0x24], 3
jne 0x10076d22
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0xa
jmp 0x10076c77
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x34]
cmp eax, 0x3e8
jae 0x10076c2d
mov eax, 0x3e8
jmp 0x10076c32
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10076d22
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x14], eax
jbe 0x10076c69
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
jmp 0x10076c77
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x10076d22
cmp dword [ebp - 0x24], 3
mov ecx, 0x2710
je 0x10076c17
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10076d22
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10076d22
call ebx
cmp dword [ebp - 0x24], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jne 0x10076d1d
mov edi, ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x10076cd3
mov eax, ecx
jmp 0x10076cdd
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10076d1a
cmp dword [ebp - 0x14], edi
jbe 0x10076d0a
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x10076d14
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x10076d1a
cmp dword [ebp - 0x24], 2
je 0x10076cbc
mov edi, dword [ebp - 0x3c]
xor ebx, ebx
inc ebx
jmp 0x10076d24
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10053a94
leave
ret 4
Function at 0x10077280
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x10264e9e
call fcn.10054407
mov edi, ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.10077211
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push str.UnKonw
mov word [ebp - 0x40], ax
call fcn.100034a0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
push str.UnKonw
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.100034a0
mov byte [ebp - 4], 1
test esi, esi
je 0x100773a3
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.100776d9
push 0x102de6e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1005ce81
test al, al
je 0x10077331
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.1007777d
push eax
lea ecx, [ebp - 0x28]
call fcn.10005380
lea ecx, [ebp - 0x70]
call fcn.100042b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10077397
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x40]
call fcn.100034a0
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.10022040
mov ecx, edi
call fcn.10077109
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100042b0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
mov dword [ebx], esi
call fcn.10025f90
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
call fcn.10025f90
lea ecx, [ebp - 0x58]
call fcn.100042b0
lea ecx, [ebp - 0x40]
call fcn.100042b0
call fcn.100543b1
ret 0x10
Function at 0x1007749f
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102de6e0
mov dword [ebp - 0xa38], eax
call fcn.100034a0
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10077543
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x10077543
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10006a30
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100cd120
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10077556
push ebx
call fcn.1005402b
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret 8
mov eax, dword [0x1026ed1c]
mov dword [ebp - 0xc], eax
mov ax, word [0x1026ed20]
push 0x208
mov word [ebp - 8], ax
call fcn.10006a30
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x100775cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1007766a
push edi
call fcn.1005402b
push 2
call fcn.10006a30
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1007766a
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x100775d2
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100f02b6
add esp, 0xc
test eax, eax
je 0x1007761a
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x100775fc
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x1007766a
jmp 0x1007757e
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x102ddf28
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.1005d7a2
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.100067f0
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.10005380
lea ecx, [ebp - 0xa30]
call fcn.100042b0
push ebx
call fcn.1005402b
push edi
call fcn.1005402b
pop ecx
pop ecx
mov al, 1
jmp 0x10077545
Function at 0x100776d9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.100cd120
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1007775d
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10077756
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.100067f0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10053a94
leave
ret 8

Function at 0x1007777d
Capabilities:
Enumerate processes

Disassembly:
push 0x470
mov eax, 0x10264f31
call fcn.10054407
mov dword [ebp - 0x478], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], esi
mov edi, 0x102de6e0
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
push edi
mov dword [ebp - 0x220], ebx
call fcn.100034a0
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.100cd120
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100777fb
push edi
mov ecx, esi
call fcn.100067f0
jmp 0x1007793c
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10077927
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x450]
push eax
call fcn.100034a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], edi
je 0x1007787a
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.100042b0
lea eax, [ebp - 0x474]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1007781d
jmp 0x10077927
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100cd120
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1007791c
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.100034a0
push 0x102de6e0
lea ecx, [ebp - 0x230]
call fcn.1005ce81
test al, al
je 0x1007791c
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.1007749f
push 0x102de6e0
lea ecx, [ebp - 0x230]
call fcn.1005ce81
test al, al
je 0x1007791c
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.100034a0
lea ecx, [ebp - 0x248]
call fcn.100042b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.10022360
lea ecx, [ebp - 0x230]
call fcn.100042b0
mov eax, esi
call fcn.100543b1
ret 8
Function at 0x10077a9a
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x10077b1f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1026f004
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x10077b1f
push str.RegDisableReflectionKey
push eax
call edi
push str.RegEnableReflectionKey
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x10077b21
xor eax, eax
pop edi
pop esi
ret
Function at 0x10077ca3
Capabilities:
Set registry value

Disassembly:
push 0x244
mov eax, 0x10264fcd
call fcn.10054407
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 3
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x250], edi
push edi
push eax
mov dword [ebp - 0x24c], edi
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x238], edi
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x234], edi
lea ecx, [ebp - 0x248]
push eax
call fcn.10022040
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x250]
push edi
push ecx
push edi
push 0xf013f
push edi
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x248]
push edi
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10077d8c
cmp dword [ebp + 0x68], 8
lea ecx, [ebp + 0x54]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 0x54]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10077d4a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10077d62
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push edi
push 0x102de6e0
push dword [ebp - 0x250]
call ebx
cmp dword [ebp - 0x250], 0
je 0x10077ec5
push edi
lea eax, [ebp - 0x24c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.InprocServer32
push dword [ebp - 0x250]
call esi
test eax, eax
jne 0x10077ea6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x220], edi
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], edi
call fcn.10022040
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 5
call fcn.100088e0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x230]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10077e14
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x10077e2c
sub edx, ecx
sar edx, 1
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push edi
push 0x102de6e0
push dword [ebp - 0x24c]
call ebx
push 5
pop ecx
mov esi, str.Apartment
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x218]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10077e71
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push esi
push str.ThreadingModel
push dword [ebp - 0x24c]
call ebx
lea ecx, [ebp - 0x230]
call fcn.100042b0
cmp dword [ebp - 0x24c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10077ebd
push dword [ebp - 0x24c]
call esi
push dword [ebp - 0x250]
call esi
lea ecx, [ebp - 0x248]
call fcn.100042b0
lea ecx, [ebp + 0xc]
call fcn.100042b0
lea ecx, [ebp + 0x24]
call fcn.100042b0
lea ecx, [ebp + 0x3c]
call fcn.100042b0
lea ecx, [ebp + 0x54]
call fcn.100042b0
mov al, 1
call fcn.100543b1
ret 0x64
Function at 0x10077efc
Capabilities:
Set registry value

Disassembly:
push 0x228
mov eax, 0x10265010
call fcn.10054407
xor eax, eax
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x21c], 7
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], ax
call fcn.100034a0
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 2
call fcn.100088e0
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x234], esi
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push esi
push ecx
push esi
push 0xf013f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10078010
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 8]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10077fbe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10077fd6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push esi
push 0x102de6e0
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.100042b0
lea ecx, [ebp + 8]
call fcn.100042b0
lea ecx, [ebp + 0x20]
call fcn.100042b0
mov al, 1
call fcn.100543b1
ret 0x30

Function at 0x10078035
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x10265040
call fcn.10054407
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 4], esi
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.100034a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100780a9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100042b0
lea ecx, [ebp + 8]
call fcn.100042b0
call fcn.100543b1
ret 0x18