joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4109f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a044]
jne 0x4109ff
repz ret
jmp fcn.004128c4

Function at 0x41c6e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041558d
and dword [ebp - 4], 0
cmp dword [0x42c704], 0
mov ebx, eax
jne 0x41c794
push 0x4234f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c845
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4234e4
push edi
call esi
test eax, eax
je 0x41c845
push eax
call fcn.0041551b
mov dword [esp], 0x4234d4
push edi
mov dword [0x42c704], eax
call esi
push eax
call fcn.0041551b
mov dword [esp], 0x4234c0
push edi
mov dword [0x42c708], eax
call esi
push eax
call fcn.0041551b
mov dword [esp], 0x4234a4
push edi
mov dword [0x42c70c], eax
call esi
push eax
call fcn.0041551b
pop ecx
mov dword [0x42c714], eax
test eax, eax
je 0x41c794
push 0x42348c
push edi
call esi
push eax
call fcn.0041551b
pop ecx
mov dword [0x42c710], eax
mov eax, dword [0x42c710]
cmp eax, ebx
je 0x41c7ec
cmp dword [0x42c714], ebx
je 0x41c7ec
push eax
call fcn.00415596
push dword [0x42c714]
mov esi, eax
call fcn.00415596
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c7ec
test edi, edi
je 0x41c7ec
call esi
test eax, eax
je 0x41c7e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c7e3
test byte [ebp - 0xc], 1
jne 0x41c7ec
or dword [ebp + 0x10], 0x200000
jmp 0x41c825
mov eax, dword [0x42c708]
cmp eax, ebx
je 0x41c825
push eax
call fcn.00415596
pop ecx
test eax, eax
je 0x41c825
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c825
mov eax, dword [0x42c70c]
cmp eax, ebx
je 0x41c825
push eax
call fcn.00415596
pop ecx
test eax, eax
je 0x41c825
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c704]
call fcn.00415596
pop ecx
test eax, eax
je 0x41c845
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c847
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40a05b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40a06a
pop dword [ebp - 0xc]
mov eax, 0x40a06a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3649c
push 0
mov eax, 0x437592e7
sub eax, 0x4334b1c7
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4e0aae0a
sub ecx, 0x4e0a7281
xor ebx, ebx
add ebx, eax
mov esi, 0xeb2d6e31
add esi, 0x151409cf
add esi, dword [ebp - 0xc]
mov edi, 0x7065b9cc
sub edi, 0x42433c4d
sub dword [ebp - 8], esi
mov edx, dword [esi]
xor dword [ebp - 4], 0xea836cc
xor edx, edi
xor dword [ebp - 8], edx
mov dword [ebx], edx
sub dword [ebp - 8], eax
add ebx, 0xa5f49614
add ebx, 0x5a0b69f0
add esi, 0x4b3069aa
sub esi, 0x4b3069a6
loop 0x40a0c6
add eax, 0x15cc538f
sub eax, 0x15cb7298
xor ebx, ebx
add ebx, eax
add eax, 0x3153dc11
add eax, 0xceac23f4
mov ecx, 0xeb1b6749
sub ecx, 0xeadb6749
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401359
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x104
push ebx
lea esi, [edi + 4]
mov dword [edi], vtable.CArmReport.0
push esi
call fcn.0041bf90
add esp, 0xc
push esi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4013a5
push 0x436f88
mov ebx, 0x104
push ebx
push esi
call main
push str.ArmReport.ini
push ebx
push esi
call main
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4016fd
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4341be
call fcn.0041aa70
mov esi, ecx
mov eax, 0xfeff
xor ebx, ebx
mov word [ebp - 0x78], ax
mov eax, vtable.ATL::CAccessToken.0
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
call main
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
mov dword [esp], 0x2000a
call main
push 2
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call main
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call main
push ebx
cmp byte [ebp - 0x71], bl
je 0x4017d9
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [ebp - 0xa0], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x401833
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x4017e1
push 0x80
push 1
push ebx
push ebx
push 0x40000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401833
push ebx
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x401833
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call main
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x40183d
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
jmp 0x401844
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.004014b7
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.00401620
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.00401620
mov eax, ebx
call fcn.0041aa1a
ret
Function at 0x404299
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push 0x218
mov eax, 0x4344f5
call fcn.0041aa70
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
mov edi, dword [ebp + 0xc]
push str.BackupArmExe...
call fcn.004020dd
xor esi, esi
lea eax, [ebp - 0x220]
push esi
push eax
push 2
mov dword [ebp - 4], esi
call fcn.00403231
mov ecx, dword [ebp - 0x220]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40431a
push eax
push str.Self_Update_Init_Error
push 0x436f68
push str.SHGetFolderPath_failed
call fcn.00407ac4
add esp, 0x10
jmp 0x4043d3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004020dd
push str.AdobeARM1.0Backup
mov dword [ebp - 4], 1
call main
pop ecx
push eax
push str.AdobeARM1.0Backup
lea ecx, [ebp - 0x21c]
call main
push esi
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x4043a8
cmp eax, 3
je 0x4043a8
push str.AdobeARM.exe
call main
pop ecx
push eax
push str.AdobeARM.exe
lea ecx, [ebp - 0x21c]
call main
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call main
push esi
push dword [edi]
push dword [ebx]
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x4043d9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.Self_Update_Init_Error
push dword [ebp - 0x21c]
push str.Failed_arm_backup_folder:
call fcn.00407ac4
mov esi, eax
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa1a
ret
push str.success_backup
lea ecx, [ebp - 0x224]
call fcn.004020dd
push esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
push 2
call fcn.00403231
mov ecx, dword [ebp - 0x224]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
jmp 0x4043c3
Function at 0x40440f
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x434545
call fcn.0041aa70
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call main
push eax
call main
call fcn.004226f3
push 0xa
mov edx, eax
lea edi, [ebp - 0x38]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
call main
push 0x437078
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0040229e
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040229e
push str..txt
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.0040229e
add esp, 0x38
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00401a54
lea ecx, [ebp - 0x6c]
call main
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040215b
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
push 0x1021
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
call main
test eax, eax
je 0x4044e0
lea ecx, [ebp - 0x6c]
call fcn.0040ce60
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x4044e3
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov dword [ebp - 0x58], vtable.CFileException.0
call fcn.00401a54
lea ecx, [ebp - 0x6c]
call main
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, ebx
call fcn.0041aa1a
ret
Function at 0x40558f
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x4348cb
call fcn.0041aa3c
xor ebx, ebx
push 8
pop esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call main
mov edi, dword [ebp - 0x28]
push 0x20
mov dword [ebp - 0x14], ebx
inc ebx
pop ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call sub.psapi.dll_EnumProcesses
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x405613
cmp dword [ebp - 0x14], ecx
jb 0x405609
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
add esi, esi
lea ecx, [ebp - 0x28]
push esi
call main
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov al, byte [ebp - 0xd]
shl ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x40561c
mov esi, dword [ebp - 0x14]
shr esi, 2
xor al, al
jmp 0x405619
xor al, al
xor esi, esi
xor ebx, ebx
mov byte [ebp - 0xd], al
test al, al
jne 0x4055cf
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40564c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
test esi, esi
je 0x405649
mov dword [ebp - 0x18], edi
push edi
mov ecx, ebx
call main
add edi, 4
sub esi, 1
jne 0x405636
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x405661
mov ecx, dword [ebp - 0x20]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call main
pop ecx
pop ecx
mov eax, ebx
call fcn.0041aa05
ret

Function at 0x405683
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x4348f6
call fcn.0041aa3c
call fcn.0040bd69
push eax
lea ecx, [ebp - 0x10]
call main
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call main
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call main
test edi, edi
jne 0x4056f2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call main
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call main
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call main
xor esi, esi
inc esi
jmp 0x40571d
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.004020dd
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.00403231
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa05
ret
Function at 0x4058ac
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x434932
call fcn.0041aa70
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push str.GetPrimaryTokenFromExplorer...
call fcn.004020dd
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push 2
mov dword [ebp - 4], edi
call fcn.00403231
mov ecx, dword [ebp - 0x224]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
call fcn.0040bd69
push eax
lea ecx, [ebp - 0x21c]
call main
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push edi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041bf90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x405993
lea eax, [ebp - 0x218]
push eax
call main
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call main
mov edi, str.explorer.exe
push edi
call main
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call main
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00405dff
add esp, 0xc
mov esi, eax
jmp 0x4059ce
call dword [sym.imp.kernel32.dll_GetLastError]
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004020dd
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push ebx
call fcn.00403231
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov eax, esi
call fcn.0041aa1a
ret
Function at 0x4059e4
Capabilities:
Enumerate process modules

Disassembly:
push 0x2c
mov eax, 0x43496a
call fcn.0041aa3c
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c], 1
push edi
push 0x410
call dword [sym.imp.kernel32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x2c], vtable.AutoHandle.0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], edi
test ebx, ebx
je 0x405b08
cmp ebx, 0xffffffff
je 0x405b08
mov esi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.psapi.dll_EnumProcessModules
test eax, eax
je 0x405aca
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x38]
push 0x20
pop esi
mov eax, 0x104
cmovne esi, eax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xe]
push eax
push esi
mov dword [ebp - 0x14], esi
call main
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp - 0x38]
push esi
push dword [ebp - 0x20]
push ebx
je 0x405a86
call sub.psapi.dll_GetModuleFileNameExW
jmp 0x405a8b
call sub.psapi.dll_GetModuleBaseNameW
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jb 0x405acc
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
xor eax, eax
add esi, esi
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xe]
push eax
push esi
mov dword [ebp - 0x14], esi
call main
xor eax, eax
cmp dword [ebp - 0x18], 0x104
cmovbe eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x405a70
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
jmp 0x405acc
mov eax, edi
xor ecx, ecx
cmp ecx, eax
sbb ebx, ebx
and ebx, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x405af1
test esi, esi
je 0x405ae7
push esi
call main
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push esi
call main
test esi, esi
je 0x405b0a
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call main
pop ecx
pop ecx
jmp 0x405b0a
mov ebx, edi
test ebx, ebx
jne 0x405b16
mov ecx, dword [ebp + 0xc]
call fcn.004025a7
lea ecx, [ebp - 0x2c]
call fcn.00403f95
mov eax, ebx
call fcn.0041aa05
ret
Function at 0x405b26
Capabilities:
Reference sql statements

Disassembly:
push 0x21c
mov eax, 0x4349b1
call fcn.0041aa70
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004025a7
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004020dd
push 0x437d3c
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0040229e
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call main
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x21c], ebx
je 0x405bba
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push dword [ebp - 0x224]
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
test esi, esi
jne 0x405c7f
push ebx
push dword [ebp - 0x21c]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
jne 0x405c7f
cmp dword [ebp - 0x220], eax
je 0x405c08
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
push dword [ebp - 0x21c]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
test esi, esi
jne 0x405c7f
mov eax, 0x104
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041bf90
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x220]
call sub.msi.dll_MsiRecordSetStreamA
mov esi, eax
test esi, esi
jne 0x405c7f
lea eax, [ebp - 0x218]
push eax
call main
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call main
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x220], 0
je 0x405ca1
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x21c], 0
je 0x405cb5
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.0041aa1a
ret
Function at 0x407622
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x434e61
call fcn.0041aa3c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40779f
cmp dword [eax - 0xc], 4
jb 0x40779f
add eax, 0xfffffff0
push eax
call main
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call main
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4076a7
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4076a7
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
jne 0x4076a7
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call main
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call main
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov esi, str..
push esi
call main
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call main
lea ecx, [ebp - 0x34]
call main
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push 0
push esi
mov byte [ebp - 4], 3
call main
test eax, eax
je 0x407756
lea ecx, [ebp - 0x34]
call fcn.0040dd80
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.0040e180
test eax, eax
jne 0x407752
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040de90
mov eax, dword [ebp - 0x34]
push 0x10
mov byte [ebp - 4], 4
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x43654c]
lea ecx, [ebp - 0x34]
call edi
test eax, eax
je 0x407739
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call main
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00407622
jmp 0x407742
lea eax, [ebp - 0x14]
push eax
call main
pop ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a54
test ebx, ebx
jne 0x4076db
lea ecx, [ebp - 0x34]
call fcn.0040db70
push 0x80
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40778c
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.00403231
add esp, 0xc
lea ecx, [ebp - 0x34]
call main
lea ecx, [esi - 0x10]
call fcn.00401a54
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00401a54
call fcn.0041aa05
ret
Function at 0x407903
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x434eef
call fcn.0041aa3c
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x44
pop ebx
push ebx
mov edi, dword [eax]
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x1c], 0x20
call fcn.0041bf90
push 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
push esi
push eax
mov dword [ebp - 0x68], str.winsta0default
call fcn.0041bf90
add esp, 0x18
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push ebx
push edi
push eax
call sub.userenv.dll_CreateEnvironmentBlock
test eax, eax
je 0x407962
mov dword [ebp - 0x1c], 0x420
jmp 0x407992
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.004020dd
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push ebx
call fcn.00403231
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.0040405d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], ebx
mov eax, dword [eax - 0xc]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x407a06
push str.new_wchar_t_failed
lea ecx, [ebp - 0x18]
call fcn.004020dd
mov esi, 0x372
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.00403231
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x407ab1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push ebx
call main
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
push esi
push esi
push ebx
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x407a58
call dword [sym.imp.kernel32.dll_GetLastError]
push str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004020dd
mov byte [ebp - 4], 3
jmp 0x407a69
push str.CreateProcessAsUser_succeeded
lea ecx, [ebp - 0x1c]
call fcn.004020dd
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00403231
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x10], 0
je 0x407a91
push dword [ebp - 0x10]
call sub.userenv.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call fcn.0040b6fd
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa05
ret