joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77cf6c46
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x77cf7028
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x24], eax
je 0x77cf6dec
push 0x77cf7010
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x28], eax
je 0x77cf6dec
push 0x77cf6ff4
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
je 0x77cf6dec
push 0x77cf6fd8
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x30], eax
je 0x77cf6dec
push 0x77cf6fc4
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x34], eax
je 0x77cf6dec
push 0x77cf6fa8
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x77cf6dec
push 0x77cf6f88
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x77cf6dec
push 0x77cf6f6c
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x38], eax
je 0x77cf6dec
push 0x77cf6f54
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x3c], eax
je 0x77cf6dec
push 0x77cf6f30
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x40], eax
je 0x77cf6dec
push 0x77cf6f18
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x77cf6dec
push 0x77cf6efc
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x77cf6dec
test byte [esi + 0xc], 2
je 0x77cf6de4
push 0x77cf6edc
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x44], eax
je 0x77cf6dec
push 0x77cf6ebc
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x48], eax
je 0x77cf6dec
push 0x77cf6e9c
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x4c], eax
je 0x77cf6dec
push 0x77cf6e7c
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x50], eax
je 0x77cf6dec
push 0x77cf6e60
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x54], eax
je 0x77cf6dec
push 0x77cf6e40
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x58], eax
je 0x77cf6dec
push 0x77cf6e20
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x5c], eax
je 0x77cf6dec
push 0x77cf6df8
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x60], eax
je 0x77cf6dec
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
ret 4
Function at 0x77cf7302
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx esi, word [ebx]
push edi
lea ecx, [esi + 2]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x77cf7333
push 8
pop esi
jmp 0x77cf73a4
push esi
add ebx, 2
push ebx
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push eax
shr esi, 1
and word [edi + esi*2], 0
push edi
call fcn.77cf9064
mov esi, eax
test esi, esi
jne 0x77cf738f
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, 2
cmp eax, ecx
jae 0x77cf736b
push 0x7a
pop esi
jmp 0x77cf738f
mov ebx, dword [ebp + 0xc]
add eax, 0xfffffffe
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 2]
push eax
push edi
call fcn.77cf90e9
mov esi, eax
test esi, esi
jne 0x77cf738f
mov ax, word [ebp + 8]
mov word [ebx], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x77cf7a0f
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0x10
push 0x77cf7bb0
call fcn.77cc73d0
call dword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
test al, al
je 0x77cf7a38
mov esi, 0x42b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x77cf7ba8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x77cf7b9d
cmp dword [ebp + 0x18], 0
je 0x77cf7b9d
and dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77cf7a54
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
mov edi, dword [ebp + 0x14]
lea ebx, [ebx + edi + 0x49]
mov eax, dword fs:[0x18]
push ebx
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0x14], esi
test esi, esi
jne 0x77cf7aa3
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
jmp 0x77cf7ba7
push 0x40
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [esi + 0x2c], 2
mov eax, dword [ebp + 8]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi], ebx
and dword [esi + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], 0x40
lea eax, [esi + 0x40]
mov ecx, dword [ebp - 0x1c]
mov word [eax], cx
inc eax
inc eax
mov edx, dword [esi + 0x30]
lea edx, [edx + ecx + 9]
and edx, 0xfffffff8
mov dword [esi + 0x38], edx
mov dword [ebp - 4], 1
push ecx
push dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
push edi
push dword [ebp + 0x18]
mov eax, dword [esi + 0x38]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push ebx
push esi
push 0x228008
push 0
call fcn.77ca0e1f
mov edi, eax
push esi
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x77cf7ba8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
pop eax
call fcn.77cc73b0
ret 0x14
Function at 0x77cf7bdd
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0x10
push 0x77cf7d80
call fcn.77cc73d0
call dword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
test al, al
je 0x77cf7c06
mov esi, 0x42b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x77cf7d78
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x77cf7d6d
cmp dword [ebp + 0x1c], 0
je 0x77cf7d6d
and dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77cf7c22
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
mov edi, dword [ebp + 0x18]
lea ebx, [ebx + edi + 0x4d]
mov eax, dword fs:[0x18]
push ebx
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0x18], esi
test esi, esi
jne 0x77cf7c71
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
jmp 0x77cf7d77
push 0x44
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [esi + 0x2c], 4
mov eax, dword [ebp + 8]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi], ebx
and dword [esi + 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x44
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + 0x4d]
and eax, 0xfffffff8
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x44]
mov word [eax], cx
inc eax
inc eax
mov dword [ebp - 4], 1
push ecx
push dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
push edi
push dword [ebp + 0x1c]
mov eax, dword [esi + 0x3c]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push ebx
push esi
push 0x22800c
push 0
call fcn.77ca0e1f
mov edi, eax
push esi
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x77cf7d78
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
pop eax
call fcn.77cc73b0
ret 0x18
Function at 0x77cfe0bf
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push 0x28
push 0x77cfe2d0
call fcn.77cc73d0
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x19], 1
cmp byte [ebp + 8], 1
jne 0x77cfe0e4
xor eax, eax
call fcn.77cc73b0
ret 8
mov dword [ebp - 0x24], 0xa00000
push 4
push 0x2000
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
mov edi, dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
call edi
cmp eax, esi
jl 0x77cfe126
mov dword [ebp - 0x24], 0x10000
push 4
push 0x1000
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call edi
jmp 0x77cfe129
mov dword [ebp - 0x20], esi
cmp eax, esi
jge 0x77cfe139
mov dword [ebp + 8], 0xc0000017
jmp 0x77cfe297
mov esi, 0x10000
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
jmp 0x77cfe176
cmp esi, dword [ebp - 0x28]
jae 0x77cfe14e
mov esi, dword [ebp - 0x28]
add esi, 0x1fff
and esi, 0xfffff000
mov dword [ebp - 0x24], esi
push 4
push 0x1000
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call edi
test eax, eax
jl 0x77cfe12d
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x20]
push 5
call ebx
cmp eax, 0xc0000004
mov dword [ebp + 8], eax
je 0x77cfe146
test eax, eax
jl 0x77cfe297
push 2
call sym.ADVAPI32.dll_ImpersonateSelf
test eax, eax
jne 0x77cfe1ab
mov dword [ebp + 8], 0xc000010d
jmp 0x77cfe297
lea eax, [ebp - 0x19]
push eax
push 1
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov dword [ebp + 8], eax
test eax, eax
jl 0x77cfe292
and dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
mov edi, dword [esi + 0x44]
push 0
push 0
call dword [sym.imp.ntdll.dll_RtlCreateQueryDebugBuffer]
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x77cfe1ef
mov dword [ebp + 8], 0xe
jmp 0x77cfe26a
push ebx
push 0x80000204
push edi
call dword [sym.imp.ntdll.dll_RtlQueryProcessDebugInformation]
test eax, eax
jge 0x77cfe20c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp + 8], eax
jmp 0x77cfe26a
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x77cfe221
push eax
push edi
push dword [ebp + 0xc]
call fcn.77cfdfc4
mov dword [ebp - 4], 0xfffffffe
jmp 0x77cfe26a
cmp dword [ebp - 0x20], 0
je 0x77cfe277
push ebx
call dword [sym.imp.ntdll.dll_RtlDestroyQueryDebugBuffer]
mov esi, dword [esi]
test esi, esi
jne 0x77cfe2be
cmp byte [ebp - 0x19], 0
jne 0x77cfe292
lea eax, [ebp - 0x19]
push eax
push 1
push esi
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call sym.ADVAPI32.dll_RevertToSelf
cmp dword [ebp - 0x20], 0
je 0x77cfe2b6
and dword [ebp - 0x24], 0
push 0x8000
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, dword [ebp + 8]
jmp 0x77cfe0dc
add dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
lea esi, [eax + ecx]
jmp 0x77cfe1cd
Function at 0x77cfe2f1
Capabilities:
Access peb ldr_data
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add edi, 0xc
push edi
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x77cfe32f
mov eax, 0xc0000017
jmp 0x77cfe3ac
push ebx
mov ebx, dword [ebp + 0x18]
push ebx
push edi
push esi
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
mov dword [ebp + 0xc], eax
jl 0x77cfe393
push dword [esi + 8]
mov edi, dword [ebp + 0x14]
lea eax, [esi + 0xc]
push eax
push edi
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x77cfe393
mov eax, dword [esi + 8]
lea ecx, [eax + 2]
cmp ecx, dword [ebp + 0x10]
jbe 0x77cfe37b
add eax, 0xfffffffe
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov byte [edi + eax], 0
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov byte [edi + eax], 0
mov eax, dword [esi + 8]
inc eax
inc eax
mov dword [ebx], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
leave
ret 0x14

Function at 0x77cfe3b7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 8]
push eax
push edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
push edi
jmp 0x77cfe424
cmp dword [ebp - 4], 0xc0000004
jne 0x77cfe464
test ebx, ebx
je 0x77cfe3fe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov edi, dword [ebp - 8]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x77cfe487
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x49
call esi
test eax, eax
mov dword [ebp - 4], eax
jl 0x77cfe3dc
test edi, edi
jbe 0x77cfe45c
push 0x18
xor edx, edx
lea eax, [edi - 1]
pop esi
div esi
lea ecx, [ebx + 8]
inc eax
cmp dword [ecx - 4], 0
jne 0x77cfe456
mov edx, dword [ecx - 8]
test edx, edx
jbe 0x77cfe456
cmp byte [ecx], 1
jne 0x77cfe456
or dword [ebp - 0xc], edx
add ecx, 0x18
dec eax
jne 0x77cfe441
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test ebx, ebx
je 0x77cfe47d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
mov dword [ebp - 4], 0xc0000017
jmp 0x77cfe464
Function at 0x77d0012e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x44
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
push 0x77ce0c58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x77d0028d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x77d00438
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x77d0027f
push 0x77d00418
push dword [esi]
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x77d0027f
push 0x77d00400
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x77d0027f
push 0x77d003dc
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x77d0027f
push 0x77d003bc
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x77d0027f
push 0x77d003a0
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x77d0027f
push 0x77d00384
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x77d0027f
push 0x77d00360
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x77d0027f
push 0x77d00344
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x28], eax
je 0x77d0027f
push 0x77d00328
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
je 0x77d0027f
push 0x77d00310
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x30], eax
je 0x77d0027f
push 0x77d002f4
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x34], eax
je 0x77d0027f
push 0x77d002dc
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x38], eax
je 0x77d0027f
push 0x77d002c4
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x3c], eax
je 0x77d0027f
push 0x77d002ac
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x40], eax
je 0x77d0027f
push 0x77d00294
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x77d00289
push esi
call fcn.77cfeafa
xor eax, eax
jmp 0x77d0028c
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x77d0060e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword fs:[0x18]
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov eax, 0x20e
push edi
mov dword [ebp - 4], eax
push eax
mov eax, dword [ecx + 0x30]
jmp 0x77d0069a
mov edx, dword [ebp + 0x1c]
push 7
pop ecx
xor eax, eax
push edx
mov dword [ebx], 6
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0x10]
mov dword [edx], 0x1c
push dword [ebp + 0xc]
call dword [eax + 0x20]
test eax, eax
jne 0x77d006ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x77d00700
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [ebp - 8]
push ebx
push 0
push dword [eax + 0x18]
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 8
push dword [eax + 0x18]
call esi
mov ebx, eax
test ebx, ebx
jne 0x77d00633
push 0xe
pop edi
jmp 0x77d00700
lea eax, [ebx + 4]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x77d006b2
mov edi, dword [ebp + 0x18]
sub eax, ecx
mov ecx, dword fs:[0x18]
sar eax, 1
mov dword [edi], eax
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx + 0x30]
push 8
push dword [eax + 0x18]
call esi
test eax, eax
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
je 0x77d006a7
mov ecx, dword [edi]
add ecx, ecx
push ecx
lea ecx, [ebx + 4]
push ecx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [edi]
mov ecx, dword [esi]
add esp, 0xc
xor edi, edi
mov word [ecx + eax*2], di
test ebx, ebx
je 0x77d00719
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x77d0124f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
push edi
mov esi, 0x104
push 0x208
jmp 0x77d0129e
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
cmp edi, esi
jbe 0x77d012bd
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea esi, [edi + 1]
lea ecx, [esi + esi]
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call ebx
test eax, eax
mov dword [ebp - 8], eax
jne 0x77d01270
push 0xe
pop esi
jmp 0x77d013e3
test edi, edi
jne 0x77d012ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x77d013e3
mov eax, dword [ebp - 8]
jmp 0x77d013b7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x77d0139d
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.77d00f0a
test eax, eax
jne 0x77d0137c
mov eax, dword [ebp - 4]
test eax, eax
je 0x77d0139d
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
cmp eax, 0xffff
jae 0x77d0140d
lea edi, [eax + 0x20]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 8
push dword [eax + 0x18]
call ebx
mov esi, eax
test esi, esi
je 0x77d01409
mov eax, dword [ebp - 0x10]
mov word [esi + 6], 0xb0c
push dword [eax]
lea eax, [esi + 0x20]
push dword [ebp - 4]
push eax
call sub.ntdll.dll_memcpy
movzx eax, word [ebp + 8]
add esp, 0xc
push esi
add edi, 0xffffffe0
push edi
push 0x40000004
push eax
call dword [sym.imp.ntdll.dll_NtTraceEvent]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], 0
je 0x77d0139d
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebp - 4], 0
mov esi, dword [ebp - 0xc]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77d013a5
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
cmp word [eax], 0
mov dword [ebp - 0xc], eax
jne 0x77d012d6
xor esi, esi
cmp dword [ebp - 4], 0
je 0x77d013e3
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 8], 0
je 0x77d01400
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
push 0xe
jmp 0x77d0140f
push 8
pop esi
jmp 0x77d013c6
Function at 0x77d01e72
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x77d01f05
cmp word [edi], bx
je 0x77d01f05
cmp byte [0x77d284bc], bl
push esi
mov esi, 0x77d282b0
jne 0x77d01ec8
push 0x20a
push ebx
push esi
mov dword [ebp + 8], 0x105
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
setne al
cmp al, bl
mov byte [0x77d284bc], al
je 0x77d01f04
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push esi
push edi
call ebx
test eax, eax
je 0x77d01f04
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
mov dword [ebp + 8], eax
jbe 0x77d01efd
cmp word [edi], 0x5c
jne 0x77d01efd
cmp word [edi + 2], 0x5c
jne 0x77d01efd
push esi
add edi, 4
push edi
call ebx
test eax, eax
je 0x77d01f04
mov dword [ebp - 4], 0xd
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4