joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439f31
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.004318be
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.00444396
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00444396
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00444396
push 0x505050
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x505358
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x44f0b8
mov ebx, str.ReportPath
push ebx
mov edi, 0x453138
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.00428110
test eax, eax
je 0x43a05b
push dword [0x505c28]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x20c]
push eax
call fcn.00439e82
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43a05b
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43a05b
xor ecx, ecx
push 0x505358
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.004318be
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a074
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.004318be
push dword [0x506384]
call fcn.004317b2
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x43a0be
push 0x40
push 0x4530e0
push str.No_device_selected
push dword [0x505c28]
call fcn.0044b4a0
jmp 0x43a29d
push ebx
push esi
xor eax, eax
push 0x7fe
mov word [ebp - 0xc18], ax
lea eax, [ebp - 0xc16]
push edi
push eax
call fcn.00444396
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00444396
xor eax, eax
push esi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.00444396
add esp, 0x24
push 0x505358
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push 0x44f0b8
push str.DevReportPath
mov ebx, 0x453138
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 0x43a165
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00426a9d
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xfcc]
cmp eax, edi
je 0x43a186
lea ecx, [eax + 0x1738]
cmp word [ecx], di
jne 0x43a183
lea ecx, [eax + 0x1838]
push ecx
jmp 0x43a18c
push dword [ecx + 0x820]
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x20
lea eax, [ebp - 0xc18]
push eax
call fcn.0042895c
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.00428110
test eax, eax
je 0x43a28b
cmp dword [0x505bd8], edi
jne 0x43a1ed
push edi
push fcn.00415f23
push dword [0x506384]
call fcn.00431478
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [0x506384]
mov dword [ebp - 4], edi
call fcn.00437b7e
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.00444556
pop ecx
push edi
xor ecx, ecx
mov dword [0x5080e4], eax
mov word [eax], cx
push 0x431fee
push dword [0x506384]
mov dword [0x5080e8], esi
call fcn.00431478
lea eax, [ebp - 0xc18]
push eax
call fcn.0040e330
push dword [0x5080e4]
call fcn.004445cb
pop ecx
lea eax, [ebp - 0xc18]
push eax
mov dword [0x5080e4], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, edi
je 0x43a28b
xor ecx, ecx
push 0x505358
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.004318be
pop esi
pop ebx
pop edi
leave
ret
Function at 0x43a454
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.004318be
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.00444396
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00444396
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00444396
push 0x505050
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.xml
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x505358
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x44f0b8
mov ebx, str.ReportPath
push ebx
mov edi, 0x453138
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.004281ca
test eax, eax
je 0x43a594
push dword [0x505c28]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040e10c
push 0
call fcn.0040e14a
lea eax, [ebp - 0x20c]
push eax
call fcn.0043a2a0
mov dword [ebp - 4], eax
call fcn.0040e18a
call fcn.0040e12b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43a594
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43a594
xor ecx, ecx
push 0x505358
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.004318be
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441481
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
push edi
push dword [ebp + 8]
push str.GetDiskFreeSpaceExTimeout__s___u_
push 3
call fcn.00449e4d
push 0x228
call fcn.00444556
add esp, 0x14
push dword [ebp + 8]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
lea eax, [ebp + 0x18]
push eax
push ebx
push esi
push 0x4412f0
push ebx
mov dword [esi + 0x224], edi
push ebx
mov dword [ebp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x4414e7
push esi
call fcn.004445cb
pop ecx
jmp 0x4415c5
push edi
push dword [ebp + 0x18]
push str.thread_GetDiskFreeSpaceEx_ThreadProc_created_ThreadId_04u_wait_i
push 3
call fcn.00449e4d
add esp, 0x10
call fcn.0042990d
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
call fcn.0042990d
sub eax, dword [ebp - 0xc]
sbb edx, dword [ebp - 8]
push edx
push eax
push edi
push str.waitres_u_after__I64u_ms
push 3
call fcn.00449e4d
add esp, 0x14
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4415b0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], ebx
jne 0x44159b
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x44155f
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, ebx
je 0x441577
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, ebx
je 0x44158f
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]
push esi
call fcn.004445cb
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4415c7
push ebx
push esi
push dword [ebp + 8]
call fcn.00441006
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x441716
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.00444396
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 0x441876
mov esi, 0x44fc54
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.00444396
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 0x44f40c
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 0x441876
cmp dword [ebp - 8], esi
je 0x441876
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 0x441859
cmp word [ebp - 0x624], 0x23
jne 0x44184b
push 0x44fc50
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x441864
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 0x441804
jmp 0x44186d
xor eax, eax
mov word [ebp - 0x214], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x451d88
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.00444396
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.00429686
mov esi, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.0042962e
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x442859
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
test byte [0x511774], 1
jne 0x442882
or dword [0x511774], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x511770], eax
test byte [0x511774], 2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x4428ac
or dword [0x511774], 2
push str.GetModuleFileNameExW
push dword [0x511770]
call esi
mov dword [0x51176c], eax
test byte [0x511774], 4
jne 0x4428ce
or dword [0x511774], 4
push str.GetProcessImageFileNameW
push dword [0x511770]
call esi
mov dword [0x511768], eax
test byte [0x511774], 8
jne 0x4428f6
or dword [0x511774], 8
cmp dword [0x505610], 6
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [0x511764], eax
xor ebx, ebx
cmp dword [0x511768], ebx
jne 0x442907
xor eax, eax
jmp 0x442aa2
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x442900
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.00444396
xor eax, eax
push 0x246
mov word [ebp - 0x684], ax
lea eax, [ebp - 0x682]
push ebx
push eax
call fcn.00444396
push 0x228
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], 0x22c
call fcn.00444396
add esp, 0x24
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x442a96
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x434], 4
je 0x442a61
push dword [ebp - 0x434]
mov eax, dword [0x511764]
push ebx
or eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x442a61
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 [0x511768]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call dword [0x51176c]
test eax, eax
jne 0x442a0a
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.00429af7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x210]
push 0x44f220
mov eax, esi
push eax
call fcn.00427780
test eax, eax
je 0x442a2e
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 0x442a61
push esi
call fcn.0042962e
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 0x442a7a
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44298a
jmp 0x442a95
cmp dword [0x512584], 5
jl 0x442a95
push dword [ebp - 4]
push str.max_number_of_processes_reached___i_____abort
push 5
call fcn.00449e4d
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 0x442aae
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 0x442aa8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x442b06
push 0x32
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x442af8
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 0x442b08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100
jmp 0x442b08
xor eax, eax
pop esi
leave
ret 4

Function at 0x442b33
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.00444556
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 0x442b0d
push 0x10000
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x442ba5
push esi
call fcn.004445cb
pop ecx
xor eax, eax
jmp 0x442c3c
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x442c23
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 0x442c39
mov ecx, dword [esi + 8]
cmp word [ecx], di
je 0x442c39
mov ebx, dword [ebp + 0x10]
movzx eax, ax
dec ebx
cmp eax, ebx
jge 0x442be1
mov ebx, eax
mov edi, dword [ebp + 0xc]
push ebx
push ecx
push edi
call fcn.00444400
push esi
call fcn.004445cb
mov eax, ebx
xor ecx, ecx
shr eax, 1
add esp, 0x10
mov word [edi + eax*2], cx
cmp dword [ebp - 4], ecx
je 0x442c39
cmp dword [ebp - 4], 0xc000026e
jne 0x442b9e
add ebx, 0xe
cmp ebx, dword [ebp + 0x10]
jge 0x442c39
push str.dismounted
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x442c39
push str.__timeout_
push 3
call fcn.00449e4d
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 0x443c78
Capabilities:
Create thread

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
and dword [esi], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
cmp eax, 0x200
jb 0x44420b
mov eax, dword [esp + 0x14]
mov dword [eax], 0x44f0b8
jmp 0x44429b
call edi
push eax
mov edi, 0x511790
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
test eax, eax
jle 0x44429b
mov ecx, dword [esi]
mov ebx, dword [esp + 0x14]
mov dword [ebx + ecx*4], edi
inc dword [esi]
mov edi, dword [esi]
xor ecx, ecx
test eax, eax
jle 0x44428e
lea edx, [ecx*2 + 0x511790]
cmp word [edx], 0x22
jne 0x444262
movzx edx, word [ecx*2 + 0x511792]
inc ecx
test dx, dx
je 0x444255
cmp dx, 0x22
jne 0x444241
lea edx, [ecx*2 + 0x511790]
cmp word [edx], 0
je 0x44429b
cmp word [edx], 0x20
jne 0x444289
xor edi, edi
mov word [edx], di
inc ecx
cmp word [ecx*2 + 0x511790], 0x20
je 0x44426d
mov edi, dword [esi]
lea edx, [ecx*2 + 0x511790]
mov dword [ebx + edi*4], edx
inc dword [esi]
mov edi, dword [esi]
inc ecx
cmp ecx, eax
jl 0x444234
mov eax, dword [ebx + edi*4 - 4]
cmp word [eax], 0
jne 0x44429b
dec edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4442a1
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 [0x511788], eax
lea eax, [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 0x44], 0x44
call fcn.00444396
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x4442e3
movzx eax, word [ebp - 0x14]
jmp 0x4442e6
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 0x447715
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4477d9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jb 0x4477d9
cmp word [esi], 0x5c
mov eax, esi
jne 0x44774c
cmp word [esi + 6], 0x5c
jne 0x44774c
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 0x447776
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4477d7
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 0x4477d7
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 0x4477d7
add esi, 2
push esi
lea eax, [ebp - 0x410]
push eax
push 0x44f22c
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 0x4491eb
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.00444396
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 0x4492b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x4492c6
call fcn.00447428
push eax
push str._spq_err_s
push 2
call fcn.00449e4d
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 0x449257
cmp eax, ebx
je 0x4492c6
cmp dword [ebp - 4], ebx
je 0x4492c6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1f8]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x4492dd
call fcn.00447428
push eax
push str.IOCTL_STORAGE_QUERY_PROPERTY_err_s
push 1
call fcn.00449e4d
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x449d35
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x51279c], ebx
je 0x449e46
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 [0x49ef80]
cmp eax, 0xffffffff
jne 0x449de8
push ebx
push ebx
push 4
push dword [0x512524]
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x49ef80], eax
cmp eax, 0xffffffff
jne 0x449de8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x449db6
push ebx
push ebx
push 4
push ebx
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x49ef80], eax
mov eax, dword [0x49ef80]
cmp eax, 0xffffffff
jne 0x449de8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x449dde
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xa
jl 0x449d71
mov eax, dword [0x49ef80]
cmp eax, 0xffffffff
je 0x449e43
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 [0x49ef80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x512798], ebx
je 0x449e2d
push dword [0x49ef80]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
mov eax, dword [0x49ef84]
cmp eax, 0xffffffff
je 0x449e2d
push eax
call esi
push dword [0x512548]
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