joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c013
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x1007eb46
call fcn.1001fb8f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10006f10
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000c0a9
push eax
jmp 0x1000c098
call fcn.100081c1
push eax
lea ecx, [ebp - 0x14]
call fcn.10006ee7
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000cddd
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000b93b
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000918a
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000c08b
push esi
call fcn.1004fa36
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.1000918a
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.1000c2cb
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000c03e
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1000918a
call fcn.1001fb58
ret

Function at 0x1000c0ba
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1003a930
add esp, 0xc
lea edi, [ebp - 0x22c]
xor eax, eax
lea edx, [ebp - 0x20c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
sub edx, ecx
stosw word es:[edi], ax
pop edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000c0ff
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
mov eax, 0x214
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.1001fb34
leave
ret
Function at 0x1000c54d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x1000c616
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.1003a930
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000c616
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1000c5d6
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1004ef27
pop ecx
pop ecx
test eax, eax
je 0x1000c5dc
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000c5b6
jmp 0x1000c60b
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1000c618
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb34
leave
ret 8

Function at 0x1000c629
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x1007e828
call fcn.1001fb8f
call fcn.100081c1
push eax
lea ecx, [ebp - 0x10]
call fcn.10006ee7
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.10008d1b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1000d160
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x1000c68e
mov ecx, dword [ebp + 8]
push 0x100930cc
call fcn.10006f10
lea ecx, [esi - 0x10]
call fcn.1000918a
mov eax, dword [ebp + 8]
jmp 0x1000c6e7
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.1000c431
cmp ax, 0x5c
je 0x1000c6ad
push 1
push 0x10082858
lea ecx, [ebp - 0x10]
call fcn.1000be41
push 5
push str.VZip_
lea ecx, [ebp - 0x10]
call fcn.1000be41
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x1000c6cc
push esi
call fcn.1000c013
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.1000bee8
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.1000918a
mov eax, esi
call fcn.1001fb58
ret
Function at 0x1000cbe2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.1003a930
add esp, 0xc
mov dword [ebp - 0x12c], esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x11c], esi
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000ccef
cmp dword [ebp - 0x114], 5
jbe 0x1000ccef
push 0x20119
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push SysStringLen
lea ecx, [ebp - 0x12c]
call fcn.1000cf78
test eax, eax
jne 0x1000ccef
cmp dword [ebp - 0x114], 6
jb 0x1000cccc
jne 0x1000cc89
cmp dword [ebp - 0x110], 2
jb 0x1000cccc
lea eax, [ebp - 0x11c]
push eax
push str.ConsentPromptBehaviorAdmin
lea ecx, [ebp - 0x12c]
call fcn.1000cfcd
lea eax, [ebp - 0x120]
push eax
push str.PromptOnSecureDesktop
lea ecx, [ebp - 0x12c]
call fcn.1000cfcd
cmp dword [ebp - 0x11c], esi
jne 0x1000ccc7
cmp dword [ebp - 0x120], esi
je 0x1000ccef
xor esi, esi
inc esi
jmp 0x1000ccef
lea eax, [ebp - 0x11c]
push eax
push str.EnableLUA
lea ecx, [ebp - 0x12c]
call fcn.1000cfcd
xor eax, eax
cmp eax, dword [ebp - 0x11c]
sbb esi, esi
neg esi
lea ecx, [ebp - 0x12c]
call fcn.1000bf43
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001fb34
leave
ret

Function at 0x1000cd30
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000cd88
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
pop ebx
je 0x1000cd98
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001fb34
leave
ret

Function at 0x1000d1e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1000d1f6
push 0xd
pop eax
jmp 0x1000d228
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000d1ff
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x100124b7
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1001fdf0
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x802
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.1003a930
push esi
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.1003a930
add esp, 0x18
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10012582
push 0x400
lea eax, [ebp - 0x808]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x808], 0
je 0x10012582
push 0x400
lea eax, [ebp - 0x100c]
xor esi, esi
push eax
lea eax, [ebp - 0x808]
push eax
push 2
push esi
push edi
call fcn.10005144
mov ecx, ebx
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1001255b
sub ecx, edx
lea eax, [ebp - 0x100c]
sar ecx, 1
push ecx
push ebx
push eax
call fcn.100530d3
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x10012584
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb34
leave
ret

Function at 0x10012593
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100125bf
push 0xfffffffffffffff2
pop eax
jmp 0x1001260a
push edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x14]
push eax
push str.SeLoadDriverPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop eax
push edi
push edi
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
pop edi
sbb eax, eax
and eax, 0xe
add eax, 0xfffffff2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001fb34
leave
ret

Function at 0x10012616
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x10083b48
push dword [ebp + 8]
xor esi, esi
call fcn.1005184b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10012637
push 0xfffffffffffffffe
pop eax
jmp 0x1001266e
push esi
push 0xc
push edi
call fcn.100520e7
add esp, 0xc
test eax, eax
je 0x1001264c
push 0xfffffffffffffff3
pop esi
jmp 0x10012665
push edi
push 1
push 8
push dword [ebp + 0xc]
call fcn.10051c4c
add esp, 0x10
cmp eax, 1
push 0xfffffffffffffff3
pop ecx
cmovne esi, ecx
push edi
call fcn.10051994
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x10012672
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x228
mov dword [ebp - 0x234], eax
xor esi, esi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push esi
push eax
call fcn.1003a930
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100126c5
push 0xfffffffffffffff2
pop eax
jmp 0x1001271d
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10012714
push ebx
mov ebx, dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x10012702
push dword [ebp - 0x234]
push ebx
call fcn.100124b7
pop ecx
pop ecx
test eax, eax
je 0x10012702
push ebx
call fcn.10012258
pop ecx
or esi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100126d7
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001fb34
leave
ret
Function at 0x10012aaa
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x1007efaf
call fcn.1001fbc3
mov ebx, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x224], ebx
call fcn.10019b31
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.100081c1
push eax
lea ecx, [ebx + 0x10]
call fcn.10006ee7
mov byte [ebp - 4], 1
call fcn.100081c1
push eax
lea ecx, [ebx + 0x14]
call fcn.10006ee7
mov byte [ebp - 4], 2
call fcn.100081c1
push eax
lea ecx, [ebx + 0x18]
call fcn.10006ee7
mov byte [ebp - 4], 3
call fcn.100081c1
push eax
lea ecx, [ebx + 0x1c]
call fcn.10006ee7
push 0
mov byte [ebp - 4], 4
call fcn.10051498
push eax
call fcn.10052432
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.1003a930
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.1001bb24
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.1000ca3b
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.1000757f
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.10009466
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x10012bac
push dword [ebp - 0x214]
call fcn.1004e2d5
pop ecx
xor eax, eax
xor esi, esi
inc eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x40], esi
call fcn.100081c1
push eax
lea ecx, [ebp - 0x218]
call fcn.10006ee7
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 6
push esi
push eax
call fcn.1000c326
push str.AppTest.txt
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push eax
call fcn.1000bb11
mov ecx, dword [ebp - 0x220]
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.1000918a
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.1000918a
lea ecx, [ebp - 0x218]
test esi, esi
je 0x10012c39
push 7
push str.http:__
jmp 0x10012c40
push 8
push str.https:__
call fcn.10009466
mov esi, dword [ebp - 0x218]
lea eax, [ebx + 0x14]
push 0x10083bf8
push str.zhanfukeji
push 0x10083c00
push esi
mov edi, str._s_s._s._s_
push edi
push eax
call fcn.100080c5
push 0x10083bf8
push str.zhanfukeji
push 0x10083c00
push esi
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.100080c5
xor eax, eax
lea edi, [ebx + 0x20]
push eax
push eax
push eax
push edi
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
call fcn.10014878
add esp, 0x40
test eax, eax
jne 0x10012ca1
and dword [edi], eax
and dword [ebx + 0x48], 0
lea ecx, [esi - 0x10]
and dword [ebx + 0x4c], 0
call fcn.1000918a
mov eax, ebx
call fcn.1001fb6d
ret
Function at 0x10019fba
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x10080002
call fcn.1001fb8f
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 8]
test eax, eax
je 0x1001a0be
call fcn.100081c1
push eax
lea ecx, [ebp + 0x10]
call fcn.10006ee7
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.1000757f
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.10009466
push 0x5c
push dword [ebp + 0x10]
call fcn.1003a88b
pop ecx
pop ecx
test eax, eax
jne 0x1001a021
or eax, 0xffffffff
jmp 0x1001a026
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1000cddd
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.1000b93b
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1000918a
mov esi, dword [ebp + 0x10]
push esi
call fcn.1000c013
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a06c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.10019bd1
test eax, eax
js 0x1001a0a3
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.1001aa62
test eax, eax
js 0x1001a0a3
xor ebx, ebx
inc ebx
jmp 0x1001a0a5
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1001a0b4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1000918a
mov eax, ebx
call fcn.1001fb58
ret 0xc

Function at 0x1001a136
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x10080025
call fcn.1001fb8f
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000c326
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000bb11
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.1000918a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1000918a
mov eax, esi
call fcn.1001fb58
ret
Function at 0x1001b116
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.1001fdf0
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea eax, [ebp - 0x7d4]
xor esi, esi
push 0x7d0
push eax
inc esi
call fcn.100014b9
add esp, 0x10
lea eax, [ebp - 0x2ee8]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x7d4]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b177
push 2
pop eax
jmp 0x1001b1d7
lea eax, [ebp - 0x2eec]
mov dword [ebp - 0x2eec], 0x2710
push eax
lea eax, [ebp - 0x2ee4]
push eax
lea eax, [ebp - 0x2ef0]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b1c9
push 4
lea eax, [ebp - 0x2ee4]
push str.pci_
push eax
call fcn.1005555c
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001fb34
leave
ret
Function at 0x1001b1e4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b5c
call fcn.1001fdf0
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x13
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2b58]
push eax
push 0x20119
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x54]
xor esi, esi
xor edi, edi
push esi
push eax
push SysStringLen
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b239
push 2
pop eax
jmp 0x1001b3b8
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x3e8
push eax
lea eax, [ebp - 0x43c]
mov ebx, esi
push eax
push esi
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001b399
lea eax, [ebp - 0x2b54]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b36d
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b365
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001b2fc
test dl, dl
je 0x1001b2f8
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001b2fc
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001b2dc
xor eax, eax
jmp 0x1001b300
sbb eax, eax
or eax, edi
test eax, eax
jne 0x1001b365
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.MatchingDeviceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b365
lea eax, [ebp - 0x2b4c]
push eax
push str.MatchingDeviceId:___s__n
call fcn.1001bb4f
push 4
lea eax, [ebp - 0x2b4c]
push str.pci_
push eax
call fcn.1005555c
add esp, 0x14
test eax, eax
je 0x1001b3a3
push dword [ebp - 0x2b54]
call esi
xor eax, eax
mov dword [ebp - 0x2b50], 0x3e8
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2b50]
inc ebx
push eax
lea eax, [ebp - 0x43c]
push eax
push ebx
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1001b270
jmp 0x1001b3ad
push dword [ebp - 0x2b54]
call esi
xor edi, edi
push dword [ebp - 0x2b58]
call esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001fb34
leave
ret
Function at 0x1001b81c
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.1001fdf0
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.1003a930
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1003a930
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.1001bb6e
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001b8ab
mov al, 1
jmp 0x1001b9b4
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.1003a930
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.1003a930
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.1003a930
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001b92d
mov bl, 2
jmp 0x1001b9ab
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001b9c3
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001b9c3
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b96e
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.100044fc
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b991
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.100044fc
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb34
leave
ret