joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407684
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00405941
mov dword [ebp - 0x14], eax
cmp dword [0x412d84], edi
jne 0x407775
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x407702
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407855
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407855
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407855
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x412d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x412d88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x412d8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412d94], eax
test eax, eax
je 0x407772
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412d90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40779a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40778d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4077af
push 4
pop eax
jmp 0x407857
cmp dword [ebp - 0x14], edi
je 0x4077af
push dword [0x412d84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407794
mov eax, dword [0x412d90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40780d
cmp dword [0x412d94], esi
je 0x40780d
push eax
call ebx
push dword [0x412d94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40780d
test eax, eax
je 0x40780d
call ecx
test eax, eax
je 0x407802
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x407802
test byte [ebp - 8], 1
jne 0x40780d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40783d
mov eax, dword [0x412d88]
cmp eax, esi
je 0x40783a
push eax
call ebx
test eax, eax
je 0x40783a
call eax
mov edi, eax
test edi, edi
je 0x40783a
mov eax, dword [0x412d8c]
cmp eax, esi
je 0x40783a
push eax
call ebx
test eax, eax
je 0x40783a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x412d84]
call ebx
test eax, eax
je 0x407855
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x407857
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402226
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1ffb7ab3
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x400b498d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40102c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x401074
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401045
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401079
test ecx, ecx
je 0x401074
test edi, edi
ja 0x40103a
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401076
Function at 0x402645
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40264d
mov dword [ecx*4 + 0x4c5de0], eax
inc ecx
cmp ecx, 0x100
jb 0x402648
mov edx, 0x800
jmp 0x40269a
mov eax, dword [ecx*4 + 0x4c59e0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4c5de0]
inc ecx
mov dword [ecx*4 + 0x4c5ddc], eax
cmp ecx, edx
jb 0x402679
mov dword [0x4c44d8], 0x4026bd
call fcn.0041a9c6
test eax, eax
jne 0x4026bb
mov dword [0x4c44d8], 0x402759
pop esi
ret

Function at 0x402fdb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x403023
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x402ff4
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x403028
test ecx, ecx
je 0x403023
test edi, edi
ja 0x402fe9
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403025
Function at 0x40881c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x14
mov eax, 0x478ddd
call fcn.0045be74
mov esi, ecx
push str.DownloadFiles...
lea ecx, [ebp - 0x14]
call fcn.004020a6
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [esi + 0xc0], ebx
je 0x40886a
xor eax, eax
call fcn.0045bf4c
ret
call fcn.0044825c
push eax
lea ecx, [ebp - 0x18]
call fcn.0041872d
push 0x4824dc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.004020a6
lea edi, [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040e2a6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
push eax
mov eax, esi
call fcn.0040db68
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x27c]
push eax
mov dword [ebp - 0x20], eax
call fcn.0041e4bc
mov dword [ebp - 0x14], eax
cmp dword [esi + 0xc0], ebx
je 0x408907
lea eax, [ebp - 0xd]
push eax
push ebx
push str.UserCanceled
push str.Payload_Download_Status
mov esi, 0x4c46e8
mov byte [ebp - 0xd], bl
call fcn.0040b111
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, ebx
jmp 0x408864
call edi
sub eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xd]
dec eax
push ecx
mov byte [ebp - 0xd], bl
push eax
mov edi, str.Download_Update_Time
mov ebx, esi
call fcn.0040b14d
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x40892d
call fcn.0042229b
mov byte [ebp - 0xd], bl
mov eax, str.Succeeded
cmp dword [ebp - 0x14], ebx
jne 0x40893f
mov eax, str.Failed
lea ecx, [ebp - 0xd]
push ecx
push ebx
push eax
push str.Payload_Download_Status
mov esi, 0x4c46e8
call fcn.0040b111
cmp dword [ebp - 0x14], ebx
je 0x408968
push dword [ebp - 0x20]
call fcn.0041f7d8
test eax, eax
je 0x408968
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x4088f5
Function at 0x409940
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x47869a
call fcn.0045be74
mov ebx, ecx
call fcn.0044825c
push eax
lea ecx, [ebp - 0x10]
call fcn.0041872d
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0043e40a
pop ecx
lea ecx, [ebp + 0xc]
test eax, eax
jne 0x4099bb
push str.Failed_to_create_launcher_path
call fcn.004020a6
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1b2c4
add ebx, 0x508
mov ecx, eax
lea edx, [ebp + 0xc]
call fcn.0041384f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
push 0xd
pop eax
jmp 0x409ad5
push str.Launcher_path:
call fcn.004020a6
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00414e01
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 5
push edi
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x271c8
mov dword [ebp + 8], eax
cmp dword [0x4c4bf8], esi
je 0x409a5e
cmp eax, 0x21
jl 0x409a5e
push str.ShellExecute_succeded.
lea ecx, [ebp + 0xc]
mov dword [ebx + 0xbc], 1
call fcn.004020a6
push edi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.004152d1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
jmp 0x409ad5
push str.ShellExecute_failed
lea ecx, [ebp + 0xc]
call fcn.004020a6
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
add ebx, 0x508
mov ecx, eax
lea edx, [ebp + 0xc]
call fcn.0041384f
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp + 8], 5
jne 0x409ac7
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp + 0xc]
call fcn.004020a6
push 0
lea eax, [ebp + 0xc]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.004152d1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp + 8]
call fcn.0045bf4c
ret 8
Function at 0x409eaf
Capabilities:
Delete registry key

Disassembly:
push 0x424
mov eax, 0x476896
call fcn.0045bedd
push str.LaunchSafeCleanup...
lea ecx, [ebp - 0x424]
call fcn.004020a6
xor ebx, ebx
push ebx
lea eax, [ebp - 0x424]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
call fcn.0044825c
push eax
lea ecx, [ebp - 0x424]
call fcn.0041872d
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 4], 1
call fcn.0043e359
pop ecx
test eax, eax
je 0x40a09c
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
mov dword [ebp - 0x42c], ebx
call fcn.00459cf0
add esp, 0xc
xor eax, eax
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00459cf0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00434d75
add esp, 0xc
test eax, eax
je 0x40a09c
mov dword [esi + 0xd0], ebx
push str._ArmCleanup
lea ecx, [ebp - 0x428]
cmp dword [esi + 0xc8], ebx
je 0x409fc7
call fcn.004020a6
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
lea edi, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.00434917
pop ecx
pop ecx
jmp 0x409fed
call fcn.004020a6
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 4], 3
call fcn.00434af4
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004025d2
cmp edi, ebx
jne 0x40a022
xor edi, edi
jmp 0x40a01a
cmp edi, 0x14
jge 0x40a022
push 0xc8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xd0], ebx
je 0x40a009
cmp dword [esi + 0xd0], ebx
jne 0x40a05e
push str.launch_cleanup_not_confirmed
lea ecx, [ebp - 0x428]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x428]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.004152d1
mov ecx, dword [ebp - 0x428]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x430]
push eax
push 0xf003f
push ebx
push str.SOFTWAREAdobeAdobe_ARM1.0ARM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a09c
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 - 0x424]
add ecx, 0xfffffff0
call fcn.004025d2
call fcn.0045bf60
ret
Function at 0x40b7ef
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x4734f9
call fcn.0045be74
mov esi, ecx
lea eax, [esi + 0x2cc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004020a6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x40b903
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b903
cmp dword [esi + 0x198], ebx
jne 0x40b877
push str.Report_is_not_enabled_in_Session
lea ecx, [ebp - 0x18]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.004152d1
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, 0x30d0e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, esi
jmp 0x40b93c
lea edi, [esi + 0x2c8]
push 0x48173c
push str.Reported
lea esi, [ebp - 0xd]
mov ecx, edi
mov byte [ebp - 0xd], bl
call fcn.00416a23
cmp byte [ebp - 0xd], bl
je 0x40b8c9
push str.already_reported
lea ecx, [ebp - 0x18]
call fcn.004020a6
mov byte [ebp - 4], 3
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.004152d1
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
push 0x15
pop esi
jmp 0x40b865
push ebx
push str.SessionApplication
lea esi, [ebp - 0xd]
mov ecx, edi
mov byte [ebp - 0xd], bl
call fcn.00416a23
cmp byte [ebp - 0xd], bl
jne 0x40b8f4
push str.Product_info_missing__cannot_report_data
lea ecx, [ebp - 0x18]
call fcn.004020a6
mov byte [ebp - 4], 4
jmp 0x40b8aa
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
jmp 0x40b93c
push str.No_Report_file
lea ecx, [ebp - 0x18]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 1
call fcn.004152d1
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
push 2
pop eax
call fcn.0045bf4c
ret
Function at 0x4126e1
Capabilities:
Create bits job

Disassembly:
push 4
mov eax, 0x476391
call fcn.0045be74
mov edi, dword [ebp + 8]
lea ecx, [edi + 8]
call fcn.00402151
xor ebx, ebx
lea esi, [edi + 0x28]
mov dword [ebp - 4], ebx
call fcn.00437501
push 0x10
mov byte [ebp - 4], 1
lea eax, [edi + 0x18]
push ebx
push eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00459cf0
add esp, 0xc
push dword [ebp + 0xc]
lea ecx, [edi + 8]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x38], 4
mov dword [edi + 0x3c], ebx
call fcn.0040211a
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, 0x272f4
mov dword [edi + 0xc], eax
cmp dword [0x4c4bf8], esi
je 0x412802
cmp eax, ebx
jl 0x412802
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
mov dword [edi + 0xc], eax
jge 0x412797
cmp eax, 0x80010119
je 0x412797
push str.Failed_to_connect_to_BITS__CoInitializeSecurity_
lea ecx, [ebp + 0xc]
call fcn.004020a6
mov byte [ebp - 4], 4
push 0x27358
jmp 0x4127df
push edi
push 0x486e44
push 4
push ebx
push 0x486e34
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, 0x222e0
mov dword [edi + 0xc], eax
cmp dword [0x4c4bf8], esi
je 0x4127bf
cmp eax, ebx
jge 0x41282f
mov eax, dword [edi]
cmp eax, ebx
je 0x4127cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
push str.Failed_to_connect_to_BITS
lea ecx, [ebp + 0xc]
call fcn.004020a6
mov byte [ebp - 4], 3
push esi
mov ecx, dword [edi + 0xc]
lea edx, [ebp + 0xc]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025d2
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x41282f
push str.Failed_to_connect_to_BITS___COM_threading_returned_an_error__CoInitializeEx_
lea ecx, [ebp + 0xc]
call fcn.004020a6
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0xc]
push esi
lea edx, [ebp + 0xc]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
call fcn.0045bf4c
ret 8

Function at 0x413fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41400b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x413ff3
push 0xd
pop esi
cmp esi, 0xe8
jne 0x414018
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x413fc8
jmp 0x414018
mov esi, dword [ebp - 4]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x414d7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x4c46b8]
mov byte [0x4c44e9], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x4c44dc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414dff
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x4c46c4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x414dff
cmp dword [ebp - 8], 1
jne 0x414dff
mov dword [0x4c44dc], 2
leave
ret
Function at 0x4162da
Capabilities:
Get token membership

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

Function at 0x4163f4
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
mov ebx, 0x104
push ebx
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], vtable.CArmReport.0
call fcn.00459cf0
add esp, 0xc
push edi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41643c
push str.AdobeARM_
push ebx
call fcn.00416b1e
push str.ArmReport.ini
push ebx
call fcn.00416b1e
pop edi
mov eax, esi
pop ebx
ret
Function at 0x416465
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471c08
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4bfd60]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4bfd60]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, vtable.ATL::CAccessToken.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0xfeff
mov byte [esp + 0x13], bl
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xc4], 1
call fcn.00416287
pop ecx
lea eax, [esp + 0x30]
mov byte [esp + 0xc0], 2
call fcn.00416376
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x20]
call fcn.0041630f
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
lea esi, [esp + 0x1b]
call fcn.004162da
push ebx
cmp byte [esp + 0x17], bl
je 0x4165b7
lea eax, [esp + 0x48]
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x58], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x416564
push ebx
push 0x80
push 1
lea eax, [esp + 0x4c]
push eax
jmp 0x4165bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [esp + 0x4c]
call fcn.00416204
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004163b6
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
call fcn.004163b6
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00458e0e
mov esp, ebp
pop ebp
ret 4
push 0x80
push 1
push ebx
mov eax, dword [esp + 0x24]
push ebx
push 0x40000000
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x416564
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x24]
call esi
test eax, eax
je 0x416564
push ebx
lea eax, [esp + 0x1c]
push eax
push str._SESSION_
call fcn.00458ef7
pop ecx
lea eax, [eax + eax + 2]
push eax
push str._SESSION_
push dword [esp + 0x24]
call esi
test eax, eax
je 0x416564
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41656c