joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015dc
Capabilities:
Parse pe header

Disassembly:
push 0x34
push 0x45f5f8
call fcn.004387a0
push 0x44d5a8
mov edi, str.CAPIHook::UnhookImportedFunction
push edi
push 5
call fcn.00405a24
add esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401815
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401815
mov esi, dword [ecx + 0x80]
add esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp esi, ecx
je 0x401815
push 4
pop ebx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401678
lea esi, [ecx + eax]
push esi
push str.pszModName___1_hs__n
push edi
push ebx
call fcn.00405a24
push dword [ebp + 0x10]
push esi
call fcn.00438535
add esp, 0x18
test eax, eax
jne 0x4016a9
push str.Found_the_module._n
push edi
push ebx
call fcn.00405a24
add esp, 0xc
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi + 0xc], 0
je 0x40181c
push str.intercept_function._n
push edi
push ebx
call fcn.00405a24
add esp, 0xc
mov esi, dword [esi + 0x10]
add esi, dword [ebp + 8]
mov dword [ebp + 8], esi
xor eax, eax
mov ecx, esi
cmp dword [esi], eax
jmp 0x4016c0
mov esi, dword [ebp - 0x1c]
add esi, 0x14
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
jmp 0x40163f
inc eax
add ecx, ebx
cmp dword [ecx], 0
mov dword [ebp + 0x10], eax
jne 0x4016ba
push eax
push str.cFuncs___1_d__n
push edi
push ebx
call fcn.00405a24
add esp, 0x10
cmp dword [esi], 0
je 0x40181c
push dword [esi]
push str.pThunk__u1.Function__0x_1_x__n
push edi
push ebx
call fcn.00405a24
push dword [ebp + 0x18]
push str.pfnOriginalProc__0x_1_x__n
push edi
push ebx
call fcn.00405a24
push dword [ebp + 0x1c]
push str.pfnNewProc__0x_1_x__n
push edi
push ebx
call fcn.00405a24
add esp, 0x30
mov eax, dword [ebp + 0x1c]
cmp dword [esi], eax
jne 0x4017f5
push str.Found_the_entry_point._n
push edi
push ebx
call fcn.00405a24
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
jmp 0x4017cd
mov dword [ebp - 4], 0xfffffffe
push str.Set_alternative_function._n
push edi
push ebx
call fcn.00405a24
push 0x44d5c4
push edi
push 5
call fcn.00405a24
add esp, 0x18
mov eax, dword [ebp + 0x1c]
jmp 0x40181e
add esi, ebx
mov dword [ebp + 8], esi
jmp 0x4016d5
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004387e5
ret 0x18
Function at 0x401fef
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00438dc0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00438dc0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402091
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x402091
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret
Function at 0x40c3fd
Capabilities:
Inspect load icon resource

Disassembly:
push 4
mov eax, 0x44957c
call fcn.004386c4
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x64
call fcn.00426155
xor eax, eax
lea ebx, [esi + 0x24]
mov dword [esi], vtable.CDelDrvDlg.0
mov ecx, ebx
mov dword [ebp - 4], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.00405061
mov dword [ebx], eax
lea edi, [esi + 0x2c]
mov ecx, edi
and dword [edi], 0
and dword [edi + 4], 0
mov byte [ebp - 4], 1
call fcn.00412b53
mov dword [edi], eax
xor eax, eax
push 0x32
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
push dword [0x4690d0]
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_LoadIconW]
push 4
mov dword [esi + 0x74], eax
call fcn.004376fe
mov edi, eax
pop ecx
test edi, edi
je 0x40c493
push 0x4676b0
mov ecx, edi
call fcn.0040620b
jmp 0x40c495
xor edi, edi
mov dword [esi + 0x34], edi
xor edi, edi
mov ecx, ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.00405480
lea ecx, [esi + 0x2c]
call fcn.0040b7ac
mov dword [esi + 0x78], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov eax, esi
call fcn.00438692
ret
Function at 0x40dd18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
mov edi, ecx
mov ecx, dword [0x467018]
mov ebx, 0x774e
push ebx
call fcn.00407b07
mov ecx, dword [0x467018]
push eax
push ebx
call fcn.00407ad2
push eax
push ebx
mov ecx, edi
call fcn.0040d3ca
cmp eax, 7
je 0x40ddc3
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor ebx, ebx
cmp dword [edi + 0x4c], ebx
je 0x40dd62
push ebx
push dword [edi + 0x4c]
call esi
cmp dword [edi + 0x48], ebx
je 0x40dd6d
push ebx
push dword [edi + 0x48]
call esi
push ebx
push dword [edi + 4]
call esi
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
test esi, esi
je 0x40dd9c
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x40dd9c
push 3
push 0xf060
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x40e229
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x78], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41839a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x438
mov eax, 0x44a2e3
call fcn.004386f7
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
push eax
lea ecx, [ebp - 0x440]
inc esi
call fcn.00403477
and dword [ebp - 4], 0
cmp dword [0x468e7c], 0
je 0x4183dc
push str.Printer
push edi
call fcn.0043933f
pop ecx
pop ecx
test eax, eax
je 0x4183e4
xor esi, esi
inc esi
jmp 0x4185e9
lea eax, [ebp - 0x444]
push eax
push 0x20a
lea eax, [ebp - 0x428]
push eax
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
jne 0x41840d
xor esi, esi
jmp 0x4185e9
push 0x44d8a8
mov edi, 0x105
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004391ef
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00439aca
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.004391ef
lea eax, [ebp - 0x21c]
push eax
push str.try_to_remove___1_s___n
mov ebx, str.DeleteDeviceIDDirectory
push ebx
push 4
call fcn.00405a24
lea eax, [ebp - 0x21c]
push 1
push eax
call fcn.00434b4f
add esp, 0x3c
test eax, eax
jne 0x4185e9
lea eax, [ebp - 0x21c]
push eax
push str.DeleteDirectoryFiles_failed___1_s___n
push ebx
push 2
call fcn.00405a24
mov ebx, dword [ebp - 0x430]
add esp, 0x10
xor ecx, ecx
test ebx, ebx
je 0x418529
mov edx, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x440]
push 0x5f
pop esi
cmp edx, 8
lea eax, [ebp - 0x440]
cmovae eax, edi
cmp word [eax + ecx*2], 0x2d
jne 0x4184ed
cmp edx, 8
lea eax, [ebp - 0x440]
cmovae eax, edi
mov word [eax + ecx*2], si
mov edx, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x440]
cmp edx, 8
lea eax, [ebp - 0x440]
cmovae eax, edi
cmp word [eax + ecx*2], 0x28
jne 0x41851c
cmp edx, 8
lea eax, [ebp - 0x440]
cmovae eax, edi
mov word [eax + ecx*2], si
mov edx, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x440]
inc ecx
cmp ecx, ebx
jb 0x4184be
xor esi, esi
inc esi
mov edi, 0x105
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00439aca
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.004391ef
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4185cd
lea eax, [ebp - 0x21c]
push eax
call edi
test al, 0x10
je 0x4185cd
lea eax, [ebp - 0x21c]
push eax
push str.try_to_remove___1_s___n
mov edi, str.DeleteDeviceIDDirectory
push edi
push 4
call fcn.00405a24
lea eax, [ebp - 0x21c]
push 1
push eax
call fcn.00434b4f
add esp, 0x18
test eax, eax
jne 0x4185e9
lea eax, [ebp - 0x21c]
push eax
push str.DeleteDirectory_is_failed___1_s___n
push edi
push 2
call fcn.00405a24
add esp, 0x10
jmp 0x418406
lea eax, [ebp - 0x21c]
push eax
push str.__1_s___is_not_found._n
mov edi, str.DeleteDeviceIDDirectory
push edi
push 4
call fcn.00405a24
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00401ba5
mov eax, esi
call fcn.004386a6
ret
Function at 0x418600
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
ret 4
Function at 0x418970
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x628
mov eax, 0x44a371
call fcn.004386f7
xor esi, esi
push str.setupapi.dll
mov dword [ebp - 4], esi
mov ebx, esi
call fcn.00401fef
mov edi, eax
pop ecx
test edi, edi
je 0x4189a5
push str.SetupUninstallOEMInfW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.00438dc0
push esi
push esi
push 0x105
lea eax, [ebp - 0x430]
push eax
push 0x101
lea eax, [ebp - 0x634]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0043967a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.00439aca
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.004391ef
add esp, 0x48
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.004391ef
push str..PNF
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.004391ef
push 4
push 0x4512ac
call fcn.0043965b
push eax
lea eax, [ebp - 0x430]
push eax
push 0x4512ac
call fcn.004394ab
add esp, 0x2c
push dword [ebp + 8]
test eax, eax
je 0x418a7e
push str.___1_s__isnot_oeminf._n
push str.DeleteInf
push 4
call fcn.00405a24
add esp, 0x10
jmp 0x418b15
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, ebx
je 0x418ad4
push str..INF
lea eax, [ebp - 0x430]
push 0x105
push eax
call fcn.004391ef
add esp, 0xc
lea eax, [ebp - 0x430]
push esi
push esi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x418b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupUninstallOEMInf_failed.__0x_1_x___n
push str.DeleteInf
push 2
jmp 0x418a71
cmp dword [0x468e84], esi
jne 0x418b15
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
je 0x418b15
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x224]
push eax
call ebx
xor esi, esi
inc esi
test edi, edi
je 0x418b20
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00409a06
mov eax, esi
call fcn.004386a6
ret
Function at 0x41b04a
Capabilities:
Check mutex on windows

Disassembly:
push 0x5c
mov eax, 0x44a696
call fcn.004386f7
and dword [ebp - 4], 0
push 7
pop edi
xor eax, eax
mov esi, str.ScanGear_Mutex
xor ebx, ebx
and dword [ebp - 0x18], ebx
push esi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
call fcn.0043860f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401db2
xor esi, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
push 0x450c70
push str.InUseTwainSource
push 5
mov byte [ebp - 4], 2
call fcn.00405a24
mov dword [ebp - 0x30], esi
xor eax, eax
mov esi, str.Global_
push esi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
call fcn.0043860f
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
push esi
call fcn.00401db2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.0041312f
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00406613
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00401ba5
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.00421582
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x41b125
push 0x3b
lea ecx, [ebp - 0x64]
push ecx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0040693a
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0041954e
add esp, 0xc
mov esi, dword [ebp - 0x64]
cmp esi, dword [ebp - 0x60]
je 0x41b191
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
jb 0x41b145
mov eax, dword [esi]
jmp 0x41b147
mov eax, esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x41b167
call edi
cmp eax, 5
je 0x41b16e
add esi, 0x18
cmp esi, dword [ebp - 0x60]
jne 0x41b133
jmp 0x41b191
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x41b176
mov esi, dword [esi]
call edi
push eax
push esi
push str.LaunchCheck_ScanGear_OpenMutex__1_s___Success_or_ErrorCode__0x_1_d__n
push str.InUseTwainSource
push 5
call fcn.00405a24
xor ebx, ebx
add esp, 0x14
inc ebx
push 0x450c8c
push str.InUseTwainSource
push 5
call fcn.00405a24
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00401ba5
lea ecx, [ebp - 0x64]
call fcn.004052ea
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401ba5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409a06
mov eax, ebx
call fcn.004386a6
ret
Function at 0x41b92d
Capabilities:
Read file on windows

Disassembly:
push 0x234
mov eax, 0x44a6f9
call fcn.004386f7
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], ebx
test eax, eax
je 0x41b9a7
push dword [ebp + 0x10]
push eax
call fcn.0043965b
pop ecx
pop ecx
test eax, eax
je 0x41b9a7
push 0x40
push 0x453028
push edi
call fcn.0043ae6d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41b9a7
push 2
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00438dc0
push esi
push 1
lea eax, [ebp - 0x238]
push 2
push eax
call fcn.0043b299
add esp, 0x1c
test eax, eax
jne 0x41b9af
push esi
call fcn.0043b05f
pop ecx
xor eax, eax
call fcn.004386a6
ret
cmp byte [ebp - 0x238], 0xff
jne 0x41bac0
cmp byte [ebp - 0x237], 0xfe
jne 0x41bac0
mov edi, 0x20a
push edi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00438dc0
push esi
mov ebx, 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0043af37
add esp, 0x18
jmp 0x41ba97
and dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
and dword [ebp - 4], eax
cmp word [ebp - 0x21c], ax
je 0x41ba2a
lea eax, [ebp - 0x21c]
push eax
call fcn.0043860f
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401db2
cmp dword [ebp - 0x220], 8
push dword [ebp - 0x240]
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x41baa4
push edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00438dc0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x234]
push 0
push 1
call fcn.00401ba5
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0043af37
add esp, 0xc
test eax, eax
jne 0x41b9f7
jmp 0x41bb40
xor eax, eax
inc eax
push 0
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
call fcn.00401ba5
jmp 0x41bb40
push esi
call fcn.0043b05f
push 0x40
push 0x453030
push edi
call fcn.0043ae6d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b9a7
mov edi, 0x20a
push edi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00438dc0
mov ebx, 0x104
jmp 0x41bb1f
push dword [ebp - 0x240]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x41bb36
push edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00438dc0
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0043af37
add esp, 0x18
test eax, eax
jne 0x41bafa
jmp 0x41bb40
mov dword [ebp - 0x23c], 1
push esi
call fcn.0043b05f
mov eax, dword [ebp - 0x23c]
pop ecx
jmp 0x41b9a9
Function at 0x41ecab
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41ecd6
xor eax, eax
jmp 0x41ed4e
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor ebx, ebx
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push ebx
push ebx
push ebx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
pop ebx
jne 0x41ed4b
push str.ExitWindowsEx_failed._n
push str.RestartWindows
push 2
call fcn.00405a24
add esp, 0xc
jmp 0x41ecd2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438628
leave
ret
Function at 0x422b73
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004226cc
hlt

Function at 0x422dcf
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x422da3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x422dc1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x422e1f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x422e06
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x422e0f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x422e19
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x422dfb
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x422d85
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x422e6c
dec eax
je 0x422e63
sub eax, 3
je 0x422e5a
mov dword [ebp - 4], 0x40
jmp 0x422e89
mov dword [ebp - 4], 4
jmp 0x422e6f
mov dword [ebp - 4], 0x20
jmp 0x422e6f
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x422ebb
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x422e3b
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004226cc
pop esi
salc
push edi
xchg ecx, eax
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x422ec7
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42566d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x45434c
push str.CDeviceInf::Init
push 5
mov esi, ecx
call fcn.00405a24
add esp, 0xc
cmp dword [esi + 0xc], 0
jne 0x425860
cmp dword [esi + 8], 0
jne 0x425860
test ebx, ebx
jne 0x4256c3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x425883
push dword [ebp + 0xc]
push ebx
call fcn.0043965b
pop ecx
pop ecx
test eax, eax
je 0x4256b4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4256e5
push 2
jmp 0x425865
lea edi, [esi + 0x14]
push ebx
mov ecx, edi
call fcn.00401d8b
cmp dword [edi + 0x14], 8
jb 0x4256fa
mov eax, dword [edi]
jmp 0x4256fc
mov eax, edi
push eax
lea ecx, [esi + 0x34]
call fcn.00431702
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00438dc0
push 0x10
lea ebx, [esi + 0x31c]
push 0
push ebx
call fcn.00438dc0
push 8
lea eax, [esi + 0x324]
push 0
push eax
call fcn.00438dc0
add esp, 0x24
cmp dword [edi + 0x14], 8
jb 0x42573d
mov edi, dword [edi]
push 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetINFClassW]
test eax, eax
jne 0x425771
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetINFClass_failed.__0x_1_lX___n
push str.CDeviceInf::Init
push 2
call fcn.00405a24
add esp, 0x10
jmp 0x4256bc
lea eax, [ebp - 0x44]
push eax
push str.ClassName____1_s___n
push str.CDeviceInf::Init
push 5
call fcn.00405a24
add esp, 0x10
cmp word [ebp - 0x44], 0
jne 0x425794
xor eax, eax
jmp 0x42579e
lea eax, [ebp - 0x44]
push eax
call fcn.0043860f
pop ecx
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x32c]
call fcn.00401db2
movzx eax, byte [esi + 0x32b]
push eax
movzx eax, byte [esi + 0x32a]
push eax
movzx eax, byte [esi + 0x329]
push eax
movzx eax, byte [esi + 0x328]
push eax
movzx eax, byte [esi + 0x327]
push eax
movzx eax, byte [esi + 0x326]
push eax
movzx eax, byte [esi + 0x325]
push eax
movzx eax, byte [esi + 0x324]
push eax
movzx eax, word [esi + 0x322]
push eax
movzx eax, word [esi + 0x320]
push eax
push dword [ebx]
lea eax, [ebp - 0xc4]
push str.GUID___08lX__04lX__04lx__02X_02X__02X_02X_02X_02X_02X_02X_n
push eax
call fcn.00421635
lea eax, [ebp - 0xc4]
push eax
push str.GUID___1_s__n
push str.CDeviceInf::Init
push 5
call fcn.00405a24
mov eax, dword [ebp + 0x10]
xor edi, edi
inc edi
add esp, 0x44
cmp dword [ebp + 0x14], 0
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
je 0x42586d
push edi
mov ecx, esi
call sym.DELDRV.exe_public:_int___thiscall_CDeviceInf::GetFullInfo_int_
test eax, eax
jne 0x42586d
push str.CManufacturers_object_creation_failed._n
push str.CDeviceInf::Init
push 2
call fcn.00405a24
add esp, 0xc
jmp 0x42586b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push 0x454368
push str.CDeviceInf::Init
push 5
call fcn.00405a24
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret 0x10