joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dd9ae94
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x7dd9aea1
push 0x3c
push 0x7dd9af70
call fcn.7dd715c0
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x7ddae295
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], 1
mov eax, dword fs:[0x18]
push 0x10
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, esi
je 0x7ddae2b0
mov dword [ebx], edi
cmp dword [ebp + 0x14], esi
je 0x7ddae2b7
push 0xa
pop ecx
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], eax
mov dword [ebp - 0x34], 0x7dd9affc
cmp dword [ebp - 0x44], esi
je 0x7dd9af24
mov eax, dword [ebp - 0x40]
cmp eax, esi
jne 0x7ddae2e6
mov dword [ebx + 8], esi
mov dword [ebx], edi
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push 0x7dd9afc3
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_TpAllocIoCompletion]
cmp eax, esi
jl 0x7ddae2fb
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x24], 0
call fcn.7dd9af91
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x10
push 0x57
call sym.KERNEL32.dll_SetLastError
push esi
push esi
push esi
push 0xc000000d
call fcn.7dd751fb
xor eax, eax
jmp 0x7dd9af64
push 0xc0000017
jmp 0x7ddae2ff
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x28
jmp 0x7dd9af07
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x7de14e69
jmp 0x7dd9af27
mov dword [ebp - 0x1c], esi
push eax
call dword [sym.imp.ntdll.dll_RtlSetLastWin32ErrorAndNtStatusFromNtStatus]
jmp 0x7dd9af4e

Function at 0x7dd9b19e
Capabilities:
Check processdebugport

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x7dd9b1de
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x7dd9b1de
push 0
push 4
lea eax, [ebp + 8]
push eax
push 7
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x7dd9e21f
xor eax, eax
cmp dword [ebp + 8], eax
setne al
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd9e225
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd9b1d9
Function at 0x7dde3e57
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x448], bl
je 0x7dde3eff
mov edi, dword [esi + 0x444]
add edi, dword [esi + 0x43c]
push 8
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
pop eax
add ecx, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 9
mov dword [esi + 0x10], ebx
mov dword [esi + 0x42c], 0x1c
adc edx, ebx
mov dword [esi + 0xc], edx
mov ecx, dword [edi]
lea eax, [esi + 0x418]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ecx
mov byte [esi + 0x448], bl
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [ebp + 8]
call fcn.7dd7168a
mov dword [ebp - 8], eax
cmp eax, dword [edi]
jne 0x7dde3eef
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 4]
je 0x7dde3efa
mov byte [esi + 0x45f], 1
xor eax, eax
jmp 0x7dde3f6d
xor eax, eax
inc eax
jmp 0x7dde3f6d
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x42c]
xor ecx, ecx
cmp edx, ecx
jg 0x7dde3f1d
jl 0x7dde3efa
mov ecx, dword [esi + 0x420]
cmp ecx, eax
jb 0x7dde3efa
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push dword [edi + 8]
push esi
call fcn.7dde3d96
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [edi]
push dword [ebp + 8]
call sub.API_MS_Win_Core_File_L1_1_0.dll_ReadFile
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], ebx
je 0x7dde3f53
push dword [ebp + 0xc]
push edi
push esi
call fcn.7dde3ddc
jmp 0x7dde3f6a
cmp eax, ebx
je 0x7dde3f6a
cmp dword [ebp + 0x10], ebx
je 0x7dde3f6a
push 0x45d
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde427a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x448], bl
je 0x7dde430f
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x418], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x41c], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp byte [esi + 0x449], bl
je 0x7dde42bc
mov eax, dword [esi + 0x430]
jmp 0x7dde42bf
mov eax, dword [ebp + 8]
push ebx
lea edx, [ebp - 8]
push edx
push ecx
push eax
call fcn.7dd7168a
mov dword [ebp - 0xc], eax
cmp eax, dword [esi + 0x418]
jne 0x7dde42e1
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x41c]
je 0x7dde42e5
xor eax, eax
jmp 0x7dde4356
cmp dword [esi + 8], 8
jne 0x7dde4309
cmp dword [esi + 0xc], ebx
jne 0x7dde4309
cmp byte [esi + 0x449], bl
je 0x7dde4300
mov eax, dword [esi + 0x430]
jmp 0x7dde4303
mov eax, dword [ebp + 8]
push eax
call fcn.7dd8ce63
mov byte [esi + 0x448], bl
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [edi + 8]
push esi
call fcn.7dde3d96
test eax, eax
je 0x7dde4355
cmp byte [esi + 0x449], bl
je 0x7dde4334
mov eax, dword [esi + 0x430]
jmp 0x7dde4337
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [edi]
push eax
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
push dword [ebp - 4]
mov ebx, eax
push edi
push esi
call fcn.7dde3ddc
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x7dde4361
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x45d], bl
je 0x7dde43d5
test byte [esi + 4], 8
push ebx
je 0x7dde439a
push ebx
push ebx
push ebx
push 0x900c4
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
jmp 0x7dde43cf
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.7dd7168a
push dword [ebp + 8]
call fcn.7dd8ce63
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.7dd7168a
mov byte [esi + 0x45d], bl
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [edi + 8]
push esi
call fcn.7dde3d96
test eax, eax
je 0x7dde4409
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [edi]
push dword [ebp + 8]
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
push dword [ebp - 4]
mov ebx, eax
push edi
push esi
call fcn.7dde3ddc
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde46d5
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov edi, 0x1000
mov dword [ebp - 8], edi
mov byte [ebp - 1], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [esi + 0x440], ebx
mov dword [esi + 0x444], ebx
mov byte [esi + 0x448], bl
call fcn.7dd7194b
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push edi
jmp 0x7dde477f
mov eax, dword [esi + 0x440]
mov ecx, dword [esi + 0x438]
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x43c]
add ecx, eax
push ecx
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0x940cf
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntdll.dll_NtFsControlFile]
cmp eax, 0x80000005
je 0x7dde4764
cmp eax, ebx
jl 0x7dde4773
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x7dde47ff
mov byte [ebp - 1], 1
cmp dword [ebp - 8], 0x10
jae 0x7dde4795
add dword [ebp - 8], edi
push dword [ebp - 8]
lea eax, [esi + 0x434]
push eax
call fcn.7dde4597
test eax, eax
jne 0x7dde4723
mov dword [esi + 0x440], ebx
cmp byte [ebp - 1], bl
je 0x7dde47a2
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
jne 0x7dde47af
cmp dword [esi + 0x440], 0x10
jb 0x7dde4846
mov ecx, dword [esi + 0x43c]
cmp byte [ebp - 1], bl
jne 0x7dde47d1
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x7dde47d1
mov eax, dword [ecx + 8]
cmp eax, dword [ebp - 0x10]
jne 0x7dde47d1
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x7dde4846
add dword [esi + 0x440], 0x10
mov eax, dword [esi + 0x440]
lea eax, [eax + ecx - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
xor eax, eax
mov byte [esi + 0x448], 1
inc eax
jmp 0x7dde484e
add dword [esi + 0x440], eax
mov ecx, dword [esi + 0x43c]
mov eax, dword [esi + 0x440]
lea eax, [eax + ecx - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 8]
add dword [ebp - 0x28], ecx
mov eax, dword [eax + 0xc]
adc dword [ebp - 0x24], eax
mov eax, dword [esi + 0x440]
add eax, 0x10
cmp eax, dword [esi + 0x438]
ja 0x7dde4779
jmp 0x7dde4795
mov dword [esi + 0x440], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde485a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x45d], bl
je 0x7dde4912
mov eax, dword [esi + 0x460]
test eax, 0x4000
je 0x7dde4889
xor eax, eax
inc eax
jmp 0x7dde491e
test al, 0x10
jne 0x7dde4881
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.7dd7194b
mov ecx, eax
or ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x7dde4881
cmp eax, 0xffffffff
jne 0x7dde48b5
call fcn.7dd711c7
test eax, eax
je 0x7dde48b5
xor eax, eax
jmp 0x7dde491e
push dword [ebp + 0x10]
mov dword [esi], 1
push esi
push dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x42c], 0x14
mov byte [esi + 0x45d], bl
call fcn.7dde46d5
test eax, eax
je 0x7dde48f0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 8
jmp 0x7dde4881
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.7dd7168a
jmp 0x7dde4881
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.7dde3e57
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde4bb1
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x45d], bl
je 0x7dde4c6b
lea edi, [esi + 0x434]
push 1
push ebx
push ebx
push ebx
push ebx
push dword [edi]
lea eax, [ebp - 8]
push dword [esi + 0x43c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryEaFile]
cmp eax, ebx
jl 0x7dde4bf8
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x7dde4c40
cmp eax, 0x80000005
je 0x7dde4c0a
cmp eax, 0xc0000023
jne 0x7dde4c90
push 7
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jl 0x7dde4c90
mov eax, dword [ebp + 0xc]
imul eax, eax, 5
shr eax, 2
push eax
push edi
call fcn.7dde4597
test eax, eax
jne 0x7dde4bd2
mov byte [esi + 0x45f], 1
jmp 0x7dde4c93
mov byte [esi + 0x45c], 1
mov dword [esi], 2
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x42c], 0x14
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x45d], bl
jmp 0x7dde4c90
mov ecx, dword [esi + 0x424]
cmp ecx, ebx
mov eax, dword [esi + 0x42c]
jl 0x7dde4c90
jg 0x7dde4c87
mov ecx, dword [esi + 0x420]
cmp ecx, eax
jb 0x7dde4c90
push dword [ebp + 0x10]
push esi
call fcn.7dde3e08
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde564f
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
call fcn.7dde532c
dec eax
je 0x7dde5679
dec eax
je 0x7dde5671
xor eax, eax
jmp 0x7dde577e
xor eax, eax
inc eax
jmp 0x7dde577e
and dword [ebp + 0x10], 0
mov eax, dword [esi + 0x43c]
push ebx
push edi
push 2
xor edi, edi
pop ebx
jmp 0x7dde569d
cmp cx, 0x5c
jne 0x7dde5699
inc dword [ebp + 0x10]
mov edi, eax
xor ebx, ebx
inc eax
inc eax
inc ebx
inc ebx
movzx ecx, word [eax]
test cx, cx
jne 0x7dde568c
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 8], eax
call fcn.7dde4565
mov esi, eax
test esi, esi
jne 0x7dde56c6
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dde577c
lea eax, [edi + 2]
push ebx
push eax
mov dword [ebp - 4], eax
lea eax, [esi + 0xc]
push eax
call sub.ntdll.dll_memcpy
add ebx, 0xfffffffe
add esp, 0xc
cmp dword [ebp + 0x10], 1
mov dword [esi + 8], ebx
jle 0x7dde56eb
push 0x5c
pop ebx
jmp 0x7dde56f1
movzx ebx, word [edi]
mov edi, dword [ebp - 4]
xor eax, eax
push eax
push 0x2000080
push 3
push eax
push 7
mov word [edi], ax
mov eax, dword [ebp + 0xc]
push 0xc0000000
push dword [eax + 0x43c]
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov dword [esi + 4], eax
mov word [edi], bx
xor ebx, ebx
inc ebx
cmp dword [esi + 4], 0xffffffff
mov byte [esi], 1
jne 0x7dde5730
push 2
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dde575b
push 0xb
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [esi + 4]
mov edi, eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
or dword [esi + 4], 0xffffffff
test edi, edi
jge 0x7dde575f
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
xor ebx, ebx
jmp 0x7dde5774
cmp dword [ebp - 8], 3
jne 0x7dde576c
push 0xb7
jmp 0x7dde576e
push 0
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push esi
call fcn.7dd985cf
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x7dde5ae2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
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
jl 0x7dde5b83
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x7dde5b43
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 1
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
cmp esi, edi
jl 0x7dde5b78
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0x7dde5b8e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call edi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtCreateKey]
cmp eax, esi
jl 0x7dde5c1d
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push 7
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
cmp edi, esi
jl 0x7dde5c12
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x7dde6111
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dde6128
sub eax, edx
sar eax, 1
mov ebx, eax
lea esi, [ebx + ebx]
push esi
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteSize]
test eax, eax
jl 0x7dde623c
cmp dword [ebp + 8], 0
je 0x7dde623c
cmp dword [ebp + 8], 0xf
ja 0x7dde623c
push 0x7ddb2fe8
push edi
call sub.ntdll.dll_wcscspn
pop ecx
pop ecx
cmp eax, ebx
jb 0x7dde623c
cmp word [edi], 0x20
je 0x7dde623c
cmp word [esi + edi - 2], 0x20
je 0x7dde623c
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x7ddb3058
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
xor ebx, ebx
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, 0xc0000034
jne 0x7dde61dc
push 0x1f
jmp 0x7dde623e
push 0x7dd81f60
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7dde61ec
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
cmp eax, ebx
jge 0x7dde6225
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x7dde6244
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
inc eax
jmp 0x7dde6246
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7dde6e11
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
and dword [ebp - 4], esi
push esi
push dword [ebp + 8]
call fcn.7dd9c723
test eax, eax
jne 0x7dde6e89
call fcn.7dd711c7
cmp eax, 0xea
jne 0x7dde6e89
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
add edx, edx
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x7dde6e89
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call fcn.7dd9c723
test eax, eax
jne 0x7dde6e89
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x7dde6e95
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
and dword [ebp - 8], edi
test eax, eax
jl 0x7dde701b
push esi
push 2
pop esi
cmp eax, esi
jle 0x7dde7012
cmp eax, 3
je 0x7dde6ed7
jle 0x7dde701a
cmp eax, 6
jle 0x7dde7012
cmp eax, 7
jne 0x7dde701a
push 1
call fcn.7dde6e95
push esi
mov dword [ebp + 8], eax
call fcn.7dde6e95
cmp dword [ebp + 8], 0
mov edi, eax
mov dword [ebp - 4], edi
jne 0x7dde6f06
test edi, edi
je 0x7dde701a
push 1
call fcn.7dde6e11
mov dword [ebp + 8], eax
jmp 0x7dde6f15
test edi, edi
jne 0x7dde6f15
push esi
call fcn.7dde6e11
mov dword [ebp - 4], eax
mov edi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x7dde6f30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x7dde6f1f
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x7dde6ff4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x7dde6f43
sub eax, edx
sar eax, 1
je 0x7dde6ff4
mov esi, dword [ebp - 8]
test esi, esi
je 0x7dde6ff4
cmp eax, 1
jne 0x7dde6f83
cmp word [edi], 0x2e
jne 0x7dde6f83
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call ebx
xor eax, eax
mov dword [ebp - 4], eax
lea esi, [eax + esi + 2]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
lea edx, [esi + esi]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x7dde6fd9
push dword [ebp + 8]
push esi
push edi
call sub.ntdll.dll_wcscpy_s
push 0x7ddb3270
push esi
push edi
call sub.ntdll.dll_wcscat_s
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x7dde6fd9
push dword [ebp - 4]
push esi
push edi
call sub.ntdll.dll_wcscat_s
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x7dde6ff7
push dword [ebp + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call ebx
jmp 0x7dde6ff7
mov edi, dword [ebp + 8]
cmp dword [ebp - 4], 0
je 0x7dde701a
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call ebx
jmp 0x7dde701a
push eax
call fcn.7dde6d4f
mov edi, eax
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x7dde7028
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.7dde6e95
test eax, eax
je 0x7dde7054
cmp word [eax], 0
jne 0x7dde705a
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebp
jmp fcn.7dde6e11
pop ebp
ret 4
Function at 0x7dde7224
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x7dde7238
xor eax, eax
jmp 0x7dde72d0
push ebx
push 0x7ddb3270
push esi
call sub.ntdll.dll_wcscspn
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
mov ebx, eax
jne 0x7dde7252
mov esi, ebx
jmp 0x7dde7285
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dde7257
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x7dde726d
xor esi, esi
jmp 0x7dde7285
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dde7272
sub eax, edx
sar eax, 1
sub eax, ebx
dec eax
mov esi, eax
push edi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
lea edx, [esi + esi + 2]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x7dde72ce
push esi
inc esi
cmp dword [ebp + 0xc], 0
jne 0x7dde72ba
push dword [ebp + 8]
jmp 0x7dde72c2
mov eax, dword [ebp + 8]
lea eax, [eax + ebx*2 + 2]
push eax
push esi
push edi
call sub.ntdll.dll_wcsncpy_s
add esp, 0x10
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 8