joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fc05
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.00436641
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.0044b15e
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0044b15e
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.0044b15e
push 0x50f958
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.xml
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x50fcf0
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x4561e0
mov ebx, str.ReportPath
push ebx
mov edi, 0x45acf8
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.0042a895
test eax, eax
je 0x43fd45
push dword [0x51069c]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040febe
push 0
call fcn.0040fefc
lea eax, [ebp - 0x20c]
push eax
call fcn.0043fa2f
mov dword [ebp - 4], eax
call fcn.0040ff3c
call fcn.0040fedd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43fd45
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43fd45
xor ecx, ecx
push 0x50fcf0
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.00436641
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4482fe
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.00451479
push 0x228
call fcn.0044b31e
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 0x448159
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 0x448388
push esi
call fcn.0044b359
pop ecx
jmp 0x44847b
push ebx
push dword [ebp - 4]
push str.thread_GetDiskFreeSpaceEx_ThreadProc_created_ThreadId_04u_wait_i
push 3
call fcn.00451479
add esp, 0x10
call fcn.0042cb52
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.0042cb52
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.00451479
add esp, 0x14
mov dword [ebp + 0x18], 0xffff
cmp ebx, edi
jne 0x448466
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 0x18], edi
jne 0x448449
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x448408
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 0x448420
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 0x448438
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 0x448452
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.0044b359
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x44847d
push edi
push esi
push dword [ebp + 8]
call fcn.00447e6f
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4485cc
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.0044b15e
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 0x44872c
mov esi, 0x456dec
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.0044b15e
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 0x456568
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 0x44872c
cmp dword [ebp - 8], esi
je 0x44872c
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 0x44870f
cmp word [ebp - 0x624], 0x23
jne 0x448701
push 0x456de8
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x44871a
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 0x4486ba
jmp 0x448723
xor eax, eax
mov word [ebp - 0x214], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x459514
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.0044b15e
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.0042c8cb
mov esi, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.0042c86f
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x449712
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
test byte [0x51c3a4], 1
jne 0x44973b
or dword [0x51c3a4], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x51c3a0], eax
test byte [0x51c3a4], 2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x449765
or dword [0x51c3a4], 2
push str.GetModuleFileNameExW
push dword [0x51c3a0]
call esi
mov dword [0x51c39c], eax
test byte [0x51c3a4], 4
jne 0x449787
or dword [0x51c3a4], 4
push str.GetProcessImageFileNameW
push dword [0x51c3a0]
call esi
mov dword [0x51c398], eax
test byte [0x51c3a4], 8
jne 0x4497af
or dword [0x51c3a4], 8
cmp dword [0x510068], 6
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [0x51c394], eax
xor ebx, ebx
cmp dword [0x51c398], ebx
jne 0x4497c0
xor eax, eax
jmp 0x44995b
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4497b9
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.0044b15e
xor eax, eax
push 0x246
mov word [ebp - 0x684], ax
lea eax, [ebp - 0x682]
push ebx
push eax
call fcn.0044b15e
push 0x228
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], 0x22c
call fcn.0044b15e
add esp, 0x24
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44994f
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x434], 4
je 0x44991a
push dword [ebp - 0x434]
mov eax, dword [0x51c394]
push ebx
or eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x44991a
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 [0x51c398]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call dword [0x51c39c]
test eax, eax
jne 0x4498c3
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.0042cd3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x210]
push 0x456368
mov eax, esi
push eax
call fcn.00429dfe
test eax, eax
je 0x4498e7
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 0x44991a
push esi
call fcn.0042c86f
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 0x449933
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x449843
jmp 0x44994e
cmp dword [0x51cdd4], 5
jl 0x44994e
push dword [ebp - 4]
push str.max_number_of_processes_reached___i_____abort
push 5
call fcn.00451479
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 0x449967
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 0x449961
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4499bf
push 0x32
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4499b1
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 0x4499c1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100
jmp 0x4499c1
xor eax, eax
pop esi
leave
ret 4

Function at 0x4499ec
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.0044b31e
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 0x4499c6
push 0x10000
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x449a5e
push esi
call fcn.0044b359
pop ecx
xor eax, eax
jmp 0x449af5
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x449adc
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 0x449af2
mov ecx, dword [esi + 8]
cmp word [ecx], di
je 0x449af2
mov ebx, dword [ebp + 0x10]
movzx eax, ax
dec ebx
cmp eax, ebx
jge 0x449a9a
mov ebx, eax
mov edi, dword [ebp + 0xc]
push ebx
push ecx
push edi
call fcn.0044b1c8
push esi
call fcn.0044b359
mov eax, ebx
xor ecx, ecx
shr eax, 1
add esp, 0x10
mov word [edi + eax*2], cx
cmp dword [ebp - 4], ecx
je 0x449af2
cmp dword [ebp - 4], 0xc000026e
jne 0x449a57
add ebx, 0xe
cmp ebx, dword [ebp + 0x10]
jge 0x449af2
push str.dismounted
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x449af2
push str.__timeout_
push 3
call fcn.00451479
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 0x44ab31
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x44ab43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x44ab23
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x44b0b6
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 [0x510638], eax
lea eax, [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 0x44], 0x44
call fcn.0044b15e
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x44b0f8
movzx eax, word [ebp - 0x14]
jmp 0x44b0fb
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 0x44e694
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x9c40
call fcn.0044b31e
mov dword [esp], 0x4847bc
push 1
push 1
xor esi, esi
push esi
mov dword [0x51c9a0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x51c9ac], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x44e5ed
push 0x1000
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x51c9a8], eax
pop esi
leave
ret

Function at 0x44e784
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44e848
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jb 0x44e848
cmp word [esi], 0x5c
mov eax, esi
jne 0x44e7bb
cmp word [esi + 6], 0x5c
jne 0x44e7bb
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 0x44e7e5
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x44e846
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 0x44e846
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 0x44e846
add esi, 2
push esi
lea eax, [ebp - 0x410]
push eax
push 0x456374
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 0x4505f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
push str.GetVolumesBusTypeThruDriveDev__s_...
push 4
call fcn.00451479
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0xc
push str.USBSTOR
push ebx
call esi
test eax, eax
je 0x45062c
push 7
pop eax
jmp 0x4507ef
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0044b15e
add esp, 0xc
push str.cdromven_
push ebx
call esi
test eax, eax
je 0x45065f
push str._cdrom____can_open_as_is
jmp 0x450670
push str.floppyven_
push ebx
call esi
test eax, eax
je 0x45068e
push str._floppy____can_open_as_is
push 4
call fcn.00451479
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
jmp 0x45074e
xor eax, eax
push edi
mov word [ebp - 0x410], ax
xor esi, esi
lea eax, [ebp - 0x40e]
push esi
push eax
call fcn.0044b15e
add esp, 0xc
cmp dword [ebp + 0x10], 0xffffffff
jne 0x450720
push 0x104
lea eax, [ebp - 0x410]
push eax
lea edi, [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4506db
call fcn.0044e457
push eax
push edi
push str.QueryDosDevice__s___err_s_____return_BusTypeUnknown
jmp 0x4507ab
lea eax, [ebp - 0x410]
push eax
push str._kn_s
push 4
call fcn.00451479
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0043033a
cmp dword [ebp + 0x10], 0xffffffff
jne 0x450720
push ebx
call fcn.00430534
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x450720
push str._DevNum_is__1____return_BusTypeUnknown
jmp 0x45075c
push str.Harddisk
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x45074e
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push str..PhysicalDrive_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp word [ebp - 0x208], si
jne 0x450767
push str._dont_know_how_to_open
push 4
call fcn.00451479
pop ecx
pop ecx
jmp 0x4507cf
lea eax, [ebp - 0x208]
push eax
push str._CreateFile__s_...
push 4
call fcn.00451479
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4507b7
call fcn.0044e457
push eax
lea eax, [ebp - 0x208]
push eax
push str._CreateFile__s___err_s_____return_BusTypeUnknown
push 4
call fcn.00451479
add esp, 0x10
jmp 0x4507cf
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call fcn.004502dd
push edi
test eax, eax
jne 0x4507d3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4507ee
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
push str._BusType_i
push 4
call fcn.00451479
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x451361
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x51cfec], ebx
je 0x451472
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 [0x4a9034]
cmp eax, 0xffffffff
jne 0x451414
push ebx
push ebx
push 4
push dword [0x51cd74]
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x4a9034], eax
cmp eax, 0xffffffff
jne 0x451414
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4513e2
push ebx
push ebx
push 4
push ebx
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x4a9034], eax
mov eax, dword [0x4a9034]
cmp eax, 0xffffffff
jne 0x451414
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x45140a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xa
jl 0x45139d
mov eax, dword [0x4a9034]
cmp eax, 0xffffffff
je 0x45146f
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 [0x4a9034]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x51cfe8], ebx
je 0x451459
push dword [0x4a9034]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
mov eax, dword [0x4a9038]
cmp eax, 0xffffffff
je 0x451459
push eax
call esi
push dword [0x51cd98]
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 0x451479
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
cmp dword [0x51cfe0], 0
jne 0x451498
cmp dword [0x51cfe4], 0
je 0x4515f1
mov eax, dword [0x51cdd4]
push esi
mov esi, 0xfff0
test dword [ebp + 8], esi
jne 0x4514b7
mov edx, dword [ebp + 8]
mov ecx, eax
and ecx, 0xf
and edx, 0xf
cmp dl, cl
jle 0x4514c2
and eax, dword [ebp + 8]
test esi, eax
je 0x4515f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x51cdac
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x400
mov esi, 0x51e050
push esi
push dword [ebp + 0xc]
call fcn.0042c9e7
lea eax, [ebp + 0x10]
push eax
push esi
mov esi, 0x51d850
push esi
call dword [sym.imp.USER32.dll_wvsprintfW]
cmp eax, 0x3b0
jle 0x451509
xor eax, eax
mov word [0x51dfb0], ax
test byte [0x51d848], 1
jne 0x451529
or dword [0x51d848], 1
call fcn.0042cb87
mov dword [0x51d840], eax
mov dword [0x51d844], edx
push ebx
push edi
call fcn.0042cb87
mov edi, eax
lea eax, [ebp - 0x24]
push eax
mov ebx, edx
push ebx
push edi
push dword [0x51d844]
push dword [0x51d840]
call fcn.0042cbbc
lea eax, [ebp - 0xa4]
push eax
mov dword [0x51d840], edi
mov dword [0x51d844], ebx
call fcn.004511d8
push esi
push dword [ebp + 8]
call fcn.004512e2
movsx eax, al
push eax
xor ebx, ebx
push ebx
call fcn.00451290
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
push str._s___s___s___c___s_r_n
mov esi, 0x51d040
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jle 0x4515da
cmp dword [0x51cfe4], ebx
je 0x4515ad
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x51cfe0], ebx
je 0x4515da
cmp edi, 0x400
jne 0x4515cf
push 0xd
pop eax
push 0xa
mov word [0x51d83c], ax
pop eax
mov word [0x51d83e], ax
push esi
push 0x51cdd8
call fcn.00451361
push 0x51cdac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4516c5
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [0x51e850], esi
je 0x451701
push str.CreateLogFile
push 0x2a9
push str..LogFile.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00451479
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45180a
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
inc ebx
push ebx
push str.D:_A_OICI_GA___WD_
mov dword [0x51e850], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
cmp eax, esi
je 0x451768
cmp dword [ebp - 4], esi
je 0x45173c
cmp dword [ebp - 0xc], esi
je 0x45173c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
cmp eax, esi
je 0x451768
mov eax, dword [ebp - 4]
mov dword [0x51cd68], 0xc
mov dword [0x51cd6c], eax
mov dword [0x51cd70], esi
mov dword [0x51cd74], 0x51cd68
mov dword [0x51cd78], ebx
mov dword [ebp - 8], esi
push esi
push esi
push 2
push dword [0x51cd74]
push 3
push 0x40000000
push 0x51cdd8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4517ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4517db
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x64
jl 0x45176b
jmp 0x4517db
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 2
lea eax, [ebp - 8]
push eax
push 0x9c040
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
lea eax, [ebp - 0x14]
push eax
push 2
push 0x485510
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x4517ef
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x451802
cmp dword [0x51cfe4], esi
je 0x451802
push str.UsbTreeView:_error_creating_the_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov dword [0x51e850], esi
pop ebx
pop esi
leave
ret