joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10288b4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 8]
push esi
add eax, 0x28
push eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x14], 5
mov dword [ebp - 0x10], esi
mov word [ebp - 0x12], si
call fcn.01026af5
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1028911
xor eax, eax
jmp 0x1028942
push dword [ebp + 0x20]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
or eax, 0x404
push eax
mov eax, dword [ebx + 8]
push esi
push esi
push esi
push edi
push esi
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp + 8]
mov esi, eax
call fcn.01026bd2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x1028b09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x1012a78
push 0x3e8
xor ebx, ebx
push 0xa
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.01028ab6
mov edi, eax
cmp edi, 1
jne 0x1028bd2
push ebx
push 0x80
push 3
push ebx
push eax
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1028b5e
xor edi, edi
jmp 0x1028bd2
push esi
mov eax, 0x8000
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1028b8f
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
jmp 0x1028b91
xor edi, edi
cmp edi, 1
jne 0x1028bbd
mov eax, dword [ebp - 4]
push esi
push edi
push ebx
push ebx
push 0x400003e9
mov byte [esi + eax], bl
mov eax, dword [ebp - 4]
push 4
push ebx
mov byte [esi + eax + 1], bl
call fcn.0101ff19
add esp, 0x1c
test eax, eax
je 0x1028bbd
xor edi, edi
cmp esi, ebx
je 0x1028bc8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp dword [ebp - 8], ebx
je 0x1028be0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x1028be8
Capabilities:
Delete file
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x10723e4]
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1028c89
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1028c6f
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x440]
push 0x1012a88
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x440]
push eax
call fcn.01028b09
test eax, eax
je 0x1028c6f
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x1028c17
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0103d24a
leave
ret

Function at 0x1028ca0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x1028c95
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x102913c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1012b28
push 0x80000002
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10291c1
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x1012b04
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10291c0
cmp dword [ebp - 0xc], esi
je 0x10291c0
push 0x1012aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10291c0
push 0x1012adc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10291b9
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
leave
ret

Function at 0x1029452
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x1c]
or eax, 0x400
push eax
push ebx
push ebx
push ebx
push edi
push ebx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x102956b
mov eax, dword [ebp + 0x24]
cmp eax, ebx
push esi
jne 0x102954e
cmp dword [ebp + 0x20], ebx
je 0x1029543
test byte [ebp + 0x20], 1
je 0x10294e6
mov eax, dword [0x1075a94]
cmp eax, 0x40
jae 0x10294e6
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x1075aa0], ecx
inc eax
mov dword [0x1075a94], eax
test byte [ebp + 0x20], 2
je 0x1029553
push 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1029553
push edi
call fcn.01032328
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
cmp eax, 4
mov dword [esi + 0x10], eax
jge 0x102951f
mov dword [eax*4 + 0x1075a80], 1
push 8
push 0xffffffffffffffff
push esi
push 0x10292eb
push dword [ebp - 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlRegisterWait]
test eax, eax
jge 0x1029553
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1029553
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1029553
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
cmp eax, ebx
pop esi
jne 0x1029566
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102956b
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 0x24
Function at 0x1029d81
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0x1013060
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edi, edi
push edi
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, edi
jne 0x1029e75
push ebx
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push 8
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtOpenThreadToken]
mov esi, eax
cmp esi, edi
jge 0x1029dcf
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x1029e4f
push 0x13
pop esi
lea eax, [ebp - 0xc]
push eax
push dword [0x10759f0]
push dword [ebp - 4]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x1029e67
cmp dword [ebp - 0xc], 0
je 0x1029df3
push 0x18
pop esi
xor edi, edi
and dword [ebp - 0x18], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ntdll.dll_NtPrivilegeCheck]
mov esi, eax
test esi, esi
jge 0x1029e22
cmp esi, 0xc0000061
jne 0x1029e3c
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.ntdll.dll_NtPrivilegeObjectAuditAlarm]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jge 0x1029e58
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1029e73
mov al, byte [ebp - 8]
neg al
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
jmp 0x1029e73
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x102a907
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x10723e4]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
xor edi, edi
push eax
inc edi
push 0x202
mov dword [ebp - 0x298], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x102a945
mov eax, edi
jmp 0x102aa9c
mov eax, dword [esi + 0x4a8]
dec eax
dec eax
push ebx
je 0x102a961
sub eax, 0x15
jne 0x102aa8f
lea ebx, [esi + 0x4ac]
jmp 0x102a9c8
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [esi + 0x4ac]
push 0x10130e4
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
mov al, byte [ebp - 0x2b4]
mov byte [ebp - 0x29c], al
mov al, byte [ebp - 0x2b0]
mov byte [ebp - 0x29b], al
mov al, byte [ebp - 0x2ac]
mov byte [ebp - 0x29a], al
mov al, byte [ebp - 0x2a8]
add esp, 0x18
mov byte [ebp - 0x299], al
lea ebx, [ebp - 0x29c]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x2a4], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x102aa8f
lea eax, [ebp - 0x2a0]
push eax
push 0
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x102aa8f
and dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x102aa8f
mov esi, dword [esi + 0x4a8]
mov dword [ebp - 0x2b8], esi
cmp esi, dword [eax + 4]
jne 0x102aa74
mov edx, dword [eax + 0x10]
cmp edx, 0x3e
ja 0x102aa74
mov ecx, esi
dec ecx
dec ecx
je 0x102aa63
sub ecx, 0x15
jne 0x102aa89
cmp edx, 0x1c
jb 0x102aa74
mov edi, dword [eax + 0x18]
push 4
add edi, 8
pop ecx
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x102aa7d
mov esi, dword [ebp - 0x2b8]
xor edi, edi
inc edi
jmp 0x102aa74
cmp edx, 0x10
jb 0x102aa74
mov ecx, dword [eax + 0x18]
mov edx, dword [ebx]
add ecx, 4
cmp edx, dword [ecx]
je 0x102aa89
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x102aa2a
jmp 0x102aa8f
mov dword [ebp - 0x298], 1
jmp 0x102aa8f
mov dword [ebp - 0x298], edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x298]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0103d24a
leave
ret 4

Function at 0x102abf9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1011048
xor esi, esi
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102ac5a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10130fc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ac51
cmp dword [ebp - 0xc], esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x102ad00
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1011048
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102ad5f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x101312c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ad56
cmp dword [ebp - 0xc], 1
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x102b3cb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jne 0x102b439
xor esi, esi
cmp dword [0x1073938], esi
jne 0x102b408
push ebx
push 0x10131ac
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, esi
je 0x102b407
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [0x107335c], edi
push 0x102adc0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1073358], eax
jne 0x102b46c
call sub.WINSTA.dll__WinStationNotifyDisconnectPipe
mov dword [0x107335c], esi
jmp 0x102b479
cmp dword [ebp + 0x10], 2
jne 0x102b46c
mov eax, dword [0x1073358]
xor esi, esi
cmp eax, esi
je 0x102b479
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x102b474
push dword [0x1073358]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1073358], esi
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
call sub.WINSTA.dll__WinStationNotifyDisconnectPipe
xor eax, eax
jmp 0x102b46e

Function at 0x102b6b3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x102b585
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x107336c], eax
je 0x102b6dd
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x102b6e5
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
push edi
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x102b7a8
push 0x14
push 0x10131ec
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x102b79f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call ebx
test eax, eax
je 0x102b73d
cmp dword [ebp - 0x28], 4
jne 0x102b73d
mov dword [ebp - 8], edi
jmp 0x102b795
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x102b795
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], eax
call esi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
ja 0x102b795
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x102b795
cmp dword [ebp - 0x28], 4
je 0x102b78e
cmp dword [ebp - 0x14], 0
je 0x102b787
push dword [ebp - 0x14]
call edi
jmp 0x102b75d
push 0x1f4
jmp 0x102b783
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x102c5bb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x102bda1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x102c5e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x102cadb
Capabilities:
Get hostname
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0103d5b9
mov eax, dword [0x10723e4]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1038], esi
mov dword [ebp - 0x103c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x102cb2c
push 1
lea eax, [ebp - 0x24]
push eax
push 0x1011898
push esi
call fcn.0101de16
lea eax, [ebp - 0x1034]
push eax
push 0x20019
push 0
push 0x10132e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102cc5b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1040]
push eax
push 0
push 0x10132c8
push dword [ebp - 0x1034]
mov dword [ebp - 0x1030], 0x802
call ebx
test eax, eax
mov esi, 0x401
jne 0x102cbd7
push esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102cbd7
cmp eax, esi
jae 0x102cbd7
push edi
push 1
lea eax, [ebp - 0x828]
push eax
mov edi, 0x10132ac
push edi
push dword [ebp - 0x1038]
call fcn.0101de16
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1040]
push eax
push 0
push 0x101328c
push dword [ebp - 0x1034]
mov dword [ebp - 0x1030], 0x802
call ebx
test eax, eax
pop ebx
jne 0x102cc4f
push esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102cc4f
cmp eax, esi
jae 0x102cc4f
push 1
lea eax, [ebp - 0x828]
push eax
mov esi, 0x1013264
push esi
push dword [ebp - 0x1038]
call fcn.0101de16
lea eax, [ebp - 0x828]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x1034]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop esi
call fcn.0103d24a
leave
ret 4
Function at 0x102d125
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1130
call fcn.0103d5b9
mov eax, dword [0x10723e4]
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x624], bx
mov ecx, edx
lea edi, [ebp - 0x622]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x41c], bx
mov ecx, edx
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xc], bx
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x214], bx
mov ecx, edx
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x112c], esi
mov esi, dword [esi + 8]
push eax
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 0x1128], 0x104
call fcn.0101e3a2
test eax, eax
je 0x102d208
lea eax, [ebp - 0x1124]
push eax
call fcn.0102cadb
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.0101df76
xor edi, edi
inc edi
cmp dword [0x10733a0], ebx
jne 0x102d243
push dword [ebp - 0x112c]
call fcn.0102dc6b
test eax, eax
je 0x102d20f
xor eax, eax
jmp 0x102d2ef
lea eax, [ebp - 0x1128]
push eax
lea eax, [ebp - 0x82c]
push eax
push dword [esi + 0x28]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x102d243
push edi
lea eax, [ebp - 0x82c]
push eax
push 0x10133e8
lea eax, [ebp - 0x1124]
push eax
call fcn.0101de16
mov eax, dword [ebp - 0x1124]
mov dword [esi + 0x64], eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x102d27b
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [0x10733a0], ebx
jne 0x102d2ed
push esi
call fcn.0102cdd8
cmp dword [0x10733a0], ebx
jne 0x102d2ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102d2d9
lea eax, [ebp - 0x1130]
push eax
push 0x8f4
lea eax, [ebp - 0x1120]
push eax
push 6
push 0xffffffffffffffff
push ebx
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x102d2d9
push edi
push edi
push dword [ebp - 0x830]
push dword [esi + 0x28]
call fcn.0103e6ca
cmp dword [0x10733a0], ebx
jne 0x102d2ed
push edi
push dword [ebp - 0x112c]
call fcn.0101e30a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103d24a
leave
ret 4
Function at 0x102d3d9
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x28]
call fcn.01026c7c
test eax, eax
je 0x102d3f2
xor eax, eax
jmp 0x102d441
push edi
xor edi, edi
cmp dword [0x1073398], edi
jne 0x102d424
push 0x1073398
push edi
push edi
push edi
push edi
push edi
push edi
push 0x222
push 0x20
push 2
push 0x10722e8
call dword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
test eax, eax
jge 0x102d424
xor eax, eax
jmp 0x102d440
lea eax, [ebp + 8]
push eax
push dword [0x1073398]
push dword [esi + 0x28]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x102d43d
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x102d90a
Capabilities:
Get domain information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
and dword [ebx], 0
push esi
mov esi, dword [ebp + 0xc]
and dword [esi], 0
lea eax, [ebp + 8]
push eax
push 1
push 0
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
jne 0x102d96f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test eax, eax
je 0x102d961
cmp eax, 2
je 0x102d961
cmp eax, 4
je 0x102d967
cmp eax, 5
je 0x102d967
test byte [edx + 7], 1
je 0x102d959
lea eax, [edx + 0x14]
push eax
call fcn.0102d8bd
test eax, eax
je 0x102d967
mov dword [ebx], 1
jmp 0x102d967
mov dword [esi], 1
push edx
call sub.NETAPI32.dll_DsRoleFreeMemory
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102d975
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
cmp dword [ebp + 8], 1
mov dword [ebp - 4], 0x4b
jne 0x102d994
mov dword [ebp - 4], pe_nt_image_headers32
mov eax, dword [ebp - 4]
push ebx
push esi
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x102d9b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x102da33
push edi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x102da21
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
cmp ebx, 0x7a
je 0x102d9fb
cmp ebx, 0xea
je 0x102d9fb
cmp ebx, 0x534
je 0x102da29
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
ja 0x102da29
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102da10
mov eax, dword [ebp - 4]
push 2
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x102da25
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x102d9cc
xor ebx, ebx
jmp 0x102da32
call edi
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebx
leave
ret 4