joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019b4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, str.SHCore.dll
push ebx
push esi
push edi
push 0x800
call fcn.00401909
mov esi, eax
test esi, esi
je 0x4019f7
push str.SetProcessDpiAwareness
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4019e8
push 2
call eax
jmp 0x4019ee
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4019fd
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
xor ebx, ebx
push ebx
push 0x40e1f8
push 0x40e7e4
mov dword [ebp - 4], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, dword [ebp + 8]
mov dword [0x40eab8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetSystemDEPPolicy]
cmp eax, 2
jne 0x401a34
push 1
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
push str.WM_CHECK_VER
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x40e7f0], eax
mov edi, ebx
jmp 0x401a4a
xor ebx, ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0xffffffffffffffff
push 1
push ebx
call fcn.0040530c
mov esi, dword [ebp + 8]
mov bl, al
test bl, bl
je 0x401a69
cmp esi, 0xffffffff
jne 0x401a7a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jl 0x401a48
test bl, bl
je 0x401aca
cmp esi, 0xffffffff
je 0x401aca
test esi, esi
je 0x401b1a
mov eax, dword [0x40e7f0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x401ad5
xor ebx, ebx
push ebx
push ebx
push eax
push esi
call edi
cmp eax, 0xf
je 0x401ad5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x8642
push eax
push ebx
push 0x4a
push esi
mov dword [ebp - 0xc], 0x14
mov dword [ebp - 8], str._tsr_exit
call edi
test eax, eax
jne 0x401b1a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x10], 0x8642
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x401ae9
sub ecx, ebx
mov dword [ebp - 8], edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push 0x4a
push esi
call edi
neg eax
sbb eax, eax
neg eax
jmp 0x401acc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.00401e78
jmp 0x401acc
Function at 0x402025
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40a7a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40e858]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], ecx
push edi
inc ebx
xor edi, edi
test eax, eax
jne 0x4020ea
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jbe 0x40209e
mov dword [0x40e858], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004072ea
mov esp, ebp
pop ebp
ret
jne 0x4020e2
cmp dword [ebp - 0x110], ebx
jb 0x4020ce
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4020da
cmp dword [ebp - 0x11c], edi
je 0x4020da
mov dword [0x40e858], 2
jmp 0x4020ef
mov dword [0x40e858], ebx
jmp 0x40208b
push 2
pop eax
mov dword [0x40e858], eax
cmp eax, 2
jne 0x40208b
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push edi
call esi
mov ebx, eax
push ebx
call esi
test ebx, ebx
je 0x402114
push dword [ebp - 0x120]
call ebx
mov edi, eax
test edi, edi
je 0x402114
cmp edi, 1
jne 0x40211e
mov dword [0], 1
mov eax, edi
jmp 0x40208d

Function at 0x40231d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402342
xor al, al
jmp 0x402383
mov ecx, dword [ebp + 0x10]
xor edx, edx
push esi
lea eax, [ecx*2 - 2]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2 - 2], dx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402389
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push edx
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4023d0
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4023d7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareMicrosoftOffice16.0OneNoteOptionsOutlookAndWeb
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40243e
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40240a
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push str.ScreenClippingsID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x402445
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edx
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402479
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x4025f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftOffice16.0OneNoteOptionsOther
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402662
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.RunSystemTrayApp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x402662
cmp dword [ebp - 0xc], 4
jne 0x402662
xor eax, eax
cmp dword [ebp - 0x10], eax
setne al
jmp 0x402664
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x402668
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.004025f9
test al, al
jne 0x4026da
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftOffice16.0OneNoteOptionsOther
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4026da
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.RunSystemTrayApp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4026da
cmp dword [ebp - 0xc], 4
jne 0x4026da
cmp dword [ebp - 0x10], 0
jne 0x4026da
xor al, al
jmp 0x4026dc
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4031fa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp esi, 1
je 0x4032db
cmp esi, 2
je 0x4032d4
cmp esi, 3
je 0x4032b9
cmp esi, 0xa
je 0x403298
lea eax, [esi - 0x3e9]
cmp eax, 2
ja 0x403291
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
lea eax, [esp + 0x10]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftOffice16.0OneNoteOptionsOther
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403288
push 4
lea eax, [esi - 0x3e8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push str.SystemTrayAppDefaultBehavior
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor cl, cl
call fcn.00402d09
jmp 0x4032e7
call fcn.004022ae
jmp 0x4032e7
call fcn.004025f9
test al, al
jne 0x4032e7
xor ebx, ebx
push ebx
push ebx
push dword [0x40eab0]
push dword [0x40eaac]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4032e7
xor ebx, ebx
mov byte [0x40eab4], bl
mov byte [0x40eabd], bl
mov byte [0x40e85c], bl
call fcn.004035d6
jmp 0x4032e7
mov ecx, 0x40a8bc
jmp 0x4032e0
mov ecx, str._sidenote
xor dl, dl
call fcn.00402767
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c09
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [0x40e89c]
push esi
push edi
push dword [0x40eaac]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 1], al
test al, al
je 0x403c6c
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x403c6c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push esi
test edi, edi
je 0x403c66
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push ebx
mov edx, eax
mov ecx, edi
call fcn.00403b06
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x403c6e
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor bl, bl
cmp byte [ebp - 1], 0
je 0x403c7a
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fc9
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x40e7cc]
sub esi, dword [0x40e7c4]
push edi
mov edi, dword [0x40e7c8]
sub edi, dword [0x40e7c0]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push dword [0x40e7c4]
mov dword [ebp - 0x10], eax
push dword [0x40e7c0]
push dword [0x40e860]
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [0x40e870]
xor bl, bl
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4040c1
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 4
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push str.OneNote_Screen_Clipping_Flag
mov esi, eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
movzx eax, ax
mov dword [ebp - 8], eax
test esi, esi
je 0x4040a4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push esi
movzx eax, ax
push eax
call edi
test eax, eax
jne 0x4040a2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4040a4
mov bl, 1
mov esi, dword [ebp - 0xc]
push esi
push 2
call edi
test eax, eax
jne 0x4040b9
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4040bb
mov bl, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40529f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareMicrosoftOffice16.0OneNoteOptions
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405307
cmp dword [ebp - 4], esi
je 0x405307
movzx ecx, word [0x40eac8]
movzx eax, word [0x40eac4]
push 4
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.ClippingPanelWindowPosition
push dword [ebp - 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40530c
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
test esi, esi
je 0x40531c
mov dword [esi], ebx
cmp dword [0x40e7f8], ebx
jne 0x405328
xor al, al
jmp 0x405398
push edi
push str.OneNoteM:AppShared
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x405395
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405387
push ebx
push ebx
push ebx
push 6
push dword [0x40e7f8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x405387
test esi, esi
je 0x40536b
mov eax, dword [ecx]
mov dword [esi], eax
cmp byte [ebp + 8], bl
jne 0x405379
cmp byte [ebp + 0xc], bl
je 0x40537e
cmp dword [ecx], ebx
jne 0x40537e
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40539e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push str.Microsoft_Office_OneNote16:ONAppSharedFile
xor ebx, ebx
mov edi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4053e6
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4053dd
push esi
mov esi, eax
mov bl, 1
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40560a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x40e38c], 0
je 0x405622
mov eax, dword [0x40e390]
jmp 0x4056f2
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405671
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x40e390
push esi
push esi
push dword [0x40e120]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405671
cmp dword [ebp - 8], 4
je 0x4056cb
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x405682
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4056d3
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x40e390
push esi
push esi
push dword [0x40e120]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4056d3
cmp dword [ebp - 8], 4
jne 0x4056d3
mov esi, dword [0x40e390]
jmp 0x4056d9
mov dword [0x40e390], esi
cmp dword [ebp - 4], 0
mov byte [0x40e38c], 1
je 0x4056ef
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4056f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSID
push Ordinal_1
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405788
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40577e
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40577e
cmp dword [ebp + 8], edi
jne 0x40577e
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x40577e
cmp dword [ebp - 4], ebx
je 0x40578a
push dword [ebp - 4]
call esi
jmp 0x40578a
cmp dword [ebp - 4], ebx
je 0x405788
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x405794
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4072f7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x40a7a4], eax
je 0x407319
cmp dword [0x40a7a4], ebx
jne 0x4073ad
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x40a7a4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x40a7a4
push 4
push edi
mov dword [0x40a7a4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x40a7a4]
not eax
mov dword [0x40e16c], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075e8
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40c228
call fcn.00407aaa
push 1
call fcn.00407752
pop ecx
test al, al
jne 0x407491
push 7
call fcn.00407f09
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040771d
mov byte [ebp - 0x24], al
mov eax, dword [0x40e3f8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40748a
test eax, eax
jne 0x4074fb
mov dword [0x40e3f8], ecx
push 0x40a2b8
push 0x40a2a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4074de
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4075e2
push 0x40a29c
push 0x40a278
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40e3f8], 2
jmp 0x407500
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004078af
pop ecx
call fcn.00407efd
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x407530
push esi
call fcn.00407822
pop ecx
test al, al
je 0x407530
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040813b
call esi
call fcn.00407f03
mov esi, eax
cmp dword [esi], edi
je 0x40754e
push esi
call fcn.00407822
pop ecx
test al, al
je 0x40754e
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0040801e
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00408054
test al, al
jne 0x407587
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x407590
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004078cc
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4075e2
call fcn.00407af0
ret
call fcn.004072f7
jmp 0x407472
Function at 0x417310
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d74cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004cb533
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417392
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c932d
mov eax, dword [eax]
push 0x62e210
push eax
call fcn.004ba664
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004cb7be
test bl, bl
je 0x417392
push 0x62e210
lea ecx, [esp + 0xc]
call fcn.004cbb4e
push 0x631d94
lea ecx, [esp + 0xc]
call fcn.004cbb4e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4173ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004cb7be
jmp 0x417499
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x417452
lea edx, [esp + 0x7c]
push 0x631d90
push edx
call fcn.004ba664
add esp, 8
test eax, eax
je 0x417452
lea eax, [esp + 0x7c]
push 0x631d8c
push eax
call fcn.004ba664
add esp, 8
test eax, eax
je 0x417452
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4173e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004cb7be
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x417cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x417d12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc