joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106f899
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub eax, 0x55c
push ebx
push esi
push edi
mov esi, ecx
je 0x106f8d5
dec eax
jne 0x106f8ce
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x106f8ce
push ebx
push ebx
push dword [esi + 0x3c]
call dword [sym.imp.SHLWAPI.dll_Ordinal_479]
push dword [0x10b10ec]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x106f8b7
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x10002
push 0x128
push dword [esi + 4]
call edi
push dword [esi + 4]
push 1
push 0x459
push dword [0x10b10ec]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x106f92c
push ebx
push ebx
push 0x414
push dword [esi + 0xc04]
call edi
push eax
jmp 0x106f932
push dword [esi + 0xb10]
mov ecx, esi
call fcn.01039f5f
jmp 0x106f8ce

Function at 0x106fe74
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x106ff58
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x106feb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x106fee5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x106ff10
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
test eax, eax
je 0x106fee5
push 1
push 0
push 0x106fef4
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001feb
leave
ret

Function at 0x10704a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x10705a0
push 0x80000002
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1070508
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x1070570
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x10704ff
cmp dword [ebp - 0x10], edi
setne al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x1035270
push 0x80000001
call esi
test eax, eax
jne 0x107055b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x1070570
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x1070552
cmp dword [ebp - 8], edi
jne 0x107054b
mov dword [ebp - 8], edi
cmp dword [ebp - 0x10], edi
je 0x1070552
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
pop edi
pop esi
pop ebx
jne 0x107056a
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x1070e65
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [0x10b3ad8], ebx
jne 0x1070ef1
cmp dword [ebp + 0xc], ebx
jne 0x1070e8e
push 0x101192c
push dword [ebp + 8]
call fcn.010409b1
test eax, eax
jne 0x1070ef1
mov ecx, edi
call fcn.01039f7d
mov ecx, edi
call fcn.01070a1c
cmp dword [ebp + 0xc], ebx
jne 0x1070eb7
push dword [ebp + 0x10]
mov dword [edi + 0xc44], 2
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_Ordinal_60]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov dword [edi + 0xc44], ebx
call esi
test ax, ax
jge 0x1070edf
push 0x11
call esi
test ax, ax
jge 0x1070edf
push 0x12
call esi
test ax, ax
jl 0x1070ee4
cmp dword [ebp + 0xc], ebx
je 0x1070ef0
call fcn.0106ddcd
mov ecx, edi
call fcn.0106fcfc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x1071248
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], 2
push esi
mov esi, ecx
jne 0x1071260
cmp dword [esi + 0xd28], eax
jmp 0x1071263
cmp dword [ebp + 8], eax
sete al
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0x1035458
push 0x100f280
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, esi
call fcn.0101f5dd
mov ecx, esi
call fcn.0101f58f
mov ecx, esi
call fcn.0101ec4e
pop esi
pop ebp
ret 4
Function at 0x1072644
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x107269c
push ebx
push edi
push 0x1072730
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010343ca
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10726ff
jmp 0x107266c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x107270f
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.0100665f
mov ecx, dword [ebp - 0x418]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
push 0x1072720
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010343ca
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10726ca
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0100665f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01001feb
leave
ret 8

Function at 0x107369c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
mov ebx, 0x80000001
je 0x1073742
push 1
push 0x1029d34
push 0x1033070
push ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov dword [ebp - 4], eax
test eax, eax
je 0x1073742
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
pop edi
push dword [esi + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], 0x10001
call dword [0x106c7a0]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
test eax, eax
jbe 0x1073732
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x1073732
push dword [ebp - 4]
push dword [esi + 0x10]
call dword [0x107377c]
test eax, eax
je 0x1073732
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 8], 0
pop edi
jne 0x1073774
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1033070
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1073774
push 0x1029d34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1073785
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [ecx + 0xc], eax
je 0x10737e5
mov dword [ecx + 0xc], eax
xor ecx, ecx
test eax, eax
lea eax, [ebp + 8]
push eax
push 0x20006
setne cl
push 0
push 0x1015388
push 0x80000001
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10737e0
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x102db1c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x10737e7
xor eax, eax
leave
ret 4
Function at 0x107772c
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
lea esi, [edi + 0x1077768]
push dword [esi]
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp + 8], 0
je 0x107775a
push dword [esi]
push 0
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
add edi, 4
cmp edi, 0x20
jb 0x1077735
pop edi
pop esi
pop ebp
ret 4
Function at 0x10788a7
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1f
pop ecx
push 0x18c
mov dword [ebp - 0x468], eax
xor ebx, ebx
lea eax, [ebp - 0x1e0]
push ebx
mov esi, 0x1078a10
lea edi, [ebp - 0x25c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x27
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.SHLWAPI.dll_Ordinal_24]
test eax, eax
jl 0x10789f0
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
mov esi, 0x104
push esi
push eax
call fcn.01078637
test eax, eax
jl 0x10789f0
push ebx
push 0x1078a04
lea eax, [ebp - 0x25c]
push eax
push esi
push eax
call fcn.01078637
test eax, eax
jl 0x10789f0
lea eax, [ebp - 0x468]
push eax
push 0xb
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10789f0
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x46c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10789d9
jmp 0x10789e4
dec dword [ebp - 0x46c]
lea eax, [ebp - 0x474]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x46c]
mov dword [ebp - 0x470], esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10789e1
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x46c], ebx
jge 0x107898c
xor ebx, ebx
inc ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01001feb
leave
ret 4

Function at 0x107a4c4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
je 0x107a4f7
push esi
lea ecx, [ebp + 8]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x107a4f7
xor eax, eax
jmp 0x107a523
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x107a513
xor edi, edi
inc edi
cmp dword [ebp + 0xc], esi
je 0x107a521
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x107a52e
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x107a5c6
push 0x107a5dc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x107a5c6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
mov dword [ebp - 0x248], 0x3c
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], 0x107a5d4
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001feb
leave
ret
Function at 0x107ad0d
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov ebx, 0x4010000
mov esi, 0x80000000
cmp dword [0x10b24cc], edi
je 0x107ad85
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x107ad3c
test al, al
jne 0x107ad85
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
and eax, ebx
and ecx, esi
or eax, ecx
je 0x107ad85
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
mov edx, edi
and ecx, ebx
and edx, esi
cmp ecx, eax
jne 0x107ad83
cmp edx, edi
jne 0x107ad83
push dword [ebp + 0xc]
push 0x107aec8
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.01026dc5
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 5
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x107ae10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0x8007000e
cmp edi, 0xffffffff
je 0x107adfb
test edi, edi
jbe 0x107adfb
cmp edi, 0x400000
jae 0x107ae03
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x107ae03
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x107adfb
mov eax, dword [ebp - 4]
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x800703e5
jmp 0x107ae00
call fcn.0107b677
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x107ae18
call fcn.0107b677
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x107ae4f
push edi
push edi
push dword [ebp - 8]
push 0x107abff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x107ae47
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x107ae3e
mov dword [ecx], eax
jmp 0x107ae5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x107ae5d
call fcn.0107b677
mov dword [ebp - 4], eax
cmp dword [ebp - 8], edi
je 0x107ae5d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10b24cc], edi
je 0x107aeb9
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x107ae72
test al, al
jne 0x107aeb9
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
and eax, ebx
and ecx, esi
or eax, ecx
je 0x107aeb9
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
mov edx, edi
and ecx, ebx
and edx, esi
cmp ecx, eax
jne 0x107aeb9
cmp edx, edi
jne 0x107aeb9
push dword [ebp + 0xc]
push 0x107aed8
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.01026dc5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x107aeed
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x107b128
push 0x80
xor ebx, ebx
push eax
mov dword [ebp - 0x518], ebx
call fcn.010343ca
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueFromHKCUHKLM]
xor eax, eax
add esp, 0x10
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x30c]
push eax
push ebx
push 2
push 0x107b10c
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x51c], 0x208
call esi
test eax, eax
je 0x107b009
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x514]
push eax
push ebx
push 2
push 0x107b0f4
lea eax, [ebp - 0x104]
mov edi, 0x104
push eax
mov dword [ebp - 0x51c], edi
call esi
test eax, eax
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x51c], edi
push eax
jne 0x107afcc
lea eax, [ebp - 0x30c]
push eax
push ebx
lea eax, [ebp - 0x514]
push eax
push 2
push 0x40
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
jmp 0x107b009
lea eax, [ebp - 0x514]
push eax
push ebx
push 2
push 0x107b0d8
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x107b009
lea eax, [ebp - 0x514]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRunIndirectRegClientCommand]
xor eax, eax
mov word [ebp - 0x30c], ax
mov dword [ebp - 0x518], 1
cmp word [ebp - 0x30c], bx
je 0x107b0be
lea eax, [ebp - 0x518]
push eax
push ebx
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHELL32.dll_SHEvaluateSystemCommandTemplate]
mov esi, eax
cmp esi, ebx
jge 0x107b04a
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x518], ebx
push 0x38
lea eax, [ebp - 0x558]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x54c], eax
mov eax, dword [ebp - 0x518]
mov dword [ebp - 0x548], eax
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x55c]
inc edi
push eax
mov dword [ebp - 0x55c], 0x3c
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x558], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, ebx
jl 0x107b0b8
push dword [ebp - 0x520]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x518]
call esi
mov dword [ebp - 0x518], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x518]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001feb
leave
ret 4
Function at 0x107b1a7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x418], 0x208
jne 0x107b1d7
mov eax, 0x1051d14
jmp 0x107b1e7
cmp dword [ebp + 0xc], 1
mov eax, 0x1051d74
je 0x107b1e7
mov eax, 0x107b2bc
push eax
push 0x107b260
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010343ca
add esp, 0x10
test eax, eax
jl 0x107b24a
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x107b23d
jle 0x107b24a
and eax, 0xffff
or eax, 0x80070000
jmp 0x107b24a
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0107ad0d
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001feb
leave
ret 8

Function at 0x107b610
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107b61b
sub eax, edx
sar eax, 1
cmp eax, 0x7fffffff
jae 0x107b64a
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHSetValueW
jmp 0x107b64f
mov eax, 0x216
test eax, eax
jle 0x107b65d
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret 0x10
Function at 0x107c3d2
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x6d4], eax
mov dword [ebp - 0x6d0], ecx
cmp eax, ebx
je 0x107c404
mov dword [eax], ebx
or dword [ecx], 0xffffffff
lea eax, [ebp - 0x6cc]
push eax
push 0x101a23c
sub esp, 0x10
mov edi, esp
mov esi, 0x101a22c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x6cc], ebx
movsd dword es:[edi], dword [esi]
call sub.SHLWAPI.dll_AssocCreate
mov esi, eax
cmp esi, ebx
jl 0x107c51c
mov eax, dword [ebp - 0x6cc]
mov ecx, dword [eax]
push ebx
push ebx
push 0x107c540
push ebx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x107c51c
mov eax, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6d8]
push edx
lea edx, [ebp - 0x20c]
push edx
push ebx
push 2
mov edi, 0x104
push 0x40
mov dword [ebp - 0x6d8], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x107c51c
push 0x111
push 0x2b4
lea eax, [ebp - 0x6c8]
push eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80004005
call sub.SHELL32.dll_SHGetFileInfoW
test eax, eax
je 0x107c51c
mov eax, dword [ebp - 0x6c4]
mov ecx, dword [ebp - 0x6d0]
mov dword [ecx], eax
cmp dword [ebp - 0x6d4], ebx
je 0x107c508
mov eax, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6d0]
push edx
lea edx, [ebp - 0x414]
push edx
push ebx
push 4
push 0x40
mov dword [ebp - 0x6d0], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x107c508
push dword [ebp - 0x6d4]
lea eax, [ebp - 0x414]
push eax
call fcn.0100eba2
mov esi, eax
cmp dword [ebp - 0x6c8], ebx
je 0x107c51c
push dword [ebp - 0x6c8]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x6cc]
cmp eax, ebx
je 0x107c52c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001feb
leave
ret 8
Function at 0x107cb11
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp dword [0x10b3d40], edi
jne 0x107cbb5
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push 0x107cc10
push 0x80000002
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x107cbad
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x107cbe4
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x107cba2
cmp dword [ebp - 4], edi
je 0x107cba2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x107cbc4
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x107cb9b
cmp dword [ebp - 4], edi
jne 0x107cba2
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x10]
mov dword [0x10b3d40], eax
xor eax, eax
cmp dword [0x10b3d40], 1
pop edi
sete al
leave
ret

Function at 0x107cc2f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x107cc78
cmp dword [ebp - 0x110], 2
jne 0x107cc76
cmp dword [ebp - 0x11c], 6
jb 0x107cc76
xor eax, eax
inc eax
jmp 0x107cc78
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001feb
leave
ret

Function at 0x107cd9b
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, eax
push edi
mov dword [esi], ebx
cmp dword [ebp + 8], ebx
jne 0x107ce15
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], ebx
je 0x107ce15
lea eax, [ebp - 4]
push eax
push 0x107ce30
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x107cdd9
cmp dword [ebp - 4], ebx
je 0x107cdee
mov edi, 0x80004005
call fcn.0107cb11
test eax, eax
je 0x107ce24
mov ecx, 0x107ce44
jmp 0x107ce1a
lea eax, [ebp + 8]
push eax
call fcn.01080405
mov edi, eax
cmp edi, ebx
jl 0x107cdde
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0107cc89
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x107ce24
mov ecx, 0x107ce3c
push dword [ebp + 0xc]
call fcn.0107cc89
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8