joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77cb3c89
Capabilities:
Set registry value

Disassembly:
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 0x77ccc089
movzx eax, word [esi]
test al, 1
jne 0x77ccc089
cmp ax, bx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
jbe 0x77cb3cc6
add eax, 0xfffffffe
mov word [esi], ax
cmp edi, 0x80000004
je 0x77cdc0b7
cmp edi, 0x80000050
je 0x77cdc0b7
cmp edi, 0x80000060
je 0x77cdc0b7
cmp dword [0x77d1f27c], ebx
jne 0x77cdbfaf
mov dword [ebp - 0x18], edi
and dword [ebp - 0x18], 2
jne 0x77ccc066
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x77cdc030
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 0x77cdc041
test byte [0x77d20b00], 1
jne 0x77cdc05c
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x2000000
push dword [ebp - 4]
push ebx
call fcn.77cc8869
cmp eax, ebx
jge 0x77cb3d03
jmp 0x77cdc02a
push 0x57
jmp 0x77cdc0cf
mov eax, dword [0x77d2875c]
cmp eax, ebx
je 0x77cb3cf6
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push esi
push edi
call eax
test eax, eax
jl 0x77cdbfdc
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 0x77cdbfdf
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 [0x77d1f27c]
cmp dword [ebp - 8], ebx
je 0x77cb3cf6
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 0x77cb3d48
push eax
jmp 0x77cb3d48
cmp dword [ebp - 0xc], ebx
je 0x77cb3d0e
mov dword [ebp - 4], eax
jmp 0x77cb3d0e
cmp dword [ebp - 0xc], ebx
je 0x77cb3d38
cmp eax, dword [ebp + 8]
je 0x77cdc052
push eax
jmp 0x77cdc055
push dword [ebp - 0xc]
call edi
jmp 0x77cb3d38
cmp dword [ebp - 0x10], 0xc0000022
jne 0x77cb3d45
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x77cb3d45
cmp dword [ebp - 0x18], ebx
je 0x77cb3d45
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.77d10071
test eax, eax
jge 0x77cdc092
push 5
jmp 0x77cdc0cf
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 0x77cb3d45
jmp 0x77cdc08e
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [esi + 4]
push edi
call fcn.77d117e9
jmp 0x77cb3d4e
pop eax
jmp 0x77cb3d4e
Function at 0x77cb487b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0x80000005
je 0x77cdbddb
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x77cdbdf4
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
movzx edx, word [ebp + 0x1c]
inc ecx
inc ecx
cmp edx, ecx
jb 0x77cb48a8
mov eax, dword fs:[0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
mov ebx, dword [ebp + 0x14]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [esi], eax
jne 0x77cdbe1e
mov eax, 0xc0000017
jmp 0x77cb48a8
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
push 2
push dword [ebp + 8]
call edi
jmp 0x77cb48a8
Function at 0x77cb644b
Capabilities:
Get file attributes

Disassembly:
movzx eax, ax
lea ecx, [eax + 2]
cmp ecx, ebx
ja 0x77cd25c0
push eax
push edx
add edx, 2
push edx
call sub.ntdll.dll_memmove
add esp, 0xc
add word [ebp - 0x10], 2
jmp 0x77cb6547
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x10], bx
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, 0x210
push esi
push ebx
push dword [eax + 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x77cd25b6
push 9
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test ebx, ebx
jl 0x77cb65aa
mov ecx, dword [ebp + 0xc]
test cx, cx
lea edx, [edi + 4]
mov dword [ebp - 0xc], edx
mov ax, word [edi]
mov ebx, 0x208
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x77ca3dc6
cmp cx, 0x41
jb 0x77cd25ca
cmp cx, 0x5a
ja 0x77cd25ca
mov ecx, dword [ebp + 0x10]
mov eax, ecx
lea edi, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x77cb64e6
sub eax, edi
sar eax, 1
movzx edi, ax
movzx esi, di
add esi, esi
cmp word [esi + ecx - 2], 0x5c
jne 0x77cb6514
add edi, 0xffff
movzx esi, di
add esi, esi
and word [esi + ecx], 0
movzx eax, word [ebp - 0x10]
lea ecx, [esi + eax]
cmp ecx, ebx
ja 0x77cd25d9
push eax
push edx
lea eax, [esi + edx]
push eax
call sub.ntdll.dll_memmove
push esi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call sub.ntdll.dll_memmove
lea eax, [edi + edi]
mov edi, dword [ebp - 8]
add esp, 0x18
add word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 1
and word [ecx + eax*2], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x77cd25e6
and word [esi], 0
push 0x104
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x77cb6599
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
push 0
push dword [eax + 0x18]
call esi
cmp dword [ebp - 4], 0
je 0x77cb65da
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, 0xc0000017
jmp 0x77cb65dc
mov ebx, 0x80000005
jmp 0x77cb65aa
add ecx, 0xffffff9f
cmp cx, 0x19
jbe 0x77cb64de
jmp 0x77cd25f0
mov edi, dword [ebp - 8]
mov ebx, 0x80000005
jmp 0x77cb65aa
mov ebx, 0xc0000017
jmp 0x77cb65aa
mov ebx, 0xc000000d
jmp 0x77cb65aa
Function at 0x77cb7414
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x77d1e330]
push edi
xor edi, edi
inc edi
cmp eax, edi
je 0x77cd035d
test eax, eax
jne 0x77cc01ac
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.77cc744e
leave
ret
push 0x77cc01d4
push 3
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jge 0x77cd0364
and dword [0x77d1e330], 0
jmp 0x77cb743f
mov eax, edi
jmp 0x77cb7441
push esi
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x77cd03bc
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
pop esi
jl 0x77cc01c5
cmp dword [ebp - 0x14], 4
jne 0x77cc01c5
cmp dword [ebp - 0x10], 4
jne 0x77cc01c5
cmp dword [ebp - 0xc], 0
jbe 0x77cc01c5
mov dword [0x77d1e330], edi
jmp 0x77cd035d

Function at 0x77cb76f5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x77d1e5b8]
cmp eax, 2
je 0x77cc0288
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.77cc744e
leave
ret
and dword [0x77d1e5b8], 0
and dword [ebp - 0x58], 0
and dword [ebp - 0x5c], 0
push 0x77cc02f8
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cc02ed
push esi
lea eax, [ebp - 0x5c]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 2
push 0x77cc0310
push dword [ebp - 0x58]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x58]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
pop esi
jl 0x77cc02ed
cmp dword [ebp - 0x50], 4
jne 0x77cc02ed
cmp dword [ebp - 0x4c], 4
jne 0x77cc02ed
test byte [ebp - 0x48], 1
jne 0x77cd1339
mov eax, dword [0x77d1e5b8]
jmp 0x77cb7715
mov dword [0x77d1e5b8], 1
jmp 0x77cc02ed
Function at 0x77cb776d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x210]
push ecx
xor edi, edi
push 0x20019
push edi
push 0x77cb7838
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov dword [esi], edi
call sym.ADVAPI32.dll_RegOpenKeyExW
cmp eax, 2
je 0x77cb7823
cmp eax, 0x3fa
je 0x77cb7823
cmp eax, 0x490
je 0x77cb7823
cmp eax, 3
je 0x77cb7823
cmp eax, edi
jne 0x77cd167e
lea eax, [ebp - 0x214]
push eax
push 0x208
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtQueryKey]
push dword [ebp - 0x210]
mov ebx, eax
call sym.ADVAPI32.dll_RegCloseKey
cmp ebx, edi
jl 0x77cd1696
lea eax, [ebp - 0x20c]
push eax
push 0x77d1e2d8
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x77cd169d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 8
call dword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
cmp eax, edi
jl 0x77cb7825
mov eax, 0xc0000001
jmp 0x77cb7825
mov eax, ebx
jmp 0x77cb7825
mov dword [esi], 1
jmp 0x77cb7823
Function at 0x77cbd6b5
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x77cbd6e5
mov ecx, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 0xc], 0
mov dword [eax + 8], ecx
pop ebp
ret 4

Function at 0x77cbd99a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, 0x77d1a5c0
mov ecx, 0x77d1a5b8
mov dword [0x77d1a5c4], edx
mov dword [0x77d1a5c0], edx
mov eax, ecx
mov dword [0x77d1a5b8], ecx
mov edx, 0x77d1c208
mov dword [edx + 4], eax
mov dword [edx], ecx
mov dword [eax], edx
mov eax, edx
add edx, 0x10
cmp edx, 0x77d1e208
jl 0x77cbd9cf
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [0x77d1a5bc], eax
push 0x77cbdaa4
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 0x77d1a560
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 0x77cd9186
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 0x77cbda9f
push 0x77cbd7cc
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 0x77cbda92
cmp dword [ebp - 0x14], 0
jne 0x77cbda92
mov dword [0x77d1a0b0], eax
mov dword [0x77d1a0b8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.77cc744e
leave
ret
xor eax, eax
inc eax
jmp 0x77cbda92
xor eax, eax
jmp 0x77cbda92
Function at 0x77cbdbaf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x77d1a0c4]
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, 0x77d1e760
rep stosd dword es:[edi], eax
push 0x77cbdcb8
lea eax, [ebp - 0xb8]
push eax
call esi
test eax, eax
jl 0x77cbdc8f
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 0x77cbdc8e
push 0x77cbdca0
lea eax, [ebp - 0xc4]
push eax
call esi
test eax, eax
jl 0x77cbdc82
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 0x77cdb446
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.77cc744e
leave
ret
cmp dword [ebp - 0x8c], ebx
je 0x77cbdc82
cmp byte [ebp - 0x88], bl
je 0x77cbdc82
mov dword [0x77d1e768], 1
jmp 0x77cbdc82
Function at 0x77cbdd4d
Capabilities:
Delete file
Move file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor edi, edi
push edi
push 0x77cbdef8
push 0x80000002
mov dword [0x77d1e628], edi
mov dword [0x77d1e62c], edi
call sym.ADVAPI32.dll_RegOpenKeyExW
cmp eax, edi
mov dword [ebp - 0x420], edi
jne 0x77cbde48
push 4
pop esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
push edi
push 0x77cbdea0
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call sym.ADVAPI32.dll_RegQueryValueExW
test eax, eax
je 0x77ccffd3
lea eax, [ebp - 0x41c]
push eax
push 0x77d1e628
push edi
push edi
push 0x77cbde7c
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call sym.ADVAPI32.dll_RegQueryValueExW
test eax, eax
jne 0x77ccffea
lea eax, [ebp - 0x41c]
push eax
push 0x77d1e62c
push edi
push edi
push 0x77cbde58
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call sym.ADVAPI32.dll_RegQueryValueExW
push dword [ebp - 0x418]
mov esi, eax
call sym.ADVAPI32.dll_RegCloseKey
cmp esi, edi
je 0x77ccfffa
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.77cc744e
leave
ret 4
test byte [0x77d1e628], 8
je 0x77cbde38
jmp 0x77cd0012
cmp dword [ebp - 0x424], esi
je 0x77cbddd3
mov dword [ebp - 0x420], edi
jmp 0x77cbddd3
push dword [ebp - 0x418]
call sym.ADVAPI32.dll_RegCloseKey
jmp 0x77cbde38
cmp dword [ebp - 0x420], edi
je 0x77cbde48
or dword [0x77d1e628], 6
jmp 0x77cbde48
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.77cf04a1
test eax, eax
je 0x77cbde38
cmp dword [ebp + 8], 1
jne 0x77cbde38
lea eax, [ebp - 0x448]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x77cbde38
cmp dword [ebp - 0x428], 0x19000
jb 0x77cbde38
push esi
lea eax, [ebp - 0x414]
push eax
push 0x77cd00b0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x77cbde38
cmp eax, esi
ja 0x77cbde38
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x77cbde38

Function at 0x77cbe1ea
Capabilities:
Access pe header

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x77cbe87c
test word [eax + 0x5e], 0x8000
je 0x77cbe87c
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x77cbe899
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x77cbe9f0
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, 0x224
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x77cbe982
cmp ebx, eax
je 0x77cbe9a7
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20019
lea eax, [ebp - 4]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cbe982
push 0x77cbe9d8
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x77cce626
push 0x77cbe9bc
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x77cbe9b1
cmp dword [ebx + 4], 4
jne 0x77cbe9b1
mov al, byte [ebx + 0xc]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x77cbe9a7
push esi
push 0
push ebx
call sub.ntdll.dll_memset
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x77cbe979
cmp dword [ebx + 4], 4
jne 0x77cbe947
cmp dword [ebx + 0xc], 0
je 0x77cbe947
mov dword [ebp - 8], 1
jmp 0x77cbe947
Function at 0x77cbee6b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0xc0000017
jmp 0x77cbefef
mov ebx, 0xc000000d
jmp 0x77cbefb0
push 0x77cbee58
jmp 0x77cbef75
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x304], eax
xor edi, edi
mov eax, 0x220
push eax
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x2f8], eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, edi
je 0x77cb5015
lea eax, [ebp - 0x234]
mov dword [ebp - 0x310], eax
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x328], eax
push 0x77cbecb0
lea eax, [ebp - 0x314]
mov word [ebp - 0x314], di
mov word [ebp - 0x32c], di
mov edi, dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
push eax
mov word [ebp - 0x312], 0x208
mov word [ebp - 0x32a], 0x28
call edi
mov ebx, eax
test ebx, ebx
jl 0x77cbefb0
lea eax, [ebp - 0x32c]
push eax
push 0xa
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
mov ebx, eax
test ebx, ebx
jl 0x77cbefb0
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov ebx, eax
test ebx, ebx
jl 0x77cbefb0
mov eax, dword [ebp + 0x18]
dec eax
je 0x77cbee4c
dec eax
je 0x77cbf014
dec eax
jne 0x77cb501f
push 0x77cbf000
lea eax, [ebp - 0x314]
push eax
call edi
mov ebx, eax
test ebx, ebx
jl 0x77cbefb0
lea eax, [ebp - 0x308]
push eax
push 0
push 0x20019
push dword [ebp - 0x310]
push dword [ebp - 0x304]
push dword [ebp + 0xc]
call fcn.77cbeaa7
mov ebx, eax
test ebx, ebx
jge 0x77cbf4b0
push 0x77cbf020
jmp 0x77cbef75
and dword [ebp - 0x304], 0
mov edi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
jmp 0x77cbf4d8
Function at 0x77cbfc45
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 + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
or edi, 0xffffffff
cmp byte [0x77d1a0a8], bl
mov dword [ebp - 0x21c], eax
je 0x77cd22ff
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d1e6a8], ebx
jne 0x77cd2309
cmp dword [ebp + 8], 1
je 0x77cbfca7
cmp dword [ebp + 8], 2
jne 0x77cd2312
cmp byte [0x77d1a0c0], bl
jne 0x77cd231c
push 0x77d1a860
call dword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
jne 0x77cd2330
cmp byte [ebp + 0x18], bl
jne 0x77cd2368
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20019
push 0x77cbea80
push dword [0x77d1e6a8]
push dword [ebp + 8]
call fcn.77cbeaa7
mov esi, eax
cmp esi, ebx
jl 0x77cbfd5b
cmp dword [ebp - 0x214], ebx
je 0x77cbfd47
cmp dword [ebp + 0xc], 4
jb 0x77cbfd47
push 0x77cbfd7c
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
jge 0x77cd233a
push dword [ebp - 0x218]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jge 0x77cd23a4
push 0x77d1a480
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.77cc744e
leave
ret 0x14
mov esi, 0xc0000001
jmp 0x77cbfd66
cmp dword [ebp + 8], 3
jmp 0x77cbfca1
mov esi, 0xc0000030
jmp 0x77cbfd5b
call fcn.77cbfb39
mov esi, eax
cmp esi, ebx
jge 0x77cbfcb3
jmp 0x77cbfd5b
mov esi, 0xc0000225
jmp 0x77cbfd5b
cmp dword [ebp - 0x20c], 4
jne 0x77cd235e
cmp dword [ebp - 0x204], 4
jne 0x77cd235e
mov eax, dword [ebp - 0x208]
mov edi, dword [ebp + eax - 0x210]
jmp 0x77cbfd47
mov esi, 0xc0000225
jmp 0x77cbfd47
cmp dword [ebp + 8], 2
jne 0x77cd2396
cmp dword [0x77d1e6a0], ebx
jne 0x77cd238e
xor edi, edi
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x77cd23c2
cmp dword [ebp + 0xc], 4
jb 0x77cd23c2
mov dword [eax], edi
xor esi, esi
jmp 0x77cd23c7
mov edi, dword [0x77d1e694]
jmp 0x77cd23a4
cmp dword [0x77d1e69c], ebx
je 0x77cd2376
mov edi, dword [0x77d1e690]
cmp edi, ebx
je 0x77cd2378
cmp edi, 0x1000
je 0x77cd2378
cmp edi, 0x2000
je 0x77cd2378
mov esi, 0xc0000001
jmp 0x77cbfd5b
mov esi, 0xc0000023
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x77cbfd5b
mov dword [eax], 4
jmp 0x77cbfd5b