joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ddfc229
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push 0x1e
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x7ddfc265
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddfc2f1
mov eax, dword [ebp + 8]
push esi
push edi
push 6
pop ecx
mov esi, 0x7ddb36e4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movzx eax, word [eax]
push eax
call sub.ntdll.dll_toupper
pop ecx
push 0x3a
mov word [ebx + 0x18], ax
pop eax
push dword [ebp + 0xc]
mov word [ebx + 0x1a], ax
xor eax, eax
mov word [ebx + 0x1c], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0xfffe
add word [ebp - 0xc], ax
movzx edi, word [ebp - 0xc]
add edi, 0x24
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push edi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x7ddfc2f6
push ebx
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push 8
pop eax
push 0x1c
mov word [esi], ax
pop eax
push 0x24
mov word [esi + 2], ax
pop eax
mov word [esi + 4], ax
mov ax, word [ebp - 0xc]
push 0x1c
mov word [esi + 6], ax
lea eax, [esi + 8]
push ebx
push eax
call sub.ntdll.dll_memcpy
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 4]
push dword [ebp - 8]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
movzx eax, word [esi + 4]
add esp, 0x18
push 0x3f
pop ecx
mov word [eax + esi + 2], cx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call ebx
push 0xffffffffffffffff
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x7dd804d8
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x7ddfc396
xor edi, edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call ebx
mov eax, edi
jmp 0x7ddfc2ef
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push edi
push esi
push 0x6dc000
push dword [ebp + 8]
call sub.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl
push dword [ebp + 8]
mov edi, eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
jmp 0x7ddfc37e
Function at 0x7ddfdfd8
Capabilities:
Get process heap force flags
Set file attributes

Disassembly:
push 0x44
push 0x7ddfe1a0
call fcn.7dd715c0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x24], esi
or dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 0x19], bl
cmp dword [ebp + 8], ebx
je 0x7ddfe18d
cmp dword [ebp + 0xc], ebx
je 0x7ddfe18d
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
call edi
cmp al, bl
jne 0x7ddfe02f
push 3
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddfe111
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x7ddfe059
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
push 0x204020
push 7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100100
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, ebx
jge 0x7ddfe086
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddfe111
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call edi
cmp al, bl
je 0x7ddfe022
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x2c]
add ecx, 0x10
push ecx
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x7ddfe0cd
push 8
jmp 0x7ddfe024
movzx eax, word [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [esi + 0xc]
push eax
call sub.ntdll.dll_memmove
add esp, 0xc
mov byte [esi], bl
mov dword [esi + 4], ebx
movzx eax, word [ebp - 0x2c]
mov dword [esi + 8], eax
push 0xb
movzx eax, word [ebp - 0x2c]
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, ebx
jl 0x7ddfe07b
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddfe12d
movzx eax, byte [ebp - 0x19]
jmp 0x7ddfe197
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
call fcn.7dd71605
ret 0xc
Function at 0x7ddfe71e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x7ddfe848
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.7dd74446
mov edi, dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
xor ebx, ebx
cmp eax, ebx
je 0x7ddfe793
cmp eax, esi
jae 0x7ddfe793
lea ecx, [ebp + eax*2 - 0x218]
cmp word [ecx - 2], 0x5c
lea edx, [ebp - 0x10]
jne 0x7ddfe777
lea edx, [ebp - 0xe]
push edx
mov edx, esi
sub edx, eax
push edx
push ecx
call fcn.7dd73da0
push ebx
push ebx
push 0x7de40338
lea eax, [ebp - 0x218]
push eax
call edi
push 0x7ddfe830
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor eax, eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], eax
mov eax, 0x208
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlQueryEnvironmentVariable_U]
test eax, eax
jl 0x7ddfe81c
movzx eax, word [ebp - 0x220]
shr eax, 1
lea ecx, [ebp - 0x10]
je 0x7ddfe7fb
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x7ddfe7fb
lea ecx, [ebp - 0xe]
push ecx
sub esi, eax
push esi
lea eax, [ebp + eax*2 - 0x218]
push eax
call fcn.7dd73da0
push ebx
push ebx
push 0x7de40330
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.7dd71442
leave
ret

Function at 0x7ddfeb4b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push dword [eax]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push 2
push eax
push 0x53
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
jge 0x7ddfeb7b
cmp dword [ebp + 0x10], 0
je 0x7ddfeb7b
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddfeb7e
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x7ddfefbe
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
mov eax, dword [eax + 0x14d0]
sub esp, 0x24
push ebx
mov ebx, dword [eax]
push esi
push edi
xor esi, esi
push esi
push 0x24
lea eax, [ebp - 0x24]
push eax
push 0x51
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
jl 0x7ddff057
mov edi, dword [ebp - 0x18]
push esi
push ebx
push esi
push edi
call sub.ntdll.dll__allmul
test edx, edx
ja 0x7ddff050
jb 0x7ddff009
cmp eax, 0xffffffff
ja 0x7ddff050
push esi
mov esi, dword [ebp - 0x14]
push ebx
push 0
push esi
call sub.ntdll.dll__allmul
test edx, edx
ja 0x7ddff050
jb 0x7ddff021
cmp eax, 0xffffffff
ja 0x7ddff050
mov eax, dword [ebp + 8]
imul edi, ebx
imul esi, ebx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ecx], eax
test al, 4
je 0x7ddff042
push 4
pop edx
test al, 1
je 0x7ddff049
or edx, 1
xor eax, eax
mov dword [ecx], edx
inc eax
jmp 0x7ddff05f
push 0xc0000095
jmp 0x7ddff058
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x7ddff2a5
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x7ddff2fd
push 0x50
lea eax, [ebp - 0x324]
push esi
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp + 4]
add esp, 0xc
lea esi, [ebp - 0x324]
mov dword [ebp - 0x324], 0xc0000602
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x318], eax
jmp 0x7ddff30d
or dword [esi + 4], 1
test byte [ebp + 0x10], 1
je 0x7ddff30d
mov eax, dword [ebp + 4]
mov dword [esi + 0xc], eax
test edi, edi
jne 0x7ddff335
push 0x2cc
lea eax, [ebp - 0x2d0]
push edi
push eax
call sub.ntdll.dll_memset
lea edi, [ebp - 0x2d0]
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.API_MS_Win_Core_RtlSupport_L1_1_0.dll_RtlCaptureContext]
call fcn.7ddff133
test eax, eax
jl 0x7ddff363
call fcn.7ddff1dd
test eax, eax
jl 0x7ddff363
cmp eax, 0x102
je 0x7ddff363
test byte [0x7ffe02f0], 1
je 0x7ddff363
push 0
push edi
push esi
call dword [sym.imp.ntdll.dll_NtRaiseException]
jmp 0x7ddff392
test byte [ebp + 0x10], 2
jne 0x7ddff385
lea eax, [ebp - 0x2d4]
push eax
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [esi]
or eax, 0x10000000
push eax
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
push dword [esi]
call fcn.7dd717e0
push eax
call fcn.7dd710b2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.7dd71442
leave
ret 0xc
Function at 0x7ddff936
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 0x18]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0x18], ebx
cmp dword [eax], 2
jne 0x7ddff979
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
jne 0x7ddff994
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
mov dword [esi + 0xc], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x7de043f6
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor ebx, ebx
push ebx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ebx
call edi
cmp dword [ebp - 0x210], ebx
jne 0x7de0443a
push 0x57
call edi
xor eax, eax
jmp 0x7de04614
push esi
push dword [ebp - 0x210]
call sym.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x214], eax
cmp dword [ebp + 0xc], ebx
je 0x7de04458
xor esi, esi
jmp 0x7de045c0
cmp eax, ebx
je 0x7de04475
push dword [eax + 0x18]
call sym.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x218], eax
cmp eax, ebx
jne 0x7de0447c
push 0x54f
call edi
xor eax, eax
jmp 0x7de04613
push ebx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.7dd9180b
test eax, eax
jge 0x7de044a6
movzx ebx, ax
mov esi, ebx
jmp 0x7de0459e
mov eax, dword [ebp - 0x21c]
dec eax
dec eax
cmp word [eax], 0x5c
je 0x7de044be
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jae 0x7de044ac
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
push ecx
mov esi, 0x7de04624
push esi
push eax
call fcn.7dd9bc13
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x7de04577
push edi
call sym.KERNEL32.dll_GetTempPathW
test eax, eax
jne 0x7de0450e
push 0x2e
pop eax
mov word [ebp - 0x20c], ax
push 0x5c
pop eax
mov word [ebp - 0x20a], ax
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
push 0
push esi
push eax
call fcn.7dd9bc13
test eax, eax
jne 0x7de0452b
call fcn.7dd711c7
mov esi, eax
jmp 0x7de0459e
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.7de042cd
mov esi, eax
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x7de04573
push 3
push dword [ebp - 0x218]
push eax
call sym.KERNEL32.dll_MoveFileExW
test eax, eax
jne 0x7de0459e
call fcn.7dd711c7
mov ebx, eax
mov esi, ebx
test ebx, ebx
jne 0x7de04592
mov eax, 0x54f
mov ebx, eax
mov esi, eax
jmp 0x7de04592
mov ebx, esi
jmp 0x7de04598
push dword [ebp - 0x210]
call fcn.7de042cd
mov esi, eax
test esi, esi
jne 0x7de04590
lea eax, [ebp - 0x20c]
jmp 0x7de04549
mov ebx, esi
lea eax, [ebp - 0x20c]
push eax
call fcn.7dd725e0
mov edi, dword [ebp - 0x214]
push dword [edi + 0x18]
call sym.KERNEL32.dll_GlobalUnlock
push dword [edi + 0x18]
call fcn.7dd75f60
mov edi, dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x7de045fe
cmp dword [ebp - 0x218], 0
jne 0x7de045ed
push dword [eax + 0x18]
call sym.KERNEL32.dll_GlobalLock
test eax, eax
je 0x7de045f3
mov eax, dword [ebp - 0x214]
push dword [eax + 0x18]
call fcn.7dd75f60
mov eax, dword [ebp - 0x214]
push eax
call fcn.7ddffa0a
push dword [ebp - 0x210]
call sym.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x210]
call fcn.7dd75f60
push ebx
call edi
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 8
Function at 0x7de0465c
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp sym.KERNEL32.dll_EndUpdateResourceW

Function at 0x7de04694
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x7de04843
cmp word [edi], bx
je 0x7de04843
push 0x1c
push 0x42
call fcn.7dd751e3
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x7de046da
mov dword [ebp - 4], 8
jmp 0x7de0484a
push eax
call sym.KERNEL32.dll_GlobalLock
mov esi, eax
cmp esi, ebx
jne 0x7de046f2
mov dword [ebp - 4], 8
jmp 0x7de04839
lea eax, [ebp - 0x14]
push eax
push 0x7fffffff
push edi
call fcn.7de01199
cmp eax, ebx
jge 0x7de04712
and eax, 0xffff
mov dword [ebp - 4], eax
jmp 0x7de04831
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 0x14]
mov dword [esi + 0x14], ebx
call fcn.7dd836a6
test eax, eax
jl 0x7de0482a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.7dde5a35
test eax, eax
jl 0x7de0482a
push dword [ebp - 0x10]
push 0x42
call fcn.7dd751e3
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x7de04763
mov dword [ebp - 4], 8
jmp 0x7de04831
push eax
call sym.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x7de0477c
mov dword [ebp - 4], 8
jmp 0x7de04813
push edi
push dword [ebp - 0xc]
push eax
call fcn.7dd73da0
push dword [esi + 0x18]
mov edi, eax
call sym.KERNEL32.dll_GlobalUnlock
cmp edi, ebx
jge 0x7de0479f
and edi, 0xffff
mov dword [ebp - 4], edi
jmp 0x7de04813
push dword [ebp - 0x14]
call fcn.7dd71add
cmp eax, 0xffffffff
jne 0x7de047c1
call fcn.7dd711c7
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x7de04813
mov dword [ebp - 4], 2
jmp 0x7de04813
test al, 0x17
je 0x7de047ce
mov dword [ebp - 4], 0x13
jmp 0x7de04813
push 3
push ebx
push dword [ebp + 8]
call fcn.7dd74808
mov edi, eax
cmp edi, ebx
jne 0x7de047f4
call fcn.7dd711c7
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x7de04813
mov dword [ebp - 4], 0xc1
jmp 0x7de04813
cmp dword [ebp + 0xc], ebx
jne 0x7de04808
push ebx
push 0x10
push esi
push 0x7de0466c
push edi
call sym.KERNEL32.dll_EnumResourceTypesExW
push edi
call fcn.7dd724bc
cmp dword [esi + 0x14], ebx
je 0x7de0481d
push dword [esi + 0x18]
call fcn.7dd75f60
jmp 0x7de04831
push dword [ebp - 8]
call sym.KERNEL32.dll_GlobalUnlock
mov eax, dword [ebp - 8]
jmp 0x7de04855
mov dword [ebp - 4], 0x216
push dword [ebp - 8]
call sym.KERNEL32.dll_GlobalUnlock
push dword [ebp - 8]
call fcn.7dd75f60
jmp 0x7de0484a
mov dword [ebp - 4], 0x57
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7de0736b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlNormalizeString]
mov edi, eax
test edi, edi
jge 0x7de073ce
push esi
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push eax
call esi
call fcn.7dd711c7
cmp eax, 2
jne 0x7de073b2
push 0x57
call esi
pop esi
cmp edi, 0xc0000023
je 0x7de073c7
cmp edi, 0xc0000717
je 0x7de073c7
xor eax, eax
jmp 0x7de073d9
mov eax, dword [ebp + 0x18]
neg eax
jmp 0x7de073d9
push 0
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x14

Function at 0x7de073e3
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
lea eax, [ebp + 0x13]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlIsNormalizedString]
test eax, eax
jge 0x7de07423
push esi
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push eax
call esi
call fcn.7dd711c7
cmp eax, 2
jne 0x7de0741e
push 0x57
call esi
xor eax, eax
pop esi
jmp 0x7de0742c
xor eax, eax
cmp byte [ebp + 0x13], 1
sete al
pop ebp
ret 0xc
Function at 0x7de07db2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xf8], ebx
lea edi, [ebp - 0xf4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb9
stosd dword es:[edi], eax
lea eax, [ebp - 0xbf]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], ebx
mov byte [ebp - 0xc0], bl
call sub.ntdll.dll_memset
xor eax, eax
mov word [ebp - 0xd8], ax
lea edi, [ebp - 0xd6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xe0], ax
lea edi, [ebp - 0xde]
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x7de08000
lea eax, [ebp - 0xe0]
push eax
call edi
cmp esi, ebx
jne 0x7de07e54
mov eax, 0xc000000d
jmp 0x7de07f9e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlSizeHeap]
cmp eax, 0xffffffff
je 0x7de07e4a
cmp eax, 0xac
jb 0x7de07e4a
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf8]
push eax
push 0x20019
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xf8], 0x18
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xec], 0x40
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
mov dword [ebp - 0xc4], eax
jl 0x7de07f84
push 0x7de07fd0
lea eax, [ebp - 0xd8]
push eax
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp - 0xcc]
push eax
mov esi, 0xba
push esi
lea eax, [ebp - 0xc0]
push eax
push 2
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0xc8]
call ebx
mov dword [ebp - 0xc4], eax
test eax, eax
jge 0x7de07f68
cmp eax, 0xc0000034
jne 0x7de07f82
push esi
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.ntdll.dll_memset
and dword [ebp - 0xcc], 0
add esp, 0xc
push 0x7de07fb0
lea eax, [ebp - 0xd8]
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
push esi
lea eax, [ebp - 0xc0]
push eax
push 2
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0xc8]
call ebx
mov dword [ebp - 0xc4], eax
test eax, eax
jl 0x7de07f82
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc0]
push dword [ebp + 8]
call fcn.7de07d6a
mov dword [ebp - 0xc4], eax
xor ebx, ebx
cmp dword [ebp - 0xc8], ebx
je 0x7de07f98
push dword [ebp - 0xc8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 4
Function at 0x7de15821
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
cmp esi, ebx
je 0x7de1583f
mov dword [esi], ebx
test dword [ebp + 8], 0xfffffffc
je 0x7de15852
mov edi, 0xc00000ef
jmp 0x7de15904
cmp esi, ebx
jne 0x7de15860
mov edi, 0xc00000f2
jmp 0x7de15904
push ebx
push 8
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ebx
push 1
call dword [sym.imp.ntdll.dll_RtlQueryInformationActivationContext]
mov edi, eax
cmp edi, ebx
jge 0x7de15892
push edi
push 0x7de15968
push 0x7de15920
push ebx
push 0x33
call dword [sym.imp.ntdll.dll_DbgPrintEx]
add esp, 0x14
jmp 0x7de15904
test byte [ebp - 4], 1
je 0x7de158a4
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlReleaseActivationContext]
mov dword [ebp - 8], ebx
test byte [ebp + 8], 2
je 0x7de158af
cmp dword [ebp - 8], ebx
je 0x7de15902
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push 0x10
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
cmp eax, ebx
jne 0x7de158da
mov edi, 0xc0000017
jmp 0x7de15904
test byte [ebp + 8], 1
mov dword [eax], ebx
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov dword [eax + 0xc], ecx
mov dword [ebp - 8], ebx
je 0x7de158f2
mov eax, dword [esi]
or dword [eax], 1
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
xor edi, edi
cmp dword [ebp - 8], ebx
je 0x7de15912
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlReleaseActivationContext]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7de15aa1
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x7de15afb
push 9
push 0x210
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x654]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, edi
jl 0x7de15afb
mov eax, dword [ebp - 0x214]
shr eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x7de15ba8
cmp esi, edi
je 0x7de15bab
mov eax, 0xfffe
add word [esi], ax
lea eax, [ebp - 0x64c]
push eax
push 1
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x64c], 0x18
mov dword [ebp - 0x648], edi
mov dword [ebp - 0x640], 0x40
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x638], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
add word [esi], 2
cmp eax, edi
jl 0x7de15bab
lea eax, [ebp - 0x624]
mov dword [ebp - 0x62c], eax
xor eax, eax
mov word [ebp - 0x630], ax
mov eax, 0x410
mov word [ebp - 0x62e], ax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x628]
mov dword [ebp - 0x634], edi
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
push dword [ebp - 0x628]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, edi
jl 0x7de15bab
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.7dd71442
leave
ret 8