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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9452
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov esi, ecx
push str.CAEEngine::GetDriverDestDir__._Enter_in_CAEEngine::GetDriverDestDir
mov ecx, 0x53a2b8
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], edi
call fcn.004015d0
xor eax, eax
add esp, 4
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push 0x1c
mov eax, str.C:Windows_system32drivers_
call fcn.004027c0
mov dword [ebp - 4], edi
push 0x7fe
lea edx, [ebp - 0x80e]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x814], 1
mov word [ebp - 0x810], cx
call fcn.004da450
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x414b99
push str.CAEEngine::GetDriverDestDir__._Enter_in_GetWindowsDirectory_successed
mov ecx, 0x53a2b8
call fcn.004015d0
lea eax, [ebp - 0x810]
add esp, 4
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414b70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
call fcn.004027c0
push 0x12
mov eax, str._system32drivers_
mov ecx, esi
call fcn.004021b0
cmp dword [esi + 0x14], 8
jb 0x414ba3
mov eax, dword [esi]
jmp 0x414ba5
mov eax, esi
push eax
mov ecx, 0x53a2b8
call fcn.004015d0
push str.CAEEngine::GetDriverDestDir__._Return_from_CAEEngine::GetDriverDestDir
mov ecx, 0x53a2b8
call fcn.004015d0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x415450
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
push str.In_CAEEngine::StopInitInstanceThread__._Start.
mov ecx, 0x53a2b8
call fcn.004015d0
xor ebx, ebx
add esp, 4
mov byte [0x53a294], 1
cmp dword [0x93c5f0], ebx
jne 0x4154b7
push str.In_CAEEngine::StopInitInstanceThread__._AEEngine_not_Initialized_Yet
mov ecx, 0x53a2b8
call fcn.004015d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor esi, esi
push 0x1f4
call edi
cmp dword [0x93c5f0], ebx
jne 0x4154b7
inc esi
cmp esi, 5
jl 0x415490
push str.In_CAEEngine::StopInitInstanceThread__._AEEngine_done_waiting_for_initialize._stop_thread_forcefully.
mov ecx, 0x53a2b8
call fcn.004015d0
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x93c5f4], ebx
je 0x415522
push str.In_CAEEngine::StopInitInstanceThread__._m_hAEEngineInitializingThread
mov ecx, 0x53a2b8
call fcn.004015d0
mov eax, dword [0x93c5f8]
add esp, 4
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [0x93c5f4]
push 0x1f4
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41550e
mov edx, dword [0x93c5f4]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x93c5f4]
push eax
call esi
mov dword [0x93c5f4], ebx
mov dword [0x93c5f8], ebx
mov eax, dword [0x93c600]
cmp eax, ebx
je 0x415534
push eax
call esi
mov dword [0x93c600], ebx
mov eax, dword [0x93c5fc]
cmp eax, ebx
je 0x415546
push eax
call esi
mov dword [0x93c5fc], ebx
pop edi
mov eax, 1
pop esi
mov dword [0x93c5f0], eax
pop ebx
ret
Function at 0x416fd0
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fed0e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x400]
push 1
mov dword [ebp - 0x14], esi
mov dword [esi + 8], 0
call fcn.0041a360
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov byte [eax + 0x2c], 1
mov ecx, dword [esi + 4]
add esp, 4
mov byte [ecx + 0x2d], 1
mov dword [ebp - 4], 2
lea esi, [ebx + 0x410]
call fcn.004183f0
mov byte [ebp - 4], 3
xor eax, eax
movzx esi, ax
mov eax, esi
lea edx, [ebx + 0x200458]
shl esi, 0x10
or eax, esi
mov edi, edx
mov ecx, 0x100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push edx
mov esi, 0x200
push 3
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x100
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9298
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
push str.__FILEEVENTINFO_
push ebx
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x84], 0
call fcn.004040b0
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
jne 0x418205
mov dword [ebp - 0x38], eax
mov word [ebp - 0x48], ax
push 0xf
mov eax, str._FILEEVENTINFO_
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
call fcn.004027c0
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2c]
push str._ITEMS_
push ecx
call fcn.0041a210
mov byte [ebp - 4], 1
push str.__ITEMS_
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.00403180
mov byte [ebp - 4], 2
push str.__FILEEVENTINFO_
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00403180
add esp, 0x24
mov byte [ebp - 4], 3
push 0
push eax
or eax, 0xffffffff
call fcn.004026d0
mov byte [ebp - 4], 2
mov edi, 8
cmp dword [ebp - 0x50], edi
jb 0x4180d7
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004d5559
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], edi
jb 0x4180fe
mov eax, dword [ebp - 0x80]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x18], edi
jb 0x418122
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
lea ecx, [ebp - 0x2c]
xor eax, eax
push 0x87
push ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.004628f0
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], edi
jb 0x418151
mov eax, dword [eax]
push ecx
push eax
push ebx
xor eax, eax
call fcn.004040b0
mov esi, eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x418172
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
je 0x4181a5
push eax
lea ecx, [ebp - 0x48]
push ecx
push esi
or eax, 0xffffffff
mov esi, ebx
call fcn.004198c0
mov dword [ebp - 0x84], 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], edi
jb 0x4181bd
mov edx, dword [ebp - 0x48]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x84], eax
jne 0x4181e4
push str.Failed_to_insert_FileEventInfo_to_log_XML
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
push 8
push str.__ITEMS_
push ebx
call fcn.004040b0
cmp eax, 0xffffffff
je 0x4181d9
cmp eax, esi
jae 0x4181d9
push 0
push edi
push eax
or eax, 0xffffffff
mov esi, ebx
call fcn.004198c0
mov eax, 1
jmp 0x4181ea
Function at 0x418230
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4df8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push 0x87
push eax
mov esi, ecx
call fcn.004628f0
add esp, 8
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41827f
mov eax, dword [eax]
push ecx
push eax
push esi
xor eax, eax
call fcn.004040b0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4182a4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp edi, 0xffffffff
je 0x4182cf
push edx
push ebx
push edi
or eax, 0xffffffff
call fcn.004198c0
mov eax, 1
jmp 0x4182dc
push str.Failed_to_insert_FileEventInfo_to_log_XML
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret

Function at 0x4183f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor eax, eax
movzx edx, ax
push 0
mov eax, edx
shl edx, 0x10
push 0
or eax, edx
lea edi, [esi + 0x28]
mov ecx, 0x80000
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0
mov dword [esi + 0x24], 2
mov dword [esi], 0
call edi
push 0
push 0
push 0
mov dword [esi + 0x200030], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi + 0x200034], eax
test eax, eax
je 0x418478
push 0
push 0
push 0
push 0x2710
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0xfa0a1f00
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x200038], eax
call edi
push 1
lea edx, [ebp - 0x28]
push edx
mov dword [esi + 0x20003c], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4184e5
push 0
push 0
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4184e5
push str.GlobalB5AB9116_668B_447c_AC0B_6BB6A8DE036A
push 0
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push edx
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
call edi
mov dword [esi + 0x200040], eax
lea eax, [esi + 0x20002c]
push eax
push 0
push esi
push 0x418d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
mov dword [esi + 0x200028], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [esi + 8]
push ecx
mov dword [esi + 0x200044], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4185b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp esi, 0xffffffff
jne 0x4185c1
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
push edi
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 2
jb 0x4185fa
push edi
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4185fa
mov edx, 0xfeff
cmp word [ebp - 4], dx
jne 0x4185fa
mov edi, 1
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x418ad0
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9a68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi], ebx
je 0x418bf3
cmp dword [esi + 0x20], ebx
je 0x418bf3
mov eax, dword [esi + 0x200044]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418bac
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00416eb0
mov dword [ebp - 4], ebx
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x418b4b
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x418b6f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
mov edx, dword [esi + 0x20]
push ebx
lea ecx, [ebp - 0x34]
push ecx
xor eax, eax
add edx, edx
push edx
mov word [ebp - 0x2c], ax
mov eax, dword [esi]
lea edi, [esi + 0x28]
push edi
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x200044]
xor ecx, ecx
push edx
mov dword [esi + 0x20], ebx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x418be2
push 0x93c648
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x93c628]
push 0x93c648
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jb 0x418be2
call fcn.00418c20
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x418bfc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x418c60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x418ca8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00416eb0
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x418cbc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x418cde
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
test edi, edi
je 0x418cff
mov ecx, esi
call fcn.00418860
mov ebx, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x418de0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9248
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x93c630
mov esi, ecx
call ebx
mov edi, dword [0x93c62c]
push 0x93c630
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 1
jne 0x418e7e
lea eax, [ebp - 0x48]
push eax
call fcn.00416eb0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x418e4a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x418e69
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
jmp 0x418f43
inc dword [esi + 4]
mov edi, dword [esi + 4]
push 0x93c630
call ebx
mov ebx, dword [0x93c62c]
push 0x93c630
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jl 0x418ea7
mov dword [esi + 4], 1
mov ecx, dword [esi + 4]
lea esi, [ebp - 0x2c]
call fcn.00418f70
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x418ec9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x48]
push eax
call fcn.00416eb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x418ee8
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], esi
jb 0x418eef
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x418f0c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004d5559
add esp, 4
mov edi, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x418f37
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x419040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fddf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x93c630
mov dword [ebp - 0x30], 0
mov edi, 1
call ebx
mov esi, dword [0x93c62c]
push 0x93c630
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, edi
jle 0x419113
lea esp, [esp]
mov ecx, edi
lea esi, [ebp - 0x2c]
call fcn.00418f70
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4190b9
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4190db
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
test esi, esi
je 0x4190f6
inc dword [ebp - 0x30]
push 0x93c630
inc edi
call ebx
mov esi, dword [0x93c62c]
push 0x93c630
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, esi
jl 0x4190a0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x419390
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7112
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push 5
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x104
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
call esi
test eax, eax
je 0x419571
mov eax, dword [ebp - 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4193f5
sub eax, edx
sar eax, 1
je 0x419571
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 7
push edi
push 0
call esi
test eax, eax
je 0x419571
mov esi, dword [ebp - 0x54]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419430
sub eax, edx
sar eax, 1
je 0x419571
mov eax, dword [ebp - 0x50]
lea edx, [eax + 2]
jmp 0x419450
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419450
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419466
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x419571
push esi
push 0
push ebx
call fcn.00401020
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov edx, ebx
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4194b0
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4194c4
mov eax, dword [0x504a74]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov esi, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4194e0
sub eax, esi
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4194f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x5c]
push ecx
mov eax, esi
call fcn.00419790
mov eax, ebx
lea ecx, [ebp - 0x2c]
call fcn.00401c60
mov dword [ebp - 4], 0
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4c]
push ecx
mov edi, eax
call fcn.0041a2f0
mov byte [ebp - 4], 1
add esi, 0x400
mov ecx, eax
mov edx, esi
call fcn.0041a750
push eax
push esi
lea edi, [ebp - 0x64]
call fcn.0041a3f0
mov byte [ebp - 4], 0
lea edx, [ebp - 0x4c]
push edx
call fcn.004195c0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00401ca0
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test eax, eax
je 0x419581
push eax
call esi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x41958b
push eax
call esi
test ebx, ebx
je 0x419598
push ebx
call fcn.004d632b
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 8
Function at 0x41aa90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f45b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [esi + 0x14]
xor ebx, ebx
push 1
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ebx
call fcn.0045cf20
mov dword [edi], eax
mov dword [eax], eax
mov edi, dword [edi]
mov dword [edi + 4], edi
mov dword [ebp - 4], 1
lea edi, [esi + 0x20]
push 1
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ebx
call fcn.0045cf20
mov dword [edi], eax
mov dword [eax], eax
mov edi, dword [edi]
mov dword [edi + 4], edi
mov byte [ebp - 4], 3
fldz
lea edi, [esi + 0x40]
fstp qword [esi + 0x34]
mov dword [esi + 0x3c], ebx
push 1
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ebx
call fcn.0045cf20
mov dword [edi], eax
mov dword [eax], eax
mov edi, dword [edi]
mov dword [edi + 4], edi
mov byte [ebp - 4], 5
lea edi, [esi + 0x4c]
push 1
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ebx
call fcn.00409870
mov dword [edi], eax
mov dword [eax], eax
mov edi, dword [edi]
mov dword [edi + 4], edi
mov byte [ebp - 4], 7
lea edi, [esi + 0x58]
push 1
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0041e090
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x10], 1
mov ecx, dword [edi + 4]
mov byte [ecx + 0x11], 1
mov byte [ebp - 4], 0xa
lea edi, [esi + 0x68]
push 1
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0041e090
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
add esp, 0x18
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov edx, dword [edi + 4]
mov byte [edx + 0x10], 1
mov eax, dword [edi + 4]
mov byte [eax + 0x11], 1
mov byte [ebp - 4], 0xd
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [0x539950], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4