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

Disassembly:
push 0xc
mov eax, 0x1007eba6
call fcn.1001fbd3
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.1004fa86
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.1001fb9c
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.1003a980
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.1001fb78
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.1003a980
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.1004ef77
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.1001fb78
leave
ret 8

Function at 0x1000c629
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x1007e888
call fcn.1001fbd3
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 0x100930ec
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 7
push str.Coupon_
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.1001fb9c
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.1003a980
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.1001fb78
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.1001fb78
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 0x1000da07
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1000db62
push edi
push 0x29
pop edi
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1000db60
cmp eax, edi
jne 0x1000da48
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x1000db60
cmp eax, edi
jne 0x1000da48
test dword [esi + 0x50], edx
je 0x1000db6e
cmp eax, 0x2e
jne 0x1000da63
push 5
lea ecx, [esi + 0x24]
call fcn.1000f8df
mov ecx, esi
call fcn.1000f91d
jmp 0x1000db4b
cmp eax, 0x5c
jne 0x1000dab8
mov ecx, esi
call fcn.1000f91d
test byte [esi + 0x50], 0x80
je 0x1000daac
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1000da94
push 4
lea ecx, [esi + 0x24]
call fcn.1000f8df
mov ecx, esi
call fcn.1000f91d
jmp 0x1000db52
cmp eax, 0x42
jne 0x1000daac
push 4
lea ecx, [esi + 0x24]
call fcn.1000f8df
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1000da88
mov ecx, esi
call fcn.1000db78
jmp 0x1000db4b
cmp eax, 0x5b
jne 0x1000dad8
mov ecx, esi
call fcn.1000f91d
mov ecx, esi
call fcn.1000e1ed
cmp dword [esi + 0x4c], 0x5d
je 0x1000da57
push 4
jmp 0x1000db70
cmp eax, 0x28
jne 0x1000daf4
mov ecx, esi
call fcn.1000f91d
mov ecx, esi
call fcn.1000ff3c
mov bl, al
cmp dword [esi + 0x4c], edi
jne 0x1000db6e
jmp 0x1000db40
cmp eax, 0x5e
jne 0x1000dafd
push 2
jmp 0x1000da80
cmp eax, 0x24
jne 0x1000db09
push 3
jmp 0x1000da80
cmp eax, 0x2a
je 0x1000db6a
cmp eax, 0x2b
je 0x1000db6a
cmp eax, 0x3f
je 0x1000db6a
cmp eax, 0x7b
je 0x1000db6a
cmp eax, 0x7d
jne 0x1000db27
test dword [esi + 0x50], edx
je 0x1000db66
cmp eax, 0x5d
jne 0x1000db31
test dword [esi + 0x50], edx
je 0x1000dad1
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1000d334
mov bl, 1
mov ecx, esi
call fcn.1000f91d
test bl, bl
je 0x1000db52
mov ecx, esi
call fcn.1000f94c
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x1000da1d
pop ebx
pop edi
mov al, cl
pop esi
ret
push 6
jmp 0x1000db70
push 0xa
jmp 0x1000db70
push 5
mov ecx, esi
call fcn.1000f005
int3

Function at 0x100112a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100a13ec], 0
mov eax, dword [ebp + 0xc]
mov dword [0x100a3500], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100a34fc], eax
mov eax, dword [ebp + 0x10]
mov dword [0x100a34f8], eax
je 0x100112e3
xor eax, eax
push eax
push eax
push eax
push 0x1001077a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100a13f0], eax
test eax, eax
jne 0x100112ef
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + 0xc], 1
pop ebp
ret

Function at 0x10012258
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10012277
push 0xfffffffffffffff3
pop eax
jmp 0x100122a3
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
test eax, eax
push 0xfffffffffffffff2
pop edi
cmovne edi, ecx
je 0x10012299
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100124b7
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1001fe40
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.1003a980
push esi
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.1003a980
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.10053123
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.1001fb78
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.1001fb78
leave
ret

Function at 0x10012616
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x10083b5c
push dword [ebp + 8]
xor esi, esi
call fcn.1005189b
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.10052137
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.10051c9c
add esp, 0x10
cmp eax, 1
push 0xfffffffffffffff3
pop ecx
cmovne esi, ecx
push edi
call fcn.100519e4
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.1003a980
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.1001fb78
leave
ret
Function at 0x10016a5e
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1007fb6c
call fcn.1001fbd3
call fcn.100081c1
push eax
lea ecx, [ebp - 0x10]
call fcn.10006ee7
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1000c326
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [eax - 0xc]
push eax
call fcn.1000be41
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.1000918a
inc ebx
lea ecx, [ebp - 0x10]
push ebx
push str.ApTet
call fcn.1000be41
push ebx
mov esi, 0x10083bc4
lea ecx, [ebp - 0x10]
push esi
call fcn.1000be41
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x10083bc8
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x10083bcc
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x100832ec
lea ecx, [ebp - 0x10]
call fcn.1000be41
push ebx
push 0x10083bd0
lea ecx, [ebp - 0x10]
call fcn.1000be41
push 2
push 0x10083bd4
lea ecx, [ebp - 0x10]
call fcn.1000be41
push 2
push 0x10083bdc
lea ecx, [ebp - 0x10]
call fcn.1000be41
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.1000918a
mov eax, edi
call fcn.1001fb9c
ret

Function at 0x1001a053
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x10080082
call fcn.1001fbd3
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 8]
test eax, eax
je 0x1001a157
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.1003a8db
pop ecx
pop ecx
test eax, eax
jne 0x1001a0ba
or eax, 0xffffffff
jmp 0x1001a0bf
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 0x1001a105
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.10019c6a
test eax, eax
js 0x1001a13c
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.1001aaa5
test eax, eax
js 0x1001a13c
xor ebx, ebx
inc ebx
jmp 0x1001a13e
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1001a14d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1000918a
mov eax, ebx
call fcn.1001fb9c
ret 0xc
Function at 0x1001b159
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.1001fe40
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 0x1001b1ba
push 2
pop eax
jmp 0x1001b21a
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 0x1001b20c
push 4
lea eax, [ebp - 0x2ee4]
push str.pci_
push eax
call fcn.100555ac
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.1001fb78
leave
ret
Function at 0x1001b227
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b5c
call fcn.1001fe40
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 0x1001b27c
push 2
pop eax
jmp 0x1001b3fb
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 0x1001b3dc
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 0x1001b3b0
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 0x1001b3a8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001b33f
test dl, dl
je 0x1001b33b
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001b33f
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001b31f
xor eax, eax
jmp 0x1001b343
sbb eax, eax
or eax, edi
test eax, eax
jne 0x1001b3a8
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 0x1001b3a8
lea eax, [ebp - 0x2b4c]
push eax
push str.MatchingDeviceId:___s__n
call fcn.1001bb92
push 4
lea eax, [ebp - 0x2b4c]
push str.pci_
push eax
call fcn.100555ac
add esp, 0x14
test eax, eax
je 0x1001b3e6
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 0x1001b2b3
jmp 0x1001b3f0
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.1001fb78
leave
ret
Function at 0x1001b85f
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.1001fe40
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.1003a980
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1003a980
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.1001bbb1
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 0x1001b8ee
mov al, 1
jmp 0x1001b9f7
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.1003a980
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.1003a980
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.1003a980
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 0x1001b970
mov bl, 2
jmp 0x1001b9ee
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001ba06
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001ba06
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b9b1
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 0x1001b9d4
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.1001fb78
leave
ret