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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2020
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, [ebp - 0x2020]
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], 0x1000
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 - 0x2004], 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], 0x1000
push dword [ebp - 0x4008]
mov dword [ebp - 0x400c], 0x1000
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 - 0x2004], 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, 0x80000002
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 0x80000002
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 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 0x1011cd0
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, 0xffff
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 0x100
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 - 0x258]
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, 0xffff
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, 0xffff
jmp 0x10a7030

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [0x10dee58], 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 [0x10ecd08], 1
push edi
call dword [sym.imp.msvcrt.dll_free]
and word [0x10dee58], 0
pop ecx
pop edi
pop esi
mov ax, word [0x10ecd08]
pop ebp
ret 4
Function at 0x10a71ca
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 0x10a71fc
test byte [esi + 0x60], 4
je 0x10a73ad
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x40
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 0x10a7371
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 0x1011de4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10a7275
mov dword [ebp - 0x150], 0xfffffe0d
jmp 0x10a73a0
push esi
call fcn.010a7147
mov ecx, dword [esi + 0x5c]
mov word [ecx + 4], ax
mov eax, dword [esi + 0x5c]
cmp dword [eax + 8], 0
jne 0x10a72a3
test byte [esi + 0x60], 0x80
jne 0x10a72a3
lea eax, [ebp - 0x14c]
push eax
call fcn.0105fe7d
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x84]
push eax
call fcn.0105fe7d
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x5c]
mov cx, word [ebp - 0x158]
mov word [eax + 0xc], cx
mov cl, byte [ebp - 0x154]
test cl, 2
movzx eax, word [esi + 0x60]
je 0x10a72d8
or ax, 0x400
jmp 0x10a72dc
and ax, 0xfbff
test cl, 1
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a72ee
or ax, 0x200
jmp 0x10a72f2
and ax, 0xfdff
test cl, 4
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a7304
or ax, 0x1000
jmp 0x10a7308
and ax, 0xefff
test cl, 8
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a7319
or eax, 0x40
jmp 0x10a731c
and eax, 0xffffffbf
mov word [esi + 0x60], ax
lea eax, [ebp - 0x84]
push 0x1011dd8
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a7362
lea eax, [ebp - 0x84]
push 0x1011dcc
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a7362
lea eax, [ebp - 0x84]
push 0x1011dc4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a7362
or byte [esi + 0x60], 8
jmp 0x10a7366
and byte [esi + 0x60], 0xf7
mov eax, dword [esi + 0x5c]
mov word [eax + 0x4c], 1
jmp 0x10a73a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10a7396
xor ecx, ecx
cmp eax, 0x15
sete cl
dec ecx
and ecx, 0xffffffd3
add ecx, 0xfffffe3a
mov dword [ebp - 0x150], ecx
jmp 0x10a73a0
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 - 0x150]
pop esi
call fcn.01075bbb
leave
ret 4
Function at 0x10a778d
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 0x10a77d3
cmp word [edi], bx
je 0x10a77d3
mov edx, edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10a77e2
cmp word [eax], bx
je 0x10a77e2
mov dword [ebp - 4], eax
cmp edx, ebx
jne 0x10a77fd
test byte [esi + 0x4a], 1
je 0x10a77fd
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10a77fa
mov edx, dword [eax + 0x24]
jmp 0x10a77fd
mov edx, dword [eax + 0x18]
cmp dword [ebp - 4], ebx
jne 0x10a781c
test byte [esi + 0x4a], 2
je 0x10a781c
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10a7816
mov eax, dword [eax + 0x28]
jmp 0x10a7819
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
cmp edx, ebx
je 0x10a7827
cmp word [edx], bx
jne 0x10a7827
xor edx, edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10a7836
cmp word [eax], bx
jne 0x10a7836
mov dword [ebp - 4], ebx
push ebx
push edx
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2W
cmp eax, ebx
je 0x10a785b
cmp eax, 0x4b2
je 0x10a7863
mov dword [ebp + 0x14], 0xfffffe05
jmp 0x10a78f9
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 0x10a78b3
push dword [ebp + 0xc]
call fcn.0105fe7d
mov ebx, eax
test ebx, ebx
je 0x10a78ad
movzx eax, byte [esi + 0x30]
dec eax
je 0x10a7898
dec eax
jne 0x10a78a7
mov eax, dword [esi + 0x5c]
push dword [eax + 0x24]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x24], ebx
jmp 0x10a78a6
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 0x10a78b1
and byte [esi + 0x4a], 0xfd
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10a78f9
push dword [ebp + 0x10]
call fcn.0105fe7d
mov ebx, eax
test ebx, ebx
je 0x10a78f5
movzx eax, byte [esi + 0x30]
dec eax
je 0x10a78e0
dec eax
jne 0x10a78ef
mov eax, dword [esi + 0x5c]
push dword [eax + 0x28]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x28], ebx
jmp 0x10a78ee
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 0x10a78f9
and byte [esi + 0x4a], 0xfe
mov ax, word [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10