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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
push 0x77cb41d0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x54], edi
call esi
lea eax, [ebp - 0x68]
push eax
push 0x4b
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
call edi
test eax, eax
jge 0x77cfff61
cmp eax, 0x80000005
jne 0x77cfff50
mov eax, 0xc0000001
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x10
cmp dword [ebp - 0x50], 3
jne 0x77cfff4b
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x77cfff4b
cmp eax, 0x40
ja 0x77cfff4b
cmp eax, dword [ebx]
jbe 0x77cfff7e
mov eax, 0x80000005
jmp 0x77cfff50
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x64]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebx], eax
push 0x77cfffe4
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x68]
push eax
push 0x4b
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x54]
call edi
test eax, eax
jl 0x77cfff50
cmp dword [ebp - 0x50], 4
jne 0x77cfff4b
cmp dword [ebp - 0x4c], 4
jne 0x77cfff4b
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
and eax, 0xe000
sub eax, 0x8000
neg eax
sbb eax, eax
and eax, 0xc0000001
jmp 0x77cfff50
Function at 0x77d00143
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x77d260a8], 0
push esi
jne 0x77d0015f
mov esi, 0xc0000001
jmp 0x77d00269
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d2a6ec], 0
je 0x77d00183
cmp dword [ebp + 8], 3
je 0x77d0018f
mov esi, 0xc0000030
jmp 0x77d0025e
cmp dword [ebp + 8], 1
je 0x77d0018f
cmp dword [ebp + 8], 2
jmp 0x77d00177
cmp byte [0x77d260c0], 0
je 0x77d001a7
call fcn.77cb5069
mov esi, eax
test esi, esi
jl 0x77d0025e
lea eax, [ebp - 4]
push eax
push 1
push 0x2001b
push 0x77cb6eb4
push dword [0x77d2a6ec]
push dword [ebp + 8]
call fcn.77cb6edb
mov esi, eax
test esi, esi
jl 0x77d0025e
mov esi, 0x77d26860
push esi
call dword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
je 0x77d001e6
mov esi, 0xc0000225
jmp 0x77d00255
cmp dword [ebp + 0xc], 4
push edi
jb 0x77d0020d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x77d0020d
mov eax, dword [eax]
push eax
push esi
mov dword [ebp - 8], eax
call fcn.77cb6e85
mov edi, eax
test edi, edi
jne 0x77d0020f
mov esi, 0xc0000225
jmp 0x77d00254
xor edi, edi
push 0x77cb546c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jl 0x77d00254
cmp dword [ebp + 8], 2
jne 0x77d00249
mov dword [0x77d2a6e4], edi
jmp 0x77d0024f
mov dword [0x77d2a6e0], edi
call fcn.77cb4215
pop edi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x77d00275
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x77d260a8], 0
push esi
jne 0x77d00290
mov esi, 0xc0000001
jmp 0x77d003a6
cmp dword [ebp + 0xc], 4
push ebx
jb 0x77d003a0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x77d003a0
mov eax, dword [ebx]
cmp eax, 0x1000
je 0x77d002be
cmp eax, 0x2000
je 0x77d002be
test eax, eax
jne 0x77d003a0
push edi
mov edi, 0x77d26480
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d2a6ec], 0
je 0x77d002e4
cmp dword [ebp + 8], 3
je 0x77d002f0
mov esi, 0xc0000030
jmp 0x77d00396
cmp dword [ebp + 8], 1
je 0x77d002f0
cmp dword [ebp + 8], 2
jmp 0x77d002d8
cmp byte [0x77d260c0], 0
je 0x77d00308
call fcn.77cb5069
mov esi, eax
test esi, esi
jl 0x77d00396
lea eax, [ebp + 0x10]
push eax
push 1
push 0x2001b
push 0x77cb6eb4
push dword [0x77d2a6ec]
push dword [ebp + 8]
call fcn.77cb6edb
mov esi, eax
test esi, esi
jl 0x77d00396
push 0x77d26860
call dword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
je 0x77d00342
mov esi, 0xc0000225
jmp 0x77d0038d
push 0x77cb52ac
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebx]
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jl 0x77d0038d
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0xc]
jne 0x77d00383
mov dword [0x77d2a6d8], eax
jmp 0x77d00388
mov dword [0x77d2a6d4], eax
call fcn.77cb4215
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
jmp 0x77d003a5
mov esi, 0xc00000f1
pop ebx
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x77d003b2
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 + 0x14]
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
xor ebx, ebx
cmp byte [0x77d260a8], bl
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
jne 0x77d003f1
mov esi, 0xc0000001
jmp 0x77d00523
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d2a6ec], ebx
je 0x77d00414
cmp dword [ebp + 8], 3
je 0x77d0041a
mov esi, 0xc0000030
jmp 0x77d00518
cmp dword [ebp + 8], 1
jmp 0x77d00408
cmp byte [0x77d260c0], bl
je 0x77d00431
call fcn.77cb5069
mov esi, eax
cmp esi, ebx
jl 0x77d00518
cmp byte [ebp + 0x18], bl
jne 0x77d004e8
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20019
push 0x77cb6eb4
push dword [0x77d2a6ec]
push dword [ebp + 8]
call fcn.77cb6edb
mov esi, eax
cmp esi, ebx
jl 0x77d00518
push 0x77cef430
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x228]
push eax
push 0x20c
lea eax, [ebp - 0x210]
push eax
push 1
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, ebx
jl 0x77d004d0
cmp dword [ebp - 0x20c], 4
jne 0x77d004cb
cmp dword [ebp - 0x204], 4
jne 0x77d004cb
mov eax, dword [ebp - 0x208]
mov eax, dword [ebp + eax - 0x210]
mov dword [ebp - 0x214], eax
jmp 0x77d004d0
mov esi, 0xc0000225
push dword [ebp - 0x218]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jl 0x77d00518
mov eax, dword [ebp - 0x214]
jmp 0x77d004f3
xor eax, eax
cmp byte [0x77d2a61c], bl
setne al
cmp edi, ebx
je 0x77d00503
cmp dword [ebp + 0xc], 4
jb 0x77d00503
mov dword [edi], eax
xor esi, esi
jmp 0x77d00508
mov esi, 0xc0000023
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x77d00518
mov dword [eax], 4
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x14
Function at 0x77d0055c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp byte [0x77d260a8], bl
jne 0x77d0057b
mov dword [ebp - 4], 0xc0000001
jmp 0x77d00684
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d2a6ec], ebx
je 0x77d005a0
cmp dword [ebp + 8], 3
je 0x77d005a6
mov dword [ebp - 4], 0xc0000030
jmp 0x77d00679
cmp dword [ebp + 8], 1
jmp 0x77d00592
cmp byte [0x77d260c0], bl
je 0x77d005be
call fcn.77cb5069
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77d00679
lea eax, [ebp - 8]
push eax
push 1
push 0x2001b
push 0x77cb6eb4
push dword [0x77d2a6ec]
push dword [ebp + 8]
call fcn.77cb6edb
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77d00679
cmp dword [ebp + 0xc], 4
push esi
push edi
jb 0x77d00667
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x77d00667
push 0x77cef430
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
push esi
push 4
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77d0066e
cmp dword [esi], ebx
setne al
cmp byte [0x77d2a61c], al
je 0x77d0066e
cmp dword [0x77d2a6ec], ebx
mov byte [0x77d2a61c], al
jne 0x77d0066e
mov esi, 0x77d26820
push esi
call fcn.77cceb69
push ebx
push 1
push esi
mov edi, 0x77d26860
push edi
call fcn.77cb4c41
cmp byte [0x77d2a61c], bl
je 0x77d0066e
push ebx
push 2
push esi
push edi
call fcn.77cb4c41
jmp 0x77d0066e
mov dword [ebp - 4], 0xc0000023
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x77d00691
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x77d260a8], 0
push esi
jne 0x77d006ad
mov esi, 0xc0000001
jmp 0x77d0073e
push edi
mov edi, 0x77d26480
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword [0x77d2a6ec]
test eax, eax
je 0x77d006d0
cmp dword [ebp + 8], 3
je 0x77d006d6
mov esi, 0xc0000030
jmp 0x77d00736
cmp dword [ebp + 8], 1
jmp 0x77d006c7
lea ecx, [ebp - 4]
push ecx
push 1
push 0x2001b
push 0x77cb6eb4
push eax
push dword [ebp + 8]
call fcn.77cb6edb
mov esi, eax
test esi, esi
jl 0x77d00736
cmp dword [ebp + 0x10], 4
jb 0x77d00728
cmp dword [ebp + 0x14], 0
je 0x77d00728
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
jmp 0x77d0072d
mov esi, 0xc0000023
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x77d03c46
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 0x77d04028
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x24], eax
je 0x77d03dec
push 0x77d04010
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x28], eax
je 0x77d03dec
push 0x77d03ff4
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
je 0x77d03dec
push 0x77d03fd8
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x30], eax
je 0x77d03dec
push 0x77d03fc4
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x34], eax
je 0x77d03dec
push 0x77d03fa8
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x77d03dec
push 0x77d03f88
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x77d03dec
push 0x77d03f6c
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x38], eax
je 0x77d03dec
push 0x77d03f54
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x3c], eax
je 0x77d03dec
push 0x77d03f30
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x40], eax
je 0x77d03dec
push 0x77d03f18
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x77d03dec
push 0x77d03efc
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x77d03dec
test byte [esi + 0xc], 2
je 0x77d03de4
push 0x77d03edc
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x44], eax
je 0x77d03dec
push 0x77d03ebc
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x48], eax
je 0x77d03dec
push 0x77d03e9c
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x4c], eax
je 0x77d03dec
push 0x77d03e7c
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x50], eax
je 0x77d03dec
push 0x77d03e60
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x54], eax
je 0x77d03dec
push 0x77d03e40
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x58], eax
je 0x77d03dec
push 0x77d03e20
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x5c], eax
je 0x77d03dec
push 0x77d03df8
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x60], eax
je 0x77d03dec
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 0x77d04046
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call sym.ADVAPI32.dll_RegQueryValueExW
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x77d04127
push esi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jne 0x77d04098
mov dword [ebp - 4], 8
jmp 0x77d0411b
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.ADVAPI32.dll_RegQueryValueExW
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x77d0411b
cmp dword [ebp - 0xc], 2
jne 0x77d04125
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push dword [esi]
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x77d040d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77d04116
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x77d0408c
push dword [ebp + 8]
push eax
push dword [esi]
call edi
test eax, eax
jne 0x77d04109
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77d04116
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
cmp dword [ebp - 4], ebx
je 0x77d04125
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], ebx
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x77d04835
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 0x77d04866
push 8
pop esi
jmp 0x77d048d7
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.77d0658c
mov esi, eax
test esi, esi
jne 0x77d048c2
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, 2
cmp eax, ecx
jae 0x77d0489e
push 0x7a
pop esi
jmp 0x77d048c2
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.77d06611
mov esi, eax
test esi, esi
jne 0x77d048c2
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 0x77d04f3e
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0x10
push 0x77d050e0
call fcn.77cd5e30
call sub.ntdll.dll_RtlDllShutdownInProgress
test al, al
je 0x77d04f66
mov esi, 0x42b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x77d050d6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x77d050cb
cmp dword [ebp + 0x18], 0
je 0x77d050cb
and dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77d04f82
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 0x77d04fd1
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
jmp 0x77d050d5
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.77cac646
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 0x77d050d6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
pop eax
call fcn.77cd5e80
ret 0x14
Function at 0x77d0510d
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0x10
push 0x77d052b0
call fcn.77cd5e30
call sub.ntdll.dll_RtlDllShutdownInProgress
test al, al
je 0x77d05135
mov esi, 0x42b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x77d052a7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x77d0529c
cmp dword [ebp + 0x1c], 0
je 0x77d0529c
and dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77d05151
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 0x77d051a0
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
jmp 0x77d052a6
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.77cac646
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 0x77d052a7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
pop eax
call fcn.77cd5e80
ret 0x18
Function at 0x77d083f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 8], eax
jne 0x77d08445
mov dword [eax + 4], eax
mov dword [eax], eax
push 0x28
push dword [edi + 0x6c]
push dword [edi + 0x64]
push 0x6f5
push 0x77cef494
call fcn.77c9b835
mov ebx, eax
test ebx, ebx
jne 0x77d08518
mov dword [ebp - 4], 8
jmp 0x77d085bb
cmp ecx, eax
je 0x77d08418
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x8e]
mov esi, ecx
cmp word [esi + 0x1a], dx
jne 0x77d08485
mov bx, word [esi + 0x18]
cmp bx, word [eax + 0x8c]
jne 0x77d08485
mov bx, word [esi + 0x16]
cmp bx, word [eax + 0x8a]
jne 0x77d08485
mov ebx, dword [esi + 0x24]
cmp ebx, dword [eax + 0x7c]
jne 0x77d08485
mov ebx, dword [esi + 0x20]
cmp ebx, dword [eax + 0x78]
ja 0x77d0848d
mov esi, dword [esi]
cmp esi, ecx
je 0x77d08418
jmp 0x77d08455
mov edx, dword [eax + 0x78]
mov ecx, dword [esi + 8]
imul edx, edx, 0xff70
add edx, ecx
cmp edx, ecx
jae 0x77d084ab
mov dword [ebp - 4], 0x216
jmp 0x77d085bb
mov ebx, dword [eax + 4]
sub ebx, 0x90
push ebx
add eax, 0x90
push eax
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp ebx, 0xff70
jae 0x77d085bb
push dword [ebp + 0x18]
push dword [esi + 8]
call fcn.77d09965
mov ecx, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [eax + 4], ecx
push dword [esi + 8]
mov ebx, 0x77cef494
push dword [edi + 0x6c]
push dword [edi + 0x68]
push 0x6e9
push ebx
call fcn.77c9b988
push esi
push dword [edi + 0x6c]
push dword [edi + 0x68]
push 0x6ea
push ebx
call fcn.77c9b988
jmp 0x77d085bb
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x77d0853b
mov ecx, eax
imul eax, eax, 0xff70
xor edx, edx
div ecx
cmp eax, 0xff70
jne 0x77d0849f
mov eax, ecx
imul eax, eax, 0xff70
push eax
push dword [edi + 0x6c]
push dword [edi + 0x64]
push 0x700
push 0x77cef494
call fcn.77c9b835
test eax, eax
mov dword [ebx + 8], eax
jne 0x77d08578
push ebx
push dword [edi + 0x6c]
mov dword [ebp - 4], 8
push dword [edi + 0x68]
push 0x703
push 0x77cef494
jmp 0x77d0850e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ecx], ebx
mov dword [eax + 4], ebx
push 0xff70
lea eax, [esi + 0x90]
push eax
push dword [ebx + 8]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add esi, 0x80
lea edi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x78]
mov dword [ebx + 0x20], ecx
mov eax, dword [eax + 0x7c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14