joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009e34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x40000056
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1009e92
push 1
push eax
push 0x10169e4
mov esi, 0x1016938
push esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
mov dword [edi + 0x30], eax
je 0x1009e8e
and dword [ebp - 4], 0
push 4
pop eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
add edi, 0x34
push edi
push 0
push 0x10169c0
push esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
pop edi
pop esi
leave
ret
and dword [edi + 0x30], 0
jmp 0x1009e8e

Function at 0x100a050
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x1f4]
mov eax, 0x1f4
push ecx
push eax
push 0x29
mov dword [ebp - 0x1f4], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x100a0ac
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, eax
and cx, 0x3ff
cmp cx, 4
je 0x102148d
mov dword [ebp - 0x1cc], 0x2bc
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
shr ax, 0xa
cmp ax, 1
je 0x10214a1
cmp ax, 2
jne 0x100a093
mov dword [ebp - 0x1cc], 0x190
jmp 0x100a09d

Function at 0x100a5b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [eax], ebx
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1025f4b
mov eax, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
and esi, 3
cmp eax, ebx
je 0x100a645
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov ebx, 0x1016938
push ebx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x1025f52
mov ecx, edi
call fcn.0100a666
test eax, eax
mov dword [ebp + 8], eax
je 0x100a645
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push ebx
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x101419e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 2
je 0x100ab77
cmp esi, 1
jne 0x100a65d
test byte [edi + 0xc], 0x10
jne 0x1025f6b
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4
test byte [edi + 0xc], 8
jne 0x100a65d
jmp 0x1025f63
mov esi, dword [ebp - 4]
jmp 0x100a63c
xor eax, eax
jmp 0x100a660
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [eax], 1
jmp 0x100a645
xor esi, esi
inc esi
jmp 0x100a65d
push 2
pop esi
jmp 0x100a65d
Function at 0x100a6b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
push esi
xor edi, edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x100a738
lea eax, [ebp - 8]
push eax
push 0x1017348
push esi
push dword [ebp - 0xc]
push esi
call fcn.01007e05
test eax, eax
jl 0x100a72f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x60
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x100a726
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100a827
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ILFree]
cmp edi, dword [ebp + 0x10]
pop edi
sbb eax, eax
inc eax
pop esi
leave
ret 0xc
cmp dword [ebp + 0xc], esi
je 0x10141b0
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0100a85a
test eax, eax
jne 0x10141b0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHFree]
cmp edi, dword [ebp + 0x10]
jae 0x100a71d
jmp 0x100a702
inc edi
jmp 0x100a843

Function at 0x100b681
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xec]
xor edi, edi
xor ebx, ebx
cmp dword [eax], edi
jle 0x100b6c5
push ebx
push eax
call dword [fcn.01016644]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x100b726
mov eax, dword [esi + 0xec]
inc ebx
cmp ebx, dword [eax]
jl 0x100b6a4
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax]
push edi
push edi
push dword [ebp + 8]
push 2
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x100b6ea
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [esi + 0xe4]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push edi
push 2
push edi
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x100b6dc
push edi
push edi
push edi
push edi
push 0x101736c
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push dword [ebp - 4]
mov edi, eax
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100b6dc
xor eax, eax
inc eax
jmp 0x100b6de
Function at 0x100d184
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 1
xor edi, edi
push edi
push 0x1017a40
push 0x1016938
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x10255ee
push ebx
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp + 8]
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push esi
push edi
mov ebx, 0x1017a14
push ebx
mov edi, 0x1017998
push edi
mov dword [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x1025607
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x101797c
push 0x1017920
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
jne 0x100d261
mov eax, dword [ebp - 8]
cdq
push 0
add eax, 0xb610d750
push 0x989680
adc edx, 2
push edx
push eax
call fcn.01008595
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edx
call edi
test eax, eax
jle 0x100d24b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
call edi
test eax, eax
jge 0x100d261
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USERENV.dll_GetProfileType]
test eax, eax
je 0x100d279
test byte [ebp - 0xc], 3
jne 0x102562b
pop esi
pop ebx
pop edi
leave
ret 4
mov ecx, dword [0x1017358]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [0x101735c]
mov dword [eax + 4], ecx
jmp 0x100d27b
mov eax, dword [ebp - 0x1c]
push 8
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
pop eax
push 2
push eax
push esi
push 3
push ebx
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
jmp 0x100d1e1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x100d279
lea eax, [ebp - 0x14]
push eax
push esi
call edi
test eax, eax
jge 0x100d279
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
jmp 0x100d279
Function at 0x100d4bb
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
cmp dword [0x103e7c8], ebx
mov dword [ebp - 8], ebx
je 0x1011d37
cmp dword [0x103e7c8], 1
je 0x10251f5
xor eax, eax
cmp dword [0x103e7c8], 1
pop ebx
sete al
leave
ret 4
push esi
push 7
xor esi, esi
call fcn.0100ea8c
test eax, eax
je 0x1025150
call fcn.01011d93
cmp ax, bx
mov word [0x103f4c0], ax
je 0x1011d79
push 0x10
lea ecx, [ebp - 0x38]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011d79
test byte [ebp - 0x29], 8
jne 0x1025135
xor eax, eax
cmp esi, ebx
sete al
inc eax
push eax
push 0x103e7c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
jmp 0x100d4d3
xor eax, eax
mov ax, word [0x103f4c0]
push eax
call fcn.0103524e
test eax, eax
je 0x1011d79
jmp 0x10251ed
push 5
call fcn.0100ea8c
test eax, eax
je 0x1011d79
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1011d79
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1027248
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1011d79
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x1027244
push dword [ebp - 4]
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov byte [ebp - 0xd], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01035169
test eax, eax
je 0x1011d79
mov eax, dword [ebp - 8]
and eax, 0x3ff
cmp eax, 1
je 0x10251e7
cmp eax, 0xd
jne 0x1011d79
mov word [0x103f4c0], ax
xor esi, esi
inc esi
jmp 0x1011d79
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x100d4e0
mov cx, word [0x103f4c0]
mov word [eax], cx
jmp 0x100d4e0

Function at 0x100dcaa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100dd44
mov eax, dword [ebp - 4]
push edi
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x100dd43
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x100dd3a
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x3b
mov esi, edi
push edi
call ebx
mov edi, eax
test edi, edi
je 0x100dd2b
and word [edi], 0
cmp word [esi], 0
je 0x100dd23
push esi
push dword [ebp + 0x10]
call fcn.0100de1f
lea esi, [edi + 2]
push 0x3b
push esi
jmp 0x100dd08
cmp word [esi], ax
pop ebx
je 0x100dd3a
push esi
push dword [ebp + 0x10]
call fcn.0100de1f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
leave
ret 0xc
Function at 0x100ddb6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x10258a3
push 4
mov ecx, edi
call fcn.01008243
test eax, eax
je 0x100de1a
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x100de17
push esi
mov esi, eax
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x100de0c
lea eax, [ebp - 0x208]
push eax
push dword [edi]
call fcn.0100de1f
add esi, 4
cmp dword [esi], 0xffffffff
mov eax, esi
jne 0x100dde5
pop esi
xor eax, eax
inc eax
pop edi
leave
ret 8
push 0
push 0x101e261
push eax
call dword [fcn.01016754]
push dword [edi]
call dword [0x1016758]
jmp 0x100ddda
Function at 0x100e114
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x36
pop ecx
xor eax, eax
mov word [ebp - 0x6c], bx
lea edi, [ebp - 0x6a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3b0]
push eax
mov word [ebp - 0x28], 0xdc
call dword [sym.imp.USER32.dll_EnumDisplaySettingsExW]
test eax, eax
je 0x100e1a9
test byte [ebp - 0x24], 0x20
je 0x100e1a9
mov eax, 0x258
cmp dword [ebp + 0x40], eax
jb 0x100e1a9
cmp dword [ebp + 0x44], eax
jb 0x100e1a9
cmp dword [ebp + 0x3c], 0xf
jb 0x100e1a9
mov dword [ebp + 0x74], ebx
jmp 0x100e1a9
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x42c
push ebx
xor ebx, ebx
push 0x1d
mov dword [ebp + 0x74], ebx
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x100e1bb
push esi
push edi
mov ecx, 0xd2
lea edi, [ebp - 0x3b4]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
push edi
push ebx
push 0x1018054
push 0x1017fb8
mov dword [ebp - 0x3b4], 0x348
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x100e1b9
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x43
call esi
test eax, eax
jne 0x100e1b9
push 0x1000
call esi
test eax, eax
jne 0x100e1b9
mov esi, dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
push ebx
lea eax, [ebp - 0x3b4]
push eax
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x70], ebx
push ebx
push ebx
call esi
test eax, eax
je 0x100e1b9
test byte [ebp - 0x270], 8
je 0x100e0af
inc dword [ebp + 0x70]
push ebx
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp + 0x70]
jmp 0x100e195
pop edi
pop esi
mov eax, dword [ebp + 0x74]
pop ebx
add ebp, 0x78
leave
ret

Function at 0x100e225
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 0xe
pop ecx
xor eax, eax
push 0x43
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x106
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_Ordinal_653]
cmp eax, 0xffffffff
je 0x101fda6
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov esi, eax
cmp word [esi], bx
je 0x100e278
mov word [esi - 2], bx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov dword [ebp - 0x28], esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], 0x40
je 0x100e2b1
mov dword [ebp - 0x38], 0x440
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100e2df
cmp dword [ebp - 4], ebx
je 0x100e2d6
cmp dword [ebp + 0x10], ebx
jne 0x101fdbb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x100e2d8
push dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x100e260
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
call fcn.0101b51f
jmp 0x100e2cd
Function at 0x100ea1b
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.0100ea3f
test eax, eax
jne 0x102212d
push 0
push 1
push 0x590
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
push 0x40000042
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100ea2b
call fcn.0100a30a
test eax, eax
je 0x1022192
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x100ea3d
push 0
push 0
push 0x590
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 1
push 0xf3
push 0x130
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
pop esi
jmp fcn.0102b1e6
push 0
push 1
push 0x590
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x321
push 0x320
mov ecx, esi
call fcn.0102b238
pop esi
ret

Function at 0x100ea3f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1018090
push 0x1016938
push 0x80000001
mov esi, ecx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0100a30a
test eax, eax
je 0x102210c
cmp dword [ebp - 4], 2
sbb eax, eax
neg eax
pop esi
leave
ret
mov eax, dword [ebp - 4]
sub eax, 0
je 0x1022125
dec eax
jne 0x102211e
mov ecx, esi
call fcn.0102b1e6
xor eax, eax
jmp 0x100ea89
xor eax, eax
inc eax
jmp 0x100ea89
Function at 0x100f116
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
lea eax, [ebp - 4]
push eax
mov esi, 0xf003f
push esi
push 0
push 0x10187c4
push 0x80000000
call ebx
test eax, eax
jne 0x100f16e
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push 0
mov edi, 0x10187ac
push edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x102028d
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0
mov ebx, 0x10177e0
push ebx
push 0
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call edi
test eax, eax
jne 0x100f164
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push esi
push eax
push ebx
push eax
push 0x101a1ac
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x1020315
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push esi
push eax
push ebx
push eax
push 0x1026f1c
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x102030c
push 4
push 0x1026eb0
push 1
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
jmp 0x100f15e

Function at 0x100f338
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0100f355
test eax, eax
jne 0x10200a0
pop ebx
leave
ret 8
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 7
mov dword [ebp - 0x20], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x1c]
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov dword [ebp - 0x28], eax
cmp word [eax], si
je 0x10200e0
mov word [eax - 2], si
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
jmp 0x100f350
Function at 0x100f485
Capabilities:
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push esi
lea eax, [ebp - 0x410]
push eax
xor esi, esi
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100f4fe
push edi
push 0x20
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, esi
je 0x100f4fd
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x868]
mov word [edi], si
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
call esi
push 0x10182b4
push edi
call esi
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1021b66
pop edi
pop esi
leave
ret
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
test byte [ebp - 0x660], 0x10
je 0x1021bc3
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1021bf0
push 0x1027154
push 5
lea eax, [ebp - 0x208]
push eax
push 0x102c42d
push 0x14
push dword [0x103e648]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_292]
cmp eax, 5
je 0x1021c06
lea eax, [ebp - 0x660]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1021b6b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100f4fd
Function at 0x100f5ba
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x1d
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x100f6e8
cmp dword [edi + 0x540], esi
je 0x100f6e8
push 0x222
push esi
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x100f6e8
push 0x40000073
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100f6e8
push ebx
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
mov ebx, 0x1018384
push ebx
mov edi, 0x10182f8
push edi
mov dword [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x1021a9a
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x20019
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
test eax, eax
jne 0x100f6e7
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10182e8
push dword [ebp - 0x10]
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
test eax, eax
je 0x100f6ef
push 0x3c
pop ebx
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10182bc
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x100f6f6
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0100f6ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x100f6de
mov dword [ebp - 0xc], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
cmp dword [ebp - 8], esi
jne 0x100f6db
jmp 0x100f699
mov ebx, dword [ebp - 8]
cmp ebx, esi
jle 0x100f6de
jmp 0x100f6b8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10270e8
push 0x1027070
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1021adc
cmp dword [ebp - 8], esi
je 0x1021adc
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffcb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0100f6ff
jmp 0x1021ae8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push 2
push 8
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
jmp 0x100f65b

Function at 0x100f86c
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x100e02c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100f88f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret