joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403376
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 8
mov eax, 0x4aca91
call fcn.0046c418
mov eax, 0x51ad38
xor ebx, ebx
push ebx
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00453993
mov dword [ebp - 4], ebx
xorps xmm0, xmm0
push 0x4cdc88
mov ecx, 0x51ae40
mov dword [0x51ad38], 0x4d18b4
mov dword [0x51ae04], ebx
movups xmmword [0x51ae08], xmm0
mov dword [0x51ae28], ebx
movups xmmword [0x51ae18], xmm0
mov dword [0x51ae2c], ebx
mov dword [0x51ae38], ebx
mov dword [0x51ae3c], ebx
call fcn.00402829
push 0x4d18ae
mov ecx, 0x51ae44
mov byte [ebp - 4], 1
call fcn.0040aeec
mov byte [ebp - 4], 2
call fcn.00452601
push eax
mov ecx, 0x51ae48
call fcn.00402899
mov byte [ebp - 4], 3
call fcn.00452601
push eax
mov ecx, 0x51ae4c
call fcn.00402899
mov byte [ebp - 4], 4
call fcn.00452601
push eax
mov ecx, 0x51ae50
call fcn.00402899
xorps xmm0, xmm0
mov byte [ebp - 4], 5
mov ecx, 0x51ae64
movups xmmword [0x51ae54], xmm0
call fcn.0043cf9a
mov byte [ebp - 4], 6
mov ecx, 0x51afb4
mov dword [ebp - 0x14], 0x51afb0
mov dword [0x51afb0], 0x4f06d0
call fcn.00462740
push 0xa
mov ecx, 0x51afc8
mov byte [ebp - 4], 7
call fcn.00457b22
mov dword [0x51afe4], ebx
mov dword [0x51aff0], ebx
mov dword [0x51afec], ebx
mov ecx, 0x51aff4
call fcn.0041d568
mov edi, 0x104
mov dword [0x51b040], 0x4d2d2c
push edi
push ebx
mov esi, 0x51b044
push esi
call fcn.00484bc0
add esp, 0xc
push esi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4034dc
push str.Temp_
mov edx, edi
mov ecx, esi
call fcn.0040e09f
push str.ArmReport.ini
mov edx, edi
mov ecx, esi
call fcn.0040e09f
mov byte [ebp - 4], 0xa
mov ecx, 0x51b250
push 0xa
mov dword [0x51b24c], 0x4eaa08
call fcn.00457b22
mov ecx, 0x51b26c
mov byte [ebp - 4], 0xb
call fcn.00454c60
mov byte [ebp - 4], 0xc
mov esi, 0x51b280
mov dword [ebp - 0x14], esi
mov dword [0x51b280], 0x4d1a08
mov dword [0x51b288], 0x30cdc
mov dword [0x51b290], ebx
call fcn.00452601
push eax
mov ecx, 0x51b294
call fcn.00402899
mov byte [ebp - 4], 0xd
call fcn.00452601
push eax
mov ecx, 0x51b298
call fcn.00402899
mov byte [ebp - 4], 0xe
mov ecx, esi
mov byte [0x51b29c], bl
call fcn.00412c56
mov ecx, 0x51b2a0
mov byte [ebp - 4], 0xf
call fcn.00413d02
mov dword [0x51b2b8], 0x4eb95c
call fcn.00452601
push eax
mov ecx, 0x51b2bc
call fcn.00402899
mov dword [0x51b2c0], ebx
mov eax, 0x51ad38
mov dword [0x51b2c4], ebx
call fcn.0046c3e1
ret
Function at 0x409d43
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x4ad970
call fcn.0046c418
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.00452601
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.00442c50
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x409db8
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 + 0x548]
call fcn.00412c86
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x10]
push 0xd
pop edi
jmp 0x409ec2
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.00414600
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 [0x51b28c], 0x271c8
mov edi, eax
je 0x409e4b
cmp edi, 0x21
jl 0x409e4b
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.00414d4f
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x409ec4
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, 0x548
call fcn.00412c86
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp edi, 5
jne 0x409ec2
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.00414d4f
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.0046c3e1
ret 8
Function at 0x409ed6
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push 0x14
mov eax, 0x4ad9d0
call fcn.0046c418
mov ebx, ecx
call fcn.00452601
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402899
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00442bb0
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x40a09a
call fcn.00452601
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
mov esi, 0x104
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x10]
call fcn.00402bd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a08f
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ae39
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00485294
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x409f77
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x409f77
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
je 0x409f77
push 0x4d1898
lea ecx, [ebp - 0x10]
call fcn.0040259d
mov esi, dword [ebp - 0x10]
push str.AdobeARM_UCB.exe
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402459
add esp, 0xc
push 0
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x409fde
push str.failed_to_copy:
call fcn.00402829
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004024b8
add esp, 0xc
mov ebx, eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, ebx
push 2
pop ecx
call fcn.00414e00
jmp 0x40a06b
push str._ProcessRequestInUserContext__PRODUCT:
call fcn.00402829
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x19c]
push dword [eax - 0xc]
push eax
call fcn.004025c6
cmp dword [ebx + 0x100], 0
je 0x40a014
push str.__OnDemand
lea ecx, [ebp - 0x18]
call fcn.0040259d
push 5
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
lea ecx, [ebp - 0x20]
cmp ebx, 0x21
jge 0x40a04b
push str.ShellExecute_failed:
call fcn.00402829
mov byte [ebp - 4], 6
lea edx, [ebp - 0x20]
push ebx
jmp 0x409fd1
push str.ShellExecute_succeeded:
call fcn.00402829
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
push 2
lea edx, [ebp - 0x20]
pop ecx
call fcn.00414600
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x40a092
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
call fcn.0046c3e1
ret
Function at 0x40b303
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x4adc28
call fcn.0046c418
mov esi, ecx
lea eax, [esi + 0x30c]
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 0x40b3fa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3fa
cmp dword [esi + 0x1b8], ebx
jne 0x40b37b
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.00414d4f
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, 0x30d0e
jmp 0x40b425
push str.1324
push str.Reported
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x308]
call fcn.0040dc6a
cmp byte [ebp - 0xd], bl
je 0x40b3af
push str.already_reported
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 3
jmp 0x40b3dd
push ebx
push str.SessionApplication
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x308]
call fcn.0040dc6a
cmp byte [ebp - 0xd], bl
jne 0x40b425
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.00414d4f
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x15
pop ebx
jmp 0x40b425
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.00414d4f
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.0046c3e1
ret
Function at 0x40c89f
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4adf90
call fcn.0046c418
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.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [0x51b2c4]
test ecx, ecx
je 0x40c8f9
cmp dword [0x51ae10], ebx
je 0x40ca1c
call fcn.0043457e
jmp 0x40ca1c
cmp dword [0x51ae2c], ebx
je 0x40c917
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
mov ecx, 0x51ad38
call fcn.0040cc52
jmp 0x40ca21
cmp dword [0x51ae38], ebx
je 0x40c9fa
cmp dword [0x51af98], ebx
je 0x40c9fa
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 [0x51aed0]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call fcn.00452601
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00442bb0
test eax, eax
jne 0x40c97a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40c9e8
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00484bc0
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 0x40c9e5
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.00414e00
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 0x40ca21
mov ecx, 0x51ad38
mov dword [0x51ae0c], 1
mov dword [0x51ae10], ebx
call fcn.0040c56e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040cbaf
call fcn.0046c3e1
ret
Function at 0x40ca27
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4adf90
call fcn.0046c418
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.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [0x51b2c4]
test ecx, ecx
je 0x40ca81
cmp dword [0x51ae10], ebx
je 0x40cba4
call fcn.0043457e
jmp 0x40cba4
cmp dword [0x51ae2c], ebx
je 0x40ca9f
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
mov ecx, 0x51ad38
call fcn.0040cc52
jmp 0x40cba9
cmp dword [0x51ae38], ebx
je 0x40cb82
cmp dword [0x51af98], ebx
je 0x40cb82
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 [0x51aed0]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call fcn.00452601
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00442bb0
test eax, eax
jne 0x40cb02
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40cb70
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00484bc0
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 0x40cb6d
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.00414e00
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 0x40cba9
mov ecx, 0x51ad38
mov dword [0x51ae0c], 1
mov dword [0x51ae10], ebx
call fcn.0040c56e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040cbaf
call fcn.0046c3e1
ret
Function at 0x40d87d
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4ae14e
call fcn.0046c44c
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 0x4d2d0c
push eax
call fcn.0040de7e
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040dd97
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040dd11
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040dcd9
push ebx
cmp byte [ebp - 0x71], bl
je 0x40d963
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 0x40d9bd
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x40d96b
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 0x40d9bd
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 0x40d9bd
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.004882cd
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d9c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40d9ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040df92
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.0040e010
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.0040e010
mov eax, ebx
call fcn.0046c3f6
ret
Function at 0x40da49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 0x40da6f
push 3
pop eax
jmp 0x40db9b
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40da96
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.0040d87d
mov ebx, eax
test ebx, ebx
jne 0x40db9b
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x40db79
cmp dword [ebp - 4], 0
je 0x40db79
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040dba2
test eax, eax
jne 0x40db79
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40db79
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00485336
pop ecx
pop ecx
test eax, eax
je 0x40dafd
push 2
push dword [ebp - 4]
call fcn.0046be73
pop ecx
pop ecx
xor eax, eax
jmp 0x40db9b
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.00451ec2
pop ecx
push dword [ebp - 4]
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.0040dcb5
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
call fcn.0040e09f
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.0040e09f
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.0046be73
push edi
call fcn.00451ebd
add esp, 0xc
jmp 0x40db8d
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 0x40db99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40dba2
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 0x40dbbd
push 3
pop eax
jmp 0x40dc65
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40dbcd
push 2
jmp 0x40dbb7
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x40dc60
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451ec2
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00484bc0
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 0x40dc2a
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x40dc3c
push dword [edi]
call fcn.00451ebd
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x40dc59
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x40dbda
cmp dword [edi], 0
je 0x40dc60
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40dc60
xor eax, eax
jmp 0x40dc63
mov eax, 0xe8
jmp 0x40dc63
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40dcd9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40dd0a
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 0x40dd0a
cmp dword [ebp - 4], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x40dd0c
xor al, al
pop esi
leave
ret 8

Function at 0x40e10d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x515554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00484bc0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00484bc0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x4d2d30
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x40e1ad
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0048bace
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x40e1c7
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.0040e09f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046be3a
leave
ret
Function at 0x413654
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], eax
xor edi, edi
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 0
push ecx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4136a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
push 0xd
pop eax
cmove esi, eax
cmp esi, 0xe8
jne 0x4136b6
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp edi, 0xa
jl 0x413665
jmp 0x4136b6
push 0xd
pop eax
mov esi, eax
xor eax, eax
cmp dword [ebp - 4], 4
cmove esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414312
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x4aed88
call fcn.0046c418
mov ebx, ecx
push str.Notify...
lea ecx, [ebp - 0x10]
call fcn.00402829
xor edi, edi
lea edx, [ebp - 0x10]
push edi
push 2
pop ecx
mov dword [ebp - 4], edi
call fcn.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
call fcn.0048af3e
pop ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x414375
cmp eax, ecx
jbe 0x414375
sub eax, ecx
cmp eax, 0x64
jae 0x414375
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push 3
pop esi
push esi
push edi
push edi
push 0x40000000
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414483
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x4143da
push str.Could_not_find_ARM_server_to_notify
lea ecx, [ebp - 0x10]
call fcn.00402829
push 0x186a0
push 2
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 1
pop ecx
call fcn.00414d4f
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
jmp 0x4144fd
push 0x7d0
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x414408
push str.Wait_to_notify_ARM_Server_failed
lea ecx, [ebp - 0x10]
call fcn.00402829
push 2
pop eax
mov dword [ebp - 4], eax
mov ecx, eax
push 0x186a0
jmp 0x41443c
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push 0x40000000
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414483
push str.Failed_to_contact_ARM_Server_to_notify
lea ecx, [ebp - 0x10]
call fcn.00402829
push 0x186a0
push 2
mov dword [ebp - 4], esi
pop ecx
lea edx, [ebp - 0x10]
call fcn.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.Notify_ARM_Server_failed:_invalid_handle
lea ecx, [ebp - 0x14]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 6
pop ecx
call fcn.00414d4f
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4144f3
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0
push eax
push 4
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x4144b9
push str.Notify_ARM_Server:_failed_WriteFile
call fcn.00402829
mov dword [ebp - 4], 4
push 0x186a0
jmp 0x4144cf
push 2
pop esi
push str.WriteFile_succeeded_in_Notify
call fcn.00402829
mov dword [ebp - 4], 5
push 0
push 2
lea edx, [ebp - 0x10]
pop ecx
call fcn.00414d4f
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
call fcn.0046c3e1
ret 4