joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435def
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.0042eaf5
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.0043f481
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0043f481
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.0043f481
push 0x4f9580
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x4f9890
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x449d34
mov ebx, str.ReportPath
push ebx
mov edi, 0x44d58c
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.00425dab
test eax, eax
je 0x435f19
push dword [0x4fa140]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x20c]
push eax
call fcn.00435d40
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x435f19
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x435f19
xor ecx, ecx
push 0x4f9890
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.0042eaf5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435f32
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.0042eaf5
push dword [0x4fa864]
call fcn.0042e9e9
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x435f7c
push 0x40
push 0x44d534
push str.No_device_selected
push dword [0x4fa140]
call fcn.00446a6c
jmp 0x43615b
push ebx
push esi
xor eax, eax
push 0x7fe
mov word [ebp - 0xc18], ax
lea eax, [ebp - 0xc16]
push edi
push eax
call fcn.0043f481
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.0043f481
xor eax, eax
push esi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.0043f481
add esp, 0x24
push 0x4f9890
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push 0x449d34
push str.DevReportPath
mov ebx, 0x44d58c
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 0x436023
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00424780
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xfc0]
cmp eax, edi
je 0x436044
lea ecx, [eax + 0x1734]
cmp word [ecx], di
jne 0x436041
lea ecx, [eax + 0x1834]
push ecx
jmp 0x43604a
push dword [ecx + 0x81c]
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x20
lea eax, [ebp - 0xc18]
push eax
call fcn.00426579
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.00425dab
test eax, eax
je 0x436149
cmp dword [0x4fa100], edi
jne 0x4360ab
push edi
push fcn.00414098
push dword [0x4fa864]
call fcn.0042e731
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [0x4fa864]
mov dword [ebp - 4], edi
call fcn.00433e80
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.0043f641
pop ecx
push edi
xor ecx, ecx
mov dword [0x4fc5b8], eax
mov word [eax], cx
push 0x42f213
push dword [0x4fa864]
mov dword [0x4fc5bc], esi
call fcn.0042e731
lea eax, [ebp - 0xc18]
push eax
call fcn.0040c7f0
push dword [0x4fc5b8]
call fcn.0043f6b6
pop ecx
lea eax, [ebp - 0xc18]
push eax
mov dword [0x4fc5b8], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, edi
je 0x436149
xor ecx, ecx
push 0x4f9890
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.0042eaf5
pop esi
pop ebx
pop edi
leave
ret
Function at 0x436312
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.0042eaf5
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.0043f481
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0043f481
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.0043f481
push 0x4f9580
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.xml
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x4f9890
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x449d34
mov ebx, str.ReportPath
push ebx
mov edi, 0x44d58c
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.00425e65
test eax, eax
je 0x436452
push dword [0x4fa140]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040c5cc
push 0
call fcn.0040c60a
lea eax, [ebp - 0x20c]
push eax
call fcn.0043615e
mov dword [ebp - 4], eax
call fcn.0040c64a
call fcn.0040c5eb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x436452
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x436452
xor ecx, ecx
push 0x4f9890
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.0042eaf5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c845
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.0043f481
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 0x43c9a5
mov esi, 0x44a79c
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.0043f481
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 0x44a08c
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 0x43c9a5
cmp dword [ebp - 8], esi
je 0x43c9a5
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 0x43c988
cmp word [ebp - 0x624], 0x23
jne 0x43c97a
push 0x44a798
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x43c993
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 0x43c933
jmp 0x43c99c
xor eax, eax
mov word [ebp - 0x214], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x459cc0
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.0043f481
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.00427170
mov esi, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.00427118
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x43d960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
test byte [0x505ba8], 1
jne 0x43d989
or dword [0x505ba8], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x505ba4], eax
test byte [0x505ba8], 2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x43d9b3
or dword [0x505ba8], 2
push str.GetModuleFileNameExW
push dword [0x505ba4]
call esi
mov dword [0x505ba0], eax
test byte [0x505ba8], 4
jne 0x43d9d5
or dword [0x505ba8], 4
push str.GetProcessImageFileNameW
push dword [0x505ba4]
call esi
mov dword [0x505b9c], eax
test byte [0x505ba8], 8
jne 0x43d9fd
or dword [0x505ba8], 8
cmp dword [0x4f9b48], 6
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [0x505b98], eax
xor ebx, ebx
cmp dword [0x505b9c], ebx
jne 0x43da0e
xor eax, eax
jmp 0x43dba9
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x43da07
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.0043f481
xor eax, eax
push 0x246
mov word [ebp - 0x684], ax
lea eax, [ebp - 0x682]
push ebx
push eax
call fcn.0043f481
push 0x228
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], 0x22c
call fcn.0043f481
add esp, 0x24
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x43db9d
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x434], 4
je 0x43db68
push dword [ebp - 0x434]
mov eax, dword [0x505b98]
push ebx
or eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x43db68
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 [0x505b9c]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call dword [0x505ba0]
test eax, eax
jne 0x43db11
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.004275dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x210]
push 0x449ea4
mov eax, esi
push eax
call fcn.0042549b
test eax, eax
je 0x43db35
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 0x43db68
push esi
call fcn.00427118
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 0x43db81
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43da91
jmp 0x43db9c
cmp dword [0x506bac], 5
jl 0x43db9c
push dword [ebp - 4]
push str.max_number_of_processes_reached___i_____abort
push 5
call fcn.004453fb
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 0x43dbb5
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 0x43dbaf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x43dc0d
push 0x32
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43dbff
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 0x43dc0f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100
jmp 0x43dc0f
xor eax, eax
pop esi
leave
ret 4

Function at 0x43dc3a
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.0043f641
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 0x43dc14
push 0x10000
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x43dcac
push esi
call fcn.0043f6b6
pop ecx
xor eax, eax
jmp 0x43dd43
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43dd2a
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 0x43dd40
mov ecx, dword [esi + 8]
cmp word [ecx], di
je 0x43dd40
mov ebx, dword [ebp + 0x10]
movzx eax, ax
dec ebx
cmp eax, ebx
jge 0x43dce8
mov ebx, eax
mov edi, dword [ebp + 0xc]
push ebx
push ecx
push edi
call fcn.0043f4eb
push esi
call fcn.0043f6b6
mov eax, ebx
xor ecx, ecx
shr eax, 1
add esp, 0x10
mov word [edi + eax*2], cx
cmp dword [ebp - 4], ecx
je 0x43dd40
cmp dword [ebp - 4], 0xc000026e
jne 0x43dca5
add ebx, 0xe
cmp ebx, dword [ebp + 0x10]
jge 0x43dd40
push str.dismounted
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x43dd40
push str.__timeout_
push 3
call fcn.004453fb
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 0x43ed81
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x43ed93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x43ed73
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x43f2c5
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 0x43f2f6
mov eax, dword [esp + 0x14]
mov dword [eax], 0x449d34
jmp 0x43f386
call edi
push eax
mov edi, 0x505bc0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
test eax, eax
jle 0x43f386
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 0x43f379
lea edx, [ecx*2 + 0x505bc0]
cmp word [edx], 0x22
jne 0x43f34d
movzx edx, word [ecx*2 + 0x505bc2]
inc ecx
test dx, dx
je 0x43f340
cmp dx, 0x22
jne 0x43f32c
lea edx, [ecx*2 + 0x505bc0]
cmp word [edx], 0
je 0x43f386
cmp word [edx], 0x20
jne 0x43f374
xor edi, edi
mov word [edx], di
inc ecx
cmp word [ecx*2 + 0x505bc0], 0x20
je 0x43f358
mov edi, dword [esi]
lea edx, [ecx*2 + 0x505bc0]
mov dword [ebx + edi*4], edx
inc dword [esi]
mov edi, dword [esi]
inc ecx
cmp ecx, eax
jl 0x43f31f
mov eax, dword [ebx + edi*4 - 4]
cmp word [eax], 0
jne 0x43f386
dec edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x43f38c
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 [0x505bbc], eax
lea eax, [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 0x44], 0x44
call fcn.0043f481
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x43f3ce
movzx eax, word [ebp - 0x14]
jmp 0x43f3d1
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 0x4432e1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4433a5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jb 0x4433a5
cmp word [esi], 0x5c
mov eax, esi
jne 0x443318
cmp word [esi + 6], 0x5c
jne 0x443318
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 0x443342
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4433a3
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 0x4433a3
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 0x4433a3
add esi, 2
push esi
lea eax, [ebp - 0x410]
push eax
push 0x449eb0
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 0x4452e3
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x506dc4], ebx
je 0x4453f4
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 [0x4931f0]
cmp eax, 0xffffffff
jne 0x445396
push ebx
push ebx
push 4
push dword [0x506b4c]
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x4931f0], eax
cmp eax, 0xffffffff
jne 0x445396
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x445364
push ebx
push ebx
push 4
push ebx
push 1
push edi
push dword [esp + 0x38]
call esi
mov dword [0x4931f0], eax
mov eax, dword [0x4931f0]
cmp eax, 0xffffffff
jne 0x445396
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x44538c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xa
jl 0x44531f
mov eax, dword [0x4931f0]
cmp eax, 0xffffffff
je 0x4453f1
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 [0x4931f0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x506dc0], ebx
je 0x4453db
push dword [0x4931f0]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
mov eax, dword [0x4931f4]
cmp eax, 0xffffffff
je 0x4453db
push eax
call esi
push dword [0x506b70]
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 0x4453fb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
cmp dword [0x506db8], 0
jne 0x44541a
cmp dword [0x506dbc], 0
je 0x445550
mov eax, dword [ebp + 8]
cmp eax, dword [0x506bac]
jg 0x445550
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x506b84
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x400
mov esi, 0x507e28
push esi
push dword [ebp + 0xc]
call fcn.0042728c
lea eax, [ebp + 0x10]
push eax
push esi
mov esi, 0x507628
push esi
call dword [sym.imp.USER32.dll_wvsprintfW]
cmp eax, 0x3b0
jle 0x445473
xor eax, eax
mov word [0x507d88], ax
test byte [0x507620], 1
jne 0x445493
or dword [0x507620], 1
call fcn.00427427
mov dword [0x507618], eax
mov dword [0x50761c], edx
call fcn.00427427
mov edi, eax
lea eax, [ebp - 0x24]
push eax
mov ebx, edx
push ebx
push edi
push dword [0x50761c]
push dword [0x507618]
call fcn.0042745c
lea eax, [ebp - 0xa4]
push eax
mov dword [0x507618], edi
mov dword [0x50761c], ebx
call fcn.004451a9
push esi
push dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.00445261
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, 0x506e18
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jle 0x445539
cmp dword [0x506dbc], ebx
je 0x44550c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x506db8], ebx
je 0x445539
cmp edi, 0x400
jne 0x44552e
push 0xd
pop eax
push 0xa
mov word [0x507614], ax
pop eax
mov word [0x507616], ax
push esi
push 0x506bb0
call fcn.004452e3
push 0x506b84
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
Function at 0x445624
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp dword [0x508628], esi
je 0x445660
push str.CreateLogFile
push 0x28c
push str..LogFile.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004453fb
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44576f
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 [0x508628], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
cmp eax, esi
je 0x4456c7
cmp dword [ebp - 4], esi
je 0x44569b
cmp dword [ebp - 0xc], esi
je 0x44569b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
cmp eax, esi
je 0x4456c7
mov eax, dword [ebp - 4]
mov dword [0x506b40], 0xc
mov dword [0x506b44], eax
mov dword [0x506b48], esi
mov dword [0x506b4c], 0x506b40
mov dword [0x506b50], ebx
mov dword [ebp - 8], esi
push esi
push esi
push 2
push dword [0x506b4c]
push 3
push 0x40000000
push 0x506bb0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44570b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x445740
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x64
jl 0x4456ca
jmp 0x445740
push esi
lea eax, [ebp - 0x14]
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 - 0x18]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x445754
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x445767
cmp dword [0x506dbc], esi
je 0x445767
push str.UsbTreeView:_error_creating_the_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov dword [0x508628], esi
pop ebx
pop esi
leave
ret