joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77d02bc1
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 0x10]
not al
and al, 1
push ebx
mov byte [ebp + 0x13], al
mov eax, dword [0x77d1a62c]
push esi
push edi
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x77d1a630
xor ebx, ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
call dword [ebp - 0x10]
mov esi, eax
cmp esi, ebx
jne 0x77d02d1b
cmp dword [ebp - 0x10], 0x77d1628e
je 0x77d02c3d
push dword [0x77d1a120]
push dword [ebp - 8]
call dword [sym.imp.RPCRT4.dll_RpcEpResolveBinding]
mov esi, eax
cmp esi, ebx
jne 0x77d02d52
push ebx
push ebx
push 0xa
push 2
push 0x77ce1010
push dword [ebp - 8]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoA]
mov esi, eax
jmp 0x77d02cd7
cmp byte [ebp - 1], bl
je 0x77d02cd7
cmp word [edi], 0x5c
mov dword [ebp - 0xc], edi
jne 0x77d02c5c
cmp word [edi + 2], 0x5c
jne 0x77d02c5c
add edi, 4
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77d02c62
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0x77d02c93
mov edi, dword [ebp - 0xc]
jmp 0x77d02ca9
push 0x77ce1004
push esi
push edi
call fcn.77c9e1f9
push dword [ebp - 0xc]
push esi
push edi
call fcn.77d08a1a
push ebx
push ebx
push 9
push 6
push edi
push dword [ebp - 8]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoW]
cmp edi, dword [ebp - 0xc]
mov esi, eax
je 0x77d02cd4
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]
mov edi, dword [ebp + 8]
cmp esi, ebx
jne 0x77d02d52
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
call dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
cmp esi, ebx
je 0x77d02d48
cmp byte [ebp - 1], bl
je 0x77d02d48
cmp byte [ebp + 0x13], bl
je 0x77d02d48
lea eax, [ebp - 8]
push eax
push edi
mov byte [ebp - 1], bl
call dword [ebp - 0x10]
mov esi, eax
cmp esi, ebx
je 0x77d02c00
cmp esi, ebx
je 0x77d02d73
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add dword [ebp - 0x14], 4
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x77d02d73
cmp eax, ebx
jne 0x77d02beb
cmp esi, 0x6aa
je 0x77d02d6e
cmp esi, 0x6ab
je 0x77d02d6e
push 0x35
pop esi
jmp 0x77d02d73
cmp esi, 0x6ba
je 0x77d02d1b
jmp 0x77d02d73
lea eax, [ebp - 8]
push eax
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
cmp byte [ebp - 1], bl
je 0x77d02d17
cmp byte [ebp + 0x13], bl
je 0x77d02d17
mov byte [ebp - 1], bl
jmp 0x77d02beb
mov esi, 0x4ba
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x77d03231
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov ebx, 0x1800
push ebx
xor edi, edi
push edi
push dword [eax + 0x18]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x77d0326d
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push edi
push eax
call sub.ntdll.dll_memset
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push 0x202
push edi
push dword [eax + 0x18]
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x77d032b0
push 8
pop ebx
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, ebx
jmp 0x77d03266
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x77d032e1
cmp word [eax], di
je 0x77d032e1
push esi
push 0x2000000
push 8
push eax
push dword [ebp + 8]
call sym.ADVAPI32.dll_RegOpenKeyExW
mov ebx, eax
cmp ebx, edi
je 0x77d032e6
jmp 0x77d033d9
mov eax, dword [ebp + 8]
mov dword [esi], eax
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [esi]
call fcn.77d02dff
mov ebx, eax
cmp ebx, edi
jne 0x77d033d9
mov eax, esi
lea ecx, [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], ecx
mov dword [ebp + 8], eax
push edi
push edi
mov dword [ebp - 0x10], 0x100
mov eax, dword [esi + 8]
push edi
lea ecx, [eax + 1]
push edi
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
push eax
push dword [esi]
call sym.ADVAPI32.dll_RegEnumKeyExW
mov ebx, eax
cmp ebx, 0x103
jne 0x77d03366
cmp dword [ebp - 4], edi
jle 0x77d03354
push dword [esi]
call sym.ADVAPI32.dll_RegCloseKey
push dword [esi + 4]
call sym.ADVAPI32.dll_RegCloseKey
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
dec dword [ebp - 4]
sub dword [ebp + 8], 0xc
sub dword [ebp + 0x10], 0xc
sub esi, 0xc
xor ebx, ebx
jmp 0x77d033a2
cmp ebx, edi
jne 0x77d033af
cmp dword [ebp - 4], 0x1ff
jge 0x77d033ac
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push eax
mov word [eax + ecx*2], di
push dword [esi + 4]
push dword [esi]
call fcn.77d02dff
mov ebx, eax
cmp ebx, edi
jne 0x77d033af
inc dword [ebp - 4]
add dword [ebp + 8], 0xc
add esi, 0xc
add dword [ebp + 0x10], 0xc
cmp dword [ebp - 4], edi
jl 0x77d033d6
jmp 0x77d0330b
push 8
pop ebx
mov esi, dword [ebp - 4]
cmp esi, edi
jle 0x77d033d6
imul esi, esi, 0xc
add esi, dword [ebp - 8]
push dword [esi]
call sym.ADVAPI32.dll_RegCloseKey
push dword [esi + 4]
call sym.ADVAPI32.dll_RegCloseKey
dec dword [ebp - 4]
sub esi, 0xc
cmp dword [ebp - 4], edi
jg 0x77d033bc
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x77d033ec
cmp word [eax], di
je 0x77d033ec
push dword [esi]
call sym.ADVAPI32.dll_RegCloseKey
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77d03296
Function at 0x77d038e7
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x1c], 0
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x77d03920
mov eax, 0xc0000001
jmp 0x77d0398c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov edi, eax
test edi, edi
jl 0x77d0398c
mov eax, dword [ebp - 0x1c]
mov ecx, dword fs:[0x18]
add eax, 0x1a
mov word [esi + 2], ax
movzx eax, ax
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [esi + 4], eax
jne 0x77d03965
mov edi, 0xc000009a
jmp 0x77d03980
and word [esi], 0
push 0x77d0399c
push esi
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.77cc744e
leave
ret 4
Function at 0x77d08022
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push ebx
mov dword [ebp - 0xc], ebx
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0x18
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x77d08076
push 0x218
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x77d0807e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77d080a3
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0x18]
push edi
push dword [ebp - 0xc]
mov esi, ebx
mov dword [ebp - 4], 0x80
call dword [sym.imp.ntdll.dll_LdrQueryModuleServiceTags]
test eax, eax
je 0x77d080a8
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
jmp 0x77d080d7
cmp dword [ebp - 4], 0
jne 0x77d080b7
mov dword [ebp - 8], 0x103
jmp 0x77d080d7
push 0x77d07ff7
push 4
push dword [ebp - 4]
push edi
call sub.ntdll.dll_qsort
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x18]
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x77d080e6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x77d091c1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x77caf3e0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and dword [ebp - 0x1f8], 0
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 2
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
pop esi
jl 0x77d09254
push 9
lea eax, [ebp - 0x1f8]
push 0x77d09280
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77d0923a
xor eax, eax
inc eax
jmp 0x77d09256
push 0xc
lea eax, [ebp - 0x1f8]
push 0x77d09264
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x77d09235
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.77cc744e
leave
ret 4
Function at 0x77d0974b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x77d1a0c4]
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 0x77d09783
and dword [ebp - 0x218], 0
sub eax, ecx
sar eax, 1
mov ebx, eax
push 0x77d0995c
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 0x77d097ca
xor eax, eax
jmp 0x77d09918
push 0x77d0993c
push dword [ebp + 0x10]
push dword [ebp - 0x214]
call fcn.77c9e187
push 0
push dword [ebp - 0x20c]
call fcn.77d0a796
test eax, eax
mov dword [ebp - 0x208], eax
jne 0x77d09896
push 0x77d0992c
push dword [ebp + 0x10]
push dword [ebp - 0x214]
call fcn.77c9e187
push 0
push dword [ebp - 0x20c]
call fcn.77d0a796
test eax, eax
mov dword [ebp - 0x208], eax
jne 0x77d0988f
mov eax, dword [ebp - 0x214]
and word [eax], 0
push 0
push dword [ebp - 0x20c]
call fcn.77d0a796
mov esi, eax
test esi, esi
mov dword [ebp - 0x208], esi
je 0x77d098ff
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 0x77d0987c
push esi
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77d097c3
and word [edi], 0
push 0
push dword [ebp - 0x210]
call fcn.77d0a796
jmp 0x77d098b5
push 0x77d0992c
jmp 0x77d0989b
push 0x77d0993c
sub esi, ebx
push esi
push edi
call fcn.77c9e187
push 0
push dword [ebp - 0x210]
call fcn.77d0a796
and word [edi], 0
mov ebx, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x208]
call fcn.77ccb283
push dword [ebp - 0x208]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
mov edi, eax
call esi
test edi, edi
jl 0x77d097c3
test ebx, ebx
je 0x77d098ff
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.77ccb283
push ebx
mov edi, eax
call esi
test edi, edi
jl 0x77d097c3
test byte [ebp - 0x218], 2
jne 0x77d09915
test byte [ebp - 0x21c], 2
je 0x77d097c3
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x14
Function at 0x77d0c720
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 0x77d0c7ac
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 0x77d0c7c0
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 0x77d0c7c9
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 0x39
call esi
cmp eax, edi
je 0x77d0c759
cmp eax, ebx
jge 0x77d0c7d2
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0xc], eax
jmp 0x77d0c7da
mov dword [ebp - 0xc], 0x490
jmp 0x77d0c7df
mov dword [ebp - 0xc], 8
jmp 0x77d0c7df
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 0xc], ebx
je 0x77d0c7f5
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 0x77d0d1b2
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 0x77d0d1eb
lea eax, [ebp - 4]
push eax
call fcn.77d0c720
test eax, eax
je 0x77d0d1e5
xor eax, eax
jmp 0x77d0d23b
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.77d0c804
test eax, eax
jne 0x77d0d21c
cmp dword [ebp - 0x30], 5
je 0x77d0d219
push 0x1f4
call esi
test edi, edi
je 0x77d0d21c
jmp 0x77d0d1eb
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], 0
je 0x77d0d239
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 0x77d0d247
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 [0x77d281c8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x77d0d26c
xor eax, eax
inc eax
jmp 0x77d0d3b9
cmp dword [0x77d286b0], edi
push ebx
jne 0x77d0d2a0
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, edi
je 0x77d0d3b5
push edi
push ebx
push 0x77d286b0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x77d0d2a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4e20
push dword [0x77d286b0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x77d0d3b5
cmp dword [0x77d281c8], 0xffffffff
jne 0x77d0d376
push 0x3b
pop ecx
push 8
mov eax, 0x77d284d8
pop ebx
mov dword [eax + 4], eax
mov dword [eax], eax
add eax, ebx
dec ecx
jne 0x77d0d2d4
push 0x77d284d0
call dword [sym.imp.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 0x77d0d376
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi], eax
je 0x77d0d376
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x77d0c861
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x77d0d376
push edi
push dword [ebp - 0xc]
call fcn.77d0d1b2
test eax, eax
je 0x77d0d376
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 0x77d0d367
cmp dword [ebp - 0x10], ebx
jne 0x77d0d367
cmp word [ebp - 0x14], di
je 0x77d0d367
movzx eax, word [ebp - 0x14]
mov dword [0x77d281c8], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 8], 1
push dword [0x77d286b0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 4], edi
je 0x77d0d390
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x77d0d3b5
mov eax, dword [esi]
cmp eax, edi
je 0x77d0d3a1
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 0x77d0d3c2
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 0x77d0d3ed
mov eax, 0x490
jmp 0x77d0d4e0
cmp dword [ebp - 4], 8
je 0x77d0d3fb
push 0x18
pop eax
jmp 0x77d0d4e0
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 0x77d0d482
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 0x77d0d482
push ebx
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 8]
call edi
test eax, eax
jl 0x77d0d46e
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.77d0d132
cmp eax, ebx
jge 0x77d0d46e
cmp eax, 0x8007007a
je 0x77d0d46e
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 0x77d0d4d5
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 0x77d0d4c3
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x77d0d4dd
cmp dword [ebp - 4], edi
je 0x77d0d4cd
push 0x18
pop eax
jmp 0x77d0d4dd
cmp byte [ebp - 0xf], bl
je 0x77d0d4d5
mov dword [esi + 4], edi
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x77d0e044
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 0x77d0e15d
test dword [ebp + 0x10], 0xfffffff8
jne 0x77d0e15d
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x77d0e15d
mov eax, dword [edi]
cmp eax, esi
je 0x77d0e15d
cmp eax, 0x10
ja 0x77d0e15d
cmp dword [ebp + 0x1c], esi
je 0x77d0e15d
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x77d0e15d
push dword [ebp + 8]
call fcn.77d0c480
test eax, eax
mov dword [ebp - 4], eax
jne 0x77d0e0b1
push 0x57
pop edi
jmp 0x77d0e181
cmp dword [eax + 0x10], 1
jne 0x77d0e148
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 0x77d0e0df
push 8
pop edi
jmp 0x77d0e168
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 0x77ce0d78
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 0x77d0e11d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77d0e159
push ebx
push ebx
push esi
push 0x77d0deda
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x77d0e13a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x77d0e0d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x3e5
jmp 0x77d0e193
push ebx
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.77d0dadf
mov edi, eax
jmp 0x77d0e160
push 0x57
pop edi
cmp edi, 0x3e5
je 0x77d0e18f
test esi, esi
je 0x77d0e181
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 0x77d0e18f
push dword [ebp - 4]
call fcn.77d0c593
test edi, edi
je 0x77d0e19e
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x77d0e1a1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x1c