joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1066cad
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.01075f08
push 0x100d524
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010762bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762a4
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1066d63
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.01075f08
push 0x100549c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010762bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762a4
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1066e19
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01075f08
xor ebx, ebx
push 0x100d530
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.010762bc
push 0x10042fc
lea ecx, [ebp + 8]
call fcn.01075f08
push 0x100549c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.010762bc
call fcn.010508a4
push eax
lea ecx, [ebp + 8]
call fcn.010762bc
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1067006
Capabilities:
Query environment variable

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x218
mov eax, dword [0x10de03c]
and dword [ebp - 0x220], 0
cmp dword [ebp + 0xc], 0x270f
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], esi
jl 0x1067091
push edi
push CompareStringW
lea eax, [ebp - 0x210]
push eax
push 0x100a54c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01075f08
xor edi, edi
lea eax, [ebp - 0x21c]
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.01076298
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 0
call fcn.01075ef0
pop edi
jmp 0x106712d
call fcn.01021518
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.01075f08
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 2
call fcn.01075f2c
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x100a440
push eax
mov byte [ebp - 4], 3
call fcn.01075f50
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
call fcn.010762a4
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call fcn.01076298
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 2
call fcn.01075ef0
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.01075bbb
leave
ret 8
Function at 0x1068dfd
Capabilities:
Create directory

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x18
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call fcn.01075f2c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.01075f2c
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.01075f20
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x1068f9a
cmp word [esi + 4], 0x5c
jne 0x1068f9a
mov edi, 0x1004528
push edi
lea ecx, [ebp - 0x1c]
call fcn.01075f20
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010762bc
mov ebx, 0x1004204
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010762bc
mov ax, word [esi]
and word [ebp - 0x12], 0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x16], reloc.ADVAPI32.dll_CloseServiceHandle
mov word [ebp - 0x14], 0x5c
call fcn.010762bc
add esi, 6
push esi
lea ecx, [ebp - 0x20]
call fcn.01075f20
push 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.010762ec
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.01075ef0
test esi, esi
jne 0x1068f9a
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.01076430
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1068f69
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.010762ec
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.010762a4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01075ef0
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.01076694
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.01075efc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01075ef0
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068f9c
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010762bc
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.01076430
mov esi, eax
cmp esi, 0xffffffff
jne 0x1068ef0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.010762a4
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068f95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068f9c
xor esi, esi
inc esi
jmp 0x1068f9c
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075bbb
leave
ret 8
Function at 0x106e77b
Capabilities:
Start service

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0xc
push edi
push 0x100f724
lea ecx, [ebp - 0x14]
call fcn.01075f08
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x106e7ee
push ebx
push esi
push reloc.KERNEL32.dll_LoadLibraryW
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
je 0x106e7e2
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x106e7df
mov dword [ebp - 0x10], 1
jmp 0x106e7e2
push ebx
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
jne 0x106e803
push 1
push edi
push 0x30
push edi
push 0x4ede
push 0xfa9
call fcn.01054bf6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x106e824
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x100f724
lea ecx, [ebp - 4]
call fcn.01075f08
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x106e88b
push edi
push 4
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x106e887
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x106e884
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
mov dword [ebp - 8], eax
push edi
call esi
push ebx
call esi
pop edi
lea ecx, [ebp - 4]
call fcn.01075ef0
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x10708cf
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 1
mov edi, ecx
call fcn.01075f44
xor eax, eax
xor esi, esi
cmp dword [edi + 0x68], esi
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f8
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1070934
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x100f588
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

Function at 0x1071dca
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x28]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x18], 0
je 0x1071e6a
test edi, edi
je 0x1071e2e
cmp edi, reloc.KERNEL32.dll_CompareStringW
jne 0x1071e6e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea edi, [esi + 0x30]
mov dword [ebp - 4], reloc.ADVAPI32.dll_ReadEncryptedFileRaw
mov eax, dword [edi]
test eax, eax
je 0x1071e26
mov ecx, dword [edi - 4]
add ecx, eax
cmp ecx, ebx
ja 0x1071e26
push dword [edi + 8]
call dword [edi + reloc.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [edi - 4], ebx
add edi, 0x10
dec dword [ebp - 4]
jne 0x1071e0e
or dword [esi + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
lea edx, [esi + 0x30]
cmp dword [edx], 0
je 0x1071e59
mov ecx, dword [edx - 4]
mov edi, dword [edx]
sub ecx, ebx
add ecx, edi
cmp ecx, edi
ja 0x1071e64
cmp ecx, dword [esi + 0x28]
jae 0x1071e59
mov dword [esi + 0x28], ecx
inc eax
add edx, 0x10
cmp eax, 0x40
jb 0x1071e3f
jmp 0x1071e6e
and dword [esi + 0x28], 0
jmp 0x1071e6e
and dword [esi + 0x1c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x18], 0
jne 0x1071dd5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x107760b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10101f0
call fcn.01077a64
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], reloc.ADVAPI32.dll_RegDeleteValueW
jne 0x1077646
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.GDI32.dll_GetObjectW
jne 0x1077646
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x107765e
cmp eax, 0x20b
je 0x107764b
mov dword [ebp - 0x1c], edi
jmp 0x1077672
cmp dword [ecx + 0x84], 0xe
jbe 0x1077646
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x107766c
cmp dword [ecx + 0x74], 0xe
jbe 0x1077646
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10eec70], 0xffffffff
or dword [0x10eec74], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10e6aec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10e6ae8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10eec6c], eax
call fcn.01047fdf
cmp dword [0x10de040], edi
jne 0x10776cf
push fcn.01047fdf
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01077c55
push 0x10dc04c
push 0x10dc048
call fcn.01077c4a
mov eax, dword [0x10e6ae4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10e6ae0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x10dc044
push 0x10dc000
call fcn.01077c4a
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1077735
or dword [ebp - 4], 0xffffffff
mov eax, CompareStringW
jmp 0x10777ef
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1077783
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1077751
cmp ax, 0x22
jne 0x107773e
cmp word [esi], 0x22
jne 0x107775c
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x107776a
cmp ax, 0x20
jbe 0x1077757
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1077790
movzx eax, word [ebp - 0x50]
jmp 0x1077793
cmp word [esi], 0x20
jbe 0x107775c
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1077783
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.010cb61d
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x10777b4
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10777e9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01077a9f
ret
Function at 0x1077e2a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1077e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x1077e98
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x1077fc8
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.010cb432
cmp eax, ebx
je 0x1077ed4
cmp eax, 0x7a
jne 0x1077fc8
mov esi, dword [ebp - 0x30]
jmp 0x1077e89
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp word [eax + 4], bx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x1077f92
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
sub ecx, ebx
je 0x1077f41
dec ecx
jne 0x1077fc8
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077f78
cmp dword [ebp + 0x14], 2
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0x18]
jne 0x1077f5f
or dword [esi + 4], eax
jmp 0x1077f78
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077f78
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], eax
jmp 0x1077f37
not eax
and dword [esi + 4], eax
jne 0x1077f78
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 4]
inc edi
cmp edi, ecx
jb 0x1077efc
cmp dword [ebp - 0x1c], ebx
je 0x1077f92
cmp dword [ebp - 0x20], ebx
je 0x1077fa7
cmp dword [ebp + 0x14], 1
jne 0x1077fa7
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push dword [ebp - 0x18]
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.010cb426
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
jmp 0x1077fcb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x14
Function at 0x107bd1b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x78
push esi
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f8
push WaitForSingleObject
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bd85
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0x100dca4
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107bd7c
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x107bdb4
push esi
lea ecx, [ebp - 0x84]
call fcn.01069520
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], esi
call fcn.01054c7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.01075ee4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x107bdc6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0xac
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x48]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f8
push WaitForSingleObject
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107be59
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov edi, 0x100ade0
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107be49
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107be4f
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp dword [ebp - 0x3c], esi
jne 0x107be88
push esi
lea ecx, [ebp - 0xb8]
call fcn.01054de6
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], esi
call fcn.01054c7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.01075ee4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075bbb
leave
ret
Function at 0x107bea2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0xb8
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f8
push WaitForSingleObject
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bf86
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100a0c4
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
je 0x107bf35
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bf3b
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100c77c
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
pop ebx
je 0x107bf77
push 4
lea eax, [ebp - 0x44]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bf7d
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [0x10e6c08], esi
jne 0x107bf94
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x44], esi
jne 0x107bfa1
cmp dword [0x10e6c10], esi
je 0x107bfac
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edi
call fcn.0107a45a
cmp dword [ebp - 0x3c], esi
jne 0x107c017
mov ecx, dword [ebp - 0x48]
call fcn.0107a03b
test al, al
je 0x107c017
push esi
lea ecx, [ebp - 0xc4]
call fcn.01050101
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 4], esi
call fcn.01054c7c
cmp eax, edi
jne 0x107c008
cmp dword [ebp - 0x58], esi
je 0x107bfe9
mov ecx, dword [ebp - 0x48]
call fcn.0107a45a
cmp dword [ebp - 0x5c], esi
je 0x107c008
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push 0x100a0c4
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.01075ee4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075bbb
leave
ret 4
Function at 0x108148d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push LoadLibraryW
push dword [0x10de044]
call fcn.010cb4ce
cmp eax, 0xffffffff
mov dword [0x10e6c24], eax
je 0x10814c4
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push reloc.ADVAPI32.dll_AddAccessAllowedAce
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10e6c1c], eax
leave
ret