joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d7ad
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x102a0ec]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x328]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1002310
push 0x80000000
mov dword [ebp - 0x328], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d955
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x328]
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x32c], 0x104
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100d943
inc dword [ebp - 0x330]
cmp word [ebp - 0x20c], 0x7b
mov dword [ebp - 0x32c], 0x104
je 0x100d86e
lea eax, [ebp - 0x20c]
push 0x1002304
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x100d923
lea eax, [ebp - 0x338]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x328]
mov dword [ebp - 0x33c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d923
lea eax, [ebp - 0x20c]
push eax
push 0x10022ec
lea eax, [ebp - 0x324]
push 0x8b
push eax
call fcn.0100d4d1
add esp, 0x10
push esi
lea eax, [ebp - 0x334]
push eax
push esi
push 3
push esi
push esi
push esi
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100d900
push dword [ebp - 0x334]
push dword [ebp - 0x338]
call fcn.0101773d
push dword [ebp - 0x334]
mov dword [ebp - 0x33c], eax
call ebx
push dword [ebp - 0x338]
call ebx
cmp dword [ebp - 0x33c], esi
je 0x100d923
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x328]
call edi
test eax, eax
je 0x100d838
push dword [ebp - 0x328]
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret
Function at 0x100db7e
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x102a0ec]
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x634]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10025a8
push 0x80000002
mov dword [ebp - 0x634], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100dd3f
push esi
push edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x100dcb6
push 0x1002598
lea eax, [ebp - 0x41c]
push eax
push 0x100258c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0100d4d1
add esp, 0x14
test eax, eax
jl 0x100dc4e
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01017285
test eax, eax
jl 0x100dc4e
push 8
lea eax, [ebp - 0x630]
push eax
push 3
push ebx
push 0x1002598
push dword [ebp - 0x634]
call edi
push 0x1001d0c
lea eax, [ebp - 0x41c]
push eax
push 0x100258c
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x630], ebx
call fcn.0100d4d1
add esp, 0x14
test eax, eax
jl 0x100dcb6
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01017285
test eax, eax
jl 0x100dcb6
push 8
lea eax, [ebp - 0x630]
push eax
push 3
push ebx
push 0x1001d0c
push dword [ebp - 0x634]
call edi
push esi
push 1
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x630], ebx
call fcn.010190e9
test eax, eax
je 0x100dd31
push 0x1002570
lea eax, [ebp - 0x628]
push eax
push 0x100258c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0100d4d1
add esp, 0x14
test eax, eax
jl 0x100dd31
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01017285
test eax, eax
jl 0x100dd31
push 8
lea eax, [ebp - 0x630]
push eax
push 3
push ebx
push 0x1002570
push dword [ebp - 0x634]
call edi
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101672d
leave
ret
Function at 0x100dd71
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102a0ec]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], ebx
jne 0x100de41
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010190e9
test eax, eax
je 0x100df5a
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002668
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x100df5a
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x100df5a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.01017285
test eax, eax
jl 0x100df5a
cmp edi, ebx
je 0x100df50
mov eax, dword [ebp - 0x210]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x214]
jmp 0x100df37
cmp eax, 3
jne 0x100de74
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010190e9
test eax, eax
je 0x100df5a
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002570
jmp 0x100ded4
cmp eax, 2
jne 0x100deab
push 0x103
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100df5a
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002650
push 0x104
jmp 0x100ded5
cmp eax, 1
jne 0x100df5a
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100df5a
push 0x1002638
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x100df5a
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x100df5a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.01017285
test eax, eax
jl 0x100df5a
cmp edi, ebx
je 0x100df50
mov eax, dword [ebp - 0x214]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x210]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1002618
push dword [ebp + 0x10]
push edi
call fcn.0100d4d1
add esp, 0x1c
mov dword [ebp - 0x218], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0xc
Function at 0x100e818
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x102a0ec]
push esi
push edi
xor edi, edi
push edi
push edi
xor esi, esi
inc esi
push esi
push 5
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], edi
call fcn.01018dae
test eax, eax
je 0x100e9e1
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x10017a8
push 0x80000002
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100e9e1
push ebx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x1002800
push dword [ebp - 0x210]
mov dword [ebp - 0x220], 0x208
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, 0x1001780
jne 0x100e8ee
cmp dword [ebp - 0x21c], 1
jne 0x100e8ee
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
mov dword [ebp - 0x214], eax
je 0x100e9b6
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push 0x10027e0
push dword [ebp - 0x210]
call ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e0eb
test eax, eax
je 0x100e9b6
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002740
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x100e9b6
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x10026e8
push 0x80000002
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100e9b6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x100277c
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push 0x1002800
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
call fcn.0101672d
leave
ret
Function at 0x100efff
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x125c
call fcn.01016a60
mov eax, dword [0x102a0ec]
push ebx
xor ebx, ebx
push esi
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1250], ebx
mov dword [ebp - 0x125c], ebx
mov dword [ebp - 0x1258], 1
call fcn.0100e9f8
call fcn.0100e341
lea eax, [ebp - 0x1250]
push eax
push 0x2001f
push ebx
push 0x1002b98
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f1a3
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
mov dword [ebp - 0x1254], ebx
cmp dword [ebp - 0x1254], ebx
lea eax, [ebp - 0x104]
je 0x100f082
push 0x1002b78
jmp 0x100f087
push 0x1002b5c
push 0x7f
push eax
call fcn.0100c535
push 0x1002b4c
lea eax, [ebp - 0x204]
push 0x7f
push eax
call fcn.0100c535
lea eax, [ebp - 0x125c]
push eax
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x1258]
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x1250]
mov dword [ebp - 0x125c], 0x1048
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f183
cmp dword [ebp - 0x1258], 1
jne 0x100f183
lea eax, [ebp - 0x124c]
push 0x2f
push eax
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x100f170
lea esi, [eax + 2]
push 0x2f
push esi
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x100f11a
lea esi, [eax + 2]
push 0x2f
push esi
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x100f11a
mov word [eax], bx
cmp esi, ebx
je 0x100f170
push 0x3f
push esi
call edi
cmp eax, ebx
pop ecx
pop ecx
je 0x100f12c
mov word [eax], bx
push esi
call dword [sym.imp.msvcrt.dll__wcslwr]
mov dword [esp], 0x1002b28
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, ebx
pop ecx
pop ecx
je 0x100f170
push esi
mov word [eax], bx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100f183
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc dword [ebp - 0x1254]
cmp dword [ebp - 0x1254], 2
jl 0x100f06d
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [ebp - 0x1250]
push eax
push 3
push ebx
push 0x10026e8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f23d
push 4
pop esi
lea eax, [ebp - 0x125c]
push eax
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x1258]
push eax
push ebx
push 0x1002b08
push dword [ebp - 0x1250]
mov dword [ebp - 0x1254], ebx
mov dword [ebp - 0x125c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f231
cmp dword [ebp - 0x1258], esi
je 0x100f20c
cmp dword [ebp - 0x1258], 3
jne 0x100f231
push dword [ebp - 0x125c]
lea eax, [ebp - 0x1254]
push eax
push dword [ebp - 0x1258]
push ebx
push 0x1002ae8
push dword [ebp - 0x1250]
push ebx
call fcn.01017e70
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0101672d
leave
ret
Function at 0x100f251
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102a0ec]
and dword [ebp - 0x210], 0
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x1002c28
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100f2c9
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100f2d5
push 0x1002c10
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
push 0
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01019a5b
jmp 0x100f2d5
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.01016a60
mov eax, dword [0x102a0ec]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1048]
push eax
push esi
push 3
push esi
push esi
push esi
xor edi, edi
push 0x1002ce0
inc edi
push 0x80000002
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1050], 0x820
mov dword [ebp - 0x104c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100f474
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x104c]
push eax
push esi
push 0x1002cb8
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f372
cmp dword [ebp - 0x104c], edi
je 0x100f388
push 0x1002ca4
push 0x40f
lea eax, [ebp - 0x824]
push eax
call fcn.0100c535
push ebx
mov ebx, 0x10012e0
lea eax, [ebp - 0x824]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edi, eax
pop ecx
cmp edi, esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
je 0x100f411
cmp dword [ebp + 8], 0
jne 0x100f467
lea eax, [ebp - 0x824]
push eax
dec edi
push 0x40f
lea eax, [ebp - 0x1044]
dec edi
and word [edi], 0
push eax
call fcn.0100c535
inc edi
push ebx
inc edi
call esi
push edi
mov ebx, eax
call esi
cmp eax, ebx
pop ecx
pop ecx
jbe 0x100f3f7
lea eax, [edi + ebx*2]
push eax
push 0x410
lea eax, [ebp - 0x1044]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x1044]
push eax
push 0x410
lea eax, [ebp - 0x824]
push eax
call fcn.0100c535
jmp 0x100f43c
cmp dword [ebp + 8], 0
je 0x100f467
push 0x1002ca0
mov edi, 0x410
push edi
lea eax, [ebp - 0x824]
push eax
call fcn.0100d4ff
push ebx
push edi
lea eax, [ebp - 0x824]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x824]
push eax
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
push 0
push 0x1002cb8
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101672d
leave
ret 4
Function at 0x100feb4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x102a0ec]
and dword [ebp - 0x1a0], 0
and dword [ebp - 0x19c], 0
push ebx
push esi
push edi
push 4
mov dword [ebp - 4], eax
pop ebx
mov edi, 0x10016b0
mov esi, dword [ebp - 0x19c]
neg esi
sbb esi, esi
add esi, 0x80000002
and dword [ebp - 0x198], 0
push 0x1003ba8
push 0xc7
lea eax, [ebp - 0x194]
push eax
call fcn.0100c535
mov eax, dword [ebp - 0x198]
sub eax, 0
je 0x100ff42
dec eax
je 0x100ff3b
dec eax
jne 0x100ff34
push 0x1003b58
push 0xc8
lea eax, [ebp - 0x194]
push eax
call fcn.0100d4ff
push 0x1003b08
jmp 0x100ff47
push 0x10014c0
jmp 0x100ff47
push 0x1003ab8
lea eax, [ebp - 0x194]
push 0xc8
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x1a0]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x194]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ffe3
and dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1a4]
push eax
push 0
push edi
push dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], 3
mov dword [ebp - 0x1ac], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ffd7
cmp dword [ebp - 0x1a4], 3
jne 0x100ffd7
push ebx
lea eax, [ebp - 0x1a8]
push eax
push ebx
push 0
push edi
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x198]
cmp dword [ebp - 0x198], ebx
jl 0x100fef7
inc dword [ebp - 0x19c]
cmp dword [ebp - 0x19c], 2
jl 0x100fee0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret
Function at 0x101168e
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102a0ec]
push ebx
push esi
push edi
mov esi, 0x104
push esi
mov dword [ebp - 4], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010190e9
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x1011715
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002570
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x1011715
lea eax, [ebp - 0x20c]
push eax
call edi
cmp dword [ebp + 8], ebx
je 0x1011704
and eax, 0xfffffff9
jmp 0x1011707
or eax, 6
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010190e9
test eax, eax
je 0x1011765
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1004e2c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x1011765
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.01019a5b
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010190e9
test eax, eax
je 0x10117c9
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002668
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x10117c9
lea eax, [ebp - 0x20c]
push eax
call edi
cmp dword [ebp + 8], ebx
je 0x10117b8
and eax, 0xfffffff9
jmp 0x10117bb
or eax, 6
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 4
Function at 0x1011aac
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x102a0ec]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10050b0
push 0x80000002
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1011be4
push ebx
push edi
mov edi, 0x105
xor ebx, ebx
push edi
lea eax, [ebp - 0x41c]
inc ebx
push eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x42c], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1011bd6
push 0x100508c
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x1011bd6
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1005074
push dword [ebp - 0x420]
call esi
test eax, eax
jne 0x1011b81
cmp dword [ebp - 0x428], ebx
jne 0x1011b81
push 0xa1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0x1005054
push dword [ebp - 0x420]
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x430], edi
call esi
test eax, eax
jne 0x1011bd6
cmp dword [ebp - 0x424], ebx
jne 0x1011bd6
push 0xa2
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret

Function at 0x1011bf4
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x102a0ec]
push esi
mov dword [ebp - 4], eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1011ccd
lea eax, [ebp - 0x210]
push eax
call fcn.01016cfc
push 0x1001d0c
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x1011ccd
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
xor esi, esi
push eax
mov dword [ebp - 0x218], esi
call fcn.01017ed6
test eax, eax
je 0x1011ccd
cmp word [ebp - 0x218], 0x409
je 0x1011ccd
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x10026e8
push 0x80000001
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1011ccd
push 4
lea eax, [ebp - 0x21c]
push eax
push 4
push esi
push 0x1005108
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret