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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.01077950
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 0x1011550
push eax
mov dword [ebp - 0x2010], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1098d58
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 0x1098d2e
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.01098104
cmp eax, esi
mov dword [ebp - 0x2010], eax
je 0x1098d35
inc ebx
cmp edi, esi
je 0x1098cca
jmp 0x1098d4a
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.01075aef
leave
ret 8

Function at 0x1098d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.01077950
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 0x1098e5f
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 0x1098e2c
mov eax, dword [ebp - 0x400c]
shr eax, 1
cmp dword [ebp - 0x400c], 2
mov word [ebp + eax*2 - 0x2004], bx
ja 0x1098e38
inc dword [ebp - 0x4010]
cmp esi, ebx
je 0x1098dc9
jmp 0x1098e51
push dword [ebp - 0x4018]
mov ebx, dword [ebp - 0x401c]
lea eax, [ebp - 0x2004]
call fcn.01098277
mov esi, eax
push dword [ebp - 0x4008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1098e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x1098f4a
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 0x10990bd
push 0x5c
push dword [ebp + 0x10]
mov word [eax], si
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x10990bd
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 0x109901a
cmp dword [ebp - 0xc], 1
jne 0x1098fd1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10990bc
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 0x109901a
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 0x10990bc
mov ebx, dword [ebp - 0x14]
cmp word [ebx], si
je 0x109908c
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 0x10990a2
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 0x10990a2
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 0x1099080
cmp dword [ebp - 0x10], esi
jne 0x1099080
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 0x10990a2
cmp dword [ebp + 0xc], esi
jne 0x10990a2
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010987e3
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10990b2
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x10990bc
push dword [ebp - 8]
call edi
pop ebx
pop edi
pop esi
leave
ret 0x10
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 0x80000002
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 0x1011cb8
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, 0xffff
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 0x100
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 - 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.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, 0xffff
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, 0xffff
jmp 0x10a6e75

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [0x10dee58], 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 [0x10ecd00], 1
push edi
call dword [sym.imp.msvcrt.dll_free]
and word [0x10dee58], 0
pop ecx
pop edi
pop esi
mov ax, word [0x10ecd00]
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 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 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 - 0x158]
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, 0x1000
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 - 0x150]
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 sub.MPR.dll_WNetAddConnection2W
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