joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407070
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b606b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov esi, dword [esp + 0x444]
mov ebp, dword [esp + 0x448]
push str.CInstallCtrl::getLCIDMapping
lea ecx, [esp + 0x18]
call fcn.00405a40
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 0x43c], 0
jbe 0x4070df
call fcn.00488c34
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x4070ec
call fcn.00488c34
push edi
push esi
push ebx
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00404b50
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
push 0x200
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0x4c1254
call edi
test eax, eax
je 0x4071da
xor ebx, ebx
cmp word [esp + 0x30], bx
je 0x4071da
lea eax, [esp + 0x30]
push eax
push 0x10
lea edx, [esp + 0x28]
push edx
call fcn.00401e30
push ebp
push 0x200
lea eax, [esp + 0x238]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x4c1254
call edi
test eax, eax
je 0x4071bb
lea edx, [esp + 0x230]
push 0x4c1250
push edx
call fcn.0048979d
add esp, 8
test eax, eax
je 0x4071bb
push 0x10
push 0
push eax
call fcn.00489758
push 0x10
mov word [esp + 0x28], ax
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00489758
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov word [esp + 0x1e], ax
call fcn.00406e90
push 0x4c1250
push 0
call fcn.0048979d
add esp, 8
test eax, eax
jne 0x407177
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax + 1]
cmp word [esp + ebx*2 + 0x30], 0
lea eax, [esp + ebx*2 + 0x30]
jne 0x407131
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00403f90
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004888ae
add esp, 0x42c
ret 8
Function at 0x4090e0
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x4b638c
mov eax, dword fs:[0]
push eax
sub esp, 0xf94
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0xf90], eax
push ebx
push esi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0xfa0]
mov dword fs:[0], eax
mov esi, ecx
push str.CESInstallerApp::Execute
lea ecx, [esp + 0x14]
call fcn.00405a40
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0xfac], ebx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x40916d
mov ecx, esi
call fcn.004085e0
mov ecx, esi
call fcn.00405d30
test al, al
jne 0x409188
mov dword [esi + 0xdc], 2
lea ecx, [esp + 0x10]
mov dword [esp + 0xfa8], 0xffffffff
call fcn.00403f90
xor eax, eax
jmp 0x40929b
mov ecx, esi
call fcn.00406040
test al, al
jne 0x40919f
mov dword [esi + 0xdc], 8
jmp 0x40916d
mov ecx, esi
call fcn.00407b10
test al, al
je 0x409193
mov eax, dword [0x4ed058]
cmp eax, ebx
jne 0x4091f6
lea ecx, [esp + 0x508]
call fcn.00413b00
lea ecx, [esp + 0x508]
mov byte [esp + 0xfa8], 1
call fcn.00416ee0
push eax
mov ecx, esi
mov dword [esi + 0xdc], eax
call fcn.00405ee0
lea ecx, [esp + 0x508]
mov byte [esp + 0xfa8], bl
call fcn.00413bf0
jmp 0x409262
cmp eax, 1
jne 0x40922d
lea ecx, [esp + 0x1c]
call fcn.0041a470
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfa8], 2
call fcn.0041a8a0
lea ecx, [esp + 0x1c]
mov dword [esi + 0xdc], eax
mov byte [esp + 0xfa8], bl
call fcn.0041a540
jmp 0x409262
cmp eax, 2
jne 0x409262
lea ecx, [esp + 0xf]
call fcn.0041acc0
lea ecx, [esp + 0xf]
mov byte [esp + 0xfa8], 3
call fcn.0041b250
lea ecx, [esp + 0xf]
mov dword [esi + 0xdc], eax
mov byte [esp + 0xfa8], bl
call fcn.0041acd0
cmp dword [0x4ed0f8], ebx
je 0x409282
cmp byte [0x4ed05c], bl
je 0x409282
mov ecx, esi
call fcn.00405fb0
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 0x10]
mov dword [esp + 0xfa8], 0xffffffff
call fcn.00403f90
mov eax, 1
mov ecx, dword [esp + 0xfa0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xf90]
xor ecx, esp
call fcn.004888ae
add esp, 0xfa0
ret
Function at 0x4100d0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b6e46
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
push str.CInstallCtrl::DeleteEPSONScanDSFile
lea ecx, [esp + 0x10]
call fcn.00405a40
push 0x104
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x22c], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.0045a356
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410152
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push str._sTWAIN_32ESCNDV_s
push edx
mov byte [esp + 0x234], 1
call fcn.00404ae0
mov esi, dword [esp + 0x18]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x224], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0xffffffff
call fcn.00403f90
mov al, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004888ae
add esp, 0x220
ret 4
Function at 0x410430
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b6ee6
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x460], eax
push esi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x46c]
mov dword fs:[0], eax
push str.CInstallCtrl::CheckEPSONScanModelExist
lea ecx, [esp + 0xc]
call fcn.00405a40
push 0x104
lea eax, [esp + 0x264]
push eax
mov dword [esp + 0x47c], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.0045a356
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4104ae
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x10]
push str._sTWAIN_32ESCNDV.ds
push edx
mov byte [esp + 0x480], 1
call fcn.00404ae0
mov esi, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x410538
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi - 0x10]
mov byte [esp + 0x474], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 8]
mov dword [esp + 0x474], 0xffffffff
call fcn.00403f90
mov al, 1
jmp 0x41057a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi - 0x10]
mov byte [esp + 0x474], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 8]
mov dword [esp + 0x474], 0xffffffff
call fcn.00403f90
xor al, al
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004888ae
add esp, 0x470
ret
Function at 0x4116a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b7062
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
push str.CInstallCtrl::DeleteEPSONScanFiles
lea ecx, [esp + 0x14]
call fcn.00405a40
xor edi, edi
push str.TWAIN_32ESCNDV
lea ecx, [esp + 0x1c]
mov dword [esp + 0x250], edi
mov word [esp + 0x18], 0x24
call fcn.00405b00
mov dword [esp + 0x1c], 1
push str.EPSONEPSON_Scan
lea ecx, [esp + 0x28]
mov byte [esp + 0x250], 1
mov word [esp + 0x24], 0x17
call fcn.00405b00
mov dword [esp + 0x28], 1
push str.EPSON_Scan.lnk
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 2
mov word [esp + 0x30], 0x19
call fcn.00405b00
mov dword [esp + 0x34], edi
mov byte [esp + 0x24c], 3
lea esi, [esp + 0x18]
nop
movzx ecx, word [esi - 4]
push 0x104
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.00456d80
add esp, 0xc
test al, al
je 0x41187b
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x10]
call fcn.00405b00
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 4
call fcn.0040c040
cmp dword [esi + 4], 0
je 0x4117c6
mov eax, dword [esp + 0xc]
push 0
push eax
call fcn.004505d0
add esp, 8
test al, al
jne 0x4117ed
mov ecx, dword [esp + 0xc]
push ecx
push str._ERROR_Failed_to_delete_folder__s_
jmp 0x4117df
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4117ed
mov eax, dword [esp + 0xc]
push eax
push str._ERROR_Failed_to_delete_file__s_
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411815
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
add esi, 0xc
cmp edi, 3
jb 0x411760
push 0x40b670
push 3
push 0xc
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x25c], 0
call fcn.00489dfc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00403f90
mov al, 1
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004888ae
add esp, 0x244
ret
push str._ERROR_Failed_to_get_folder_path
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
push 0x40b670
push 3
push 0xc
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x25c], 0
call fcn.00489dfc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00403f90
xor al, al
jmp 0x411855
Function at 0x411df0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b709b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x488]
push str.CInstallCtrl::GetSupportLCIDList
lea ecx, [esp + 0x1c]
call fcn.00405a40
mov eax, dword [0x4ed0cc]
push 0x4c3420
push 0x4c1da8
push eax
push 0x4c2c0c
lea ecx, [esp + 0x27c]
push 0x208
push ecx
mov dword [esp + 0x498], 0
call fcn.004032e0
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411f14
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
test byte [esp + 0x1c], 0x10
je 0x411efd
push 0x4c15f0
lea ecx, [esp + 0x4c]
push ecx
call esi
test eax, eax
je 0x411efd
push 0x4c3418
lea edx, [esp + 0x4c]
push edx
call esi
test eax, eax
je 0x411efd
lea eax, [esp + 0x48]
push eax
call ebx
cmp eax, 4
jne 0x411efd
push 0x10
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.00489758
movzx eax, ax
add esp, 0xc
test ax, ax
mov dword [esp + 0x14], eax
je 0x411efd
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 4]
call fcn.004118d0
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411ea0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
test eax, eax
je 0x411f24
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 1
jne 0x411f3c
lea ecx, [esp + 0x18]
mov dword [esp + 0x480], 0xffffffff
call fcn.00403f90
xor al, al
jmp 0x411f52
lea ecx, [esp + 0x18]
mov dword [esp + 0x480], 0xffffffff
call fcn.00403f90
mov al, 1
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004888ae
add esp, 0x470
ret 4
Function at 0x412f90
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4b7198
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
push str.CInstallCtrl::GetCurrentLCID
lea ecx, [esp + 0x14]
call fcn.00405a40
mov esi, dword [esp + 0x24]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x1c], 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push esi
mov ecx, edi
movzx ebx, ax
call fcn.00411df0
test al, al
jne 0x41301d
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403f90
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
mov ax, word [0x4ed060]
test ax, ax
jne 0x41313b
mov edx, dword [0x4ed0c4]
mov ecx, dword [0x4ed0c0]
xor edi, edi
lea ebx, [ebx]
test ecx, ecx
je 0x413077
mov eax, edx
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x413077
cmp bx, word [ecx + edi*4]
je 0x41305a
add edi, 1
jmp 0x413040
test ecx, ecx
je 0x413067
sub edx, ecx
sar edx, 2
cmp edi, edx
jb 0x413072
call fcn.00488c34
mov ecx, dword [0x4ed0c0]
movzx ebx, word [ecx + edi*4 + 2]
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4130d6
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x4130d6
test ecx, ecx
je 0x4130a1
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x4130a6
call fcn.00488c34
mov eax, dword [esi + 8]
cmp word [eax + edi*2], bx
je 0x4130b4
add edi, 1
jmp 0x413080
mov ecx, eax
test ecx, ecx
je 0x4130c5
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x4130ca
call fcn.00488c34
mov ecx, dword [esi + 8]
mov dx, word [ecx + edi*2]
mov word [esi], dx
jmp 0x41313e
cmp word [esi], 0
jne 0x413135
xor edi, edi
mov edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x413135
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x413135
test ecx, ecx
je 0x413101
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x413106
call fcn.00488c34
mov eax, dword [esi + 8]
cmp byte [eax + edi*2], bl
je 0x413113
add edi, 1
jmp 0x4130e0
mov ecx, eax
test ecx, ecx
je 0x413124
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x413129
call fcn.00488c34
mov ecx, dword [esi + 8]
mov dx, word [ecx + edi*2]
mov word [esi], dx
jmp 0x41313e
mov ax, word [0x4ed0ac]
mov word [esi], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403f90
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x415630
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4b7500
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebp, ebp
push str.CInstallCtrl::WriteRegistry
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebp
call fcn.00405a40
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x2c], 1
lea edi, [ebx + 0x18]
test ebx, ebx
je 0x4157a7
mov esi, dword [esp + 0x3c]
sub esi, ebx
sar esi, 5
cmp ebp, esi
jae 0x4157a7
cmp dword [edi - 0x14], 0
jne 0x415781
cmp ebp, esi
jb 0x4156a3
call fcn.00488c34
mov eax, dword [edi + 4]
shr eax, 4
and al, 1
cmp ebp, esi
mov byte [esp + 0x18], al
jb 0x4156b8
call fcn.00488c34
cmp dword [edi], 0
jne 0x41571a
cmp ebp, esi
jb 0x4156c6
call fcn.00488c34
mov eax, dword [edi - 4]
push 0
push 0
push eax
call fcn.00489758
add esp, 0xc
cmp ebp, esi
mov dword [esp + 0x1c], eax
jb 0x4156e3
call fcn.00488c34
cmp ebp, esi
mov ecx, dword [edi - 8]
mov dword [esp + 0x20], ecx
jb 0x4156f3
call fcn.00488c34
cmp ebp, esi
mov ebx, dword [edi - 0xc]
jb 0x4156ff
call fcn.00488c34
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [edi - 0x10]
push eax
push ecx
push ebx
push edx
call fcn.004551d0
jmp 0x415776
cmp ebp, esi
jb 0x415723
call fcn.00488c34
cmp dword [edi], 1
jne 0x41578c
cmp ebp, esi
jb 0x415731
call fcn.00488c34
cmp ebp, esi
mov eax, dword [edi - 4]
mov dword [esp + 0x20], eax
jb 0x415741
call fcn.00488c34
cmp ebp, esi
mov ecx, dword [edi - 8]
mov dword [esp + 0x1c], ecx
jb 0x415751
call fcn.00488c34
cmp ebp, esi
mov ebx, dword [edi - 0xc]
jb 0x41575d
call fcn.00488c34
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [edi - 0x10]
push eax
push ecx
push ebx
push edx
call fcn.004550d0
add esp, 0x14
test al, al
je 0x41578c
mov ebx, dword [esp + 0x38]
add ebp, 1
add edi, 0x20
jmp 0x415677
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00403f90
lea ecx, [esp + 0x34]
call fcn.00412800
xor al, al
jmp 0x4157dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00403f90
test ebx, ebx
je 0x4157da
mov edi, dword [esp + 0x3c]
cmp ebx, edi
mov esi, ebx
je 0x4157d1
mov ecx, esi
call fcn.0040b9c0
add esi, 0x20
cmp esi, edi
jne 0x4157c3
push ebx
call fcn.00458aee
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x41ae00
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b7e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x86c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x884]
mov dword fs:[0], eax
push str.CUninstallPrepCtrl::CopySetupFiles
lea ecx, [esp + 0x18]
call fcn.00405a40
mov eax, dword [0x4ed0d0]
xor ebx, ebx
push eax
mov dword [esp + 0x890], ebx
call fcn.0044fe80
add esp, 4
test al, al
je 0x41af76
mov ecx, dword [0x4ed0d4]
push 0x4c3420
push ecx
push str._s_s
lea edx, [esp + 0x47c]
push 0x208
push edx
call fcn.004032e0
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41af5c
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 0x18], 0x10
jne 0x41af1e
mov eax, dword [0x4ed0d4]
lea edx, [esp + 0x44]
push edx
push eax
push str._s_s
lea ecx, [esp + 0x274]
push 0x208
push ecx
call fcn.004032e0
mov eax, dword [0x4ed0d0]
lea edx, [esp + 0x58]
push edx
push eax
push str._s_s
lea ecx, [esp + 0x698]
push 0x208
push ecx
call fcn.004032e0
add esp, 0x28
push 0
lea edx, [esp + 0x67c]
push edx
lea eax, [esp + 0x270]
push eax
call edi
test eax, eax
je 0x41af33
lea ecx, [esp + 0x18]
push ecx
push esi
call ebp
test eax, eax
jne 0x41aeb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41af94
lea edx, [esp + 0x268]
push edx
push str._ERROR_Failed_to_copy_file:__s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
push esi
mov ebx, 7
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41af94
push str._ERROR_Failed_to_find_any_setup_file
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
mov ebx, 4
jmp 0x41af94
mov eax, dword [0x4ed0d0]
push eax
push str._ERROR_Failed_to_create_temp_directory:__s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
mov ebx, 7
lea ecx, [esp + 0x14]
mov dword [esp + 0x88c], 0xffffffff
call fcn.00403f90
mov eax, ebx
mov ecx, dword [esp + 0x884]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x86c]
xor ecx, esp
call fcn.004888ae
add esp, 0x87c
ret
Function at 0x41afe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b7e56
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
push str.CUninstallPrepCtrl::LaunchUninstallExecuteProcess
lea ecx, [esp + 0x18]
call fcn.00405a40
mov eax, dword [0x4ed0d0]
push str.setup.exe
push eax
push str._s_s
lea ecx, [esp + 0x78]
push 0x208
push ecx
mov dword [esp + 0x294], 0
xor ebp, ebp
call fcn.004032e0
lea edx, [esp + 0x80]
push edx
call fcn.0044fe20
add esp, 0x18
test al, 1
je 0x41b1f4
call fcn.0045a356
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41b086
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x40
lea ecx, [esp + 0x30]
push 0
push ecx
mov byte [esp + 0x28c], 1
call fcn.00489e60
xor eax, eax
push str.REXEC
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push 0x4c5f70
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0x44
call fcn.00404ae0
mov ecx, dword [0x4ed0d4]
push str.setup.log
push ecx
push str.LOG
lea edx, [esp + 0x38]
push str.___s__s_s_
push edx
call fcn.0040c8b0
add esp, 0x30
cmp byte [0x4ed05c], 0
jne 0x41b140
cmp byte [0x4ed05d], 0
jne 0x41b129
push 0x4c1b54
push str.___s
lea eax, [esp + 0x18]
push eax
jmp 0x41b138
push 0x4c1be8
push str.___s
lea ecx, [esp + 0x18]
push ecx
call fcn.0040c8b0
add esp, 0xc
mov eax, dword [0x4ed064]
cmp dword [eax - 0xc], 0
je 0x41b15e
push eax
lea edx, [esp + 0x14]
push str.___s
push edx
call fcn.0040c8b0
add esp, 0xc
mov esi, dword [esp + 0x10]
push esi
push str._INFO_Uninstall_Execute:__s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41b1af
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
jmp 0x41b1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_CreateProcess_failed_0x_x_
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
mov ebp, 0xa
lea eax, [esi - 0x10]
mov byte [esp + 0x280], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b211
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41b211
lea ecx, [esp + 0x6c]
push ecx
push str._ERROR_Not_Found_File_to_Execute:__s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
mov ebp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x280], 0xffffffff
call fcn.00403f90
mov eax, ebp
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004888ae
add esp, 0x274
ret