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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
mov eax, edi
mov dword [ebp - 0x210], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x77d15def
and dword [ebp - 0x218], 0
sub eax, ecx
sar eax, 1
mov ebx, eax
push 0x77d15fbc
lea eax, [ebp - 0x224]
push eax
lea edi, [edi + ebx*2]
mov dword [ebp - 0x21c], 2
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, dword [ebp + 0x18]
lea eax, [ebx + 0xf]
cmp eax, esi
jb 0x77d15e36
xor eax, eax
jmp 0x77d15f7a
push 0x77d15f9c
push dword [ebp + 0x10]
push dword [ebp - 0x214]
call fcn.77cac425
push dword [ebp - 0x20c]
call fcn.77d16de6
test eax, eax
mov dword [ebp - 0x208], eax
jne 0x77d15efa
push 0x77d15f8c
push dword [ebp + 0x10]
push dword [ebp - 0x214]
call fcn.77cac425
push dword [ebp - 0x20c]
call fcn.77d16de6
test eax, eax
mov dword [ebp - 0x208], eax
jne 0x77d15ef3
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x20c]
and word [eax], 0
call fcn.77d16de6
mov esi, eax
test esi, esi
mov dword [ebp - 0x208], esi
je 0x77d15f61
lea eax, [ebp - 0x228]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 2
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x77d15ee2
push esi
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77d15e2f
push dword [ebp - 0x210]
and word [edi], 0
call fcn.77d16de6
jmp 0x77d15f17
push 0x77d15f8c
jmp 0x77d15eff
push 0x77d15f9c
sub esi, ebx
push esi
push edi
call fcn.77cac425
push dword [ebp - 0x210]
call fcn.77d16de6
and word [edi], 0
mov ebx, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x208]
call fcn.77cd9344
push dword [ebp - 0x208]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
mov edi, eax
call esi
test edi, edi
jl 0x77d15e2f
test ebx, ebx
je 0x77d15f61
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.77cd9344
push ebx
mov edi, eax
call esi
test edi, edi
jl 0x77d15e2f
test byte [ebp - 0x218], 2
jne 0x77d15f77
test byte [ebp - 0x21c], 2
je 0x77d15e2f
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x14
Function at 0x77d18d4a
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x39
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0xa
call esi
mov edi, 0xc0000004
jmp 0x77d18dd6
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x10]
dec dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 8], ebx
je 0x77d18dea
add dword [ebp - 4], 0x2000
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x77d18df3
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 0x39
call esi
cmp eax, edi
je 0x77d18d83
cmp eax, ebx
jge 0x77d18dfc
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0xc], eax
jmp 0x77d18e04
mov dword [ebp - 0xc], 0x490
jmp 0x77d18e09
mov dword [ebp - 0xc], 8
jmp 0x77d18e09
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 0xc], ebx
je 0x77d18e1f
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x77d197de
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0xa
pop edi
xor ebx, ebx
push 0x64
mov dword [ebp - 4], ebx
call esi
cmp dword [ebp + 0xc], ebx
jne 0x77d19817
lea eax, [ebp - 4]
push eax
call fcn.77d18d4a
test eax, eax
je 0x77d19811
xor eax, eax
jmp 0x77d19867
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
dec edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.77d18e2e
test eax, eax
jne 0x77d19848
cmp dword [ebp - 0x30], 5
je 0x77d19845
push 0x1f4
call esi
test edi, edi
je 0x77d19848
jmp 0x77d19817
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], 0
je 0x77d19865
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]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x77d19873
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [0x77d34198], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x77d19898
xor eax, eax
inc eax
jmp 0x77d199e4
cmp dword [0x77d34678], edi
push ebx
jne 0x77d198cc
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, edi
je 0x77d199e0
push edi
push ebx
push 0x77d34678
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x77d198cc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4e20
push dword [0x77d34678]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x77d199e0
cmp dword [0x77d34198], 0xffffffff
jne 0x77d199a1
push 0x3b
pop ecx
push 8
mov eax, 0x77d344a0
pop ebx
mov dword [eax + 4], eax
mov dword [eax], eax
add eax, ebx
dec ecx
jne 0x77d19900
push 0x77d34498
call sub.ntdll.dll_RtlInitializeSRWLock
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 4
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, edi
je 0x77d199a1
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi], eax
je 0x77d199a1
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x77d18e8b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x77d199a1
push edi
push dword [ebp - 0xc]
call fcn.77d197de
test eax, eax
je 0x77d199a1
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x15
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
jl 0x77d19992
cmp dword [ebp - 0x10], ebx
jne 0x77d19992
cmp word [ebp - 0x14], di
je 0x77d19992
movzx eax, word [ebp - 0x14]
mov dword [0x77d34198], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 8], 1
push dword [0x77d34678]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 4], edi
je 0x77d199bb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x77d199e0
mov eax, dword [esi]
cmp eax, edi
je 0x77d199cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x77d199ed
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
jge 0x77d19a18
mov eax, 0x490
jmp 0x77d19b0b
cmp dword [ebp - 4], 8
je 0x77d19a26
push 0x18
pop eax
jmp 0x77d19b0b
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryObject]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push 1
push dword [ebp + 8]
call edi
cmp eax, 0xc0000004
jne 0x77d19aad
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x77d19aad
push ebx
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 8]
call edi
test eax, eax
jl 0x77d19a99
movzx eax, word [esi]
mov edi, dword [ebp + 0xc]
shr eax, 1
push eax
push dword [esi + 4]
add edi, 8
push 0x80
push edi
call fcn.77d1975e
cmp eax, ebx
jge 0x77d19a99
cmp eax, 0x8007007a
je 0x77d19a99
mov word [edi], bx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esi + 4], 6
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
jne 0x77d19b00
lea eax, [ebp - 4]
push eax
push 8
pop edi
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
cmp eax, ebx
jge 0x77d19aee
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x77d19b08
cmp dword [ebp - 4], edi
je 0x77d19af8
push 0x18
pop eax
jmp 0x77d19b08
cmp byte [ebp - 0xf], bl
je 0x77d19b00
mov dword [esi + 4], edi
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x77d1a670
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], esi
je 0x77d1a789
test dword [ebp + 0x10], 0xfffffff8
jne 0x77d1a789
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x77d1a789
mov eax, dword [edi]
cmp eax, esi
je 0x77d1a789
cmp eax, 0x10
ja 0x77d1a789
cmp dword [ebp + 0x1c], esi
je 0x77d1a789
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x77d1a789
push dword [ebp + 8]
call fcn.77d18ab0
test eax, eax
mov dword [ebp - 4], eax
jne 0x77d1a6dd
push 0x57
pop edi
jmp 0x77d1a7ad
cmp dword [eax + 0x10], 1
jne 0x77d1a774
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x1c
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x77d1a70b
push 8
pop edi
jmp 0x77d1a794
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x1c]
push 0x77cef578
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x77d1a749
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77d1a785
push ebx
push ebx
push esi
push 0x77d1a506
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x77d1a766
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x77d1a703
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x3e5
jmp 0x77d1a7bf
push ebx
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.77d1a10b
mov edi, eax
jmp 0x77d1a78c
push 0x57
pop edi
cmp edi, 0x3e5
je 0x77d1a7bb
test esi, esi
je 0x77d1a7ad
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 0x77d1a7bb
push dword [ebp - 4]
call fcn.77d18bbd
test edi, edi
je 0x77d1a7ca
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x77d1a7cd
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x77d1b0b5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 8]
xor edi, edi
push 0x77d1b20c
mov word [ebp - 0x198], di
mov word [ebp - 0x196], di
mov dword [ebp - 0x194], edi
call sub.ntdll.dll_DbgPrint
pop ecx
lea eax, [ebp - 0x190]
pop ecx
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x198]
push eax
push dword [esi + 8]
mov dword [ebp - 0x1a0], 0x18a
call fcn.77cd6d9f
cmp eax, edi
jge 0x77d1b12c
push eax
push 0x77d1b1d8
jmp 0x77d1b13b
mov eax, dword [ebp - 0x19c]
add eax, 4
push eax
push 0x77d1b1c4
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
lea eax, [ebp - 0x1ac]
push eax
call fcn.77cd667e
push dword [esi + 0xc]
push 0x77d1b1b8
call sub.ntdll.dll_DbgPrint
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
jbe 0x77d1b17c
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
push edi
push 0x77d1b19c
call sub.ntdll.dll_DbgPrint
add esp, 0xc
inc edi
cmp edi, dword [esi + 0xc]
jb 0x77d1b162
push 0x77d1b198
call sub.ntdll.dll_DbgPrint
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret 4

Function at 0x77d1b66f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp ecx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov eax, 0xc0000034
je 0x77d1b698
mov dword [ecx], edi
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x77d1b6a1
mov dword [ecx], edi
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x77d1b6aa
mov dword [ecx], edi
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x77d1b6b3
mov dword [ecx], edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x77d1b6bc
mov dword [ecx], edi
cmp dword [ebp + 8], edi
mov esi, dword [sym.imp.ntdll.dll_NtQueryKey]
je 0x77d1b6eb
lea eax, [ebp + 8]
push eax
push 0x28
lea eax, [ebp - 0x38]
push eax
push 4
push dword [ebp + 8]
call esi
cmp eax, edi
jl 0x77d1b752
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], edi
je 0x77d1b719
lea eax, [ebp + 8]
push eax
push 0x28
lea eax, [ebp - 0x38]
push eax
push 4
push dword [ebp + 0xc]
call esi
cmp eax, edi
jl 0x77d1b752
cmp dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
jbe 0x77d1b719
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x77d1b725
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x77d1b731
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x77d1b73a
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x77d1b746
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x77d1b752
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x77d1b75e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [ebx], 4
mov dword [ebp - 4], 0xc0000022
mov dword [ebp - 8], edi
je 0x77d1b8d3
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
je 0x77d1b8d3
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, edi
je 0x77d1b79e
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [esi], edi
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
mov ax, word [eax]
add ax, 0x80
mov word [ebp - 0xa], ax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0xa]
mov eax, dword [eax + 0x30]
push ecx
push edi
push dword [eax + 0x18]
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x77d1b7dc
mov eax, 0xc0000017
jmp 0x77d1b8d6
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.77cd726e
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x77d1b8b8
mov eax, dword [ebp - 0xa]
sub eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0x18]
add eax, 2
mov word [ebx + 2], ax
movzx eax, ax
push eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
call esi
cmp eax, edi
mov dword [ebx + 4], eax
jne 0x77d1b82c
mov dword [ebp - 4], 0xc0000017
jmp 0x77d1b8b8
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
movzx esi, di
inc esi
mov eax, 0xfffe
sub eax, edi
add word [ebp - 0xc], ax
inc esi
lea eax, [ebp - 0xc]
shr esi, 1
push eax
add esi, esi
add dword [ebp - 8], esi
push ebx
mov word [ebp - 0x14], di
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
sub dword [ebp - 8], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x2000000
push dword [ebp + 0xc]
xor esi, esi
add edi, 2
add word [ebp - 0xc], di
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x77d1b8b6
push dword [ebx + 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebx + 4], esi
xor edi, edi
cmp dword [ebp - 8], edi
je 0x77d1b8d3
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x77d1b8e2
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp word [esi], 0xe
push edi
jb 0x77d1ba0d
push 7
push dword [0x77d26188]
push dword [esi + 4]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77d1b920
cmp word [esi], 0xe
jbe 0x77d1b95c
mov eax, dword [esi + 4]
cmp word [eax + 0xe], 0x5c
je 0x77d1b95c
xor ebx, ebx
inc ebx
cmp word [esi], 0x20
jb 0x77d1ba0d
push 0x10
push dword [0x77d2618c]
push dword [esi + 4]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77d1ba0d
cmp word [esi], 0x20
jbe 0x77d1b95c
mov eax, dword [esi + 4]
cmp word [eax + 0x20], 0x5c
jne 0x77d1ba0d
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0x3e
push 0x77d3468c
push 3
push dword [eax]
call dword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jl 0x77d1ba0d
lea edi, [ebx + ebx]
movzx eax, word [edi + 0x77d1ba1c]
cmp dword [0x77d3468c], eax
jne 0x77d1ba0d
movzx eax, word [edi + 0x77d1ba18]
push eax
push dword [ebx*4 + 0x77d26270]
push 0x77d34690
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77d1ba0d
xor ebx, ebx
cmp dword [0x77d2b31c], ebx
jne 0x77d1b9cc
push 0x77d2b31c
push 0x2000000
push ebx
call fcn.77cbd613
test eax, eax
jne 0x77d1ba0d
movzx eax, word [esi]
movzx ecx, word [edi + 0x77d1ba20]
cmp ax, cx
ja 0x77d1b9e0
mov word [esi], bx
jmp 0x77d1b9fe
sub eax, ecx
mov word [esi], ax
mov ax, word [edi + 0x77d1ba20]
sub word [esi + 2], ax
movzx eax, word [edi + 0x77d1ba20]
shr eax, 1
add eax, eax
add dword [esi + 4], eax
mov eax, dword [0x77d2b31c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x77d1ba0f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x77d1bff5
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x77d1c152
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x77d1c152
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x77d1c152
movzx ecx, word [eax]
test cl, 1
jne 0x77d1c152
cmp cx, bx
jbe 0x77d1c036
add ecx, 0xfffffffe
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U]
test al, al
je 0x77d1c152
mov eax, dword [ebp - 0x2c]
cmp ax, bx
push esi
push edi
mov edi, dword [ebp - 8]
je 0x77d1c066
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
jmp 0x77d1c069
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
push 0x20
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], eax
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x80100000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, ebx
jl 0x77d1c147
test byte [ebp + 8], 2
mov edi, dword [sym.imp.ntdll.dll_NtClose]
je 0x77d1c113
lea eax, [ebp - 4]
push eax
push 0x2000000
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov word [ebp - 0x14], bx
mov word [ebp - 0x12], bx
mov dword [ebp - 0x10], ebx
call fcn.77cd6aa4
mov esi, eax
cmp esi, ebx
jl 0x77d1c124
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtRestoreKey]
push dword [ebp - 4]
mov esi, eax
call edi
jmp 0x77d1c124
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtRestoreKey]
mov esi, eax
push dword [ebp + 0xc]
call edi
cmp esi, ebx
jl 0x77d1c147
test byte [ebp + 0x10], 1
jne 0x77d1c147
mov eax, dword [0x77d34728]
cmp eax, ebx
je 0x77d1c147
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
jmp 0x77d1c155
push 0x57
pop eax
pop ebx
leave
ret 0xc