joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x423a05
pop dword [ebp - 0x1c]
mov eax, 0x21255830
sub eax, 0x20e31e2b
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3a0a1
push 0
mov eax, 0xcfa239cf
add eax, 0x30a14661
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x44f4867c
add ecx, 0xbb0bbefc
xor ebx, ebx
add ebx, eax
mov esi, 0x4645bba
sub esi, 0x41f95ba
add esi, dword [ebp - 0x1c]
mov edi, 0x84d73b73
add edi, 0x69bfa06b
xor dword [ebp - 8], ebx
mov edx, dword [esi]
sub dword [ebp - 0x10], ebx
xor edx, edi
xor dword [ebp - 0xc], edx
mov dword [ebx], edx
mov dword [ebp - 0x14], 0x1aab76fd
add ebx, 4
add esi, 4
loop 0x423a66
add eax, 0x81f7669d
add eax, 0x7e09a216
xor ebx, ebx
add ebx, eax
add eax, 0x41280f5c
sub eax, 0x41280f57
mov ecx, 0x44f6db6e
add ecx, 0xbb492492
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407f5a
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x485c70
call fcn.00464e48
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x10]
call fcn.00402824
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00440d53
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x407fcf
push str.Failed_to_create_launcher_path
call fcn.0040279b
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 + 0x53c]
call fcn.004121e3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov esi, dword [ebp - 0x10]
push 0xd
pop edi
jmp 0x4080d9
push str.Launcher_path:
call fcn.0040279b
push ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
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 [0x4e24d4], 0x271c8
mov edi, eax
je 0x408062
cmp edi, 0x21
jl 0x408062
mov ecx, dword [ebp - 0x18]
push str.ShellExecute_succeded.
mov dword [ecx + 0xe4], 1
lea ecx, [ebp - 0x14]
call fcn.0040279b
push ebx
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 5
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x4080db
push str.ShellExecute_failed
lea ecx, [ebp - 0x14]
call fcn.0040279b
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, 0x53c
call fcn.004121e3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
cmp edi, 5
jne 0x4080d9
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp - 0x18]
call fcn.0040279b
xor ecx, ecx
mov byte [ebp - 4], 4
push ebx
lea edx, [ebp - 0x18]
inc ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.00402def
mov eax, ebx
call fcn.00464e11
ret 8
Function at 0x408502
Capabilities:
Delete registry key

Disassembly:
push 0x424
mov eax, 0x485d57
call fcn.00464e7c
mov esi, ecx
push str.LaunchSafeCleanup...
lea ecx, [ebp - 0x428]
call fcn.0040279b
xor ebx, ebx
lea edx, [ebp - 0x428]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402def
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x428]
call fcn.00402824
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 1
call fcn.00440caf
test eax, eax
je 0x4086d8
mov edi, 0x208
mov dword [ebp - 0x42c], ebx
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00466990
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00466990
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x42c]
call fcn.004382c7
add esp, 0x1c
test eax, eax
je 0x4086d8
lea ecx, [ebp - 0x424]
mov dword [esi + 0xfc], ebx
push str._ArmCleanup
cmp dword [esi + 0xf4], ebx
je 0x408609
call fcn.0040279b
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.00437e61
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
jmp 0x408638
call fcn.0040279b
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.00438041
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.00402def
test edi, edi
jne 0x408660
mov edi, ebx
jmp 0x408658
cmp edi, 0x14
jge 0x408660
push 0xc8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xfc], ebx
je 0x408647
cmp dword [esi + 0xfc], ebx
jne 0x40869a
push str.launch_cleanup_not_confirmed
lea ecx, [ebp - 0x424]
call fcn.0040279b
push ebx
push 2
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 4
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x430]
push eax
push 0xf003f
push ebx
push 0x49dc68
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4086d8
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.00402def
call fcn.00464e26
ret
Function at 0x409fd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x486028
call fcn.00464e48
mov esi, ecx
lea eax, [esi + 0x300]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040279b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a0ca
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a0ca
cmp dword [esi + 0x1c0], ebx
jne 0x40a04b
push str.Report_is_not_enabled_in_Session
lea ecx, [ebp - 0x14]
call fcn.0040279b
push 2
pop ecx
push ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], cl
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ebx, 0x30d0e
jmp 0x40a0f5
push 0x49db4c
push str.Reported
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x2fc]
call fcn.0040d0f0
cmp byte [ebp - 0xd], bl
je 0x40a07f
push str.already_reported
lea ecx, [ebp - 0x14]
call fcn.0040279b
mov byte [ebp - 4], 3
jmp 0x40a0ad
push ebx
push str.SessionApplication
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x2fc]
call fcn.0040d0f0
cmp byte [ebp - 0xd], bl
jne 0x40a0f5
push str.Product_info_missing__cannot_report_data
lea ecx, [ebp - 0x14]
call fcn.0040279b
mov byte [ebp - 4], 4
push ebx
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0x15
pop ebx
jmp 0x40a0f5
push str.No_Report_file
lea ecx, [ebp - 0x14]
call fcn.0040279b
push ebx
push 2
pop ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, ebx
call fcn.00464e11
ret
Function at 0x40caaa
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.00466990
add esp, 0xc
push edi
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40cafd
mov ebx, 0x104
mov ecx, edi
push str.AdobeARM_
mov edx, ebx
call fcn.0040d52f
push str.ArmReport.ini
mov edx, ebx
mov ecx, edi
call fcn.0040d52f
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40cb3d
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4866ae
call fcn.00464e7c
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 0x4a136c
push eax
call fcn.0040d304
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040d21d
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040d197
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040d15f
push ebx
cmp byte [ebp - 0x71], bl
je 0x40cc23
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 0x40cc7d
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x40cc2b
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 0x40cc7d
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 0x40cc7d
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.0046a019
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40cc87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40cc8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040d422
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.0040d4a0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.0040d4a0
mov eax, ebx
call fcn.00464e26
ret
Function at 0x40ccc5
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40cd41
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cd41
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40cd3d
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_Report
mov ecx, edi
call fcn.0040cea1
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40cd3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
push str.MoveEx_Report
call fcn.0040cea1
mov eax, esi
jmp 0x40cd44
xor eax, eax
jmp 0x40cd44
push 2
pop eax
pop edi
pop esi
leave
ret

Function at 0x40cd48
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 0x40cd6e
push 3
pop eax
jmp 0x40ce9a
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cd95
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.0040cb3d
mov ebx, eax
test ebx, ebx
jne 0x40ce9a
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x40ce78
cmp dword [ebp - 4], 0
je 0x40ce78
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040cf29
test eax, eax
jne 0x40ce78
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40ce78
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00467064
pop ecx
pop ecx
test eax, eax
je 0x40cdfc
push 2
push dword [ebp - 4]
call fcn.004648a3
pop ecx
pop ecx
xor eax, eax
jmp 0x40ce9a
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.0044a8a2
pop ecx
push dword [ebp - 4]
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.0040d13b
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
call fcn.0040d52f
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.0040d52f
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.004648a3
push edi
call fcn.0044a89d
add esp, 0xc
jmp 0x40ce8c
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 0x40ce98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40cf29
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 0x40cf44
push 3
pop eax
jmp 0x40cfec
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cf54
push 2
jmp 0x40cf3e
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x40cfe7
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a8a2
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00466990
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 0x40cfb1
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x40cfc3
push dword [edi]
call fcn.0044a89d
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x40cfe0
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x40cf61
cmp dword [edi], 0
je 0x40cfe7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40cfe7
xor eax, eax
jmp 0x40cfea
mov eax, 0xe8
jmp 0x40cfea
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d02d
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 0x40d048
push 3
pop eax
jmp 0x40d0eb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d058
push 2
jmp 0x40d042
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x1041
jae 0x40d0e6
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a8a2
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00466990
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0x49fb6c
push 0
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d0b7
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x40d0d0
push dword [edi]
call fcn.0044a89d
and dword [edi], 0
pop ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x40d0d3
mov eax, 0xe8
jmp 0x40d0e9
mov ecx, dword [ebp - 4]
lea eax, [esi - 2]
push 2
pop edx
cmp ecx, eax
je 0x40d065
cmp dword [edi], 0
je 0x40d0e6
xor eax, eax
jmp 0x40d0e9
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d15f
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40d190
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 0x40d190
cmp dword [ebp - 4], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x40d192
xor al, al
pop esi
leave
ret 8
Function at 0x40d59d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4dd554]
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.00466990
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00466990
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 0x4a1390
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x40d63d
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0046c704
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x40d657
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.0040d52f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046486a
leave
ret
Function at 0x412ac4
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 0x412b18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
push 0xd
pop eax
cmove esi, eax
cmp esi, 0xe8
jne 0x412b26
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp edi, 0xa
jl 0x412ad5
jmp 0x412b26
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 0x413654
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x487288
call fcn.00464e48
mov ebx, ecx
push str.Notify...
lea ecx, [ebp - 0x10]
call fcn.0040279b
xor edi, edi
lea edx, [ebp - 0x10]
push edi
push 2
pop ecx
mov dword [ebp - 4], edi
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402def
push edi
call fcn.0046bc6c
pop ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x4136b7
cmp eax, ecx
jbe 0x4136b7
sub eax, ecx
cmp eax, 0x64
jae 0x4136b7
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 0x4137c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x41371c
push str.Could_not_find_ARM_server_to_notify
lea ecx, [ebp - 0x10]
call fcn.0040279b
push 0x186a0
push 2
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 1
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402def
xor eax, eax
jmp 0x41383f
push 0x7d0
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x41374a
push str.Wait_to_notify_ARM_Server_failed
lea ecx, [ebp - 0x10]
call fcn.0040279b
push 2
pop eax
mov dword [ebp - 4], eax
mov ecx, eax
push 0x186a0
jmp 0x41377e
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 0x4137c5
push str.Failed_to_contact_ARM_Server_to_notify
lea ecx, [ebp - 0x10]
call fcn.0040279b
push 0x186a0
push 2
mov dword [ebp - 4], esi
pop ecx
lea edx, [ebp - 0x10]
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402def
push str.Notify_ARM_Server_failed:_invalid_handle
lea ecx, [ebp - 0x14]
call fcn.0040279b
push 0
push 2
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 6
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x413835
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 0x4137fb
push str.Notify_ARM_Server:_failed_WriteFile
call fcn.0040279b
mov dword [ebp - 4], 4
push 0x186a0
jmp 0x413811
push 2
pop esi
push str.WriteFile_succeeded_in_Notify
call fcn.0040279b
mov dword [ebp - 4], 5
push 0
push 2
lea edx, [ebp - 0x10]
pop ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402def
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.00464e11
ret 4
Function at 0x413847
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 [0x4e1f60]
xor ebx, ebx
mov dword [ebp - 0xc], esi
inc ebx
mov dword [ebp - 0x14], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x4e1dde], bl
mov dword [0x4e1de0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4138ef
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 [0x4e1f6c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4138b4
cmp dword [ebp - 0xc], ebx
je 0x4138db
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 0x4b904c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4138e5
cmp dword [ebp - 0x14], ebx
jne 0x4138e5
mov dword [0x4e1de0], 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret