joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d61b
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004346f7
push dword [0x50bb90]
call fcn.004345eb
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x43d665
push 0x40
push 0x45759c
push str.No_device_selected
push dword [0x50b228]
call fcn.0044f54a
jmp 0x43d844
push ebx
push esi
xor eax, eax
push 0x7fe
mov word [ebp - 0xc18], ax
lea eax, [ebp - 0xc16]
push edi
push eax
call fcn.00448216
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.00448216
add esp, 0x24
push 0x50a880
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push 0x453148
push str.DevReportPath
mov ebx, 0x4575f4
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x418], di
je 0x43d70c
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00427c74
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xfd0]
cmp eax, edi
je 0x43d72d
lea ecx, [eax + 0x1738]
cmp word [ecx], di
jne 0x43d72a
lea ecx, [eax + 0x1838]
push ecx
jmp 0x43d733
push dword [ecx + 0x824]
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x20
lea eax, [ebp - 0xc18]
push eax
call fcn.00429bad
push str..txt
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.00429361
test eax, eax
je 0x43d832
cmp dword [0x50b1d4], edi
jne 0x43d794
push edi
push fcn.00416d4c
push dword [0x50bb90]
call fcn.004342b0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [0x50bb90]
mov dword [ebp - 4], edi
call fcn.0043b219
mov esi, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004483d6
pop ecx
push edi
xor ecx, ecx
mov dword [0x50d868], eax
mov word [eax], cx
push 0x434e2e
push dword [0x50bb90]
mov dword [0x50d86c], esi
call fcn.004342b0
lea eax, [ebp - 0xc18]
push eax
call fcn.0040f02f
push dword [0x50d868]
call fcn.00448411
pop ecx
lea eax, [ebp - 0xc18]
push eax
mov dword [0x50d868], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, edi
je 0x43d832
xor ecx, ecx
push 0x50a880
mov word [eax], cx
lea eax, [ebp - 0xc18]
push eax
push str.DevReportPath
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push edi
push 0x7f00
call fcn.004346f7
pop esi
pop ebx
pop edi
leave
ret
Function at 0x43da1d
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004346f7
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00448216
push 0x50a4e8
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.xml
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x50a880
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x453148
mov ebx, str.ReportPath
push ebx
mov edi, 0x4575f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042941b
test eax, eax
je 0x43db5d
push dword [0x50b228]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040ee0a
push 0
call fcn.0040ee48
lea eax, [ebp - 0x20c]
push eax
call fcn.0043d847
mov dword [ebp - 4], eax
call fcn.0040ee88
call fcn.0040ee29
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43db5d
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43db5d
xor ecx, ecx
push 0x50a880
mov word [eax - 2], cx
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push 0
push 0x7f00
call fcn.004346f7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4453af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp + 8]
push str.GetDiskFreeSpaceExTimeout__s___u_
push 3
call fcn.0044def7
push 0x228
call fcn.004483d6
mov esi, eax
add esp, 0x14
push dword [ebp + 8]
xor edi, edi
push esi
mov dword [esi + 0x208], edi
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x218], edi
mov dword [esi + 0x21c], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x44520a
push edi
mov dword [esi + 0x224], ebx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x445439
push esi
call fcn.00448411
pop ecx
jmp 0x44552c
push ebx
push dword [ebp - 4]
push str.thread_GetDiskFreeSpaceEx_ThreadProc_created_ThreadId_04u_wait_i
push 3
call fcn.0044def7
add esp, 0x10
call fcn.0042b4a5
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
call fcn.0042b4a5
sub eax, dword [ebp - 0xc]
sbb edx, dword [ebp - 8]
push edx
push eax
push ebx
push str.waitres_u_after__I64u_ms
push 3
call fcn.0044def7
add esp, 0x14
mov dword [ebp + 0x18], 0xffff
cmp ebx, edi
jne 0x445517
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 0x18], edi
jne 0x4454fa
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x4454b9
mov ecx, dword [esi + 0x208]
mov dword [eax], ecx
mov ecx, dword [esi + 0x20c]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4454d1
mov ecx, dword [esi + 0x210]
mov dword [eax], ecx
mov ecx, dword [esi + 0x214]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x4454e9
mov ecx, dword [esi + 0x218]
mov dword [eax], ecx
mov ecx, dword [esi + 0x21c]
mov dword [eax + 4], ecx
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
inc edi
jmp 0x445503
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.00448411
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x44552e
push edi
push esi
push dword [ebp + 8]
call fcn.00444f20
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x44567d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0xc], ecx
call fcn.00448216
add esp, 0xc
push 0x23
push 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4457dd
mov esi, 0x453d54
lea edi, [ebp - 0xa24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3f6
xor esi, esi
lea eax, [ebp - 0xa1a]
push esi
push eax
call fcn.00448216
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xa1c]
push eax
call ebx
lea eax, [ebp - 0xa24]
push eax
mov eax, dword [ebp - 4]
add eax, 2
push eax
push str.SystemCurrentControlSetControlDeviceClasses
lea eax, [ebp - 0xe24]
push 0x4534d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xe24]
push eax
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4457dd
cmp dword [ebp - 8], esi
je 0x4457dd
and dword [ebp - 4], esi
mov edi, 0x104
push edi
lea eax, [ebp - 0x624]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4457c0
cmp word [ebp - 0x624], 0x23
jne 0x4457b2
push 0x453d50
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4457cb
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push 0x5c
pop eax
mov word [ebp - 0x214], ax
inc dword [ebp - 4]
push edi
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call esi
test eax, eax
je 0x44576b
jmp 0x4457d4
xor eax, eax
mov word [ebp - 0x214], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x456264
lea edi, [ebp - 0x41c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1fe
lea eax, [ebp - 0x412]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00448216
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
lea eax, [ebp - 0x41c]
push eax
call fcn.0042b21e
mov esi, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.0042b1c6
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4467ca
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
test byte [0x516f28], 1
jne 0x4467f3
or dword [0x516f28], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x516f24], eax
test byte [0x516f28], 2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x44681d
or dword [0x516f28], 2
push str.GetModuleFileNameExW
push dword [0x516f24]
call esi
mov dword [0x516f20], eax
test byte [0x516f28], 4
jne 0x44683f
or dword [0x516f28], 4
push str.GetProcessImageFileNameW
push dword [0x516f24]
call esi
mov dword [0x516f1c], eax
test byte [0x516f28], 8
jne 0x446867
or dword [0x516f28], 8
cmp dword [0x50abf8], 6
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [0x516f18], eax
xor ebx, ebx
cmp dword [0x516f1c], ebx
jne 0x446878
xor eax, eax
jmp 0x446a13
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x446871
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00448216
xor eax, eax
push 0x246
mov word [ebp - 0x684], ax
lea eax, [ebp - 0x682]
push ebx
push eax
call fcn.00448216
push 0x228
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], 0x22c
call fcn.00448216
add esp, 0x24
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x446a07
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x434], 4
je 0x4469d2
push dword [ebp - 0x434]
mov eax, dword [0x516f18]
push ebx
or eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4469d2
xor eax, eax
mov word [ebp - 0x210], ax
mov word [ebp - 0x684], ax
push 0x124
lea eax, [ebp - 0x684]
push eax
push esi
call dword [0x516f1c]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call dword [0x516f20]
test eax, eax
jne 0x44697b
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.0042b68f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x210]
push 0x4532d0
mov eax, esi
push eax
call fcn.00428960
test eax, eax
je 0x44699f
lea esi, [ebp - 0x208]
push dword [ebp + 8]
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4469d2
push esi
call fcn.0042b1c6
inc dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x434]
mov dword [edi], eax
mov eax, dword [ebp - 4]
add edi, 0x10
cmp eax, dword [ebp + 0x10]
jge 0x4469eb
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4468fb
jmp 0x446a06
cmp dword [0x517934], 5
jl 0x446a06
push dword [ebp - 4]
push str.max_number_of_processes_reached___i_____abort
push 5
call fcn.0044def7
add esp, 0xc
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x446a1f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x446a19
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x446a77
push 0x32
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x446a69
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
jmp 0x446a79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100
jmp 0x446a79
xor eax, eax
pop esi
leave
ret 4

Function at 0x446aa4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x810
mov dword [ebp - 4], 0x102
call fcn.004483d6
mov esi, eax
mov eax, dword [ebp + 8]
or dword [esi + 0x80c], 0xffffffff
pop ecx
mov dword [esi], eax
lea eax, [esi + 0xc]
mov dword [esi + 8], eax
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [esi + 4], ax
mov eax, 0x800
mov word [esi + 6], ax
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push esi
push 0x446a7e
push 0x10000
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x446b16
push esi
call fcn.00448411
pop ecx
xor eax, eax
jmp 0x446bad
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x446b94
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x80c]
mov dword [ebp - 4], eax
movzx eax, word [esi + 4]
cmp ax, di
je 0x446baa
mov ecx, dword [esi + 8]
cmp word [ecx], di
je 0x446baa
mov ebx, dword [ebp + 0x10]
movzx eax, ax
dec ebx
cmp eax, ebx
jge 0x446b52
mov ebx, eax
mov edi, dword [ebp + 0xc]
push ebx
push ecx
push edi
call fcn.00448280
push esi
call fcn.00448411
mov eax, ebx
xor ecx, ecx
shr eax, 1
add esp, 0x10
mov word [edi + eax*2], cx
cmp dword [ebp - 4], ecx
je 0x446baa
cmp dword [ebp - 4], 0xc000026e
jne 0x446b0f
add ebx, 0xe
cmp ebx, dword [ebp + 0x10]
jge 0x446baa
push str.dismounted
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x446baa
push str.__timeout_
push 3
call fcn.0044def7
pop ecx
pop ecx
push 0x79
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x447be9
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x447bfb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x447bdb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x44816e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
and dword [ebp - 0x40], 0
push 0x3c
mov dword [0x50b1c8], eax
lea eax, [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 0x44], 0x44
call fcn.00448216
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x4481b0
movzx eax, word [ebp - 0x14]
jmp 0x4481b3
push 0xa
pop eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x44b6a6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x9c40
call fcn.004483d6
mov dword [esp], 0x480224
push 1
push 1
xor esi, esi
push esi
mov dword [0x517508], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x517514], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x44b5ff
push 0x1000
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x517510], eax
pop esi
leave
ret

Function at 0x44b796
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44b85a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jb 0x44b85a
cmp word [esi], 0x5c
mov eax, esi
jne 0x44b7cd
cmp word [esi + 6], 0x5c
jne 0x44b7cd
lea eax, [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x410]
push ecx
push eax
call edi
test eax, eax
je 0x44b7f7
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x44b858
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
lea eax, [ebp - 0x1b8]
cmp esi, eax
jbe 0x44b858
xor eax, eax
mov word [esi], ax
push ebx
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x200]
push eax
call edi
test eax, eax
je 0x44b858
add esi, 2
push esi
lea eax, [ebp - 0x410]
push eax
push 0x4532dc
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x44d281
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x213]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00448216
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea ecx, [ebp - 4]
push ecx
mov eax, 0x200
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
mov edi, 0x2d1400
push edi
push dword [ebp + 8]
mov dword [ebp - 0x214], 0x28
call esi
mov dword [ebp - 8], 1
cmp eax, ebx
jne 0x44d347
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x44d35c
call fcn.0044b469
push eax
push str._spq_err_s
push 2
call fcn.0044def7
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 8]
call esi
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x44d2ed
cmp eax, ebx
je 0x44d35c
cmp dword [ebp - 4], ebx
je 0x44d35c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1f8]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x44d373
call fcn.0044b469
push eax
push str.IOCTL_STORAGE_QUERY_PROPERTY_err_s
push 1
call fcn.0044def7
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44dddf
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x517b4c], ebx
je 0x44def0
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x24]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
add ebp, ebp
mov dword [esp + 0x10], ebx
mov edi, 0x40000000
mov eax, dword [0x4a3fd4]
cmp eax, 0xffffffff
jne 0x44de92
push ebx
push ebx
push 4
push dword [0x5178d4]
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x4a3fd4], eax
cmp eax, 0xffffffff
jne 0x44de92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x44de60
push ebx
push ebx
push 4
push ebx
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x4a3fd4], eax
mov eax, dword [0x4a3fd4]
cmp eax, 0xffffffff
jne 0x44de92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x44de88
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xa
jl 0x44de1b
mov eax, dword [0x4a3fd4]
cmp eax, 0xffffffff
je 0x44deed
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x30]
push dword [0x4a3fd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x517b48], ebx
je 0x44ded7
push dword [0x4a3fd4]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
mov eax, dword [0x4a3fd8]
cmp eax, 0xffffffff
je 0x44ded7
push eax
call esi
push dword [0x5178f8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x44def7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
cmp dword [0x517b40], 0
jne 0x44df16
cmp dword [0x517b44], 0
je 0x44e04c
mov eax, dword [ebp + 8]
cmp eax, dword [0x517934]
jg 0x44e04c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x51790c
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x400
mov esi, 0x518bb0
push esi
push dword [ebp + 0xc]
call fcn.0042b33a
lea eax, [ebp + 0x10]
push eax
push esi
mov esi, 0x5183b0
push esi
call dword [sym.imp.USER32.dll_wvsprintfW]
cmp eax, 0x3b0
jle 0x44df6f
xor eax, eax
mov word [0x518b10], ax
test byte [0x5183a8], 1
jne 0x44df8f
or dword [0x5183a8], 1
call fcn.0042b4da
mov dword [0x5183a0], eax
mov dword [0x5183a4], edx
call fcn.0042b4da
mov edi, eax
lea eax, [ebp - 0x24]
push eax
mov ebx, edx
push ebx
push edi
push dword [0x5183a4]
push dword [0x5183a0]
call fcn.0042b50f
lea eax, [ebp - 0xa4]
push eax
mov dword [0x5183a0], edi
mov dword [0x5183a4], ebx
call fcn.0044dca5
push esi
push dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.0044dd5d
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
push str._s___s___s___i___s_r_n
mov esi, 0x517ba0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jle 0x44e035
cmp dword [0x517b44], ebx
je 0x44e008
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x517b40], ebx
je 0x44e035
cmp edi, 0x400
jne 0x44e02a
push 0xd
pop eax
push 0xa
mov word [0x51839c], ax
pop eax
mov word [0x51839e], ax
push esi
push 0x517938
call fcn.0044dddf
push 0x51790c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret