joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1099ebd
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 0x10117a8
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1099eff
mov ax, 1
jmp 0x1099f53
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0x1011790
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 0x808]
je 0x1099f34
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1099ef9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x804]
push 0x1011784
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.01075aef
leave
ret
Function at 0x109ad2c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0x10], 0
je 0x109ad7a
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 0x109ad45
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x109ad83
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0x10], 0
je 0x109add2
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 0x109ad9f
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10a532d
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 0x10a5430
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x10a5430
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call fcn.010ad678
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10a5404
mov ecx, dword [esi + 0x5c]
cmp word [ecx + 4], di
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push edi
je 0x10a537d
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 0x10a5404
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 0x10a53d1
lea eax, [edi + 8]
push eax
jmp 0x10a53d2
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 0x10a53f9
lea eax, [edi + 8]
push eax
jmp 0x10a53fa
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.01099c48
cmp dword [ebp - 4], 0
je 0x10a5430
push dword [ebp - 4]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [ebp + 8]
call fcn.01098ed4
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10a651c
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 0x10a656d
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x38]
cmp ecx, edx
je 0x10a6566
mov edi, dword [eax + 0x18]
mov ebx, dword [edi + ecx*4]
inc ecx
test ebx, ebx
mov dword [eax + 0x38], ecx
je 0x10a6551
test ebx, ebx
jne 0x10a656d
or ebx, 0xffffffff
cmp ebx, 0xffffffff
jne 0x10a657b
mov ax, 0xfe07
jmp 0x10a670e
push dword [ebx + 8]
lea eax, [ebp - 0x20c]
push dword [ebx + 4]
push dword [ebx]
push 0x1011d98
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.010a4460
xor ecx, ecx
cmp eax, ecx
jne 0x10a65c4
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10a670e
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.010b51f9
test ax, ax
jne 0x10a66ef
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 0x10a66e4
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10a66dd
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.010b4b1b
mov eax, dword [0x10ec9f8]
mov ecx, dword [ebp - 0x214]
mov dword [esi + 0x38], eax
mov eax, dword [0x10ec9fc]
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.01075aef
leave
ret 8
Function at 0x10a6b8b
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 0x10a6bbb
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10a6d28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x10a6bcf
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.010a6a34
cmp dword [ebp + 0xc], 0xffffffff
je 0x10a6d17
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 0x10a6c90
call ebx
push eax
call fcn.010a6a34
cmp ax, 0xfe05
jne 0x10a6c92
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.010a6a34
cmp dword [ebp + 8], 0xffffffff
jne 0x10a6c90
cmp ax, 0xfe05
jne 0x10a6c92
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.010a6a34
cmp dword [ebp + 8], 0xffffffff
je 0x10a6c92
xor eax, eax
cmp ax, di
jne 0x10a6d0c
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 0x10a6cdd
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 0x10a6ca3
cmp dword [ebp - 8], edi
je 0x10a6cf0
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 0x10a6d03
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 0x10a6d1a
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 0x10a6d33
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.010b51f9
test ax, ax
jne 0x10a6e86
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 0x10a6d95
push dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebx]
call fcn.010b4b1b
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x10a6e86
mov dword [ebp - 4], eax
jmp 0x10a6e5a
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jne 0x10a6e57
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
jne 0x10a6e57
mov ecx, dword [esi + 8]
cmp ecx, dword [eax + 8]
jne 0x10a6e57
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x10]
push dword [ebx]
call fcn.010b51f9
test ax, ax
jne 0x10a6e7c
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 0x10a6e17
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x10a6e25
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 0x10a6e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10a6e50
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebx]
call fcn.010a6b8b
mov dword [ebp - 0xc], 0xfffffe05
push dword [ebx]
call fcn.010b4b1b
mov esi, dword [esi + 0x14]
cmp esi, edi
jne 0x10a6daf
cmp dword [ebp - 4], edi
je 0x10a6e71
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 0x10a6e75

Function at 0x10a6f8c
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 0x10a7000
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 0x10a6ffe
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 0x10a6fee
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
Function at 0x10a700f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x10de03c]
and dword [ebp - 0x150], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x5c]
cmp word [eax + 0x4c], 0
je 0x10a7041
test byte [esi + 0x60], 4
je 0x10a71f2
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0x64
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [esi + 0x5c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10a71b6
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x154]
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x84]
push 0x1011dcc
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10a70ba
mov dword [ebp - 0x150], 0xfffffe0d
jmp 0x10a71e5
push esi
call fcn.010a6f8c
mov ecx, dword [esi + 0x5c]
mov word [ecx + 4], ax
mov eax, dword [esi + 0x5c]
cmp dword [eax + 8], 0
jne 0x10a70e8
test byte [esi + 0x60], 0x80
jne 0x10a70e8
lea eax, [ebp - 0x14c]
push eax
call fcn.0105fdff
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x84]
push eax
call fcn.0105fdff
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x5c]
mov cx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
mov word [eax + 0xc], cx
mov cl, byte [ebp - 0x154]
test cl, 2
movzx eax, word [esi + 0x60]
je 0x10a711d
or ax, 0x400
jmp 0x10a7121
and ax, 0xfbff
test cl, 1
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a7133
or ax, 0x200
jmp 0x10a7137
and ax, 0xfdff
test cl, 4
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a7149
or ax, reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
jmp 0x10a714d
and ax, 0xefff
test cl, 8
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a715e
or eax, 0x40
jmp 0x10a7161
and eax, 0xffffffbf
mov word [esi + 0x60], ax
lea eax, [ebp - 0x84]
push 0x1011dc0
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a71a7
lea eax, [ebp - 0x84]
push 0x1011db4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a71a7
lea eax, [ebp - 0x84]
push 0x1011dac
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a71a7
or byte [esi + 0x60], 8
jmp 0x10a71ab
and byte [esi + 0x60], 0xf7
mov eax, dword [esi + 0x5c]
mov word [eax + 0x4c], 1
jmp 0x10a71e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10a71db
xor ecx, ecx
cmp eax, 0x15
sete cl
dec ecx
and ecx, 0xffffffd3
add ecx, 0xfffffe3a
mov dword [ebp - 0x150], ecx
jmp 0x10a71e5
mov dword [ebp - 0x150], 0xfffffe05
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ebx
mov ecx, dword [ebp - 4]
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
pop esi
call fcn.01075aef
leave
ret 4
Function at 0x10a75d2
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov word [eax], bx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
xor edx, edx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], 1
je 0x10a7618
cmp word [edi], bx
je 0x10a7618
mov edx, edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10a7627
cmp word [eax], bx
je 0x10a7627
mov dword [ebp - 4], eax
cmp edx, ebx
jne 0x10a7642
test byte [esi + 0x4a], 1
je 0x10a7642
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10a763f
mov edx, dword [eax + 0x24]
jmp 0x10a7642
mov edx, dword [eax + 0x18]
cmp dword [ebp - 4], ebx
jne 0x10a7661
test byte [esi + 0x4a], 2
je 0x10a7661
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10a765b
mov eax, dword [eax + 0x28]
jmp 0x10a765e
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
cmp edx, ebx
je 0x10a766c
cmp word [edx], bx
jne 0x10a766c
xor edx, edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10a767b
cmp word [eax], bx
jne 0x10a767b
mov dword [ebp - 4], ebx
push ebx
push edx
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
call fcn.010cb11e
cmp eax, ebx
je 0x10a76a0
cmp eax, 0x4b2
je 0x10a76a8
mov dword [ebp + 0x14], 0xfffffe05
jmp 0x10a773e
mov eax, dword [ebp + 0x14]
mov word [eax], 1
cmp edi, ebx
mov edi, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp + 0x14], ebx
je 0x10a76f8
push dword [ebp + 0xc]
call fcn.0105fdff
mov ebx, eax
test ebx, ebx
je 0x10a76f2
movzx eax, byte [esi + 0x30]
dec eax
je 0x10a76dd
dec eax
jne 0x10a76ec
mov eax, dword [esi + 0x5c]
push dword [eax + 0x24]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x24], ebx
jmp 0x10a76eb
mov eax, dword [esi + 0x5c]
push dword [eax + 0x18]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x18], ebx
pop ecx
or byte [esi + 0x4a], 2
jmp 0x10a76f6
and byte [esi + 0x4a], 0xfd
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10a773e
push dword [ebp + 0x10]
call fcn.0105fdff
mov ebx, eax
test ebx, ebx
je 0x10a773a
movzx eax, byte [esi + 0x30]
dec eax
je 0x10a7725
dec eax
jne 0x10a7734
mov eax, dword [esi + 0x5c]
push dword [eax + 0x28]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x28], ebx
jmp 0x10a7733
mov eax, dword [esi + 0x5c]
push dword [eax + 0x1c]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x1c], ebx
pop ecx
or byte [esi + 0x4a], 1
jmp 0x10a773e
and byte [esi + 0x4a], 0xfe
mov ax, word [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10ad4ef
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push edi
lea esi, [eax + 0x14fc]
push 0x5c
xor edi, edi
push ebx
mov word [esi], di
call dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x3a
push ebx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x10
cmp eax, edi
je 0x10ad65a
mov ebx, dword [ebp - 0x21c]
cmp ebx, edi
je 0x10ad65a
dec eax
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push edi
push 0x1011e30
push reloc.KERNEL32.dll_WaitForSingleObject
mov word [ebx], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad655
mov dword [ebp - 0x214], edi
mov ebx, 0x208
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x228], ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x10ad640
lea eax, [ebp - 0x218]
push eax
push 0x2000000
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad640
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push reloc.MFC42u.DLL_CView::OnEndPrintPreview
push dword [ebp - 0x218]
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], edi
jne 0x10ad640
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10ad643
inc dword [ebp - 0x214]
jmp 0x10ad585
mov word [esi], di
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x21c]
mov word [ebx], 0x5c
mov ax, word [esi]
mov ecx, dword [ebp - 4]
neg ax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x10ad678
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
push dword [ebp + 0xc]
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 0x22]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10ad741
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10ad6d0
inc ebx
inc ebx
jmp 0x10ad6d2
mov ebx, esi
mov eax, dword [0x10ed184]
cmp eax, reloc.ADVAPI32.dll_RegDeleteValueW
jb 0x10ad6e0
xor eax, eax
mov ecx, eax
push ecx
push dword [ebp + 0xc]
inc eax
push 0x1011ea0
push ebx
mov dword [0x10ed184], eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push 0
push 0x2000000
push 3
push 0
push 0
push WaitForSingleObject
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10ad72b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10ad73f
cmp eax, 0x20
jne 0x10ad73f
jmp 0x10ad732
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, reloc.ADVAPI32.dll_RegDeleteValueW
jb 0x10ad6d2
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10ada3b
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push esi
push edi
mov esi, ecx
mov edi, edx
and word [edi], 0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x210], eax
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099a6d
test ax, ax
jne 0x10adab3
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x10adb4f
and word [eax], 0
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099a6d
test ax, ax
je 0x10adaa3
mov word [edi], 1
mov eax, dword [ebp - 0x210]
mov word [eax], 0x2e
jmp 0x10adb4f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d44
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsdup]
add esp, 0x14
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x10adb4f
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01098e7a
test eax, eax
je 0x10adb54
push edi
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x1011544
push ebx
call fcn.010ad678
mov edi, eax
test edi, edi
je 0x10adb4f
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01098e7a
test eax, eax
je 0x10adb54
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x10adb93
push 0
push 0xa000080
push 3
push 0
push 5
push 0x80000100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10adb8b
mov eax, dword [ebp - 0x210]
mov dword [eax + 0x24c], edi
mov word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jmp 0x10adb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret