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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x1001e58
push 0x80000002
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10276a0
xor eax, eax
jmp 0x1027777
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
mov esi, 0x1001fa0
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x10276ff
cmp dword [ebp - 0x224], 1
jne 0x10276ff
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10276ec
sub eax, edx
sar eax, 1
cmp eax, 0x14
jae 0x1027762
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1027762
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1027762
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1027736
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret

Function at 0x1027789
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1002038
mov esi, 0x80000002
push esi
call edi
mov ebx, 0x1001fb8
push ebx
push esi
call edi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 3
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10277d7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x10277de
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1002100
push 0x80000001
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10278fe
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], 0x104
push esi
jmp 0x10278e1
inc dword [ebp - 0x21c]
lea eax, [ebp - 0x214]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10278c9
push 0x10020e4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x10020c8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x10020ac
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x1027856
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret
Function at 0x1027938
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 0x624]
push ecx
xor eax, eax
mov ebx, 0x2001f
push ebx
push eax
push 0x1002340
mov edi, 0x80000001
push edi
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
call esi
test eax, eax
je 0x102798a
and dword [ebp - 0x624], 0
lea eax, [ebp - 0x628]
push eax
push ebx
push 0
push 0x10022c8
push edi
call esi
test eax, eax
jne 0x1027ad6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x62c]
push ecx
push eax
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x414]
mov ebx, 0x104
mov esi, 0x208
push ecx
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x62c], 1
push eax
jmp 0x1027aba
inc dword [ebp - 0x620]
cmp dword [ebp - 0x620], 0x3e8
jae 0x1027aca
cmp dword [ebp - 0x624], 0
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x634], esi
je 0x1027a59
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x624]
mov dword [ebp - 0x638], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1027a8f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
jne 0x1027a8f
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec dword [ebp - 0x620]
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x620]
push dword [ebp - 0x628]
call edi
test eax, eax
je 0x10279fa
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x624], 0
pop edi
pop esi
pop ebx
je 0x1027aee
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0102df7d
leave
ret
Function at 0x1027aff
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 8]
push eax
push 3
xor esi, esi
push esi
push 0x1001e58
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], esi
call ebx
mov edi, 0x10023c0
test eax, eax
jne 0x1027b9b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027b92
cmp dword [ebp - 0x10], 4
jne 0x1027b92
cmp dword [ebp - 4], 0xd2af9
je 0x1027b7c
cmp dword [ebp - 4], 0xc00d2afb
jne 0x1027b92
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 3
push esi
push 0x1001e58
push 0x80000001
call ebx
test eax, eax
jne 0x1027c07
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027bfe
cmp dword [ebp - 0x10], ebx
jne 0x1027bfe
cmp dword [ebp - 4], 0xd2af9
je 0x1027bea
cmp dword [ebp - 4], 0xc00d2afb
jne 0x1027bfe
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1027c11
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x10023f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027c80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10023dc
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027c77
cmp dword [ebp - 8], 4
jne 0x1027c77
cmp dword [ebp - 0xc], esi
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1027caf
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x1002590
push 0x80000002
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1027d34
push esi
push edi
push 0x19
pop ecx
mov esi, 0x1002528
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1002510
push dword [ebp - 0x70]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x74], ebx
call esi
push 0x66
lea eax, [ebp - 0x6c]
push eax
push 2
push ebx
push 0x1002500
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.0102df7d
leave
ret

Function at 0x1027d76
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
xor edi, edi
inc edi
push edi
push esi
push esi
push esi
push 0x10026c8
push 0x80000001
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1027e0a
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x1002690
push dword [ebp - 0x210]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027dfe
cmp dword [ebp - 0x214], edi
jne 0x1027dfe
mov esi, edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret
Function at 0x1027fdb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], ebx
cmp eax, ebx
jne 0x10280ad
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010302a3
test eax, eax
je 0x10281c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e61a
push 0x1002790
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jl 0x10281c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x10281c6
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.0102ec42
test eax, eax
jl 0x10281c6
cmp edi, ebx
je 0x10281bc
mov eax, dword [ebp - 0x210]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x214]
jmp 0x10281a3
cmp eax, 3
jne 0x10280e0
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010302a3
test eax, eax
je 0x10281c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e61a
push 0x1002774
jmp 0x1028140
cmp eax, 2
jne 0x1028117
push 0x103
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10281c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e61a
push 0x100275c
push 0x104
jmp 0x1028141
cmp eax, 1
jne 0x10281c6
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10281c6
push 0x1002744
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jl 0x10281c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x10281c6
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.0102ec42
test eax, eax
jl 0x10281c6
cmp edi, ebx
je 0x10281bc
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 0x1002724
push dword [ebp + 0x10]
push edi
call fcn.01027f64
add esp, 0x1c
mov dword [ebp - 0x218], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 0xc
Function at 0x10284f4
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.0102dfa0
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x1250]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x1002a70
push 0x80000001
mov dword [ebp - 0x1250], ebx
mov dword [ebp - 0x125c], ebx
mov dword [ebp - 0x1258], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10286ac
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
mov dword [ebp - 0x1254], ebx
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x1254], ebx
je 0x102856e
push 0x1002a50
jmp 0x1028573
push 0x1002a34
push 0x7f
push eax
call fcn.01027e68
push 0x1002a24
push 0x7f
lea eax, [ebp - 0x204]
push eax
call fcn.01027e68
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 0x102868b
cmp dword [ebp - 0x1258], 1
jne 0x102868b
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x124c]
push 0x2f
push eax
call edi
pop ecx
pop ecx
cmp eax, ebx
je 0x1028678
lea esi, [eax + 2]
push 0x2f
push esi
call edi
pop ecx
pop ecx
cmp eax, ebx
je 0x1028613
lea esi, [eax + 2]
push 0x2f
push esi
call edi
pop ecx
pop ecx
cmp eax, ebx
je 0x1028613
xor ecx, ecx
mov word [eax], cx
cmp esi, ebx
je 0x1028678
push 0x3f
push esi
call edi
pop ecx
pop ecx
cmp eax, ebx
je 0x1028627
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.msvcrt.dll__wcslwr]
mov dword [esp], 0x1002a00
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
cmp eax, ebx
je 0x1028678
xor ecx, ecx
mov word [eax], cx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102864c
sub eax, edx
sar eax, 1
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 0x102868b
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 0x1028559
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.0102df7d
leave
ret
Function at 0x10288dd
Capabilities:
Delete registry value
Get file attributes
Set file attributes
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.010302a3
xor edi, edi
test eax, eax
je 0x1028a76
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e61a
push 0x1002774
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1028a76
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x210], edi
cmp dword [ebp + 8], edi
je 0x1028963
and eax, 0xfffffff9
jmp 0x1028966
or eax, 6
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x1002e88
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1028ae6
push esi
cmp dword [ebp + 8], edi
jne 0x1028a49
push 0x1002e20
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.01027ea2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jl 0x10289fa
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10289d0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push edi
push 0x1002df4
push dword [ebp - 0x210]
call esi
push 0x1002d88
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.01027ea2
test eax, eax
jl 0x1028a69
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1028a1d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push edi
push 0x1002d58
push dword [ebp - 0x210]
call esi
jmp 0x1028a69
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1002df4
push dword [ebp - 0x210]
call esi
push 0x1002d58
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010302a3
test eax, eax
je 0x1028ae6
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e61a
push 0x1002790
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1028ae6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp + 8], edi
je 0x1028ad5
and eax, 0xfffffff9
jmp 0x1028ad8
or eax, 6
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret 4
Function at 0x1028efb
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x634]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10031f0
push 0x80000002
mov dword [ebp - 0x634], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10290be
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]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1029035
push 0x10031e0
lea eax, [ebp - 0x41c]
push eax
push 0x10031d4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x1028fcd
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0102ec42
test eax, eax
jl 0x1028fcd
push 8
lea eax, [ebp - 0x630]
push eax
push 3
push ebx
push 0x10031e0
push dword [ebp - 0x634]
call edi
push 0x10020e4
lea eax, [ebp - 0x41c]
push eax
push 0x10031d4
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x630], ebx
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x1029035
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0102ec42
test eax, eax
jl 0x1029035
push 8
lea eax, [ebp - 0x630]
push eax
push 3
push ebx
push 0x10020e4
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.010302a3
test eax, eax
je 0x10290b0
push 0x1002774
lea eax, [ebp - 0x628]
push eax
push 0x10031d4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x10290b0
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0102ec42
test eax, eax
jl 0x10290b0
push 8
lea eax, [ebp - 0x630]
push eax
push 3
push ebx
push 0x1002774
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]
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret
Function at 0x102951f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xca8
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xd
pop ecx
mov esi, 0x10036cc
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xa
pop ecx
mov esi, 0x10036a0
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
push 0xd
movsw word es:[edi], word [esi]
pop ecx
mov esi, 0x1003668
lea edi, [ebp - 0xca4]
rep movsd dword es:[edi], dword [esi]
push 0x1d2
xor ebx, ebx
lea eax, [ebp - 0xc6e]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
push 0x11
pop ecx
mov esi, 0x1003620
lea edi, [ebp - 0xa9c]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [ebp - 0xa56]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
push 0x12
pop ecx
mov esi, 0x10035d0
lea edi, [ebp - 0x894]
rep movsd dword es:[edi], dword [esi]
push 0x1be
lea eax, [ebp - 0x84a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0x24
mov esi, 0x105
push esi
lea eax, [ebp - 0x480]
push eax
call fcn.01029157
test eax, eax
je 0x102968f
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x480]
push eax
mov edi, 0x10035bc
push edi
lea eax, [ebp - 0x68c]
push esi
push eax
call fcn.01027f64
add esp, 0x18
test eax, eax
jl 0x102968f
lea eax, [ebp - 0x68c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x102968f
lea ebx, [ebp - 0xca4]
mov dword [ebp - 0xca8], 3
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x480]
push eax
push edi
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.01027f64
add esp, 0x18
test eax, eax
jl 0x1029681
lea eax, [ebp - 0x274]
push eax
call fcn.0102e8b9
test eax, eax
je 0x102966b
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
add ebx, 0x208
dec dword [ebp - 0xca8]
jne 0x102962d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret