joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a74b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x4a74ed
push eax
call fcn.00622af4
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00622acb
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x4a75b0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x6fcafc]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4a75b0
lea edx, [ebp + 8]
push edx
call fcn.0060b449
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
push 4
push ecx
push 4
push 0
push 0x6fc418
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7710
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.0044aeb0
mov ecx, dword [0x6fcafc]
cmp ecx, esi
je 0x4a77b4
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x18]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x4a7872
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x4a7773
push eax
call fcn.00622af4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x4a77b4
inc eax
push eax
call fcn.00622acb
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x4a77b4
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [0x6fcafc]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x4a77c5
mov eax, dword [ebx + 4]
push eax
call fcn.00622af4
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
push 0x6c9178
push ecx
call fcn.00609cc0
add esp, 8
test eax, eax
jne 0x4a7804
mov edx, dword [ebx + 4]
push 0x6c916c
push edx
call fcn.00609cc0
add esp, 8
test eax, eax
jne 0x4a7804
mov eax, dword [ebx + 4]
push 0x6c9154
push eax
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x4a77b4
mov ecx, dword [ebx + 4]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00622df8
push 0x6fc418
push 0x6c9178
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0061f504
push 0x6fc418
push 0x6c9154
lea ecx, [ebp - 0x14]
call fcn.0061f504
push 0x6fc418
push 0x6c916c
lea ecx, [ebp - 0x14]
call fcn.0061f504
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push edx
call fcn.004a74b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.0060b39a
add esp, 8
test eax, eax
jne 0x4a77b4
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00622acb
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x4a77b4
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x6fcafc]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac970
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.00622acb
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4acabc
mov eax, dword [0x6cdafc]
test eax, eax
je 0x4ac9b2
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x4ac9e9
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00402850
mov eax, dword [esp + 0x24]
add esp, 8
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00622d8a
cmp ebx, 0xffffffff
je 0x4aca1e
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4aca0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4aca17
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4aca17
test esi, esi
jne 0x4aca33
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00622af4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.00622acb
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x4aca61
push ebp
call fcn.00622af4
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, esi
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebx
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4acaaa
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4acaaa
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.00622af4
push ebp
call fcn.00622af4
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x4ace70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x642f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6f7b78]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0xc]
push str._d__URL_s
push eax
mov dword [esp + 0x20], 0
call fcn.0061fae1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004acdc0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x4adaa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [0x6fcafc]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x4adad4
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x4adae0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x642fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x6fcafc]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x4adb9c
mov edx, dword [0x6f7b78]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00623157
mov edx, dword [0x6fcafc]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x4adb8b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00622aff
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00622d8a
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00622d8a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4adba9
mov eax, 0x6fc418
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00622df8
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4aeb70
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x6fced0]
test eax, eax
jne 0x4aebc6
lea eax, [esp]
push eax
push 0
push 0
push 0x4aebd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x6fced0], eax
je 0x4aebbd
mov eax, dword [0x6fced4]
test eax, eax
jne 0x4aebcb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x6fced4]
test eax, eax
je 0x4aebab
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x6fced4], eax
pop ecx
ret
mov eax, dword [0x6fced4]
pop ecx
ret
Function at 0x4bbf90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerGetAllDlgLS
push 0x80000001
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4bc030
lea ecx, [ebp - 0x23c]
call fcn.004be6a0
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.004be7c0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.004be7b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x4bc065
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call ebx
push 0x5a
push edi
mov dword [ebp - 0x24], eax
call ebx
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x24], 0x60
je 0x4bc06f
mov byte [ebp - 0x11], 1
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi + 0x284]
xor edi, edi
mov dword [ebp - 0x1c], eax
cmp edi, 6
jge 0x4bc0c8
mov al, byte [ebp - 0x11]
mov edx, dword [esi + 0x198]
push 0
push edi
test al, al
push 0x101d
push edx
je 0x4bc0b8
call ebx
mov ecx, dword [ebp - 0x24]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x4bc080
call ebx
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x4bc080
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x284]
push 4
push eax
mov eax, dword [ebp - 0x18]
push 4
push 0
push str.FileName
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x288]
push 4
push ecx
push 4
push 0
push str.FileType
push edx
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x28c]
push 4
push eax
push 4
push 0
push str.Size
push ecx
call edi
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x290]
push 4
push edx
push 4
push 0
push 0x6d1dc4
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x294]
push 4
push ecx
push 4
push 0
push str.SaveTo
push edx
call edi
mov eax, dword [ebp - 0x18]
add esi, 0x298
push 4
push esi
push 4
push 0
push 0x6d1db0
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c0360
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 0x1c]
test edx, edx
jle 0x4c03d9
mov ebx, dword [esi + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x34], ebp
je 0x4c038e
inc eax
add ecx, 4
cmp eax, edx
jl 0x4c0378
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov dword [ebx + eax*4], 0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub ecx, eax
dec ecx
lea ebx, [edx + eax*4]
je 0x4c03b5
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.0060ac20
add esp, 0xc
mov edx, dword [esi + 0x1c]
dec edx
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x4c03c6
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x4c03d9
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4c03e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x644320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov word [esp + 0x10], bx
mov esi, dword [ecx + 8]
mov dword [esp + 0x84], ebx
cmp esi, ebx
jne 0x4c041b
lea esi, [ecx + 0xc]
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x3c]
push 0xa
push eax
push ecx
call fcn.0060b264
mov edx, str._sproject_s.gsd
add esp, 0xc
test edx, edx
mov edi, eax
je 0x4c057b
cmp esi, ebx
je 0x4c057b
cmp edi, ebx
je 0x4c057b
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
push ebx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x90], 1
call fcn.004027e0
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401f20
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
call fcn.00401f20
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 3
call fcn.00401070
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4c0548
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 2
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 1
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], bl
call fcn.00401070
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x4c058a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
Function at 0x4c0ea0
Capabilities:
Access peb ldr_data
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x6444a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6f7b78]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push str.._s:
push edx
mov dword [esp + 0x30], edi
call fcn.0061fae1
mov eax, dword [esp + 0x18]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c0f50
push ebp
lea ecx, [esp + 0x30]
push edi
push ecx
lea edx, [esp + 0x1c]
push 0xc
push edx
push edi
push edi
push 0x2d1080
push esi
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, edi
pop ebp
je 0x4c0f50
mov eax, dword [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004c0f80
test eax, eax
jne 0x4c0f4b
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004c1260
test eax, eax
je 0x4c0f50
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4c1260
Capabilities:
Get storage device properties

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6444f6
push eax
mov eax, 0x32e0
mov dword fs:[0], esp
call fcn.00609d40
mov eax, dword [0x6f7b78]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x32fc]
lea edx, [esp + 0x10]
push ecx
push str..PhysicalDrive_d
push edx
mov dword [esp + 0x3300], ebp
call fcn.0061fae1
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebp
push ebp
push 3
push ebp
push 3
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c12e1
lea ecx, [esp + 0x10]
mov dword [esp + 0x32f4], eax
call fcn.00622d8a
xor eax, eax
jmp 0x4c1488
xor ecx, ecx
push edi
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0xbe0]
mov dword [esp + 0x20], ecx
mov ecx, 0x9c4
lea edx, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0xbe8]
push 0x2710
push eax
lea ecx, [esp + 0x28]
push 0xc
push ecx
push 0x2d1400
push ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c146a
mov eax, dword [esp + 0xbf0]
lea edx, [esp + 0x410]
push edx
push 0
lea ecx, [esp + 0xbe8]
push eax
push ecx
mov ecx, esi
call fcn.004c1520
mov eax, dword [esp + 0xbf4]
lea edx, [esp + 0x7f8]
push edx
push 0
lea ecx, [esp + 0xbe8]
push eax
push ecx
mov ecx, esi
call fcn.004c1520
mov eax, dword [esp + 0xbf8]
lea edx, [esp + 0x28]
push edx
push 1
lea ecx, [esp + 0xbe8]
push eax
push ecx
mov ecx, esi
call fcn.004c1520
movsx edx, byte [esp + 0x28]
push edx
call fcn.0060a284
add esp, 4
test eax, eax
jne 0x4c13c2
movsx eax, byte [esp + 0x3b]
push eax
call fcn.0060a284
add esp, 4
test eax, eax
je 0x4c146a
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x410]
lea eax, [esp + 0x10]
push edx
push 0x6c910c
push eax
mov byte [esp + 0x3304], 1
call fcn.0061fae1
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x6fc418
push 0x6c9030
call fcn.0061f504
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x30
jbe 0x4c1420
push eax
push 0x30
lea ecx, [esp + 0x18]
call fcn.006231f6
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x7f8]
push ecx
push edx
add esi, 4
push eax
push str._s__s__s
push esi
call fcn.0061fae1
add esp, 0x14
mov ecx, esi
push 0x6fc418
push 0x6c9030
call fcn.0061f504
lea ecx, [esp + 0x10]
mov ebp, 1
mov byte [esp + 0x32f8], 0
call fcn.00622d8a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x32f8], 0xffffffff
call fcn.00622d8a
mov eax, ebp
pop edi
mov ecx, dword [esp + 0x32ec]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32ec
ret 4
Function at 0x4c1690
Capabilities:
Get common file path

Disassembly:
sub esp, 0x198
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c171e
cmp dword [esp + 0x20], 2
jne 0x4c171e
push str.shell32.dll
call fcn.0044abc0
mov esi, eax
add esp, 4
test esi, esi
je 0x4c171e
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4c1713
push ebx
call dword [0x6fc3fc]
lea ecx, [esp + 0xa4]
push ecx
push ebx
push ebx
push 5
push ebx
call edi
test eax, eax
jne 0x4c170d
mov ebx, 1
call dword [0x6fc400]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4c1740
lea edx, [esp + 0xa4]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4c1740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
lea eax, [esp + 0xa4]
push 0x6cae98
push eax
call fcn.00609cc0
add esp, 8
test eax, eax
jne 0x4c1764
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
lea ecx, [esp + 0xa4]
mov byte [eax], 0
push ecx
mov ecx, ebp
call fcn.004c0ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
Function at 0x4c17e0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x300
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xb4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c1893
cmp dword [ebp - 0xa4], 2
jne 0x4c1893
push str.shell32.dll
call fcn.0044abc0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4c1893
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4c1888
push ebx
call dword [0x6fc3fc]
lea ecx, [ebp - 0x1b8]
push ecx
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x4c1882
mov ebx, 1
call dword [0x6fc400]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4c18ad
lea edx, [ebp - 0x1b8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4c1931
lea eax, [ebp - 0x1b8]
push 0x6cae98
push eax
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x4c1931
add eax, 2
lea ecx, [ebp - 0x208]
push 0x50
lea edx, [ebp - 0x20]
mov byte [eax], 0
push ecx
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x30c]
push 0x104
lea eax, [ebp - 0x1b8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4c1931
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
add edx, 4
push 0x6d0c24
push edx
call fcn.0061fae1
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret