joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1028e6a
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.010270ab
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1028ec7
xor eax, eax
jmp 0x1028ef8
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.01027188
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x10290bf
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 0x1012d58
push 0x3e8
xor ebx, ebx
push 0xa
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0102906c
mov edi, eax
cmp edi, 1
jne 0x1029188
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 0x1029114
xor edi, edi
jmp 0x1029188
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 0x1029145
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 0x1029147
xor edi, edi
cmp edi, 1
jne 0x1029173
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.010200e4
add esp, 0x1c
test eax, eax
je 0x1029173
xor edi, edi
cmp esi, ebx
je 0x102917e
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 0x1029196
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x102919e
Capabilities:
Delete file
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x107342c]
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 0x102923f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1029225
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x440]
push 0x1012d68
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x440]
push eax
call fcn.010290bf
test eax, eax
je 0x1029225
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 0x10291cd
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0103e4d8
leave
ret

Function at 0x1029256
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 0x102924b
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x10296f2
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 0x1012e08
push 0x80000002
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1029777
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x1012de4
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 0x1029776
cmp dword [ebp - 0xc], esi
je 0x1029776
push 0x1012dcc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1029776
push 0x1012dbc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x102976f
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
leave
ret

Function at 0x1029a08
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 0x1029b21
mov eax, dword [ebp + 0x24]
cmp eax, ebx
push esi
jne 0x1029b04
cmp dword [ebp + 0x20], ebx
je 0x1029af9
test byte [ebp + 0x20], 1
je 0x1029a9c
mov eax, dword [0x1076b74]
cmp eax, 0x40
jae 0x1029a9c
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x1076b80], ecx
inc eax
mov dword [0x1076b74], eax
test byte [ebp + 0x20], 2
je 0x1029b09
push 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1029b09
push edi
call fcn.01032b06
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 0x1029ad5
mov dword [eax*4 + 0x1076b60], 1
push 8
push 0xffffffffffffffff
push esi
push 0x10298a1
push dword [ebp - 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlRegisterWait]
test eax, eax
jge 0x1029b09
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1029b09
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1029b09
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
cmp eax, ebx
pop esi
jne 0x1029b1c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1029b21
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 0x24
Function at 0x102a351
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0x1013340
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 0x102a445
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 0x102a39f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x102a41f
push 0x13
pop esi
lea eax, [ebp - 0xc]
push eax
push dword [0x1076ad0]
push dword [ebp - 4]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x102a437
cmp dword [ebp - 0xc], 0
je 0x102a3c3
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 0x102a3f2
cmp esi, 0xc0000061
jne 0x102a40c
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 0x102a428
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x102a443
mov al, byte [ebp - 8]
neg al
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
jmp 0x102a443
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x102aee1
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x107342c]
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 0x102af1f
mov eax, edi
jmp 0x102b076
mov eax, dword [esi + 0x4a8]
dec eax
dec eax
push ebx
je 0x102af3b
sub eax, 0x15
jne 0x102b069
lea ebx, [esi + 0x4ac]
jmp 0x102afa2
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 0x10133c4
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 0x102b069
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 0x102b069
and dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x102b069
mov esi, dword [esi + 0x4a8]
mov dword [ebp - 0x2b8], esi
cmp esi, dword [eax + 4]
jne 0x102b04e
mov edx, dword [eax + 0x10]
cmp edx, 0x3e
ja 0x102b04e
mov ecx, esi
dec ecx
dec ecx
je 0x102b03d
sub ecx, 0x15
jne 0x102b063
cmp edx, 0x1c
jb 0x102b04e
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 0x102b057
mov esi, dword [ebp - 0x2b8]
xor edi, edi
inc edi
jmp 0x102b04e
cmp edx, 0x10
jb 0x102b04e
mov ecx, dword [eax + 0x18]
mov edx, dword [ebx]
add ecx, 4
cmp edx, dword [ecx]
je 0x102b063
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x102b004
jmp 0x102b069
mov dword [ebp - 0x298], 1
jmp 0x102b069
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.0103e4d8
leave
ret 4

Function at 0x102b1d3
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 0x1011308
xor esi, esi
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102b234
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10133dc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102b22b
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 0x102b2da
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 0x1011308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102b339
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x101340c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102b330
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 0x102ba1f
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 0x102ba8d
xor esi, esi
cmp dword [0x1074a18], esi
jne 0x102ba5c
push ebx
push 0x1013494
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, esi
je 0x102ba5b
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 [0x1074420], edi
push 0x102b414
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x107441c], eax
jne 0x102bac0
call sub.WINSTA.dll__WinStationNotifyDisconnectPipe
mov dword [0x1074420], esi
jmp 0x102bacd
cmp dword [ebp + 0x10], 2
jne 0x102bac0
mov eax, dword [0x107441c]
xor esi, esi
cmp eax, esi
je 0x102bacd
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x102bac8
push dword [0x107441c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x107441c], esi
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
call sub.WINSTA.dll__WinStationNotifyDisconnectPipe
xor eax, eax
jmp 0x102bac2

Function at 0x102bd07
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 0x102bbd9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x1074430], eax
je 0x102bd31
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x102bd39
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 0x102bdfc
push 0x14
push 0x10134d4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x102bdf3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call ebx
test eax, eax
je 0x102bd91
cmp dword [ebp - 0x28], 4
jne 0x102bd91
mov dword [ebp - 8], edi
jmp 0x102bde9
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x102bde9
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 0x102bde9
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x102bde9
cmp dword [ebp - 0x28], 4
je 0x102bde2
cmp dword [ebp - 0x14], 0
je 0x102bddb
push dword [ebp - 0x14]
call edi
jmp 0x102bdb1
push 0x1f4
jmp 0x102bdd7
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 0x102cc3e
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 0x102c405
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x102cc66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x102d15e
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.0103e847
mov eax, dword [0x107342c]
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 0x102d1af
push 1
lea eax, [ebp - 0x24]
push eax
push 0x1011b58
push esi
call fcn.0101df76
lea eax, [ebp - 0x1034]
push eax
push 0x20019
push 0
push 0x10135d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d2de
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 0x10135b0
push dword [ebp - 0x1034]
mov dword [ebp - 0x1030], 0x802
call ebx
test eax, eax
mov esi, 0x401
jne 0x102d25a
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 0x102d25a
cmp eax, esi
jae 0x102d25a
push edi
push 1
lea eax, [ebp - 0x828]
push eax
mov edi, 0x1013594
push edi
push dword [ebp - 0x1038]
call fcn.0101df76
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 0x1013574
push dword [ebp - 0x1034]
mov dword [ebp - 0x1030], 0x802
call ebx
test eax, eax
pop ebx
jne 0x102d2d2
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 0x102d2d2
cmp eax, esi
jae 0x102d2d2
push 1
lea eax, [ebp - 0x828]
push eax
mov esi, 0x101354c
push esi
push dword [ebp - 0x1038]
call fcn.0101df76
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.0103e4d8
leave
ret 4
Function at 0x102d7a8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1130
call fcn.0103e847
mov eax, dword [0x107342c]
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.0101e522
test eax, eax
je 0x102d88b
lea eax, [ebp - 0x1124]
push eax
call fcn.0102d15e
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.0101e0f6
xor edi, edi
inc edi
cmp dword [0x1074464], ebx
jne 0x102d8c6
push dword [ebp - 0x112c]
call fcn.0102e2ee
test eax, eax
je 0x102d892
xor eax, eax
jmp 0x102d972
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 0x102d8c6
push edi
lea eax, [ebp - 0x82c]
push eax
push 0x10136d0
lea eax, [ebp - 0x1124]
push eax
call fcn.0101df76
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 0x102d8fe
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [0x1074464], ebx
jne 0x102d970
push esi
call fcn.0102d45b
cmp dword [0x1074464], ebx
jne 0x102d970
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102d95c
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 0x102d95c
push edi
push edi
push dword [ebp - 0x830]
push dword [esi + 0x28]
call fcn.0103f958
cmp dword [0x1074464], ebx
jne 0x102d970
push edi
push dword [ebp - 0x112c]
call fcn.0101e48a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x102da5c
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.01027232
test eax, eax
je 0x102da75
xor eax, eax
jmp 0x102dac4
push edi
xor edi, edi
cmp dword [0x107445c], edi
jne 0x102daa7
push 0x107445c
push edi
push edi
push edi
push edi
push edi
push edi
push 0x222
push 0x20
push 2
push 0x1073330
call dword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
test eax, eax
jge 0x102daa7
xor eax, eax
jmp 0x102dac3
lea eax, [ebp + 8]
push eax
push dword [0x107445c]
push dword [esi + 0x28]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x102dac0
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x102df8d
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 0x102dff2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test eax, eax
je 0x102dfe4
cmp eax, 2
je 0x102dfe4
cmp eax, 4
je 0x102dfea
cmp eax, 5
je 0x102dfea
test byte [edx + 7], 1
je 0x102dfdc
lea eax, [edx + 0x14]
push eax
call fcn.0102df40
test eax, eax
je 0x102dfea
mov dword [ebx], 1
jmp 0x102dfea
mov dword [esi], 1
push edx
call sub.NETAPI32.dll_DsRoleFreeMemory
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102dff8
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 0x102e017
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 0x102e037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x102e0b6
push edi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x102e0a4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
cmp ebx, 0x7a
je 0x102e07e
cmp ebx, 0xea
je 0x102e07e
cmp ebx, 0x534
je 0x102e0ac
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
ja 0x102e0ac
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102e093
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 0x102e0a8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x102e04f
xor ebx, ebx
jmp 0x102e0b5
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