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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401e5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e54
test esi, esi
je 0x401e54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e30
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402040
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402168
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020ce
cmp eax, 4
jne 0x4020f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020de
cmp edx, 4
je 0x4020de
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402040
Function at 0x40898a
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x4aa120
call fcn.00468fa8
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.0044f181
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.00440fc1
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x4089ff
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.00411723
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x10]
push 0xd
pop edi
jmp 0x408b09
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.004130a0
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 [0x515280], 0x271c8
mov edi, eax
je 0x408a92
cmp edi, 0x21
jl 0x408a92
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.004137d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x408b0b
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.00411723
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp edi, 5
jne 0x408b09
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.004137d1
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.00468f71
ret 8
Function at 0x40906d
Capabilities:
Delete registry key

Disassembly:
push 0x424
mov eax, 0x4aa247
call fcn.00468fdc
mov esi, ecx
push str.LaunchSafeCleanup...
lea ecx, [ebp - 0x428]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x428]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.0044f181
push eax
lea ecx, [ebp - 0x428]
call fcn.00402899
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 1
call fcn.00440f1d
test eax, eax
je 0x409243
mov edi, 0x208
mov dword [ebp - 0x42c], ebx
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00481750
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00481750
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x42c]
call fcn.004377c7
add esp, 0x1c
test eax, eax
je 0x409243
lea ecx, [ebp - 0x424]
mov dword [esi + 0xfc], ebx
push str._ArmCleanup
cmp dword [esi + 0xf4], ebx
je 0x409174
call fcn.00402829
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.00437365
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
jmp 0x4091a3
call fcn.00402829
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.00437541
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.00402e64
test edi, edi
jne 0x4091cb
mov edi, ebx
jmp 0x4091c3
cmp edi, 0x14
jge 0x4091cb
push 0xc8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xfc], ebx
je 0x4091b2
cmp dword [esi + 0xfc], ebx
jne 0x409205
push str.launch_cleanup_not_confirmed
lea ecx, [ebp - 0x424]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 4
pop ecx
call fcn.004137d1
pop ecx
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x430]
push eax
push 0xf003f
push ebx
push 0x4ca238
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409243
push str.Cleanup
push dword [ebp - 0x430]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.00468f86
ret
Function at 0x409d53
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x4aa378
call fcn.00468fa8
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 0x409e4a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409e4a
cmp dword [esi + 0x1b8], ebx
jne 0x409dcb
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.004137d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, 0x30d0e
jmp 0x409e75
push str.1324
push str.Reported
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x308]
call fcn.0040c70a
cmp byte [ebp - 0xd], bl
je 0x409dff
push str.already_reported
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 3
jmp 0x409e2d
push ebx
push str.SessionApplication
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x308]
call fcn.0040c70a
cmp byte [ebp - 0xd], bl
jne 0x409e75
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.004137d1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x15
pop ebx
jmp 0x409e75
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.004137d1
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.00468f71
ret
Function at 0x40b28d
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4aa6e0
call fcn.00468fa8
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.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [0x5152b8]
test ecx, ecx
je 0x40b2e7
cmp dword [0x514e08], ebx
je 0x40b40a
call fcn.00432e2e
jmp 0x40b40a
cmp dword [0x514e24], ebx
je 0x40b305
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
mov ecx, 0x514d30
call fcn.0040b640
jmp 0x40b40f
cmp dword [0x514e30], ebx
je 0x40b3e8
cmp dword [0x514f90], ebx
je 0x40b3e8
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 [0x514ec8]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call fcn.0044f181
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00440f1d
test eax, eax
jne 0x40b368
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40b3d6
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00481750
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 0x40b3d3
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.00413882
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 0x40b40f
mov ecx, 0x514d30
mov dword [0x514e04], 1
mov dword [0x514e08], ebx
call fcn.0040af5c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b59d
call fcn.00468f71
ret
Function at 0x40b415
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4aa6e0
call fcn.00468fa8
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.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [0x5152b8]
test ecx, ecx
je 0x40b46f
cmp dword [0x514e08], ebx
je 0x40b592
call fcn.00432e2e
jmp 0x40b592
cmp dword [0x514e24], ebx
je 0x40b48d
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
mov ecx, 0x514d30
call fcn.0040b640
jmp 0x40b597
cmp dword [0x514e30], ebx
je 0x40b570
cmp dword [0x514f90], ebx
je 0x40b570
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 [0x514ec8]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call fcn.0044f181
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00440f1d
test eax, eax
jne 0x40b4f0
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40b55e
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00481750
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 0x40b55b
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.00413882
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 0x40b597
mov ecx, 0x514d30
mov dword [0x514e04], 1
mov dword [0x514e08], ebx
call fcn.0040af5c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b59d
call fcn.00468f71
ret
Function at 0x40c31d
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4aa8be
call fcn.00468fdc
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 0x4cdb0c
push eax
call fcn.0040c91e
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040c837
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040c7b1
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040c779
push ebx
cmp byte [ebp - 0x71], bl
je 0x40c403
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 0x40c45d
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x40c40b
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 0x40c45d
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 0x40c45d
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.00484e5d
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40c46e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040ca32
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.0040cab0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.0040cab0
mov eax, ebx
call fcn.00468f86
ret

Function at 0x40c4a5
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40c4e4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c4e4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c4e0
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40c4e0
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
push 2
pop eax
pop esi
ret
Function at 0x40c4e9
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 0x40c50f
push 3
pop eax
jmp 0x40c63b
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c536
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.0040c31d
mov ebx, eax
test ebx, ebx
jne 0x40c63b
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x40c619
cmp dword [ebp - 4], 0
je 0x40c619
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040c642
test eax, eax
jne 0x40c619
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40c619
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00481e24
pop ecx
pop ecx
test eax, eax
je 0x40c59d
push 2
push dword [ebp - 4]
call fcn.00468a03
pop ecx
pop ecx
xor eax, eax
jmp 0x40c63b
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.0044ea42
pop ecx
push dword [ebp - 4]
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.0040c755
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
call fcn.0040cb3f
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.0040cb3f
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.00468a03
push edi
call fcn.0044ea3d
add esp, 0xc
jmp 0x40c62d
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 0x40c639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c642
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 0x40c65d
push 3
pop eax
jmp 0x40c705
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c66d
push 2
jmp 0x40c657
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x40c700
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044ea42
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00481750
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 0x40c6ca
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x40c6dc
push dword [edi]
call fcn.0044ea3d
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x40c6f9
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x40c67a
cmp dword [edi], 0
je 0x40c700
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40c700
xor eax, eax
jmp 0x40c703
mov eax, 0xe8
jmp 0x40c703
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40c779
Capabilities:
Get token membership

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

Function at 0x40cbad
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x50f554]
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.00481750
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00481750
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 0x4cdb30
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x40cc4d
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0048865e
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x40cc67
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.0040cb3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004689ca
leave
ret
Function at 0x4120f4
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 0x412148
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
push 0xd
pop eax
cmove esi, eax
cmp esi, 0xe8
jne 0x412156
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp edi, 0xa
jl 0x412105
jmp 0x412156
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