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

Disassembly:
mov eax, 0x4163b4
call fcn.0040ef50
push ebx
push esi
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00401b8a
push eax
lea ecx, [ebp + 8]
call fcn.00401a44
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov ebx, eax
call fcn.00401ab0
cmp ebx, 0xffffffff
je 0x402cda
test bl, 1
je 0x402cd7
and ebx, 0xfffffffe
lea ecx, [ebp + 8]
push ebx
call fcn.00401b8a
push eax
lea ecx, [ebp + 8]
call fcn.00401a44
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x402ccb
push 1
pop esi
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00401ab0
jmp 0x402cda
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x402cf8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4163c8
call fcn.0040ef50
push esi
xor esi, esi
lea ecx, [ebp + 8]
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push esi
mov dword [ebp - 4], esi
call fcn.00401a44
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x402d35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402d51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402d45
push 1
pop esi
jmp 0x402d51
xor ecx, ecx
cmp eax, 0x20
setne cl
inc ecx
inc ecx
mov esi, ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x402d6e
Capabilities:
Delete file

Disassembly:
mov eax, 0x4163dc
call fcn.0040ef50
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x154]
xor esi, esi
push eax
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.00401a44
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402deb
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004013ef
mov ecx, edi
call fcn.00402cf8
sub eax, esi
je 0x402dd0
dec eax
dec eax
jne 0x402deb
mov dword [ebp - 0x10], 1
jmp 0x402deb
push esi
lea ecx, [ebp + 8]
call fcn.00401a44
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402deb
mov dword [ebp - 0x10], 2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x402ed2
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x416440
call fcn.0040ef50
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 1
xor ebx, ebx
pop eax
lea ecx, [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push eax
push 0x80000000
mov dword [ebp - 4], eax
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402fee
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x402fee
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x402f37
push eax
call fcn.0040eaf0
pop ecx
lea eax, [edi + 1]
push eax
call fcn.0040efd0
pop ecx
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0x14]
push ebx
push ecx
push edi
push eax
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402fe2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
jne 0x402fe2
mov eax, dword [esi + 0x24]
lea ecx, [ebp + 0xc]
mov byte [edi + eax], bl
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
call fcn.00401b7a
test eax, eax
push ebx
je 0x402fa1
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x41c3a4
call fcn.00401595
mov ecx, esi
call fcn.0040327d
mov edi, eax
jmp 0x402fde
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push 0x5b
push eax
call fcn.00401840
add esp, 0xc
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5d
push eax
push ecx
call fcn.004018cd
add esp, 0xc
mov ecx, esi
call fcn.0040327d
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00401563
cmp edi, ebx
jne 0x403009
push dword [esi + 0x24]
call fcn.0040eaf0
pop ecx
mov dword [esi + 0x24], ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401563
xor eax, eax
jmp 0x403023
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401563
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x403a4d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push str.CMainFrame::CheckAdmin___n
call fcn.004024eb
pop ecx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403abc
call edi
cmp eax, 0x3f0
jne 0x403b49
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403b49
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403b49
call edi
cmp eax, 0x7a
jne 0x403b49
mov eax, dword [ebp - 4]
add eax, 3
and al, 0xfc
call fcn.0040fe30
mov edi, esp
cmp edi, ebx
je 0x403b49
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 2
push dword [ebp - 8]
call esi
test eax, eax
je 0x403b49
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call esi
test eax, eax
je 0x403b49
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x223
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call esi
test eax, eax
jne 0x403b4d
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
jmp 0x403b8c
xor esi, esi
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x403b79
lea ebx, [edi + 4]
push dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x403b72
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x403b59
jmp 0x403b79
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40457b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x416877
call fcn.0040ef50
sub esp, 0x124
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], esi
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x420bb0
mov dword [ebp - 4], ebx
call fcn.00401595
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00401b8a
cmp eax, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
jle 0x404764
push edi
cmp dword [ebp - 0x18], ebx
push esi
lea ecx, [ebp + 0xc]
jne 0x40461b
call fcn.00401df8
cmp al, 0x22
jne 0x404604
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x14]
jge 0x4045fb
push edi
lea ecx, [ebp + 0xc]
call fcn.00401df8
cmp al, 0x22
jne 0x4045fb
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00401a11
mov esi, edi
jmp 0x404759
and dword [ebp - 0x18], 0
jmp 0x404759
push esi
lea ecx, [ebp + 0xc]
call fcn.00401df8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401a11
jmp 0x404759
call fcn.00401df8
cmp al, 0x22
jne 0x40462c
mov dword [ebp - 0x18], ebx
jmp 0x404759
push esi
lea ecx, [ebp + 0xc]
call fcn.00401df8
cmp al, 0x20
je 0x404759
push esi
lea ecx, [ebp + 0xc]
call fcn.00401df8
cmp al, 0x2b
je 0x404759
push 9
lea eax, [ebp - 0x20]
pop edi
lea ecx, [ebp + 0xc]
push edi
push esi
push eax
call fcn.00401b93
push str.DRIVERDIR
push eax
mov byte [ebp - 4], 3
call fcn.00401e2f
pop ecx
mov bl, al
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00401563
test bl, bl
je 0x404698
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add eax, 0x80
push eax
call fcn.00401a26
jmp 0x404732
push 7
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00401b93
push str.HTMLDIR
push eax
mov byte [ebp - 4], 4
call fcn.00401e2f
pop ecx
mov bl, al
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401563
test bl, bl
je 0x4046e0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add eax, 0xdc
push eax
call fcn.00401a26
add esi, 7
jmp 0x404734
push edi
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00401b93
push str.SYSTEMDIR
push eax
mov byte [ebp - 4], 5
call fcn.00401e2f
pop ecx
mov bl, al
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00401563
test bl, bl
je 0x404734
lea eax, [ebp - 0x130]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x10]
push eax
call fcn.004019f3
add esi, edi
cmp esi, dword [ebp - 0x14]
jge 0x404756
push esi
lea ecx, [ebp + 0xc]
call fcn.00401df8
cmp al, 0x20
je 0x404756
push esi
lea ecx, [ebp + 0xc]
call fcn.00401df8
cmp al, 0x2b
je 0x404756
inc esi
jmp 0x404734
push 1
pop ebx
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x4045c3
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004013ef
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x405df0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x416b84
call fcn.0040ef50
sub esp, 0x114
push ebx
push esi
push edi
mov ebx, ecx
push str.CMainFrame::RemoveSystem32Module___n
call fcn.004024eb
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push esi
push esi
push 2
push esi
push 0x46
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call sub.WINSPOOL.DRV_EnumPrintersA
cmp dword [ebp - 0x14], esi
je 0x405f71
push dword [ebp - 0x14]
call fcn.0040efd0
mov edi, eax
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 2
push esi
push 0x46
call sub.WINSPOOL.DRV_EnumPrintersA
push edi
call fcn.0040eaf0
cmp dword [ebp - 0x1c], 1
pop ecx
jne 0x405f71
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x10]
call fcn.004013e3
lea eax, [ebp - 0x120]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x10]
push str._sEcbteg.dll
push eax
call fcn.00402132
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004013ef
mov ecx, ebx
call fcn.00405f83
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push str._sEbpport.inf
push eax
call fcn.00402132
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004013ef
mov ecx, ebx
call fcn.00405f83
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push str._sE_spnf01.exe
push eax
call fcn.00402132
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004013ef
mov ecx, ebx
call fcn.00405f83
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push str._sEbpehp.dll
push eax
call fcn.00402132
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004013ef
mov ecx, ebx
call fcn.00405f83
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push str._sEbpchp.dll
push eax
call fcn.00402132
add esp, 8
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004013ef
mov ecx, ebx
call fcn.00405f83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x405f83
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x416b98
call fcn.0040ef50
push esi
xor esi, esi
push str.CMainFrame::RemoveFile___n
mov dword [ebp - 4], esi
call fcn.004024eb
pop ecx
lea ecx, [ebp + 8]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405fd9
test al, 1
je 0x405fc8
and al, 0xfe
lea ecx, [ebp + 8]
push eax
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 8]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 4
Function at 0x407347
Capabilities:
Copy file
Create process on windows
Set current directory
Set file attributes

Disassembly:
mov eax, 0x416e64
call fcn.0040ef50
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::Install___n
call fcn.004024eb
pop ecx
mov ecx, esi
call fcn.00403b94
test eax, eax
je 0x407565
mov ecx, esi
call fcn.004040d4
test eax, eax
je 0x407565
mov ecx, esi
call fcn.0040479e
test eax, eax
je 0x407565
lea ecx, [ebp - 0x10]
call fcn.00401000
xor edi, edi
xor eax, eax
cmp dword [esi + 0x78], 1
mov dword [ebp - 4], edi
setne al
push eax
push ecx
lea eax, [esi + 0x84]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004013ef
lea ecx, [ebp - 0x10]
call fcn.00401120
cmp eax, 1
je 0x407559
lea ecx, [esi + 0x8c]
call fcn.00401b7a
test eax, eax
jne 0x4073e6
cmp dword [esi + 0x7c], edi
je 0x4073e6
mov ecx, esi
call fcn.004088cd
mov ecx, esi
call fcn.00409944
test eax, eax
je 0x407559
cmp dword [esi + 0x7c], edi
je 0x407410
mov ecx, esi
call fcn.0040a37a
test eax, eax
je 0x407559
mov ecx, esi
call fcn.0040b34d
lea ebx, [esi + 0xe0]
mov ecx, ebx
call fcn.00401b7a
test eax, eax
jne 0x407547
push dword [esi + 0x68]
lea eax, [esi + 0xd8]
mov ecx, esi
push eax
call fcn.00407587
test eax, eax
je 0x407547
mov edi, 0x41c058
lea eax, [esi + 0x80]
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040176a
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.004016fe
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401563
push edi
lea edi, [esi + 0xd8]
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0040176a
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
call fcn.004016fe
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00401563
push 0x80
lea ecx, [ebp - 0x14]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [ebp - 0x14]
call fcn.00401e04
push eax
lea ecx, [ebp - 0x18]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x407521
mov ecx, edi
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x407511
push 0
lea ecx, [ebp - 0x14]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x40752f
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 0xb
jmp 0x40752f
mov dword [esi + 0x70], 7
mov dword [esi + 0x74], 0x6f
jmp 0x40752f
mov dword [esi + 0x70], 0x10
mov dword [esi + 0x74], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401563
mov ecx, esi
call fcn.0040bc62
mov ecx, esi
call fcn.00407781
test eax, eax
jne 0x407569
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401025
xor eax, eax
jmp 0x407578
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401025
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x407587
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov eax, 0x416ea0
call fcn.0040ef50
sub esp, 0x114
push ebx
push esi
push edi
push str.CMainFrame::CreateDirectory___n
call fcn.004024eb
pop ecx
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x420bb0
lea ecx, [ebp - 0x10]
call fcn.00401595
mov edi, dword [ebp + 8]
xor esi, esi
push 1
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00401d18
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp al, 0x3a
jne 0x40762b
push 2
mov ecx, edi
call fcn.00401d18
cmp al, 0x5c
jne 0x40762b
push 3
lea eax, [ebp + 8]
push esi
push eax
mov ecx, edi
call fcn.00401b93
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401618
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401563
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
call ebx
test eax, eax
je 0x40773c
push 3
pop esi
jmp 0x407647
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401680
push 0x41c058
lea ecx, [ebp - 0x10]
call fcn.004019f3
mov ecx, edi
call fcn.00401b8a
push eax
lea eax, [ebp - 0x14]
push esi
push eax
mov ecx, edi
call fcn.00401b93
mov byte [ebp - 4], 2
xor esi, esi
mov ecx, edi
call fcn.00401b8a
cmp esi, eax
jge 0x40774c
mov ecx, edi
call fcn.00401b8a
push eax
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00401b93
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401618
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00401563
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00401ae1
cmp eax, 0xffffffff
jne 0x4076d9
mov ecx, edi
call fcn.00401b8a
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c38
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401a26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
jmp 0x4076ff
lea esi, [eax + 1]
lea eax, [ebp - 0x1c]
push esi
push 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00401b93
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401a26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401563
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
call ebx
test eax, eax
jne 0x407661
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x407661
and byte [ebp - 4], al
lea ecx, [ebp - 0x14]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
xor eax, eax
jmp 0x407770
lea eax, [ebp - 0x120]
push eax
call ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x408deb
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4171a8
call fcn.0040ef50
sub esp, 0x248
push ebx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
push str.CMainFrame::RecoveryMonitor___n
call fcn.004024eb
pop ecx
lea ecx, [esi + 0x90]
call fcn.00401b7a
or ebx, 0xffffffff
test eax, eax
jne 0x408ef5
lea edi, [esi + 0x8c]
mov ecx, edi
call fcn.00401b7a
test eax, eax
jne 0x408ef5
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x254]
mov ecx, edi
push eax
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
jne 0x408e95
cmp dword [esi + 0x78], 1
jne 0x408ef5
lea ecx, [ebp + 8]
mov dword [esi + 0x70], 6
mov dword [esi + 0x74], 0xe
mov dword [ebp - 4], ebx
call fcn.00401563
xor eax, eax
jmp 0x408f03
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x78]
cmp eax, 3
jne 0x408eac
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
jmp 0x408eb7
cmp eax, 2
jne 0x408ec9
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
push eax
call fcn.004013ef
mov ecx, esi
call fcn.00409327
jmp 0x408ee4
cmp eax, 1
jne 0x408ef5
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004013ef
mov ecx, esi
call fcn.00408f14
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp - 4], ebx
call fcn.00401563
mov eax, esi
jmp 0x408f03
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401563
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x409821
Capabilities:
Copy file

Disassembly:
mov eax, 0x417264
call fcn.0040ef50
sub esp, 0x310
push esi
mov esi, ecx
push str.CMainFrame::CopyDriverFile___n
call fcn.004024eb
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004013e3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004013e3
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040fe60
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0x30
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push str._s_c_s_s
push eax
call fcn.00402132
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push str._s_s_s
push eax
call fcn.00402132
add esp, 0x14
lea ecx, [ebp - 0x14]
push 0
call fcn.00401e04
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40991a
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [esi + 0xa8], eax
mov dword [esi + 0x70], 7
mov dword [esi + 0x74], 0x71
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
xor eax, eax
jmp 0x409935
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40b871
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
push str.CMainFrame::CreateShortcuts___n
call fcn.004024eb
pop ecx
xor edi, edi
push 1
pop esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x418378
push esi
push edi
push 0x418288
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x40b8c3
push str.CMainFrame::CreateShortcuts___Error_1_n
mov dword [ebp - 4], edi
call fcn.004024eb
pop ecx
jmp 0x40b992
mov eax, dword [ebp - 8]
push ebx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jge 0x40b8ed
call esi
push eax
push ebx
push str.CMainFrame::CreateShortcuts___SetPath___d__LastError_d_n
call fcn.004024eb
add esp, 0xc
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ebx, eax
cmp ebx, edi
jge 0x40b910
call esi
push eax
push ebx
push str.CMainFrame::CreateShortcuts___SetDescription___d__LastError_d_n
call fcn.004024eb
add esp, 0xc
mov eax, dword [ebp - 8]
lea edx, [ebp + 8]
push edx
push 0x418678
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ebx, eax
cmp ebx, edi
jge 0x40b93d
mov dword [ebp - 4], edi
call esi
push eax
push ebx
push str.CMainFrame::CreateShortcuts___QueryInterface___d__LastError_d_n
call fcn.004024eb
add esp, 0xc
jmp 0x40b988
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
cmp ebx, edi
jge 0x40b97f
call esi
push eax
push ebx
push str.CMainFrame::CreateShortcuts___ppf__Save_d__LastError_d_n
call fcn.004024eb
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
push dword [ebp - 4]
push str.CMainFrame::CreateShortcuts___Result_d_n
call fcn.004024eb
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0xc