joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426162
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
test ecx, ecx
jne 0x426186
xor eax, eax
jmp 0x426264
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x426261
push 0x40
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.00426383
test eax, eax
je 0x42625a
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
jne 0x42625a
push edi
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42625a
push 4
lea edx, [ebp - 0x60]
mov ecx, esi
call fcn.00426383
test eax, eax
je 0x42625a
cmp dword [ebp - 0x60], 0x4550
jne 0x42625a
push 0x14
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.00426383
test eax, eax
je 0x42625a
mov ax, word [ebp - 0x4c]
test ax, ax
je 0x42625a
movzx eax, ax
push eax
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42625a
movzx eax, word [ebp - 0x4c]
mov edx, edi
push eax
mov ecx, esi
call fcn.00426383
test eax, eax
je 0x42624a
mov ecx, dword [ebp - 0x5c]
mov edx, edi
call fcn.00426356
test eax, eax
je 0x42624a
movzx ebx, word [eax]
push edi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret
Function at 0x426273
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x42ccb0
call fcn.004171b8
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
test edx, edx
je 0x4262b3
cmp word [edx], bx
je 0x4262b3
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push edx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x4262b3
push eax
jmp 0x42631d
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4262dd
mov ecx, 0x4020b8
call fcn.0040acb0
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x426323
test eax, eax
jne 0x4262b0
mov ecx, dword [ebp - 0x24]
call fcn.0040dcd0
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x42631b
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x426323
mov ecx, esi
call fcn.0040dc60
xor esi, esi
mov dword [ebp - 0x20], esi
push ebx
jmp 0x42631d
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.00426347
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42649b
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push 0x18
push 0x42cc90
call fcn.004171b8
mov ebx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x42654c
cmp word [eax], di
je 0x42654c
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push 2
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x426533
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4264e6
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x426533
push dword [ebp + 8]
push ebx
push 0x403b6c
call fcn.00409950
add esp, 0xc
jmp 0x4265b5
push edi
push esi
call fcn.004078e4
push ebx
push 1
push 0x235d
call fcn.004078e4
add esp, 0x14
jmp 0x4265b5
push edi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4265b9
lea eax, [ebp - 0x24]
push eax
push 0x2000000
push edi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x42658c
cmp esi, 2
je 0x4265b5
push edi
push esi
call fcn.004078e4
pop ecx
pop ecx
jmp 0x4265b5
push 0x4020b8
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4265ac
push edi
push esi
call fcn.004078e4
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x4265fc
mov dword [ebp - 4], edi
call fcn.004172ff
test al, al
je 0x4265d3
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.ext_ms_win_cmd_util_l1_1_0.dll_DoSHChangeNotify]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4265fc
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x428b2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
push dword [esi]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
mov ecx, dword [esi]
call fcn.0040a16c
push ecx
push ecx
xor edx, edx
mov ecx, edi
call fcn.0041654b
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x428bf6
mov ebx, dword [ebp + 8]
mov eax, ebx
push 2
push 0
neg eax
push eax
push ecx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x428bec
cmp dword [ebp - 4], ebx
jne 0x428bec
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x428bec
mov ecx, dword [esi]
call fcn.0040a16c
push ecx
xor edx, edx
push ecx
inc edx
mov ecx, edi
call fcn.0041654b
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x428bf6
push 2
push 0
push 0
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
xor eax, eax
jmp 0x428c09
mov ecx, dword [esi]
call fcn.0040a16c
or dword [esi], 0xffffffff
push edi
push 1
push 0x4000271f
call fcn.004078e4
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4294a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push ecx
push ecx
push 2
mov dword [ebp - 8], edx
pop edx
call fcn.0041654b
mov esi, eax
cmp esi, 0xffffffff
jne 0x4294db
push 0x6e
pop ecx
call fcn.00429e9d
xor edx, edx
xor ecx, ecx
inc edx
call fcn.00428c10
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x42958e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, eax
mov ecx, dword [edx + 0x1c]
test ecx, 0xc000
jne 0x429535
cmp edi, 2
jbe 0x42952c
mov edx, 0xfeff
cmp word [ebx], dx
mov edx, dword [ebp - 8]
jne 0x42952c
or ecx, 0x4000
jmp 0x429532
or ecx, 0x8000
mov dword [edx + 0x1c], ecx
test edi, edi
je 0x429560
lea eax, [ebp - 0x10]
mov edx, ebx
push eax
lea eax, [ebp - 4]
push eax
mov eax, 0x8002
and ecx, eax
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
call fcn.0042739d
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x429563
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4294de
test ecx, ecx
jne 0x429585
push 1
push ecx
sub eax, edi
push eax
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, esi
mov dword [0x4357a8], eax
call fcn.0040a16c
push 0
push dword [0x4357a8]
call fcn.004078e4
pop ecx
pop ecx
jmp 0x4294d1
Function at 0x429a3f
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, 0x104
mov byte [ebp - 0x1c], 1
push eax
xor edi, edi
mov dword [ebp - 0x18], eax
and dword [ebp - 0x20], edi
lea eax, [ebp - 0x228]
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x228]
add esp, 0xc
cmp byte [ebp - 0x1c], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
jns 0x429aba
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], edi
jmp 0x429bb6
push 0x3d
pop eax
mov word [ebp - 0xc], ax
lea ecx, [ebp - 0xc]
lea eax, [esi + 0x40]
mov word [ebp - 0xa], ax
push 0x3a
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
call fcn.0040ec2e
mov esi, eax
test esi, esi
je 0x429afc
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test al, al
jne 0x429b93
push 1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov edi, eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x429b09
lea ecx, [ebp - 0x228]
mov ax, word [ebp - 0xa]
mov word [ecx], ax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x429b1d
lea ecx, [ebp - 0x228]
mov ax, word [ebp - 8]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x429b32
lea eax, [ebp - 0x228]
push 0x5c
pop ecx
mov word [eax + 4], cx
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x429b46
lea eax, [ebp - 0x228]
xor ecx, ecx
mov word [eax + 6], cx
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x429b59
lea edx, [ebp - 0x228]
lea ecx, [ebp - 0xc]
call fcn.0040a976
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x429b6e
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x429b88
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004078e4
pop ecx
pop ecx
test esi, esi
je 0x429b93
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov ecx, dword [0x447df8]
test ecx, ecx
jne 0x429ba2
mov ecx, 0x447bf0
mov edx, dword [0x447e00]
push 0
call fcn.00408e9e
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
test eax, eax
je 0x429bc2
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416b50
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x429fb8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
xor edi, edi
push eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], edi
push edi
inc ebx
mov dword [ebp - 0x18], edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0xfdc6
add eax, 0x208
push eax
call fcn.0040e3f0
test eax, eax
js 0x42a075
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42a02c
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x224]
push ecx
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
test eax, eax
je 0x42a075
cmp eax, 0xffce
jbe 0x42a075
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42a056
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + 6], cx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42a069
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 4
je 0x42a077
mov ebx, edi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
test ecx, ecx
je 0x42a089
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret

Function at 0x42a0f5
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0xd
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
leave
ret
Function at 0x42a719
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x224], eax
mov edi, ecx
call fcn.00404a9f
mov ecx, 0x104
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], ecx
inc ebx
push eax
mov byte [ebp - 0x14], bl
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x42a869
push esi
lea ecx, [ebp - 0x220]
call fcn.0040a641
mov eax, dword [ebp - 0x18]
mov ecx, eax
test eax, eax
jne 0x42a7a9
lea ecx, [ebp - 0x220]
xor ebx, ebx
cmp word [ecx], bx
je 0x42a7d0
cmp word [ecx + 2], 0x3a
jne 0x42a7d0
cmp word [ecx + 4], bx
jne 0x42a7d0
push 0x40250c
lea ecx, [ebp - 0x220]
call fcn.0041232c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
test eax, eax
jne 0x42a7e6
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
push 6
pop edx
mov ecx, edi
call fcn.00428071
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42a819
lea eax, [ebp - 0x220]
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x230]
push eax
push 0xe
call fcn.0042b2e5
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x42a83a
lea esi, [ebp - 0x220]
push dword [ebp - 0x224]
mov ebx, 0x447e30
push 0x403ff4
push 0x104
push ebx
call fcn.00409abf
push esi
push ebx
push 2
push 0x2379
push edi
call fcn.004282ea
add esp, 0x24
mov ebx, eax
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
test ecx, ecx
je 0x42a87c
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret 8
Function at 0x42b6a4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
xor edi, edi
mov dword [ebp - 8], ebx
push edi
call dword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoInitialize]
mov esi, eax
test esi, esi
js 0x42b7a5
mov dword [ebp - 4], edi
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.0042b84b
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0042b5b1
test eax, eax
js 0x42b793
call fcn.00408235
push 0x38
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0x3c
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x8008140
test bl, 0x10
je 0x42b72b
mov dword [ebp - 0x48], 0x8000140
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteExW]
mov edi, eax
test edi, edi
je 0x42b76c
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x42b793
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x42b77f
mov dword [0x4357a8], 8
jmp 0x42b793
mov dword [0x4357a8], 2
cmp eax, 0x20
je 0x42b793
mov dword [0x4357a8], eax
lea ecx, [ebp - 4]
call fcn.0042b84b
test esi, esi
js 0x42b7a5
call dword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x42c4c5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x220]
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push 0
inc ebx
mov dword [ebp - 0x10], edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040e3f0
test eax, eax
js 0x42c55e
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c530
lea eax, [ebp - 0x220]
push dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
test eax, eax
je 0x42c55c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c54c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
test eax, eax
je 0x42c55c
cmp eax, 4
jne 0x42c55e
xor ebx, ebx
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
test eax, eax
je 0x42c571
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret
Function at 0x42c582
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
mov byte [ebp - 0x439], dl
push eax
xor edi, edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x220]
inc ebx
push edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], edi
mov eax, 0x104
mov byte [ebp - 0x22c], bl
mov dword [ebp - 0x228], eax
push eax
lea eax, [ebp - 0x438]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x42c732
xor eax, eax
lea ecx, [ebp - 0x438]
cmp byte [ebp - 0x22c], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x42c732
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x42c64f
lea eax, [ebp - 0x438]
push dword [ebp - 0x228]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
test eax, eax
je 0x42c732
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x42c675
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
test eax, eax
je 0x42c730
cmp eax, 4
je 0x42c730
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c69a
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x230]
test ecx, ecx
jne 0x42c6aa
lea ecx, [ebp - 0x438]
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x440]
push eax
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x42c732
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c6d1
lea eax, [ebp - 0x220]
push 0x40413c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42c732
cmp byte [ebp + 8], 0
je 0x42c708
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c6f6
lea eax, [ebp - 0x220]
push 0x404148
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42c732
cmp byte [ebp - 0x439], 0
je 0x42c730
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42c71e
lea eax, [ebp - 0x220]
push 0x404154
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42c732
mov ebx, edi
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x230], edi
test eax, eax
je 0x42c74a
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x42c75c
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret 4
Function at 0x402040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x402138
cmp dword [edi + 8], ebx
je 0x402138
cmp dword [0x4fb8d0], ebx
jne 0x402138
mov si, word [ebp + 8]
push 0x3a
pop eax
push 0x5c
mov word [ebp - 6], ax
pop eax
mov word [ebp - 4], ax
xor eax, eax
push 0x66
mov word [ebp - 2], ax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 8], si
call fcn.0043fd94
add esp, 0xc
push 0x34
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x402138
mov eax, dword [edi + 8]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c_...____vn_s__c_i
push 4
call fcn.00445f0b
mov eax, dword [edi + 8]
add esp, 0x14
cmp dword [eax], ebx
jle 0x402138
mov esi, dword [eax + ebx*4 + 4]
test esi, esi
je 0x402130
push dword [esi + 0x840]
lea ecx, [esi + 0x930]
push dword [esi + 0xc]
lea eax, [esi + 0x848]
push dword [esi + 8]
push ecx
push eax
push ebx
push str._Volumes__i__vn_s_mp_s_used_i_present_i_devnum_i
push 4
call fcn.00445f0b
add esp, 0x20
cmp dword [esi + 8], 0
je 0x402130
cmp dword [esi + 0xc], 0
je 0x402130
cmp dword [esi + 0x840], 0
je 0x402130
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402141
mov eax, dword [edi + 8]
inc ebx
cmp ebx, dword [eax]
jl 0x4020d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, esi
call fcn.00405dc7
mov ecx, dword [0x4fd5c0]
push 1
push dword [esi + 0x14]
call fcn.00407353
test eax, eax
je 0x40216a
push 1
mov ecx, eax
call fcn.0040a12e
call fcn.00432679
cmp dword [0x493a6c], 0
je 0x402190
mov ecx, dword [0x4fd5c0]
push 0
push dword [esi + 0x10]
call fcn.00407353
test eax, eax
je 0x402190
push 1
mov ecx, eax
call fcn.0040a12e
lea eax, [esi + 0x18]
jmp 0x40213a