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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, 0x77d265c0
mov ecx, 0x77d265b8
mov dword [0x77d265c4], edx
mov dword [0x77d265c0], edx
mov eax, ecx
mov dword [0x77d265b8], ecx
mov edx, 0x77d28148
mov dword [edx + 4], eax
mov dword [edx], ecx
mov dword [eax], edx
mov eax, edx
add edx, 0x10
cmp edx, 0x77d2a148
jl 0x77cc7812
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [0x77d265bc], eax
push 0x77cc78e8
lea eax, [ebp - 0x48]
push eax
call esi
and dword [ebp - 0x3c], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x48]
push 0x77d26560
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x34], 0x40
mov dword [ebp - 0x38], eax
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
test eax, eax
jl 0x77ce7c2f
lea eax, [ebp - 0x40]
push eax
push 0x20019
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cc78e2
push 0x77cc70c4
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x28], 0x1a
call esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push 2
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
inc eax
test esi, esi
jl 0x77cc78d5
cmp dword [ebp - 0x14], 0
jne 0x77cc78d5
mov dword [0x77d260b0], eax
mov dword [0x77d260b8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret
xor eax, eax
inc eax
jmp 0x77cc78d5
xor eax, eax
jmp 0x77cc78d5

Function at 0x77cc79f3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
push edi
push 9
pop ecx
xor eax, eax
mov edi, 0x77d2a760
rep stosd dword es:[edi], eax
push 0x77cc7af8
lea eax, [ebp - 0xb8]
push eax
call esi
test eax, eax
jl 0x77cc7ad3
push ebx
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xb0]
push eax
xor ebx, ebx
push 0x20019
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xb0], 0x18
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], 0x40
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cc7ad2
push 0x77cc7ae4
lea eax, [ebp - 0xc4]
push eax
call esi
test eax, eax
jl 0x77cc7ac6
lea eax, [ebp - 0xbc]
push eax
push 0x90
lea eax, [ebp - 0x94]
push eax
push 2
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x77ce9e9c
push dword [ebp - 0x98]
call dword [sym.imp.ntdll.dll_NtClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret
cmp dword [ebp - 0x8c], ebx
je 0x77cc7ac6
cmp byte [ebp - 0x88], bl
je 0x77cc7ac6
mov dword [0x77d2a768], 1
jmp 0x77cc7ac6
Function at 0x77cc7f5c
Capabilities:
Set registry value

Disassembly:
cmp dword [ebp - 0xc], ebx
je 0x77cc7fe1
mov dword [ebp - 4], eax
jmp 0x77cc7fe1
push 0x57
jmp 0x77cea969
cmp dword [ebp - 0xc], ebx
je 0x77cc800b
cmp eax, dword [ebp + 8]
jne 0x77cea8f0
push dword [ebp - 0xc]
call edi
jmp 0x77cc800b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x2000000
push dword [ebp - 4]
push ebx
call fcn.77cd7150
cmp eax, ebx
jge 0x77cc7fd6
jmp 0x77cea8ea
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
je 0x77c97439
movzx eax, word [esi]
test al, 1
jne 0x77c97439
cmp ax, bx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
jbe 0x77cc7f99
add eax, 0xfffffffe
mov word [esi], ax
cmp edi, 0x80000004
je 0x77cea951
cmp edi, 0x80000050
je 0x77cea951
cmp edi, 0x80000060
je 0x77cea951
cmp dword [0x77d2b310], ebx
jne 0x77cea86f
mov dword [ebp - 0x18], edi
and dword [ebp - 0x18], 2
jne 0x77ca81b7
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x77c97428
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ntdll.dll_NtSetValueKey]
call esi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x77c97440
test byte [0x77d2b2b8], 1
jne 0x77cea8f6
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret 0x14
mov eax, dword [0x77d34724]
cmp eax, ebx
je 0x77cc7fc9
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push esi
push edi
call eax
test eax, eax
jl 0x77cea89c
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], eax
jmp 0x77cea89f
mov dword [ebp - 8], ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
push edi
call dword [0x77d2b310]
cmp dword [ebp - 8], ebx
je 0x77cc7fc9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
push edi
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [ebp - 8]
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push esi
jmp 0x77cc801b
push eax
jmp 0x77cc801b
push eax
jmp 0x77c97455
cmp dword [ebp - 0x10], 0xc0000022
jne 0x77cc8018
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x77cc8018
cmp dword [ebp - 0x18], ebx
je 0x77cc8018
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.77d1ba29
test eax, eax
jge 0x77cea92c
push 5
jmp 0x77cea969
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call edi
cmp dword [ebp - 0x10], ebx
jge 0x77cc8018
jmp 0x77cea928
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [esi + 4]
push edi
call fcn.77d1d131
jmp 0x77cc8021
pop eax
jmp 0x77cc8021
Function at 0x77cc8732
Capabilities:
Check systemkerneldebuggerinformation
Get system information on windows

Disassembly:
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x228]
call fcn.77c98b07
test eax, eax
je 0x77cb351c
mov dword [ebp - 0x22c], edi
jmp 0x77cb351c
mov dword [ebp - 0x220], 8
jmp 0x77cc87ee
lea eax, [ebp - 0x25c]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x77cc880d
cmp dword [ebp - 0x240], ebx
jne 0x77cc880d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push eax
call fcn.77cb353e
test eax, eax
jne 0x77c98ad9
cmp dword [ebp - 0x228], ebx
je 0x77cc880d
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cc880d
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 0x224]
push eax
push 0x23
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], 8
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [ebp - 0x224], 1
je 0x77cdc267
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationThread]
je 0x77cc880e
push edi
push ebx
push 4
lea eax, [ebp - 0x220]
push eax
push 0x18
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
xor edi, edi
inc edi
test eax, eax
jl 0x77cc87ee
cmp dword [ebp - 0x220], edi
mov dword [ebp - 0x230], edi
jbe 0x77caad69
push 4
lea eax, [ebp - 0x230]
push eax
push 0x18
push 0xfffffffffffffffe
call esi
test eax, eax
jl 0x77caad69
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.77cc8841
test eax, eax
jne 0x77cb34c7
mov dword [ebp - 0x22c], edi
pop edi
cmp dword [ebp - 0x220], 8
je 0x77cc8826
push 4
lea eax, [ebp - 0x220]
push eax
push 0x18
push 0xfffffffffffffffe
call esi
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 4
cmp byte [ebp - 0x223], bl
jne 0x77cc8783
xor eax, eax
inc eax
jmp 0x77cc882c
Function at 0x77cc8a01
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 4], esi
je 0x77cc8a19
or dword [eax], 0xffffffff
mov eax, dword [ebp + 8]
dec eax
mov edi, dword [ebp + 0x10]
je 0x77cc8aff
dec eax
jne 0x77ccdacc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x77ccdae7
cmp dword [ebp + 0x10], esi
jne 0x77ce945a
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, esi
je 0x77ccdae7
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 4], esi
je 0x77ccdae7
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x77ccdae7
push esi
push edi
push ebx
push 2
call fcn.77cc8a01
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x77ccdaf2
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x77cc8a8f
dec eax
jne 0x77ce9451
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x77cc8a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77ce9463
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77cc8a8f
mov dword [ebp - 4], 0x57
jmp 0x77ce9471
mov dword [ebp - 4], 0x3ee
jmp 0x77ce9471
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x77ce9471
mov dword [ebp - 4], 0x6e
mov dword [edi + 4], esi
mov dword [edi], esi
jmp 0x77cc8a8f

Function at 0x77cc8a9e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ecx]
cmp ebx, 4
jb 0x77cc8af6
push esi
push edi
push 2
pop ecx
mov edi, 0x77cc8afc
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
jne 0x77ce931e
test edx, edx
jne 0x77cc8af6
cmp ebx, 0x40
jb 0x77cc8af6
cmp word [eax], 0x5a4d
jne 0x77cc8af6
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 0x40]
cmp ebx, edx
jb 0x77cc8af6
xor edx, edx
cmp dword [ecx + eax], 0x4550
sete dl
mov eax, edx
pop ebx
pop ebp
ret 4
xor eax, eax
jmp 0x77cc8af1
sbb edx, edx
sbb edx, 0xffffffff
jmp 0x77cc8ac9
Function at 0x77cc8b7e
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push 0xc
push 0x77cc8c28
call fcn.77cd5e30
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
movzx edx, word [ecx]
cmp dx, 0x5a4d
jne 0x77ce967d
mov edx, dword [ecx + 0x3c]
cmp edx, ebx
je 0x77cc8c09
add edx, ecx
mov dword [eax + 0xc], edx
mov esi, dword [eax + 0x2c]
add esi, ecx
lea edi, [edx + 0xf8]
cmp edi, esi
ja 0x77cc8c09
add ecx, 0x40
cmp edx, ecx
jb 0x77cc8c09
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0x4550
jne 0x77cc8c09
mov byte [eax + 0x21], bl
cmp word [ecx + 0x14], bx
je 0x77cc8c09
cmp byte [ecx + 0x1a], 3
jb 0x77cc8c1b
lea ecx, [eax + 0x24]
mov dword [eax + 0x28], ecx
mov dword [ecx], ecx
mov ecx, dword [eax + 0xc]
movzx ecx, word [ecx + 6]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0xc]
movzx edx, word [ecx + 0x14]
lea ecx, [edx + ecx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.77cd5e80
ret 4
cmp byte [ecx + 0x1b], 5
jb 0x77cc8c09
jmp 0x77cc8be2
cmp dx, 0x4550
jne 0x77cc8c09
cmp dx, 0x5a4d
je 0x77cc8ba6
mov dword [eax + 0xc], ecx
jmp 0x77cc8bc8
Function at 0x77cc9783
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x77d2a2b8], 0
push ebx
je 0x77cce115
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
jne 0x77ce7dd9
mov eax, dword [eax*4 + 0x77d261a0]
mov dword [0x77d2a2b8], eax
jmp 0x77cc9799
cmp dword [ebp - 8], 0x660
jae 0x77cce16d
xor eax, eax
jmp 0x77cce16d

Function at 0x77ccdcb2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0x40
jb 0x77ccdcec
mov edx, dword [ebp + 8]
cmp word [edx], 0x5a4d
jne 0x77ccdcec
mov ecx, dword [edx + 0x3c]
push esi
lea esi, [eax - 0x40]
cmp esi, ecx
pop esi
jb 0x77ccdcec
sub eax, ecx
cmp eax, 0xf8
jbe 0x77ccdcec
cmp dword [ecx + edx], 0x4550
sete al
pop ebp
ret 8
xor al, al
jmp 0x77ccdce8
Function at 0x77cd6011
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x77d260c4]
jne 0x77cf6298
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x77d2a988], eax
mov dword [0x77d2a984], ecx
mov dword [0x77d2a980], edx
mov dword [0x77d2a97c], ebx
mov dword [0x77d2a978], esi
mov dword [0x77d2a974], edi
mov word [0x77d2a9a0], ss
mov word [0x77d2a994], cs
mov word [0x77d2a970], ds
mov word [0x77d2a96c], es
mov word [0x77d2a968], fs
mov word [0x77d2a964], gs
pushfd
pop dword [0x77d2a998]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x77d2a99c], ecx
mov dword [0x77d2a990], eax
mov dword [0x77d2a8d8], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x77d2a894], eax
mov eax, dword [0x77d260c4]
xor edi, edi
mov dword [0x77d2a98c], ecx
mov dword [0x77d2a888], 0xc0000409
inc edi
mov dword [0x77d2a88c], edi
mov dword [ebp - 4], eax
mov eax, dword [0x77d260c8]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x77cf6378
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x77cd859c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.77cd8511
test eax, eax
je 0x77cd8605
shr edx, 3
not edx
push ebx
and edx, 1
xor ebx, ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x90], edx
call fcn.77cd8616
test eax, eax
je 0x77cd8604
lea eax, [ebp + 0x10]
mov dword [ebp - 0x94], eax
xor eax, eax
cmp dword [ebp + 0xc], 0x3e8
jb 0x77cdeb90
cmp eax, ebx
mov dword [ebp - 0x94], ebx
jne 0x77cdebb9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.77cd6011
leave
ret
lea eax, [ebp - 0x94]
push eax
push ebx
lea eax, [ebp - 0x88]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.77cfd1fe
push eax
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
jmp 0x77cd85f6
push esi
push edi
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0xa0]
push eax
movzx eax, word [ebp - 0xa2]
push eax
movzx eax, word [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x77cded38
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.77cac57c
add esp, 0x24
test byte [0x77d2a66c], 0x40
mov esi, 0x77cded84
jne 0x77cdec34
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x84]
push eax
call edi
push dword [ebp - 0x88]
call edi
push esi
call edi
test byte [0x77d2a66c], 8
je 0x77cdeceb
push 0x208
call fcn.77ca7f5d
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x9c], edi
je 0x77cdecdf
push 0x104
push edi
call fcn.77cfd339
test eax, eax
je 0x77cdecdf
push edi
call fcn.77cfd2b4
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
je 0x77cdecd3
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x77cdecd3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x88]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add eax, eax
push eax
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call ebx
push 0
lea eax, [ebp - 0x98]
push eax
push esi
call edi
add eax, eax
push eax
push esi
push dword [ebp - 0x8c]
call ebx
xor ebx, ebx
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x9c]
call fcn.77cfd001
pop ecx
cmp dword [ebp - 0x90], ebx
pop edi
pop esi
je 0x77cded26
test byte [0x77d2a66c], 4
je 0x77cded26
lea ecx, [ebp - 0x90]
call fcn.77cfc8e9
push dword [ebp - 0x88]
lea eax, [ebp - 0x90]
push 1
push ebx
push 0x191
push eax
call fcn.77cfc8f4
add esp, 0x14
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cd8604
Function at 0x77cd9974
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, word [ebx + 2]
push esi
push edi
push ecx
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, edi
mov dword [ebp + 0x10], esi
je 0x77cea227
cmp dword [ebp + 0x14], edi
mov ax, word [ebx + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
je 0x77cd9a69
call fcn.77cd6c9e
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x77cea231
mov eax, dword [ebp - 8]
mov si, word [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x2000000
push dword [ebp + 0xc]
mov word [ebp - 0x14], si
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x77cd9a49
mov ecx, dword [ebp - 8]
sub word [ebp - 0xc], si
movzx eax, si
shr eax, 1
lea eax, [ecx + eax*2]
mov dword [ebp - 8], eax
cmp word [eax], 0x5c
jne 0x77cd9a3e
add word [ebp - 0xc], 0xfffe
inc eax
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
push dword [ebp + 0x10]
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 + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
call fcn.77cd726e
jmp 0x77cd99cd
mov eax, 0xc000009a
jmp 0x77cd9a62
push esi
jmp 0x77cd9a4c
Function at 0x77cd9c3f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
xor ebx, ebx
call fcn.77caa2c7
cmp eax, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x77cecc60
cmp eax, 0x16
je 0x77cecc60
push ebx
push 0x2c1
push 0x77ca9f78
call fcn.77ca972d
pop esi
pop ebx
leave
ret 4
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [0x77d26138]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
call ebx
push dword [0x77d260f8]
mov dword [ebp - 0x10], eax
call ebx
cmp edi, esi
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 6]
mov dword [ebp - 0x18], eax
je 0x77cecdfc
add eax, edi
lea eax, [eax + eax + 0xc]
push eax
push 0x285
push 0x77ca9f78
call fcn.77ca96e5
mov ebx, eax
cmp ebx, esi
je 0x77cecdfe
lea eax, [ebx + edi*2 + 2]
inc edi
push edi
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x77cecdfe
mov edi, dword [ebp + 8]
cmp edi, 4
push esi
push esi
push esi
push esi
jne 0x77cecce2
push dword [0x77d26118]
jmp 0x77cecce8
push dword [0x77d260ec]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x77cecdfe
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.ntdll.dll_RtlGetThreadPreferredUILanguages]
push 0x24
call edi
cmp eax, esi
je 0x77cecd18
cmp eax, 0xc0000023
jne 0x77cecd89
mov eax, dword [ebp - 4]
cmp eax, esi
jbe 0x77cecd89
add eax, eax
push eax
push 0x2a1
push 0x77ca9f78
call fcn.77ca96e5
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x77cecd89
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0x24
call edi
cmp dword [ebp - 8], esi
jbe 0x77cecd77
mov edi, dword [ebp - 0xc]
jmp 0x77cecd6d
push edi
call fcn.77caa2c7
mov ecx, eax
and ecx, 0x3ff
cmp ecx, dword [ebp + 8]
je 0x77cecd74
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], si
je 0x77cecd77
jmp 0x77cecd4f
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push 0x2ae
push 0x77ca9f78
call fcn.77ca972d
mov edi, dword [ebp - 0x14]
push 5
push edi
push esi
push dword [ebp - 0x10]
call fcn.77d21071
push dword [0x77d26138]
lea eax, [edi + 0xa]
push edi
push dword [0x77d260f8]
push 0x77cece04
push dword [ebp - 0x18]
push eax
call fcn.77cac57c
add esp, 0x18
push esi
push esi
push esi
push esi
lea eax, [edi + 0xa]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x77cecdfe
push 1
push edi
push dword [ebp + 8]
push ebx
call fcn.77d2118f
push esi
push edi
push dword [ebp + 8]
push ebx
call fcn.77d2118f
push 1
push esi
push dword [ebp + 8]
push ebx
call fcn.77d2118f
push esi
push esi
push dword [ebp + 8]
push ebx
call fcn.77d2118f
jmp 0x77cecdfe
mov ebx, esi
pop edi
jmp 0x77cd9c70