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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2430
call fcn.01077a20
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x2428], eax
mov eax, dword [eax + 4]
push edi
xor edi, edi
mov dword [ebp - 0x241c], ecx
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x2418], edi
mov dword [ebp - 0x2420], edi
test byte [eax + 0x60], 0x80
jne 0x109891d
push esi
push dword [ecx + 0x3c]
mov esi, reloc.KERNEL32.dll_WaitForSingleObject
push 0x10113d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
cmp eax, edi
jne 0x10988f5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2424]
push eax
lea eax, [ebp - 0x2418]
push eax
push edi
push 0x2000000
push 4
push edi
push edi
push 0x1011530
push esi
call ebx
cmp eax, edi
jne 0x10988f4
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2420]
push eax
push edi
push edi
push 0x1011520
push dword [ebp - 0x2418]
mov dword [ebp - 0x242c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2418]
mov dword [ebp - 0x2430], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2430], edi
jne 0x10988f4
push 0x10114d0
push dword [ebp - 0x2420]
lea eax, [ebp - 0x2414]
push 0x1011458
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x2424]
push eax
lea eax, [ebp - 0x2418]
push eax
push edi
push 0x2000000
push 4
push edi
push edi
lea eax, [ebp - 0x2414]
push eax
push esi
call ebx
cmp eax, edi
jne 0x10988f4
mov eax, dword [ebp - 0x2428]
mov eax, dword [eax + 0x14]
test byte [eax + 0x9e], 0x80
je 0x10988f4
mov eax, dword [ebp - 0x241c]
cmp word [eax + 0x8e], di
je 0x10988f4
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
inc ebx
push 0x1005d9c
mov dword [ebp - 0x241c], ebx
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x10108c4
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 0x1011434
push dword [ebp - 0x2418]
call ebx
push 4
lea eax, [ebp - 0x241c]
push eax
push 4
push edi
push 0x1011408
push dword [ebp - 0x2418]
call ebx
pop ebx
cmp dword [ebp - 0x2418], edi
je 0x1098909
push dword [ebp - 0x2418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x10113d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075bbb
leave
ret 4
Function at 0x1098dfd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, reloc.KERNEL32.dll_FindClose
call fcn.01077a20
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x2014], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2018], ecx
lea ecx, [ebp - 0x2008]
push ecx
push 0x20019
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1011568
push eax
mov dword [ebp - 0x2010], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1098ee6
push ebx
push edi
xor ebx, ebx
lea eax, reloc.KERNEL32.dll_FindClose
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push dword [ebp - 0x2008]
mov dword [ebp - 0x200c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1098ebc
mov eax, dword [ebp - 0x200c]
push dword [ebp - 0x2008]
mov edx, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2004]
mov word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], si
call fcn.01098292
cmp eax, esi
mov dword [ebp - 0x2010], eax
je 0x1098ec3
inc ebx
cmp edi, esi
je 0x1098e58
jmp 0x1098ed8
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2018]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2010]
pop esi
call fcn.01075bbb
leave
ret 8

Function at 0x1098efe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.01077a20
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 0x4018], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x401c], ecx
lea ecx, [ebp - 0x4008]
push ecx
push 1
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1005dd8
push eax
mov dword [ebp - 0x4008], eax
mov dword [ebp - 0x4010], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1098fed
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push ebx
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4010]
mov dword [ebp - 0x4014], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
push dword [ebp - 0x4008]
mov dword [ebp - 0x400c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x1098fba
mov eax, dword [ebp - 0x400c]
shr eax, 1
cmp dword [ebp - 0x400c], 2
mov word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], bx
ja 0x1098fc6
inc dword [ebp - 0x4010]
cmp esi, ebx
je 0x1098f57
jmp 0x1098fdf
push dword [ebp - 0x4018]
mov ebx, dword [ebp - 0x401c]
lea eax, [ebp - 0x2004]
call fcn.01098405
mov esi, eax
push dword [ebp - 0x4008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1098ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 8
Function at 0x10990d8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
xor esi, esi
push 0x5c
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x109924b
push 0x5c
push dword [ebp + 0x10]
mov word [eax], si
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x109924b
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
mov word [eax], si
inc eax
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
push dword [ebp + 0xc]
mov ebx, reloc.KERNEL32.dll_WaitForSingleObject
push ebx
call edi
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x10991a8
cmp dword [ebp - 0xc], 1
jne 0x109915f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x109924a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2000000
push 4
push 0x100205c
push esi
push dword [ebp + 0x10]
push ebx
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x10991a8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2000000
push esi
push 0x100205c
push esi
push dword [ebp + 0x10]
push ebx
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x109924a
mov ebx, dword [ebp - 0x14]
cmp word [ebx], si
je 0x109921a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp - 4]
mov dword [ebp + 0x10], esi
call edi
cmp eax, esi
jne 0x1099230
push 1
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
je 0x1099230
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x109920e
cmp dword [ebp - 0x10], esi
jne 0x109920e
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1099230
cmp dword [ebp + 0xc], esi
jne 0x1099230
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01098971
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1099240
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x109924a
push dword [ebp - 8]
call edi
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x109a04b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0x10117c0
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x109a08d
mov ax, 1
jmp 0x109a0e1
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0x10117a8
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 0x808]
je 0x109a0c2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x109a087
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x804]
push 0x101179c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
call fcn.01075bbb
leave
ret
Function at 0x109aeba
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0x10], 0
je 0x109af08
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx edi, word [ebp + 0x10]
movsx eax, word [ecx + 0x10]
movsx ebx, word [ecx + 8]
cdq
idiv ebx
inc dword [ecx + 0x10]
movsx eax, dx
mov edx, dword [ecx + 4]
movzx eax, byte [eax + edx]
movzx edx, byte [ecx + 0xa]
xor eax, edx
movzx edx, byte [esi]
xor eax, edx
mov al, byte [eax + 0x10dee78]
mov byte [esi], al
inc esi
dec edi
mov byte [ecx + 0xa], al
jne 0x109aed3
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x109af11
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0x10], 0
je 0x109af60
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
movsx eax, word [ecx + 0x10]
movsx edi, word [ecx + 8]
cdq
idiv edi
inc dword [ecx + 0x10]
mov bl, byte [esi]
mov edi, dword [ecx + 4]
movzx eax, bl
mov al, byte [eax + 0x10def78]
movsx edx, dx
xor al, byte [edx + edi]
xor al, byte [ecx + 0xa]
mov byte [ecx + 0xa], bl
mov byte [esi], al
inc esi
dec dword [ebp + 0x10]
jne 0x109af2d
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x109dd22
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp word [ebp + 0xc], 0
mov ax, word [ebp - 4]
je 0x109dd46
movzx edx, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ax, word [ecx]
inc ecx
inc ecx
dec edx
jne 0x109dd3e
leave
ret 8
Function at 0x10a54e8
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x5c]
push edi
xor edi, edi
cmp ebx, edi
je 0x10a55eb
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x10a55eb
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call fcn.010ad833
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10a55bf
mov ecx, dword [esi + 0x5c]
cmp word [ecx + 4], di
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push edi
je 0x10a5538
add eax, 8
push eax
call esi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push 0x1005a94
call edi
push dword [ebx + 0x3c]
mov dword [ebp - 8], eax
call edi
mov ecx, dword [ebp - 8]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10a55bf
push dword [ebx + 0x3c]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [eax + 0x5c]
xor eax, eax
cmp word [ecx + 4], ax
push 5
push eax
je 0x10a558c
lea eax, [edi + 8]
push eax
jmp 0x10a558d
push edi
call esi
push 0x1005a94
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [eax + 0x5c]
xor eax, eax
cmp word [ecx + 4], ax
push 5
push eax
je 0x10a55b4
lea eax, [edi + 8]
push eax
jmp 0x10a55b5
push edi
call esi
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebx + 0x3c]
push dword [ebp + 8]
call fcn.01099dd6
cmp dword [ebp - 4], 0
je 0x10a55eb
push dword [ebp - 4]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [ebp + 8]
call fcn.01099062
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10a66d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x210], eax
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0x34]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
jne 0x10a6728
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x38]
cmp ecx, edx
je 0x10a6721
mov edi, dword [eax + 0x18]
mov ebx, dword [edi + ecx*4]
inc ecx
test ebx, ebx
mov dword [eax + 0x38], ecx
je 0x10a670c
test ebx, ebx
jne 0x10a6728
or ebx, 0xffffffff
cmp ebx, 0xffffffff
jne 0x10a6736
mov ax, 0xfe07
jmp 0x10a68c9
push dword [ebx + 8]
lea eax, [ebp - 0x20c]
push dword [ebx + 4]
push dword [ebx]
push 0x1011db0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x18
lea edi, [eax + eax + 2]
push edi
push dword [ebp - 0x210]
call fcn.010a461b
xor ecx, ecx
cmp eax, ecx
jne 0x10a677f
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10a68c9
mov dword [esi + 0x98], ecx
mov dword [esi + 0x94], ecx
mov dword [esi + 0x90], ecx
mov word [esi + 0xa0], cx
lea ecx, [ebp - 0x20c]
push ecx
mov dword [esi + 0x7c], eax
mov byte [esi], 9
mov dword [esi + 0x9c], 1
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [esi + 0x7c]
pop ecx
mov word [eax + 0x1c], di
pop ecx
lea eax, [ebp - 0x228]
push eax
mov word [esi + 0x78], 1
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [esi + 0x70]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [esi + 0x68]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebx + 0x10]
push dword [ebp - 0x210]
call fcn.010b5387
test ax, ax
jne 0x10a68aa
push edi
push 0x2000080
push 3
push edi
push 3
push CompareStringW
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10a689f
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10a6898
mov eax, dword [ebp - 0x25c]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x6c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x210]
call fcn.010b4ca9
mov eax, dword [0x10eca00]
mov ecx, dword [ebp - 0x214]
mov dword [esi + 0x38], eax
mov eax, dword [0x10eca04]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x34], eax
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 8
Function at 0x10a6d46
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push 0x10000
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
xor esi, esi
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x10a6d76
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10a6ee3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x10a6d8a
mov esi, 0x200000
push ebx
push edi
or esi, 0xa000000
push esi
push 3
push edi
push 3
push 0x81000000
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
call ebx
push eax
call fcn.010a6bef
cmp dword [ebp + 0xc], 0xffffffff
je 0x10a6ed2
push edi
push dword [ebp - 4]
push 2
push edi
push 3
push 0xc10c0000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10a6e4b
call ebx
push eax
call fcn.010a6bef
cmp ax, 0xfe05
jne 0x10a6e4d
push 0x80
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push dword [ebp - 4]
push 2
push edi
push 3
push 0xc10c0000
push dword [ebp + 0x10]
call esi
mov dword [ebp + 8], eax
call ebx
push eax
call fcn.010a6bef
cmp dword [ebp + 8], 0xffffffff
jne 0x10a6e4b
cmp ax, 0xfe05
jne 0x10a6e4d
push edi
push dword [ebp - 4]
push 2
push edi
push 3
push 0xc00c0000
push dword [ebp + 0x10]
call esi
mov dword [ebp + 8], eax
call ebx
push eax
call fcn.010a6bef
cmp dword [ebp + 8], 0xffffffff
je 0x10a6e4d
xor eax, eax
cmp ax, di
jne 0x10a6ec7
mov esi, dword [sym.imp.KERNEL32.dll_BackupRead]
xor ebx, ebx
mov dword [ebp + 0x10], edi
inc ebx
lea eax, [ebp - 8]
push eax
push ebx
push edi
lea eax, [ebp + 0x10]
push eax
push 0x10000
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call esi
cmp dword [ebp + 0x10], edi
je 0x10a6e98
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_BackupWrite]
cmp dword [ebp + 0x10], edi
jne 0x10a6e5e
cmp dword [ebp - 8], edi
je 0x10a6eab
lea eax, [ebp - 8]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
call esi
cmp dword [ebp - 0xc], edi
je 0x10a6ebe
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10a6ed5
mov di, ax
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, di
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x10a6eee
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x14]
push edi
xor edi, edi
push edi
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [eax + 0x10]
mov dword [ebp - 8], edi
push dword [ebx]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.010b5387
test ax, ax
jne 0x10a7041
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x10a6f50
push dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebx]
call fcn.010b4ca9
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x10a7041
mov dword [ebp - 4], eax
jmp 0x10a7015
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jne 0x10a7012
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
jne 0x10a7012
mov ecx, dword [esi + 8]
cmp ecx, dword [eax + 8]
jne 0x10a7012
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x10]
push dword [ebx]
call fcn.010b5387
test ax, ax
jne 0x10a7037
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0x1005db4
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
push edi
je 0x10a6fd2
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x10a6fe0
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
cmp eax, edi
jne 0x10a700b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10a700b
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebx]
call fcn.010a6d46
mov dword [ebp - 0xc], 0xfffffe05
push dword [ebx]
call fcn.010b4ca9
mov esi, dword [esi + 0x14]
cmp esi, edi
jne 0x10a6f6a
cmp dword [ebp - 4], edi
je 0x10a702c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, word [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10a7030

Function at 0x10a7147
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10a71bb
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
push edi
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 0xa]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10a71b9
push 0x1005db4
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [esi + 0x5c]
push dword [eax]
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10a71a9
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
push edi
call dword [sym.imp.msvcrt.dll_free]
and word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
pop ecx
pop edi
pop esi
mov ax, word [reloc.ADVAPI32.dll_RegDeleteValueW]
pop ebp
ret 4