joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10152ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x410
lea eax, [ebp - 0x414]
mov edi, ecx
push 0
push eax
call fcn.102134e7
add esp, 0xc
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x40e
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10152e0f
mov eax, dword [ebp - 0x418]
and eax, 0xfffffffe
cmp eax, 0x410
jae 0x10152f19
xor ecx, ecx
lea esi, [edi + 4]
mov word [ebp + eax - 0x414], cx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10152d80
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10004050
push str.doctor.dll
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.100233d0
add esp, 0xc
mov ecx, esi
push eax
call fcn.10004870
mov edx, dword [ebp - 0x41c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10152dd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x10152ded
push dword [eax - 0xc]
mov ecx, esi
call fcn.100038a0
mov eax, dword [esi]
push eax
call fcn.1000bcb0
add esp, 4
test eax, eax
je 0x10152e12
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
lea esi, [edi + 4]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x40e
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_5.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10152f07
mov eax, dword [ebp - 0x418]
and eax, 0xfffffffe
cmp eax, 0x410
jae 0x10152f19
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10152e75
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10004050
push str.doctor.dll
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.100233d0
add esp, 0xc
mov ecx, esi
push eax
call fcn.10004870
mov edx, dword [ebp - 0x41c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10152ece
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 4]
cmp dword [eax - 4], 1
jle 0x10152ee5
push dword [eax - 0xc]
lea ecx, [edi + 4]
call fcn.100038a0
mov eax, dword [edi + 4]
push eax
call fcn.1000bcb0
add esp, 4
test eax, eax
je 0x10152f07
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret
call fcn.101e2490
int3
Function at 0x1015bb60
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 0x1015bb7a
push eax
call ebx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1015bb84
push eax
call ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1015bb8e
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 0x1015bbb6
mov ecx, esi
call fcn.1015bd00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x48], 0
je 0x1015bbdc
cmp dword [esi + 0x18], 0
je 0x1015bbdc
cmp dword [esi + 0x30], 0
je 0x1015bbdc
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 8]
push eax
call fcn.1014bc30
add esp, 8
test al, al
je 0x1015bba9
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 0x1015bc82
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jbe 0x1015bc70
xor edi, edi
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + edi]
cmp eax, dword [esi]
jne 0x1015bc61
push str.explorer.exe
push dword [ecx + edi + 8]
call fcn.102134f3
add esp, 8
test eax, eax
jne 0x1015bc61
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 0x1015bc61
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 0x1015bc15
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 0x1015bc90
push str.Program_Manager
push str.Progman
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x1015bcf3
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 0x1015bcee
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
je 0x1015bcee
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1015bcee
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov byte [ebp - 1], 1
sub edi, 1
jne 0x1015bc90
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1015bf70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10250150]
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 fcn.102134e7
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
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.10008ee0
add esp, 0x10
lea eax, [ebp - 0x424]
mov ecx, 0x1024f268
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.101cb9b0
test eax, eax
je 0x1015c115
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.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x1015c130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
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.10008ee0
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 0x1015c2c8
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.10212f74
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
jne 0x1015c2ed
mov ecx, esi
call fcn.1015bf70
test al, al
jne 0x1015c2ed
mov ecx, esi
call fcn.1015c5b0
test al, al
je 0x1015c2ed
push 1
mov ecx, esi
call fcn.1015c130
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4
Function at 0x1015c300
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x1015c320
push dword [ebx + 0x40]
mov byte [ebp - 0x615], 0
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1015c51f
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 fcn.102134e7
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 fcn.102134e7
push 0x208
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.102134e7
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.10008ee0
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 0x1015c500
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 0x1015c516
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
cmp byte [ebp - 0x615], 0
jne 0x1015c544
cmp byte [ebp + 8], 0
jne 0x1015c544
mov ecx, ebx
call fcn.1015bf70
test al, al
jne 0x1015c544
mov ecx, ebx
call fcn.1015c5b0
test al, al
je 0x1015c544
mov byte [ebp + 8], 1
jmp 0x1015c320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4
Function at 0x1015c5b0
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 [0x10250150]
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 0x1015c67d
push esi
push 0x16
push str.seclogon
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1015c675
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 0x1015c66e
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 0x1015c664
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x1015c667
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 0x1015c664
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1015c635
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jne 0x1015c66e
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.10212f74
mov esp, ebp
pop ebp
ret

Function at 0x1015c690
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1015c6f7
mov eax, dword [0x10255438]
test eax, eax
jne 0x1015c6b2
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x1015c6e7
mov eax, dword [0x10255438]
test eax, eax
jne 0x1015c6ce
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x1015c6dc
mov eax, dword [eax + 0x3c]
jmp 0x1015c6de
xor eax, eax
test eax, eax
je 0x1015c6e7
push edi
call eax
jmp 0x1015c6ee
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1015c6f7
test al, 0x10
je 0x1015c753
test esi, esi
je 0x1015c761
mov eax, dword [0x10255438]
test eax, eax
jne 0x1015c70e
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x1015c743
mov eax, dword [0x10255438]
test eax, eax
jne 0x1015c72a
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x1015c738
mov eax, dword [eax + 0x3c]
jmp 0x1015c73a
xor eax, eax
test eax, eax
je 0x1015c743
push esi
call eax
jmp 0x1015c74a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1015c761
test al, 0x10
jne 0x1015c761
push esi
push edi
call fcn.101d0120
add esp, 8
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1015cd00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1450
mov esi, ecx
call fcn.10213535
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 eax, dword [0x10255414]
test al, 1
jne 0x1015cd79
or eax, 1
mov dword [0x10255414], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10216880
mov dword [0x10255408], 0x10219e30
mov dword [0x1025540c], eax
mov byte [0x10255410], 0
call fcn.101e22c0
mov eax, dword [0x10255414]
add esp, 4
test al, 2
jne 0x1015cdd5
or eax, 2
mov dword [0x10255418], 0x10219e48
mov dword [0x10255414], eax
xor eax, eax
push 0x102168b0
mov dword [0x1025541c], 0x10255408
mov dword [0x1025542c], 2
mov dword [0x10255424], 0
mov dword [0x10255428], 0
mov dword [0x10255430], eax
mov dword [0x10255420], 0x10255418
call fcn.101e22c0
add esp, 4
mov eax, dword [0x10255418]
mov eax, dword [eax + 0xc]
cmp eax, method.ATL::CAtlStringMgr.virtual_12
jne 0x1015cdf2
lock inc dword [0x1025542c]
mov eax, 0x10255420
jmp 0x1015cdf9
mov ecx, 0x10255418
call eax
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
test ebx, ebx
je 0x1015ce41
test ebx, 0xffff0000
jne 0x1015ce2a
movzx eax, bx
mov ecx, esi
push eax
call fcn.10003b40
push ebx
call fcn.10213517
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015ce30
sub ecx, edx
sar ecx, 1
jmp 0x1015ce43
xor ecx, ecx
push ecx
push ebx
mov ecx, esi
call fcn.10004050
push ebx
call fcn.10213517
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1015ce60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1015d03a
test eax, 0x400
je 0x1015d03a
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push str.SeBackupPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push 0x2200000
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1015d03a
push edi
push 0x1025abd4
push 0x4000
call fcn.101e2340
mov edi, eax
add esp, 8
test edi, edi
jne 0x1015cf3b
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x4000
push 0
push edi
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x20]
push 0
push eax
push 0x4000
push edi
push 0
push 0
push 0x900a8
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1015d01b
mov eax, dword [edi]
test eax, 0x1fff0000
jne 0x1015d01b
cmp eax, 1
jbe 0x1015d01b
push esi
call ebx
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x1015cfd0
cmp word [esi], 0x5c
jne 0x1015cfd0
movzx eax, word [esi + 2]
cmp eax, 0x3f
je 0x1015cfab
cmp eax, 0x5c
jne 0x1015cfd0
cmp word [esi + 4], 0x3f
jne 0x1015cfd0
cmp word [esi + 6], 0x5c
jne 0x1015cfd0
add esi, 8
je 0x1015cfd4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015cfc3
jmp 0x1015cfeb
test esi, esi
jne 0x1015cfd8
xor ecx, ecx
jmp 0x1015cfef
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015cfe0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.10004050
movzx esi, word [edi + 0xa]
push edi
shr esi, 1
call fcn.10213517
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push esi
call ebx
push edi
call fcn.10213517
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x1016a090
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
lea eax, [ebp - 4]
mov ecx, dword [ebp + 8]
push esi
push eax
mov dword [ebx + 0x58], 0xc0000
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
call fcn.10137af0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1016a0d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x28]
call fcn.10008240
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1016a104
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1016a1e0
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebx + 0x58], 0x70000
mov dword [ebp - 4], eax
jne 0x1016a157
cmp dword [ebx + 0x3c], 8
lea eax, [ebx + 0x28]
jb 0x1016a134
mov eax, dword [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebx + 0x54], 8
lea edx, [ebx + 0x40]
mov dword [ebp + 8], eax
jb 0x1016a149
mov edx, dword [edx]
cmp dword [ebx + 0x3c], 8
lea edi, [ebx + 0x28]
jb 0x1016a174
mov edi, dword [ebx + 0x28]
jmp 0x1016a174
cmp dword [ebx + 0x54], 8
lea edx, [ebx + 0x40]
jb 0x1016a162
mov edx, dword [edx]
cmp dword [ebx + 0x3c], 8
lea edi, [ebx + 0x28]
jb 0x1016a16e
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x60]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
push eax
mov eax, dword [ebx + 0x5c]
push ecx
push dword [ebp + 8]
push eax
push dword [ebx + 0x58]
lea eax, [ebp - 4]
push edx
push edi
push str._s__s__u__u__u__u__u_
push eax
call fcn.10004de0
mov esi, dword [ebp - 4]
add esp, 0x24
mov ecx, esi
pop edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1016a1a2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0x10]
call fcn.10008240
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1016a1d3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100030c0
int3
Function at 0x1016a390
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, ecx
mov dword [edi + 0x58], 0xd0000
mov dword [edi + 0x5c], 0
lea esi, [edx + 2]
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], 0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1016a3c1
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x28]
call fcn.10008240
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1016a4bc
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
add eax, 0x10
cmp dword [edi + 0x58], 0x70000
mov dword [ebp + 8], eax
jne 0x1016a42d
cmp dword [edi + 0x3c], 8
lea eax, [edi + 0x28]
jb 0x1016a40a
mov eax, dword [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x54], 8
lea edx, [edi + 0x40]
mov dword [ebp + 0xc], eax
jb 0x1016a41f
mov edx, dword [edx]
cmp dword [edi + 0x3c], 8
lea ebx, [edi + 0x28]
jb 0x1016a44a
mov ebx, dword [edi + 0x28]
jmp 0x1016a44a
cmp dword [edi + 0x54], 8
lea edx, [edi + 0x40]
jb 0x1016a438
mov edx, dword [edx]
cmp dword [edi + 0x3c], 8
lea ebx, [edi + 0x28]
jb 0x1016a444
mov ebx, dword [edi + 0x28]
mov eax, dword [edi + 0x60]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x64]
push eax
mov eax, dword [edi + 0x5c]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edi + 0x58]
lea eax, [ebp + 8]
push edx
push ebx
push str._s__s__u__u__u__u__u_
push eax
call fcn.10004de0
mov esi, dword [ebp + 8]
add esp, 0x24
mov ecx, esi
pop ebx
lea edx, [ecx + 2]
jmp 0x1016a480
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1016a480
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x10]
call fcn.10008240
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1016a4b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
push 0x80004005
call fcn.100030c0
int3