joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x47ff90]
push edi
push 6
call fcn.00408a8e
xor ebp, ebp
cmp eax, ebp
je 0x405f3b
push 0x4e1000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.00404d49
jmp 0x405f95
mov edi, 0x454808
push ebp
push edi
push ebp
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x4e1000], 0x30
mov word [0x4e1002], 0x78
mov word [0x4e1004], bp
call fcn.004084b4
cmp word [0x454808], bp
jne 0x405f8a
push ebp
push edi
push 0x40a4dc
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004084b4
push edi
push 0x4e1000
call sub.KERNEL32.dll_lstrcatW
call fcn.00406170
mov eax, dword [0x47ff98]
mov ebx, 0x4d5000
and eax, 0x20
push ebx
mov dword [0x47ffe0], eax
mov dword [0x47fffc], 0x10000
call fcn.00408112
test eax, eax
jne 0x406050
mov ecx, dword [esi + 0x40]
cmp ecx, ebp
je 0x406050
mov edx, dword [esi + 0x44]
mov eax, dword [0x47ffb8]
mov edi, 0x46eee0
push ebp
lea edx, [eax + edx*2]
push edi
lea eax, [eax + ecx*2]
push edx
push eax
push dword [esi + 0x3c]
call fcn.004084b4
mov ax, word [0x46eee0]
cmp ax, bp
je 0x406050
cmp ax, 0x22
jne 0x40600f
mov edi, 0x46eee2
push 0x22
push edi
call fcn.00408037
mov word [eax], bp
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [edi + eax*2 - 8]
cmp eax, edi
jbe 0x406043
push 0x40d068
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406043
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40603d
test al, 0x10
jne 0x406043
push edi
call fcn.00408056
push edi
call fcn.0040800a
push eax
push ebx
call fcn.0040852e
push ebx
call fcn.00408112
test eax, eax
jne 0x406066
push dword [esi + 0x104]
push ebx
call fcn.00408550
test byte [0x47ff98], 0x10
je 0x406086
cmp dword [0x47ff9c], ebp
jne 0x406086
call fcn.00405eef
mov dword [0x46eec0], 1
push 0x8040
push ebp
push ebp
push 1
push 0x67
push dword [0x47ff80]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x477f48], eax
call fcn.00405e2f
push ebp
call fcn.004012fc
test eax, eax
je 0x4060b9
push 2
pop eax
jmp 0x40616b
call fcn.00406170
cmp dword [0x480000], ebp
jne 0x406140
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call esi
test eax, eax
jne 0x4060de
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoW]
mov esi, 0x477f00
mov ebx, str.RichEdit20A
push esi
push ebx
push ebp
call edi
test eax, eax
jne 0x40610d
push esi
push str.RichEdit
push ebp
call edi
push esi
mov dword [0x477f24], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x477f40]
push ebp
add eax, 0x69
push 0x406232
movzx eax, ax
push ebp
push eax
push dword [0x47ff80]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404a58
mov eax, esi
jmp 0x40616b
push ebp
call fcn.004078e5
test eax, eax
je 0x406162
cmp dword [0x477f2c], ebp
jne 0x4060b1
push 2
call fcn.004012fc
jmp 0x4060b1
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407dda
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00408112
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407e0e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47ffe8], eax
jmp 0x408004
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407e2c
test eax, eax
je 0x407f83
test byte [ebp + 0xc], 2
je 0x407f83
mov esi, 0x464810
push edi
push esi
call fcn.0040852e
test ebx, ebx
je 0x407e49
push 0x40d45c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x407e4f
push edi
call fcn.00408056
cmp word [edi], 0
jne 0x407e5f
cmp word [0x464810], 0x5c
jne 0x407e6a
push 0x40c4ec
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407f78
lea eax, [ebp - 0x22c]
push 0x3f
push eax
lea esi, [ebp - 0x22c]
call fcn.00408037
xor ecx, ecx
cmp word [eax], cx
je 0x407eb1
cmp word [ebp - 0x24], cx
je 0x407eb1
lea esi, [ebp - 0x24]
cmp word [esi], 0x2e
jne 0x407ed4
mov ax, word [esi + 2]
cmp ax, cx
je 0x407f57
cmp ax, 0x2e
jne 0x407ed4
cmp word [esi + 4], cx
je 0x407f57
push esi
push ebx
call fcn.0040852e
test byte [ebp - 0x258], 0x10
je 0x407ef9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407f57
push dword [ebp + 0xc]
push edi
call fcn.00407dda
jmp 0x407f57
push edi
push 0x40d428
call fcn.00408a36
pop ecx
pop ecx
push edi
call fcn.00408214
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
push edi
jne 0x407f50
test byte [ebp + 0xc], 4
je 0x407f3c
push 0x40d3e0
call fcn.00408a36
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00407812
push 0
push edi
call fcn.00408481
jmp 0x407f57
push 0x40d3a0
call fcn.00408a36
inc dword [0x47ffe8]
pop ecx
pop ecx
jmp 0x407f57
push 0xfffffffffffffff2
call fcn.00407812
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407e8d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407f83
and word [ebx - 2], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x408004
cmp dword [ebp - 8], esi
push edi
jne 0x407fa5
push 0x40d348
call fcn.00408a36
inc dword [0x47ffe8]
pop ecx
pop ecx
jmp 0x408004
call fcn.00408a67
test eax, eax
je 0x408004
push edi
call fcn.0040800a
push edi
push 0x40d308
call fcn.00408a36
pop ecx
pop ecx
push edi
call fcn.00408214
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edi
jne 0x407ffd
test byte [ebp + 0xc], 4
je 0x407ff6
push 0x40d2b8
call fcn.00408a36
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00407812
push esi
push edi
call fcn.00408481
jmp 0x408004
push 0x40d270
jmp 0x407f96
push 0xffffffffffffffe5
call fcn.00407812
pop edi
pop esi
leave
ret 8
Function at 0x4082b6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x46d6a8
push 0x40d47c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x408304
push 1
push ebp
push edi
call fcn.00408233
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40847b
cmp eax, esi
jg 0x40847b
mov edi, 0x46dea8
push esi
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40847b
cmp eax, esi
jg 0x40847b
push ebp
push ebp
push esi
push 0x46d2a8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40847b
push ebp
push ebp
push esi
mov esi, 0x46c810
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40847b
push esi
push 0x46d2a8
push 0x40d474
push 0x46cea8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47ff90]
add esp, 0x10
push dword [eax + 0x114]
push edi
call fcn.00408550
push 4
push 0xc0000000
push edi
call fcn.00408233
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40847b
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x408471
lea eax, [esp + 0x10]
push ebp
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408471
cmp edi, dword [esp + 0x10]
jne 0x408471
push str._Rename__r_n
push esi
call fcn.00408190
cmp eax, ebp
jne 0x408408
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x408439
add eax, 0xa
push 0x40d470
push eax
call fcn.00408190
mov ebp, eax
test ebp, ebp
je 0x408437
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40842a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x408424
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x40843b
xor ebp, ebp
mov eax, edi
push ebx
add eax, esi
push 0x46cea8
push eax
call fcn.004081e6
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push ebp
add edi, ebx
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401f00
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x401f1a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [0x62ebb0], 0xffffffff
jae 0x401f2e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x401f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401f42
push eax
call sym.SystemInformer.exe_PhGetNtMessage
mov edi, edi
jmp 0x401f48
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401f8e
push dword [esi + 4]
push 0x5cd56c
push str.Unable_to_lock_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401fa8
jmp 0x401f80
call fcn.004fc020
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_lock_the_computer.
push 0x5cd56c
push 0x10
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x401fc0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x401fde
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401ff2
push eax
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x401ff8
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x402039
push dword [esi + 4]
push 0x5cd56c
push str.Unable_to_log_off_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402050
call fcn.004fc020
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_log_off_the_computer.
push 0x5cd56c
push 0x10
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402840
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xc
dec eax
push esi
cmp eax, 5
ja case.0x402853.4
jmp dword [eax*4 + 0x4029f8]
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
mov dword [esp + 0x10], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x402893
push 0
push 0
push str.the_computer
push str.shut_down
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
mov ecx, dword [ebp + 0x10]
or ecx, 2
call fcn.0050ada0
mov edi, edi
test eax, eax
je 0x4029ee
push eax
push 0
push str.Unable_to_shut_down_the_computer.
push esi
call sym.SystemInformer.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.shut_down
push str.preforms_a_hard
push str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.00401820
mov esi, dword [ebp + 8]
add esp, 0xc
push 1
push dword [eax + 4]
push str.the_computer
push str.shut_down
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
push 2
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea ebx, [ebx]
test eax, eax
jns 0x4029ee
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.SystemInformer.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.shut_down
push str.forces_a_critical
push str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.00401820
mov esi, dword [ebp + 8]
add esp, 0xc
push 1
push dword [eax + 4]
push str.the_computer
push str.shut_down
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
push 0x80000000
push 6
push 6
call dword [sym.imp.ntdll.dll_NtSetSystemPowerState]
test eax, eax
jns 0x4029ee
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.SystemInformer.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
mov dword [esp + 0x10], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x4029cd
push 0
push 0
push str.the_computer
push str.update_and_shutdown
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
push 0x80000000
push 0x49
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
jne 0x4028a8
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402a20
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edx
push eax
mov edi, ecx
mov dword [ebp - 0xc], 0x1c
mov esi, 0xc0000001
mov dword [ebp - 8], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x402a6d
push 0
push 0
push str.the_computer
push str.restart
push edi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je 0x402c22
lea eax, ds:[ebp - 0xc]
mov dword [ebp - 0xc], 0x34
push eax
mov dword [ebp - 8], str.EnableBootObjectsEnumerate
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
mov dword [ebp - 0xc], 0x48
lea eax, [ebp - 0xc]
mov dword [ebp - 8], str.EnableUpdateDefaultFirmwareBootEntry
push eax
setne bl
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
mov cl, bl
setne bh
call fcn.0051ff40
mov dword [ebp - 8], eax
test eax, eax
je 0x402b8c
mov ecx, dword ds:[ebp - 4]
cmp ecx, dword [eax]
jae 0x402af4
lfence
mov eax, dword [eax + 8]
sub esp, 0x10
mov edx, esp
mov esi, dword [eax + ecx*4]
mov cl, bh
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
call fcn.0051f700
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, eax
mov ebx, esi
call fcn.005200e0
lea ecx, [ecx]
test esi, esi
js 0x402b6c
push 0x80000000
push 5
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
je 0x402c22
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x402c0d
push dword [esi + 4]
push 0x5cd56c
push str.Unable_to_configure_the_boot_application.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402c22
mov edi, edi
call fcn.004fc020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ebx
cmp ebx, 0xc0000022
je 0x402b7e
cmp esi, 0xc0000005
jne 0x402b8c
mov esi, ebx
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
jmp 0x402baf
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x402b9f
movzx eax, si
jmp 0x402baf
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x402bbe
mov eax, esi
test eax, eax
je 0x402bbe
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
jmp 0x402bc7
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
mov esi, eax
test esi, esi
je 0x402c0d
lfence
lfence
push dword [esi + 4]
push 0x5cd56c
push str.Unable_to_configure_the_boot_application.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402c22
lfence
call fcn.004fc020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unable_to_configure_the_boot_application.
push 0x5cd56c
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412f40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x412f7d
cmp dword [eax + 8], 0xffffff65
jne 0x412f7d
movzx eax, word ds:[eax + 0xc]
sub eax, 0x41
je 0x412f7d
sub eax, 2
jne 0x412f7d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x412f7d
push esi
call sym.SystemInformer.exe__PhCopyListView_4
pop esi
pop ecx
pop ebp
ret 8

Function at 0x412fa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x413007
cmp dword [eax + 8], 0xffffff65
jne 0x413007
movzx eax, word ds:[eax + 0xc]
sub eax, 0x41
je 0x412fea
sub eax, 2
jne 0x413007
test byte [ebp + 0x10], 1
je 0x413007
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x413007
push esi
call sym.SystemInformer.exe__PhCopyListView_4
pop esi
pop ebp
ret 0xc
test byte [ebp + 0x10], 2
je 0x413007
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x413007
push 2
push 2
push esi
call sym.SystemInformer.exe_PhSetStateAllListViewItems
pop esi
pop ebp
ret 0xc

Function at 0x413c00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, edx
mov esi, ecx
xor bl, bl
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov bh, byte [eax + 1]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov byte [eax + 1], bl
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x60
push 0
push 0
push 0
push edi
push esi
call sym.SystemInformer.exe_PhCreateProcessWin32Ex
test eax, eax
js 0x413cc6
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 0
push 4
push eax
push 0x1e
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x413cbd
push 0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtSetInformationDebugObject]
test eax, eax
js 0x413cb4
push dword [ebp - 0xc]
push esi
call dword [sym.imp.ntdll.dll_NtRemoveProcessDebug]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
push esi
mov bl, 1
call dword [sym.imp.ntdll.dll_NtClose]
test bh, bh
je 0x413cfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov byte [ecx + 1], bh
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005802ef
mov esp, ebp
pop ebp
ret
Function at 0x415520
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x62e040]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
push 0
push str.RegEdit_RegEdit
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41557e
push edi
push esi
call sym.SystemInformer.exe__PhShellOpenKey_8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x4155b3
push 0
push 0
push esi
call sym.SystemInformer.exe__PhUiConnectToPhSvcEx_12
test al, al
jne 0x4155b3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0x62ee48
push 0xfffffffffffffff7
push 0x20006
lea eax, [esp + 0x54]
push eax
call sym.SystemInformer.exe_PhCreateKey
test eax, eax
js 0x4156b0
push 0x11
lea eax, [esp + 0x64]
mov ecx, 8
mov esi, str.A_SystemInformer
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push eax
call sym.SystemInformer.exe_PhGenerateRandomAlphaString
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x40
call fcn.004f83a0
mov esi, eax
mov dword [esp + 0x10], 0x420040
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ecx
mov eax, dword [esi]
add eax, 2
push eax
push dword [esi + 4]
lea eax, [esp + 0x18]
push 1
push 0
push eax
push dword [esp + 0x50]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41564d
call fcn.004fc020
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov al, byte [eax + 4]
not al
and al, 1
movzx eax, al
push eax
call fcn.00415020
mov edx, dword [esp + 0x20]
mov bl, al
mov word [esp + 0x18], dx
lea ecx, [edx + 2]
mov word [esp + 0x1a], cx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
cmp edx, 0xfffe
ja 0x4156a6
lea eax, ds:[esp + 0x18]
push eax
push dword [esp + 0x40]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte ds:[eax + 4], 1
jne 0x4156c7
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov ecx, dword [esp + 0x8c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
Function at 0x41a3a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov dword [ebp - 0x43c], eax
mov esi, ecx
push edi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x450], 0xd
mov dword [ebp - 0x478], eax
mov edi, edx
lea eax, [ebp - 0x450]
mov dword [ebp - 0x440], 0xffffffff
push eax
push 0
push 0x104b
push esi
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x438], 0x208
mov dword [ebp - 0x48c], 0xd
mov dword [ebp - 0x47c], 0xffffffff
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x474], 0x208
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41a49b
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
nop
test eax, eax
je 0x41a49b
lea eax, ds:[ebp - 0x450]
mov dword [ebp - 0x44c], ebx
push eax
push 0
push 0x104c
push esi
mov dword [ebp - 0x488], edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104c
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005802ef
mov esp, ebp
pop ebp
ret 4