joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003faf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004373e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10055014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10055020]
cmp eax, 0xffffffff
jne 0x1003fb26
xor ebx, ebx
jmp 0x1003fb2f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003fb71
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003fbb0
test esi, esi
jne 0x1003fbb4
push 0x1003f5f0
push 0x100572b8
call fcn.1003f160
mov eax, dword [0x10055020]
add esp, 8
cmp eax, 0xffffffff
je 0x1003fb71
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003fb9e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003fb9e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1003fbf6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003fbdf
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1003fbb4
cmp dword [ebx + 0x18], 0
je 0x1003fb40
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003fc1d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003fc1d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1003f610
cmp dword [ebx + 0x18], 0
jne 0x1003fc00
jmp 0x1003fb40
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 fcn.00401c85
push str.ArmReport.ini
push ebx
push esi
call fcn.00401c85
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4015df
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401610
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x401610
cmp dword [ebp - 4], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x401612
xor al, al
pop esi
leave
ret 8

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 fcn.00401572
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
mov dword [esp], 0x2000a
call fcn.0040187b
push 2
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004016b9
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004015df
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 fcn.0041fc2e
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 0x40198c
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4019a7
push 3
pop eax
jmp 0x401a4f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4019b7
push 2
jmp 0x4019a1
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x401a4a
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b702
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.0041bf90
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x401a14
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x401a26
push dword [edi]
call fcn.0040b6fd
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x401a43
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x4019c4
cmp dword [edi], 0
je 0x401a4a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x401a4a
xor eax, eax
jmp 0x401a4d
mov eax, 0xe8
jmp 0x401a4d
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401a7a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x401a9f
push 3
pop eax
jmp 0x401bc5
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401ac6
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.004016fd
mov ebx, eax
test ebx, ebx
jne 0x401bc5
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x401ba3
cmp dword [ebp - 4], 0
je 0x401ba3
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040198c
test eax, eax
jne 0x401ba3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x401ba3
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0041c0ea
pop ecx
pop ecx
test eax, eax
je 0x401b2d
push 2
push dword [ebp - 4]
call fcn.0041a9e6
pop ecx
pop ecx
xor eax, eax
jmp 0x401bc5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
xor ecx, ecx
push 2
pop edx
lea esi, [eax*2 + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b702
pop ecx
push dword [ebp - 4]
mov edi, eax
push esi
push edi
call fcn.00401c54
push dword [ebp + 0x10]
push esi
push edi
call fcn.00401c85
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401c85
mov eax, dword [ebp - 8]
add eax, 4
push eax
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
push dword [ebp - 4]
mov esi, eax
call fcn.0041a9e6
push edi
call fcn.0040b6fd
add esp, 0xc
jmp 0x401bb7
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x401bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x402992
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push dword [0x44983c]
xor ebx, ebx
mov dword [ebp - 0xc], esi
inc ebx
mov dword [ebp - 0x14], esi
push 0x80000002
mov byte [0x4497c9], bl
mov dword [0x4497cc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402a3a
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x449848]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4029ff
cmp dword [ebp - 0xc], ebx
je 0x402a26
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x437098
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402a30
cmp dword [ebp - 0x14], ebx
jne 0x402a30
mov dword [0x4497cc], 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40412d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00405669
pop ecx
test eax, eax
je 0x404168
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404168
push 0x186a0
push esi
push 2
call fcn.00403231
add esp, 0xc
pop esi
pop ebp
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 fcn.0041fc2e
pop ecx
push eax
push str.AdobeARM1.0Backup
lea ecx, [ebp - 0x21c]
call fcn.00402366
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 fcn.0041fc2e
pop ecx
push eax
push str.AdobeARM.exe
lea ecx, [ebp - 0x21c]
call fcn.00402366
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004021f9
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 fcn.004227f1
push eax
call fcn.00422714
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 fcn.0042002b
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 fcn.0040cbc6
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 fcn.0040d0e0
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 fcn.0040cbf5
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, ebx
call fcn.0041aa1a
ret
Function at 0x404a00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 1
push esi
push dword [ebp + 0x10]
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ab5
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.004226d9
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404aa5
cmp dword [ebp - 8], 0
jbe 0x404aa5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and dword [ebp - 8], 0
mov eax, 0x100000
mov dword [ebp - 4], eax
test esi, esi
je 0x404aa1
push eax
push 0
push esi
call fcn.0041bf90
add esp, 0xc
test edi, edi
je 0x404a47
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004224dd
pop ecx
jmp 0x404abd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404fcd
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ff8
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
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 fcn.004039ca
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 fcn.004039ca
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 fcn.00403bda
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 fcn.004038fe
pop ecx
pop ecx
mov eax, ebx
call fcn.0041aa05
ret

Function at 0x405669
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
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 fcn.00401320
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call fcn.0040331e
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 fcn.004033a0
test edi, edi
jne 0x4056f2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004021f9
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.0041fc2e
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402366
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 0x405730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4484a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x105
xor esi, esi
push esi
push eax
call fcn.0041bf90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4057b5
lea eax, [ebp - 0x210]
push eax
call fcn.0041fc2e
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.004035ee
mov esi, str.TempArmUI.ini
push esi
call fcn.0041fc2e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405669
pop ecx
test eax, eax
jne 0x405839
mov ecx, edi
call fcn.004025a7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.0040331e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004033a0
test esi, esi
je 0x40583d
push 0x5c
push dword [edi]
call fcn.0041d3d4
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405819
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405819
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x405819
mov esi, 0x437078
push esi
call fcn.0041fc2e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
mov esi, str.ArmUI.ini
push esi
call fcn.0041fc2e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405669
pop ecx
test eax, eax
je 0x40583d
xor eax, eax
jmp 0x405840
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041a9f4
leave
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 fcn.00401320
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 fcn.0041fc2e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004035ee
mov edi, str.explorer.exe
push edi
call fcn.0041fc2e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00402366
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 fcn.00403a1d
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 fcn.00403a1d
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 fcn.0041fc2e
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push esi
call fcn.004035ee
test esi, esi
je 0x405b0a
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.004038fe
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