joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014cc50
Capabilities:
Enumerate processes on remote desktop session host
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1014cc6a
push eax
call ebx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1014cc74
push eax
call ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1014cc7e
push eax
call ebx
cmp dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
je 0x1014cca6
mov ecx, esi
call fcn.1014cdf0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x48], 0
je 0x1014cccc
cmp dword [esi + 0x18], 0
je 0x1014cccc
cmp dword [esi + 0x30], 0
je 0x1014cccc
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 8]
push eax
call fcn.1002d9f0
add esp, 8
test al, al
je 0x1014cc99
push edi
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
push 0
push 0
mov dword [ebp - 0xc], 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x1014cd72
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jbe 0x1014cd60
xor edi, edi
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + edi]
cmp eax, dword [esi]
jne 0x1014cd51
push str.explorer.exe
push dword [ecx + edi + 8]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x1014cd51
mov eax, dword [ebp - 8]
push dword [edi + eax + 4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1014cd51
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x10]
add edi, 0x10
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0xc]
jb 0x1014cd05
push dword [ebp - 8]
call sub.WTSAPI32.dll_WTSFreeMemory
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 4
jmp 0x1014cd80
push str.Program_Manager
push str.Progman
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x1014cde3
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x10], 0
jbe 0x1014cdde
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
je 0x1014cdde
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1014cdde
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov byte [ebp - 1], 1
sub edi, 1
jne 0x1014cd80
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1014d060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x464], 0
mov word [ebp - 0x426], ax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov eax, 5
push 0x208
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x436], 0
mov dword [ebp - 0x432], 0
mov dword [ebp - 0x42e], 0
mov dword [ebp - 0x42a], 0
mov dword [ebp - 0x468], 0x44
mov dword [ebp - 0x43c], 1
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push str.__sexplorer.exe_
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.101fa3aa
add esp, 0x10
lea eax, [ebp - 0x424]
mov ecx, 0x1024ee30
push eax
lea eax, [ebp - 0x468]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call fcn.101b14f0
test eax, eax
je 0x1014d205
push 0x3e8
push dword [ebp - 0x424]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1014d220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push str.__sexplorer.exe_
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.101fa3aa
add esp, 0x10
mov dword [ebp - 0x464], 0
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x45c], 0
push eax
push 0
push 0
push 0x10
lea eax, [ebp - 0x414]
mov dword [ebp - 0x458], 0
push eax
mov eax, dword [esi + 0x44]
push 0
push 1
push dword [esi + 0x40]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x468], 0x44
call eax
test eax, eax
je 0x1014d3b8
push 0x3e8
push dword [ebp - 0x424]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
jne 0x1014d3dd
mov ecx, esi
call fcn.1014d060
test al, al
jne 0x1014d3dd
mov ecx, esi
call fcn.1014d6a0
test al, al
je 0x1014d3dd
push 1
mov ecx, esi
call fcn.1014d220
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
Function at 0x1014d3f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x1014d410
push dword [ebx + 0x40]
mov byte [ebp - 0x615], 0
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1014d60f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov dword [ebp - 0x66c], 0
push 0x1e0
push eax
mov word [ebp - 0x62e], ax
lea edi, [ebp - 0x204]
mov dword [ebp - 0x62c], eax
mov ecx, 8
mov dword [ebp - 0x628], eax
mov esi, str.WinSta0Default
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x1e4]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x63e], 0
mov dword [ebp - 0x63a], 0
mov dword [ebp - 0x636], 0
mov dword [ebp - 0x632], 0
mov dword [ebp - 0x670], 0x44
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x644], 1
lea eax, [ebp - 0x204]
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x668], eax
mov eax, 5
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x61c]
push 0
push dword [ebx + 0x40]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
push 0x208
lea eax, [ebp - 0x614]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x40c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x40c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x40c]
push eax
push str.__sexplorer.exe_
lea eax, [ebp - 0x614]
push 0x103
push eax
call fcn.101fa3aa
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x670]
push eax
push 0
push dword [ebp - 0x61c]
lea eax, [ebp - 0x614]
push 0x410
push 0
push 0
push 0
push eax
push 0
push dword [ebx + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1014d5f0
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x615], 1
call esi
push dword [ebp - 0x628]
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x61c]
test eax, eax
je 0x1014d606
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
cmp byte [ebp - 0x615], 0
jne 0x1014d634
cmp byte [ebp + 8], 0
jne 0x1014d634
mov ecx, ebx
call fcn.1014d060
test al, al
jne 0x1014d634
mov ecx, ebx
call fcn.1014d6a0
test al, al
je 0x1014d634
mov byte [ebp + 8], 1
jmp 0x1014d410
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
Function at 0x1014d6a0
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x20
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1014d76d
push esi
push 0x16
push str.seclogon
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1014d765
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1014d75e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1014d754
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x1014d757
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, 0x3a98
ja 0x1014d754
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1014d725
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jne 0x1014d75e
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x1014ddd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1450
mov esi, ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov ebx, eax
xor eax, eax
mov ecx, 0x514
mov edi, ebx
rep stosd dword es:[edi], eax
push dword [esi + 4]
push 0xa28
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
push ebx
call fcn.10002490
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1014de30
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1014de84
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push dword [esi + 4]
mov dword [ebp - 8], 0xfeff
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1015dcd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1015dd42
cmp word [edi], 0
je 0x1015dd42
push esi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1015dcf9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1015dd0c
call eax
jmp 0x1015dd12
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x1015dd1f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
cmp ebx, 0xffffffff
je 0x1015dd42
test bl, 0x10
jne 0x1015dd42
push edi
call fcn.1015dbc0
add esp, 4
test eax, eax
jne 0x1015dd42
push 1
push edi
call fcn.100d9c10
add esp, 8
pop edi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1015e150
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x620], eax
jne 0x1015e1b0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1015e19e
push str.DllGetClassObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x1015e1b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push eax
push str._s_regsvr32.exe__s___s_
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101fa3aa
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1015e278
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x620]
call fcn.10002490
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.100e2b30
push dword [ebp - 0x620]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101ef650
mov edx, dword [ebp - 0x620]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015e278
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 0x648], 1
xor eax, eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1015e32e
push 0x7d0
push dword [ebp - 0x630]
xor edi, edi
mov dword [ebp - 0x620], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1015e2f8
cmp eax, 0x102
jne 0x1015e318
push edi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1015e318
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x620], edi
jne 0x1015e318
mov edi, 1
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1015e340
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1015e517
push str.DllGetClassObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1015e517
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
lea eax, [ebp - 0x61c]
push eax
push str._s_regsvr32.exe__u__s___s_
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101fa3aa
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1015e44e
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x620]
call fcn.10002490
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.100e2b30
push dword [ebp - 0x620]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101ef650
mov edx, dword [ebp - 0x620]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015e44e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 0x648], 1
xor eax, eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1015e504
push 0x7d0
push dword [ebp - 0x630]
xor edi, edi
mov dword [ebp - 0x620], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1015e4ce
cmp eax, 0x102
jne 0x1015e4ee
push edi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1015e4ee
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x620], edi
jne 0x1015e4ee
mov edi, 1
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10174690
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10174833
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10174833
cmp dword [edi], 0
je 0x101746cc
cmp dword [ebp + 0x10], 1
jne 0x101746c0
mov dword [edi + 8], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
push ecx
cmp eax, 1
jne 0x10174778
push 0x500000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test eax, eax
je 0x10174833
mov eax, dword [edi + 4]
test eax, eax
je 0x1017470e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
push esi
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10174735
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi + 0x10], 0
push 0x1025c02a
push 0x80000
call fcn.101c85a0
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
jne 0x1017475e
mov ecx, edi
call fcn.10174630
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov dword [edi + 0xc], 0x80000
mov eax, 1
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0
je 0x10174833
mov eax, dword [edi + 4]
test eax, eax
je 0x101747a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
push esi
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x101747c7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x500000
push 0
push 0
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10174828
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea ecx, [eax - 1]
cmp ecx, 0x7ffff
ja 0x10174828
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1017480a
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [edi + 0x10], 0
push 0x1025c02a
push eax
call fcn.101c85a0
mov ecx, eax
add esp, 8
mov dword [edi + 0x10], ecx
test ecx, ecx
jne 0x1017483c
mov ecx, edi
call fcn.10174630
test esi, esi
je 0x10174833
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push eax
push ebx
push ecx
mov dword [edi + 0xc], eax
mov dword [edi + 8], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x101746c0
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x10174be0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fe2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x102519c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10174d45
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10174d45
cmp dword [ebp + 0x10], 1
jle 0x10174d45
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
test eax, eax
je 0x10174d45
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10174d45
push edi
push dword [ebp + 8]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10174ce6
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
lea ecx, [ebp + 8]
call fcn.1001b890
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xOriginalFileName
lea eax, [ebp + 8]
push eax
call fcn.10002cb0
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10174cde
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10026b00
mov esi, 1
mov dword [ebp - 0x1c], esi
lea ecx, [ebp + 8]
call fcn.10007e10
push edi
call sub.msvcrt.dll_free
add esp, 4
mov dword [ebp - 0x14], 0
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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret