joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019f00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push str.SYSTEMCurrentControlSetServicesdcryptInstances
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call ebx
mov esi, eax
cmp esi, edi
jne 0x10019fb9
mov ecx, dword [ebp - 8]
push 0xe
push str.dcrypt
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.DefaultInstance
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x10019fb9
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push str.dcrypt
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x10019fb9
mov ecx, dword [ebp - 4]
push 0xc
push str.87150
push 1
push eax
push str.Altitude
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x10019fb9
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.Flags
push eax
call edi
mov esi, eax
test esi, esi
jne 0x10019fb9
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x10019fb9
mov edx, dword [ebp - 8]
push edx
call edi
mov esi, eax
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10019fc9
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x10019fd3
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a050
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x80c]
push ecx
push eax
mov esi, edx
push 0x80000002
mov dword [ebp - 0x814], edi
mov dword [ebp - 0x810], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1001a227
mov eax, esi
lea edx, [eax + 2]
jmp 0x1001a0a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a0a0
push ebx
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x808]
push edx
mov edx, dword [ebp - 0x80c]
lea ebx, [eax + eax + 2]
lea esi, [ebp - 0x804]
mov eax, esi
push eax
lea ecx, [ebp - 0x818]
push ecx
push 0
push edi
push edx
mov dword [ebp - 0x808], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x1001a108
cmp edi, 2
jne 0x1001a217
xor eax, eax
mov word [ebp - 0x804], ax
mov dword [ebp - 0x808], edi
jmp 0x1001a19a
cmp dword [ebp - 0x818], 7
jne 0x1001a212
mov ecx, dword [ebp - 0x808]
add ecx, ebx
cmp ecx, 0x800
ja 0x1001a212
cmp word [ebp - 0x804], 0
je 0x1001a19a
mov ecx, dword [ebp - 0x810]
mov eax, esi
jmp 0x1001a140
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001a166
test dx, dx
je 0x1001a162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001a166
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001a140
xor eax, eax
jmp 0x1001a16b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001a217
mov eax, esi
lea edx, [eax + 2]
jmp 0x1001a180
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a180
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x1001a133
mov edx, dword [ebp - 0x808]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp + ebx - 0x804]
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov edx, dword [ebp - 0x810]
push ebx
push edx
lea eax, [ebp - 0x804]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x808]
mov edx, dword [ebp - 0x814]
add esp, 0x18
add eax, ebx
push eax
lea ecx, [ebp - 0x804]
push ecx
push 7
push 0
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x1001a217
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edi, eax
jmp 0x1001a217
mov edi, 0x65d
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001a240
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x808]
push ecx
push eax
push 0x80000002
mov dword [ebp - 0x810], esi
lea edi, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1001a405
lea edx, [ebp - 0x80c]
push edx
mov edx, dword [ebp - 0x808]
mov eax, edi
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1001a3f6
cmp dword [ebp - 0x814], 7
push ebx
jne 0x1001a3f0
mov ebx, dword [ebp - 0x80c]
cmp ebx, 2
jb 0x1001a3f0
mov eax, edi
lea edx, [eax + 2]
jmp 0x1001a2e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a2e0
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
test esi, esi
je 0x1001a3ca
lea ebx, [ebx]
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001a32b
test dx, dx
je 0x1001a327
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001a32b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001a305
xor eax, eax
jmp 0x1001a330
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001a3a5
mov eax, 0xfffffffe
sub eax, esi
add ebx, eax
mov dword [ebp - 0x80c], ebx
sub ebx, edi
lea ecx, [ebp + ebx - 0x804]
push ecx
lea edx, [esi + edi + 2]
push edx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov ebx, dword [ebp - 0x80c]
add esp, 0xc
test ebx, ebx
je 0x1001a370
cmp word [ebp - 0x804], 0
jne 0x1001a3ab
mov dword [ebp - 0x80c], 0
mov eax, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x808]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x1001a3f5
mov edx, dword [ebp - 0x808]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
jmp 0x1001a3f5
shr esi, 1
lea edi, [edi + esi*2 + 2]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a3b0
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
test esi, esi
jne 0x1001a300
test ebx, ebx
je 0x1001a37a
mov ecx, dword [ebp - 0x810]
mov edx, dword [ebp - 0x808]
push ebx
lea eax, [ebp - 0x804]
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1001a38e
mov esi, 0x65d
pop ebx
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001a4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001a556
cmp eax, 0x104
jae 0x1001a556
push edi
lea ecx, [ebp - 0x20c]
push ecx
push str._sdrivers_s
push 0x104
push esi
call section..text
xor edx, edx
add esp, 0x14
test eax, eax
setns dl
lea eax, [edx - 1]
and eax, 0x7a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x7b
call fcn.1000d340
mov esp, ebp
pop ebp
ret

Function at 0x1001a570
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push esi
lea edx, [ebp + 8]
push edx
lea esi, [ebx + 4]
push str.SYSTEMCurrentControlSetServicesdcryptconfig
push 0x80000002
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x34e
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1001a63d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push esi
push 4
push eax
mov eax, dword [ebp + 8]
push str.Flags
push eax
call edi
mov esi, eax
test esi, esi
jne 0x1001a630
mov ecx, dword [ebp + 8]
push 0x10
add ebx, 0xc
push ebx
push 3
push eax
push str.Hotkeys
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x1001a630
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp + 8]
push str.sysBuild
push eax
call edi
mov esi, eax
test esi, esi
jne 0x1001a630
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
test esi, esi
jne 0x1001a630
push eax
push eax
push 8
lea edx, [ebp - 0xc]
push edx
push 0x2201ec
call sym.dcapi.dll_dc_device_control
mov esi, eax
add esp, 0x14
cmp esi, 0x591
jne 0x1001a630
xor esi, esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesdcryptconfig
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001a72b
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
lea esi, [edi + 4]
push esi
push eax
push eax
push str.Flags
push edx
mov dword [ebp - 8], 4
call ebx
test eax, eax
je 0x1001a6a7
mov dword [esi], 0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push str.sysBuild
push ecx
mov dword [ebp - 8], 4
call ebx
test eax, eax
je 0x1001a6cc
mov dword [edi], 0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
lea esi, [edi + 0xc]
push esi
push 0
push 0
push str.Hotkeys
push eax
mov dword [ebp - 8], 0x10
call ebx
test eax, eax
je 0x1001a6fb
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 8
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0x2201e8
call sym.dcapi.dll_dc_device_control
mov edx, dword [ebp - 0xc]
add esp, 0x14
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x14]
push edx
mov dword [edi + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001a740
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001a799
cmp eax, 0x104
jae 0x1001a799
push str.dcrypt.sys
lea ecx, [ebp - 0x20c]
push ecx
push str._sdrivers_s
lea edx, [ebp - 0x414]
push 0x104
push edx
call section..text
add esp, 0x14
test eax, eax
jns 0x1001a7a9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001a7d0
Capabilities:
Check os version
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10025200
push str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
mov ecx, str.UpperFilters
xor esi, esi
call fcn.1001a240
add esp, 8
test eax, eax
je 0x1001a803
mov esi, eax
push 0x10025200
push str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
mov ecx, str.LowerFilters
call fcn.1001a240
add esp, 8
test eax, eax
je 0x1001a820
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1001a847
push str.dcrypt.sys
push str.SYSTEMCurrentControlSetControlCrashControl
mov ecx, str.DumpFilters
call fcn.1001a240
add esp, 8
test eax, eax
je 0x1001a847
mov esi, eax
call fcn.10019fe0
test eax, eax
je 0x1001a852
mov esi, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001a8ac
cmp eax, 0x104
jae 0x1001a8ac
push str.dcrypt.sys
lea ecx, [ebp - 0x20c]
push ecx
push str._sdrivers_s
lea edx, [ebp - 0x414]
push 0x104
push edx
call section..text
add esp, 0x14
test eax, eax
jns 0x1001a8c0
mov eax, 0x7a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
mov eax, 0x7b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1001a8ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001a900
Capabilities:
Create service
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001a96c
cmp eax, 0x104
jae 0x1001a96c
push str.dcrypt.sys
lea ecx, [ebp - 0x20c]
push ecx
push str._sdrivers_s
lea edx, [ebp - 0x414]
push 0x104
push edx
call section..text
add esp, 0x14
test eax, eax
jns 0x1001a97f
mov eax, 0x7a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
mov eax, 0x7b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x1001a9aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push 0
push str.FltMgr
push 0
push str.Filter
lea eax, [ebp - 0x414]
push eax
push 3
push 0
push 1
push 0xf01ff
push str.DiskCryptor_driver
push 0x10025200
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x1001aa04
push eax
xor edi, edi
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.1000d340
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001a9ee
Function at 0x1001aa10
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100278f4]
test eax, eax
je 0x1001ab75
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1001ab75
cmp eax, 0x103
jae 0x1001ab75
lea edx, [ebp - 0x20c]
push 0x5c
push edx
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1001ab75
lea eax, [ebp - 0x20c]
mov edx, ecx
sub edx, eax
sar edx, 1
mov eax, 0x103
sub eax, edx
je 0x1001aa9a
cmp eax, 0x7fffffff
ja 0x1001aa9a
add ecx, 2
call fcn.1001a470
test eax, eax
jns 0x1001aaad
mov eax, 0x7a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, str.dcrypt.sys
lea esi, [ebp - 0x414]
call fcn.1001a4f0
test eax, eax
jne 0x1001ab53
mov edi, str.dcrypt_old.sys
lea esi, [ebp - 0x61c]
call fcn.1001a4f0
test eax, eax
jne 0x1001ab53
mov esi, dword [sym.imp.msvcrt.dll__waccess]
push eax
lea ecx, [ebp - 0x414]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 8
cmp eax, 0xffffffff
je 0x1001ab0f
push 1
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
je 0x1001ab4d
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1001ab4d
lea eax, [ebp - 0x61c]
push 0
push eax
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x1001ab63
push 4
push 0
lea ecx, [ebp - 0x61c]
push ecx
call edi
test eax, eax
jne 0x1001ab63
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x7b
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001ab90
Capabilities:
Check os version
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1001aa10
test eax, eax
jne 0x1001acc2
lea eax, [ebp - 0x228]
push eax
call sym.dcapi.dll_dc_load_config
add esp, 4
test eax, eax
jne 0x1001acc2
mov eax, dword [ebp - 0x228]
push esi
cmp eax, 0x2b4
jae 0x1001ac0b
push edi
mov edi, str.dc_fsf.sys
lea esi, [ebp - 0x20c]
call fcn.1001a4f0
pop edi
test eax, eax
jne 0x1001acc1
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10019f00
test eax, eax
jne 0x1001acc1
mov eax, dword [ebp - 0x228]
cmp eax, 0x16e
jae 0x1001ac41
push str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
mov edx, 0x10025200
mov ecx, str.UpperFilters
call fcn.1001a050
add esp, 4
test eax, eax
jne 0x1001acc1
or dword [ebp - 0x224], 0x180
mov eax, dword [ebp - 0x228]
cmp eax, 0x282
jae 0x1001ac52
or dword [ebp - 0x224], 0x400
cmp eax, 0x332
jae 0x1001ac7e
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1001ac7e
push str.SYSTEMCurrentControlSetControlCrashControl
mov edx, str.dcrypt.sys
mov ecx, str.DumpFilters
call fcn.1001a050
add esp, 4
test eax, eax
jne 0x1001acc1
lea edx, [ebp - 0x228]
push edx
call sym.dcapi.dll_dc_save_config
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001acbf
call sym.dcapi.dll_dc_get_version
push eax
push str.DC_UPD__d
lea eax, [ebp - 0x20c]
push 0x104
push eax
call section..text
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001ad10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push str.dc_save_drv_file..._n
push 0x138
push str.drvinst.c
mov dword [ebp - 0x20], 0x34e
mov dword [ebp - 0x1c], 0x580
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call sym.dcapi.dll_log_print
add esp, 0xc
call fcn.1001aa10
mov esi, eax
test esi, esi
jne 0x1001ae61
push str.dc_add_service..._n
push 0x13a
push str.drvinst.c
call sym.dcapi.dll_log_print
add esp, 0xc
call fcn.1001a900
mov esi, eax
test esi, esi
jne 0x1001ae61
push str.dc_add_altitude..._n
push 0x13e
push str.drvinst.c
call sym.dcapi.dll_log_print
add esp, 0xc
call fcn.10019f00
mov esi, eax
test esi, esi
jne 0x1001ae61
push str.dc_add_filter_CDROM_..._n
push 0x142
push str.drvinst.c
call sym.dcapi.dll_log_print
push str.dc_add_filter..._n
push 0x143
push str.drvinst.c
call sym.dcapi.dll_log_print
push str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
mov edx, 0x10025200
mov ecx, str.LowerFilters
call fcn.1001a050
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x1001ae61
push str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
mov edx, 0x10025200
mov ecx, str.UpperFilters
call fcn.1001a050
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001ae61
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1001ae3b
push str.SYSTEMCurrentControlSetControlCrashControl
mov edx, str.dcrypt.sys
mov ecx, str.DumpFilters
call fcn.1001a050
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001ae61
push str.dc_save_conf_CDROM_..._n
push 0x14d
push str.drvinst.c
call sym.dcapi.dll_log_print
lea eax, [ebp - 0x20]
push eax
call sym.dcapi.dll_dc_save_config
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ae7d
push str.dc_remove_driver______________..._n
push 0x152
push str.drvinst.c
call sym.dcapi.dll_log_print
add esp, 0xc
call sym.dcapi.dll_dc_remove_driver
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000d340
mov esp, ebp
pop ebp
ret

Function at 0x1001aed0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2ac], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001aef6
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x100278f8]
push 0x2a0
lea ecx, [esp + 0x14]
push ecx
push 0x2a0
mov edx, ecx
push edx
push 0x220200
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [esp + 0x296]
jne 0x1001af46
mov eax, 1
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
Function at 0x1001afa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2ac], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [esp + 0x214]
push edi
mov edi, dword [ebp + 0xc]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001afd0
mov edx, dword [0x100278f8]
push 0
lea eax, [esp + 0x10]
push eax
push 0x22c
push edi
push 0x2a0
lea ecx, [esp + 0x24]
push ecx
push 0x2201ac
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001b02c
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
cmp word [edi + 0x24], 0
lea edx, [edi + 0x24]
jne 0x1001b04f
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001b040
mov ecx, dword [esp + 0x2b4]
mov eax, dword [esp + 0x29e]
pop edi
pop esi
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret

Function at 0x1001b070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2ac], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001b096
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x100278f8]
push 0x2a0
lea ecx, [esp + 0x14]
push ecx
push 0x2a0
mov edx, ecx
push edx
push 0x2201cc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, 1
je 0x1001b0e6
mov eax, dword [esp + 0x296]
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret

Function at 0x1001b100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2ac], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001b126
mov al, byte [ebp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x100278f8]
push 0x2a0
lea edx, [esp + 0x14]
push edx
push 0x2a0
mov byte [esp + 0x2b7], al
mov eax, edx
push eax
push 0x2201fc
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, 1
je 0x1001b181
mov eax, dword [esp + 0x296]
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret