joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e8a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
mov ebx, 1
push 0x4202b4
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], ebx
call fcn.00402390
lea ecx, [esp + 0x13c]
mov byte [esp + 0x130], 2
call fcn.00402ca0
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x10], esi
jle 0x4069e9
push edi
jmp 0x406850
cmp dword [esp + 0x14], ebx
lea ecx, [esp + 0x140]
push esi
jne 0x4068ba
call fcn.00401560
cmp al, 0x22
jne 0x40689e
lea edi, [esi + 1]
cmp edi, ebp
jge 0x406891
push edi
lea ecx, [esp + 0x144]
call fcn.00401560
cmp al, 0x22
jne 0x406891
push 0x22
lea ecx, [esp + 0x14]
call fcn.00401bc0
mov esi, edi
jmp 0x4069df
mov dword [esp + 0x14], 0
jmp 0x4069df
push esi
lea ecx, [esp + 0x144]
call fcn.00401560
lea ecx, [esp + 0x10]
push eax
call fcn.00401bc0
jmp 0x4069df
call fcn.00401560
cmp al, 0x22
jne 0x4068cc
mov dword [esp + 0x14], ebx
jmp 0x4069df
push esi
lea ecx, [esp + 0x144]
call fcn.00401560
cmp al, 0x20
je 0x4069df
push esi
lea ecx, [esp + 0x144]
call fcn.00401560
cmp al, 0x2b
je 0x4069df
push 9
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14c]
call fcn.004028e0
push str.DRIVERDIR
push eax
mov byte [esp + 0x13c], 3
call fcn.004015c0
add esp, 8
lea ecx, [esp + 0x24]
mov bl, al
mov byte [esp + 0x134], 2
call fcn.00401910
test bl, bl
je 0x40694d
mov ecx, dword [esp + 0x18]
add ecx, 0x88
push ecx
lea ecx, [esp + 0x14]
call fcn.00401be0
jmp 0x4069ac
push 9
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14c]
call fcn.004028e0
push str.SYSTEMDIR
push eax
mov byte [esp + 0x13c], 4
call fcn.004015c0
add esp, 8
lea ecx, [esp + 0x1c]
mov bl, al
mov byte [esp + 0x134], 2
call fcn.00401910
test bl, bl
je 0x4069af
push 0x104
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401b90
add esi, 9
cmp esi, ebp
jge 0x4069da
push esi
lea ecx, [esp + 0x144]
call fcn.00401560
cmp al, 0x20
je 0x4069da
push esi
lea ecx, [esp + 0x144]
call fcn.00401560
cmp al, 0x2b
je 0x4069da
inc esi
cmp esi, ebp
jl 0x4069b3
mov ebx, 1
inc esi
cmp esi, ebp
jl 0x406850
pop edi
mov esi, dword [esp + 0x138]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x130], 1
call fcn.00401910
lea ecx, [esp + 0x13c]
mov byte [esp + 0x130], 0
call fcn.00401910
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x407f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ead0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push str.CMainFrame::DeleteRegDriver___n
mov esi, ecx
call fcn.00403770
add esp, 4
push 0x4202b4
lea ecx, [esp + 0xc]
call fcn.00402390
add esi, 0x8c
push esi
lea eax, [esp + 0x14]
push str.SoftwareEPSONSTM3Driver_
push eax
mov dword [esp + 0x5c], 0
call fcn.004025b0
add esp, 0xc
push 0x20019
push 0
push 0
mov ecx, eax
mov byte [esp + 0x5c], 1
call fcn.00402cb0
push eax
push 0x80000002
lea ecx, [esp + 0x3c]
call fcn.00413990
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call fcn.00401910
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40807d
push 0x4202b4
lea ecx, [esp + 0x10]
call fcn.00402390
push 0x100
lea ecx, [esp + 0x10]
push ecx
push str.ModelID
lea edx, [esp + 0x20]
mov bl, 4
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], bl
call fcn.00413720
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], 5
call fcn.00401940
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], bl
call fcn.00401910
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 3
call fcn.00401910
lea ecx, [esp + 8]
call fcn.00401d50
test eax, eax
jne 0x4080d2
push 0xf003f
push eax
push eax
push str.SoftwareEPSONSTM3Profile
push 0x80000002
lea ecx, [esp + 0x4c]
call fcn.00413990
mov eax, dword [esp + 0x40]
test eax, eax
mov byte [esp + 0x50], 6
je 0x4080c4
lea ecx, [esp + 8]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x3c]
call fcn.004136f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 3
call fcn.00413420
push 0xf003f
push 0
push 0
push str.SoftwareEPSONSTM3Driver
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.00413990
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x50], 7
je 0x40818c
mov ecx, esi
call fcn.00402cb0
push eax
lea ecx, [esp + 0x1c]
call fcn.00413a10
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.004134c0
push 0x4202b4
push eax
mov byte [esp + 0x58], 8
call fcn.004015c0
add esp, 8
lea ecx, [esp + 0x14]
mov bl, al
mov byte [esp + 0x50], 7
call fcn.00401910
test bl, bl
je 0x40818c
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 3
call fcn.00413420
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0
call fcn.00413420
lea ecx, [esp + 8]
mov dword [esp + 0x50], 0xffffffff
call fcn.00401910
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 3
call fcn.00413420
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0
call fcn.00413420
lea ecx, [esp + 8]
mov dword [esp + 0x50], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 0x48]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x4082a0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41eb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
push str.CMainFrame::RemoveSystem32Module___n
call fcn.00403770
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
xor edi, edi
push edi
push edi
push 2
push edi
push 0x46
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call sub.WINSPOOL.DRV_EnumPrintersA
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408337
push eax
call fcn.0041563f
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 2
push edi
push 0x46
call sub.WINSPOOL.DRV_EnumPrintersA
test esi, esi
je 0x40832c
push esi
call fcn.0041563a
add esp, 4
cmp dword [esp + 0x14], 1
jne 0x408453
push 0x104
lea edx, [esp + 0x1c]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
call fcn.004017b0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push str._sEcbteg.dll
push ecx
mov dword [esp + 0x130], 0
call fcn.004021f0
add esp, 8
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00402330
call fcn.00411230
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push str._sEbpport.inf
push ecx
call fcn.004021f0
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00402330
call fcn.00411230
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push str._sE_spnf01.exe
push ecx
call fcn.004021f0
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00402330
call fcn.00411230
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push str._sEbpehp.dll
push ecx
call fcn.004021f0
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00402330
call fcn.00411230
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push str._sEbpchp.dll
push ecx
call fcn.004021f0
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00402330
call fcn.00411230
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0xffffffff
call fcn.00401910
push str.CMainFrame::RemoveSystem32Module___exit_n
call fcn.00403770
mov ecx, dword [esp + 0x120]
add esp, 4
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x120
ret
Function at 0x408480
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41eb2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push str.CMainFrame::RemoveSystem32Module2___start_n
call fcn.00403770
add esp, 4
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
call fcn.004017b0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push str._sEcbteg.dll
push edx
mov dword [esp + 0x120], 0
call fcn.004021f0
add esp, 8
lea eax, [esp + 4]
mov ecx, esp
mov dword [esp + 8], esp
push eax
call fcn.00402330
call fcn.00411230
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push str._sE_spnf01.exe
push edx
call fcn.004021f0
add esp, 0xc
lea eax, [esp + 4]
mov ecx, esp
mov dword [esp + 8], esp
push eax
call fcn.00402330
call fcn.00411230
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push str._sEbpehp.dll
push edx
call fcn.004021f0
add esp, 0xc
lea eax, [esp + 4]
mov ecx, esp
mov dword [esp + 8], esp
push eax
call fcn.00402330
call fcn.00411230
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push str._sEbpchp.dll
push edx
call fcn.004021f0
add esp, 0xc
lea eax, [esp + 4]
mov ecx, esp
mov dword [esp + 8], esp
push eax
call fcn.00402330
call fcn.00411230
push str.CMainFrame::RemoveSystem32Module2___exit_n
call fcn.00403770
add esp, 8
lea ecx, [esp]
mov dword [esp + 0x114], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 0x10c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x408a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ec99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [esp + 0x14], 0
push str.CMainFrame::GetInfFileName___n
mov dword [esp + 0x44], 1
call fcn.00403770
add esp, 4
push 0x4202b4
lea ecx, [esp + 8]
call fcn.00402390
push 0x4202b4
lea ecx, [esp + 4]
mov byte [esp + 0x44], 2
call fcn.00402390
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x10]
push str.SoftwareEPSONSTM3Driver_
push ecx
mov byte [esp + 0x4c], 3
call fcn.004025b0
add esp, 0xc
push 0x20019
push 0
push 0
mov ecx, eax
mov byte [esp + 0x4c], 4
call fcn.00402cb0
push eax
push 0x80000002
lea ecx, [esp + 0x3c]
call fcn.00413990
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 6
call fcn.00401910
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x408b32
push 0
push 0xca
push 3
call fcn.00403950
add esp, 0xc
jmp 0x408c6d
push 0x4202b4
lea ecx, [esp + 0xc]
call fcn.00402390
push 0x100
lea edx, [esp + 0xc]
push edx
push str.ModelID
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 7
call fcn.00413720
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x44], 8
call fcn.00401940
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 7
call fcn.00401910
lea ecx, [esp + 8]
mov byte [esp + 0x40], 6
call fcn.00401910
lea ecx, [esp + 4]
call fcn.00401d50
test eax, eax
je 0x408bb0
push 0
push 0xcb
push 3
call fcn.00403950
add esp, 0xc
jmp 0x408c6d
push 0x20019
push 0
push 0
push str.SoftwareEPSONSTM3Profile
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.00413990
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x40], 9
jne 0x408be2
push 0
push 0xcc
jmp 0x408c55
push 0x4202b4
lea ecx, [esp + 0xc]
call fcn.00402390
push 0x100
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 0xa
call fcn.00402cb0
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
call fcn.00413720
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x44], 0xb
call fcn.00401940
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0xa
call fcn.00401910
lea ecx, [esp + 8]
mov byte [esp + 0x40], 9
call fcn.00401910
lea ecx, [esp]
call fcn.00401d50
test eax, eax
je 0x408c5f
push 0
push 0xcd
push 3
call fcn.00403950
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 6
call fcn.00413420
push esi
mov esi, dword [esp + 0x4c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x44], 3
call fcn.00413420
lea ecx, [esp + 4]
mov byte [esp + 0x44], 2
call fcn.00401910
lea ecx, [esp + 8]
mov byte [esp + 0x44], 1
call fcn.00401910
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0
call fcn.00401910
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x40a040
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41eed6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push esi
push str.CMainFrame::CopyDriverFile___n
call fcn.00403770
add esp, 4
lea ecx, [esp + 4]
call fcn.004017b0
lea ecx, [esp + 8]
mov dword [esp + 0x31c], 0
call fcn.004017b0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 0x32c]
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x330], 1
call fcn.004160bc
mov ecx, dword [esp + 0x340]
mov esi, dword [esp + 0x33c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x128]
push eax
add ecx, 0x30
push ecx
push esi
lea edx, [esp + 0x28]
push str._s_c_s_s
push edx
call fcn.004021f0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x140]
push ecx
push esi
lea edx, [esp + 0x40]
push 0x421638
push edx
call fcn.004021f0
add esp, 0x40
push 0
lea ecx, [esp + 0xc]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xc]
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
pop esi
jne 0x40a175
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x71
push 7
call fcn.00403950
add esp, 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x318], 0
call fcn.00401910
lea ecx, [esp]
mov dword [esp + 0x318], 0xffffffff
call fcn.00401910
xor eax, eax
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
add esp, 0x31c
ret 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x318], 0
call fcn.00401910
lea ecx, [esp]
mov dword [esp + 0x318], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 0x310]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x31c
ret 0xc
Function at 0x40a6fc
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ef48
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
cmp eax, dword [esi + 0xac]
jne 0x40a8ce
push ebx
push str.CMainFrame::OnTimer___n
call fcn.00403770
mov eax, dword [esi + 0xb4]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x40a72d
cmp dword [esi + 0xb8], ebx
je 0x40a778
mov eax, dword [esi + 0xbc]
inc eax
push eax
push str.CMainFrame::OnTimer___EBAPI_SDK_Wait_timer__d_n
mov dword [esi + 0xbc], eax
call fcn.00403770
mov eax, dword [esi + 0xbc]
add esp, 8
cmp eax, 0x78
jl 0x40a778
cmp dword [esi + 0xb8], ebx
push ebx
je 0x40a760
push 0xa
jmp 0x40a762
push 2
push 4
call fcn.00403950
add esp, 0xc
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
cmp dword [esi + 0xd0], ebx
je 0x40a8a7
mov eax, dword [esi + 0xd8]
inc eax
push eax
push str.CMainFrame::OnTimer___SIDM_Service_Wait_timer__d_n
mov dword [esi + 0xd8], eax
call fcn.00403770
mov eax, dword [esi + 0xd8]
add esp, 8
cmp eax, 3
jl 0x40a8a7
push edi
push ebx
lea ecx, [esi + 0xe0]
call fcn.00402cb0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40a824
mov eax, dword [esi + 0x80]
cmp eax, 2
je 0x40a7d6
cmp eax, 3
jne 0x40a855
push str.CMainFrame::OnTimer___Delete_SIDM_service_n
call fcn.00403770
lea edi, [esi + 0xe4]
add esp, 4
mov ecx, edi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a824
test al, 1
je 0x40a812
and eax, 0xfffffffe
push eax
mov ecx, edi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, edi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, ebx
jne 0x40a855
mov ecx, dword [esi + 0xd4]
inc ecx
mov eax, ecx
cmp eax, 5
mov dword [esi + 0xd4], ecx
jl 0x40a84d
push ebx
push 0xd
push 4
call fcn.00403950
add esp, 0xc
mov dword [esi + 0xd0], ebx
jmp 0x40a8a6
mov dword [esi + 0xd8], ebx
jmp 0x40a8a6
cmp dword [esi + 0xdc], ebx
mov dword [esi + 0xd0], ebx
je 0x40a8a6
push 0xf003f
push ebx
push ebx
push str.SoftwareEPSONSTM3
push 0x80000002
lea ecx, [esp + 0x20]
call fcn.00413990
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
je 0x40a895
push str.SIDMCommon
lea ecx, [esp + 0x10]
call fcn.00413a10
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00413420
pop edi
cmp dword [esi + 0xb4], ebx
jne 0x40a8cd
cmp dword [esi + 0xb8], ebx
jne 0x40a8cd
cmp dword [esi + 0xd0], ebx
jne 0x40a8cd
mov ecx, dword [esi + 4]
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebx
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40a8e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push ebx
push str.CMainFrame::CreateShortcuts___n
call fcn.00403770
add esp, 4
push 0
mov ebx, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x424098
push ebx
push 0
push 0x4240a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40a931
push str.CMainFrame::CreateShortcuts___Error_1_n
xor ebx, ebx
call fcn.00403770
add esp, 4
jmp 0x40aa15
mov edx, dword [esp + 0x218]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push esi
push edi
push edx
push eax
call dword [ecx + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jge 0x40a962
call edi
push eax
push esi
push str.CMainFrame::CreateShortcuts___SetPath___d__LastError_d_n
call fcn.00403770
add esp, 0xc
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x40a98b
call edi
push eax
push esi
push str.CMainFrame::CreateShortcuts___SetDescription___d__LastError_d_n
call fcn.00403770
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4240b8
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jge 0x40a9b9
xor ebx, ebx
call edi
push eax
push esi
push str.CMainFrame::CreateShortcuts___QueryInterface___d__LastError_d_n
call fcn.00403770
add esp, 0xc
jmp 0x40aa09
mov ecx, dword [esp + 0x224]
push 0x104
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
test esi, esi
jge 0x40a9ff
call edi
push eax
push esi
push str.CMainFrame::CreateShortcuts___ppf__Save_d__LastError_d_n
call fcn.00403770
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
push ebx
push str.CMainFrame::CreateShortcuts___Result_d_n
call fcn.00403770
add esp, 8
mov eax, ebx
pop ebx
add esp, 0x210
ret 0xc
Function at 0x40af80
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x41f01c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
push edi
push str.CMainFrame::DeleteUtilityShortcuts___n
mov esi, ecx
call fcn.00403770
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004017b0
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], ebx
call fcn.004017b0
mov eax, dword [esi + 0x80]
cmp eax, 2
mov byte [esp + 0x164], 1
je 0x40affd
cmp eax, 3
je 0x40affd
mov eax, dword [esi + 4]
push 7
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004116a0
add esp, 0xc
mov byte [esp + 0x164], 3
jmp 0x40b018
mov edx, dword [esi + 4]
push 0x18
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004116a0
add esp, 0xc
mov byte [esp + 0x164], 2
lea ecx, [esp + 0xc]
push eax
call fcn.00401940
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 1
call fcn.00401910
lea ecx, [esp + 0xc]
push 0x4202b4
push ecx
call fcn.004015c0
add esp, 8
test al, al
je 0x40b04e
push ebx
push 0x78
jmp 0x40b087
lea ecx, [esp + 0xc]
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40b067
push ebx
push 0x79
jmp 0x40b087
lea edx, [esp + 0x1c]
push edx
push 0x421c6c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b0cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7a
push 7
call fcn.00403950
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.00401910
lea ecx, [esp + 0xc]
mov dword [esp + 0x164], 0xffffffff
call fcn.00401910
xor eax, eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x15c
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x1c], 0x10
jne 0x40b11e
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.004019c0
push str.E_SPSU__.LNK
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
call fcn.004115e0
add esp, 8
test eax, eax
je 0x40b11e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402330
call fcn.00411230
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
call edi
cmp eax, ebx
je 0x40b0d5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.00401910
lea ecx, [esp + 0xc]
mov dword [esp + 0x164], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret
Function at 0x40ffa0
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x41f928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::RecoveryMonitor___n
mov dword [esp + 0x260], 0
call fcn.00403770
add esp, 4
lea ecx, [esi + 0x98]
call fcn.00401d50
or ebx, 0xffffffff
test eax, eax
jne 0x4100f7
lea edi, [esi + 0x94]
mov ecx, edi
call fcn.00401d50
test eax, eax
jne 0x4100f7
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x114]
push edx
mov ecx, edi
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
jne 0x41006d
cmp dword [esi + 0x80], 1
jne 0x4100f7
push 0
push 0xe
push 6
call fcn.00403950
add esp, 0xc
lea ecx, [esp + 0x264]
mov dword [esp + 0x25c], ebx
call fcn.00401910
xor eax, eax
jmp 0x41010f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x80]
cmp eax, 3
jne 0x41009c
push ecx
lea eax, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00402330
mov ecx, esi
call fcn.0040f990
jmp 0x4100de
cmp eax, 2
jne 0x4100be
push ecx
lea edx, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402330
mov ecx, esi
call fcn.0040f990
jmp 0x4100de
cmp eax, 1
jne 0x4100f7
push ecx
lea eax, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00402330
mov ecx, esi
call fcn.00409d00
lea ecx, [esp + 0x264]
mov esi, eax
mov dword [esp + 0x25c], ebx
call fcn.00401910
mov eax, esi
jmp 0x41010f
lea ecx, [esp + 0x264]
mov dword [esp + 0x25c], ebx
call fcn.00401910
mov eax, 1
mov ecx, dword [esp + 0x254]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x254
ret 4