joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13fb2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
push edi
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
mov ebx, 0xc0000001
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x140e4
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push 0xb
call edi
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x140e4
push esi
push 0x6261636d
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x1402c
mov ebx, 0xc000009a
jmp 0x140d3
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call edi
mov ebx, eax
test ebx, ebx
jl 0x140d3
mov edi, dword [esi]
and dword [ebp - 8], 0
test edi, edi
jbe 0x140d3
lea ecx, [esi + 0x10]
mov edx, dword [ecx - 4]
cmp dword [ebp + 8], edx
jb 0x14064
mov eax, dword [ecx]
add eax, edx
cmp dword [ebp + 8], eax
jb 0x14074
inc dword [ebp - 8]
add ecx, 0x11c
cmp dword [ebp - 8], edi
jb 0x14053
jmp 0x140d3
mov eax, dword [ebp - 8]
imul eax, eax, 0x11c
movzx ecx, word [eax + esi + 0x1e]
add ecx, eax
lea eax, [ecx + esi + 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jl 0x140ce
cmp dword [ebp - 0xc], 0
je 0x140ce
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00017202
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x140d3
mov ebx, 0xc0000001
test esi, esi
je 0x140e3
push 0x6261636d
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1585a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x14], ax
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
add eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
push 0x60
push 5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 8]
push 1
mov dword [ebp - 0xc], eax
xor eax, eax
push 0x80
push ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40100000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x240
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
cmp edi, ebx
jl 0x1590f
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add eax, esi
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x1591d
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x15928
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ecx]
add eax, ecx
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x14], 0x240
mov dword [ebp - 0x18], ecx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
pop edi
leave
ret
Function at 0x16a0c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor eax, eax
cmp byte [0x394a4], 1
mov dword [ebp - 4], esi
je 0x16ad1
lea eax, [ebp - 4]
push eax
push 0x37688
call fcn.0001fdf0
cmp eax, esi
jl 0x16ad1
push 0x394a8
push 1
push 0x37690
push dword [ebp - 4]
call fcn.00020090
cmp eax, esi
jl 0x16ad1
push 0x394ac
push 2
push 2
push 0x37698
push dword [0x394a8]
call fcn.00020210
cmp eax, esi
jl 0x16ad1
push dword [ebp - 4]
call fcn.00021c10
cmp dword [0x37894], esi
je 0x16ab9
mov eax, 0x37894
push edi
mov cx, word [eax - 4]
mov edi, 0xfffe
and cx, di
xor edi, edi
xor edx, edx
cmp di, cx
jae 0x16ab1
mov ecx, dword [eax]
lea ecx, [ecx + edx*2]
xor word [ecx], 0x23
movzx ecx, word [eax - 4]
inc edx
shr ecx, 1
cmp edx, ecx
jl 0x16a9d
add eax, 8
cmp dword [eax], esi
jne 0x16a88
pop edi
push esi
push esi
push esi
push 0x1698c
call fcn.00011734
cmp eax, esi
jl 0x16ad1
mov byte [0x394a4], 1
pop esi
leave
ret
Function at 0x16ada
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
push dword [0x394ac]
call fcn.00020a60
test al, al
jne 0x16c7a
push ebx
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push 0xb
call edi
cmp eax, 0xc0000004
jne 0x16c78
push esi
push 0x6f647054
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x16c77
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call edi
test eax, eax
jl 0x16c77
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jbe 0x16c6b
mov dword [ebp - 8], 0xfffffff4
sub dword [ebp - 8], esi
lea ebx, [esi + 0xc]
mov edi, dword [ebx]
mov eax, dword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
cmp edi, dword [eax]
jb 0x16c6b
and dword [ebp - 0x7c], 0
push 0x48
lea eax, [ebp - 0x78]
push 0
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [ebx + 4]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x64], edi
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx + 0x12]
add eax, dword [ebp - 8]
add esp, 0xc
add eax, ebx
lea eax, [eax + esi + 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x16c56
movzx edi, word [ebp - 0x50]
push 0x6f647054
add edi, 0xc
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x16c53
lea eax, [edi - 0xc]
mov dword [esi + 8], eax
mov dword [esi], 1
mov dword [esi + 4], 3
movzx eax, word [ebp - 0x50]
push eax
push dword [ebp - 0x4c]
lea eax, [esi + 0xc]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0
push edi
push esi
push dword [0x394ac]
call fcn.0001ff40
push 0x6f647054
push esi
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test edi, edi
jne 0x16c49
mov eax, dword [ebp - 0x64]
or dword [ebp - 0x30], 0x100
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00018336
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov esi, dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add ebx, 0x11c
cmp eax, dword [ebp - 0x14]
jb 0x16b62
push 0x6f647054
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x17308
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp word [eax], 0x5c
je 0x17343
mov ax, word [ecx]
push esi
mov esi, 0xfffe
and ax, si
xor esi, esi
xor edx, edx
cmp si, ax
pop esi
jae 0x17343
mov eax, dword [ecx + 4]
lea eax, [eax + edx*2]
xor word [eax], 0x23
movzx eax, word [ecx]
inc edx
shr eax, 1
cmp edx, eax
jl 0x1732f
pop ebp
ret 4
Function at 0x17390
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push eax
push 0
push 0x100
push 0x22
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, 0x40000000
je 0x173bf
cmp eax, 0xc0000035
jne 0x173fd
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov edi, eax
test edi, edi
jl 0x173fc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0x1c
push eax
call fcn.0001734c
test al, al
je 0x173f1
mov edi, 0x40000000
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
leave
ret 8

Function at 0x174b0
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
pop edi
test eax, eax
jl 0x17512
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
leave
ret 8
Function at 0x175e6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push dword [ebp + 8]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x80000000
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x176cf
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
jne 0x176cf
push ebx
push 0x49474552
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
cmp ebx, esi
je 0x176ce
push dword [ebp - 4]
push esi
push ebx
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], esi
call edi
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x176c1
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x176ce
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
pop ebx
cmp dword [ebp - 8], esi
pop edi
pop esi
je 0x176df
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 8]
leave
ret 0x10
Function at 0x17742
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
cmp esi, ebx
jl 0x177c6
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x177d4
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14

Function at 0x17804
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
je 0x17894
cmp dword [ebp + 0xc], ebx
je 0x17894
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
pop edi
jl 0x17899
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
jmp 0x17899
mov eax, 0xc000000d
pop esi
pop ebx
leave
ret 8
Function at 0x178a4
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x178bb
mov eax, 0xc000000d
jmp 0x17924
push edi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
pop edi
jl 0x17924
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 4

Function at 0x179c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x17a75
cmp dword [ebp + 0xc], ebx
je 0x17a75
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
pop edi
pop esi
jl 0x17a7a
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
jne 0x17a6e
cmp dword [ebp - 4], ebx
je 0x17a6a
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x17a7a
mov eax, 0xc0000034
jmp 0x17a7a
mov eax, 0xc000000d
pop ebx
leave
ret 8
Function at 0x17a84
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x17b7b
cmp dword [ebp + 0x14], ebx
je 0x17b7b
mov esi, dword [ebp + 0x1c]
cmp esi, ebx
je 0x17b7b
cmp dword [ebp + 0x18], ebx
je 0x17b7b
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [esi], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov edi, eax
cmp edi, ebx
jl 0x17b5d
mov esi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov edi, eax
mov eax, 0xc0000023
cmp edi, eax
jne 0x17b5d
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp - 8]
jb 0x17b5b
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x17b6b
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
jl 0x17b77
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, edi
jmp 0x17b80
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x17b8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x17c83
cmp dword [ebp + 0x14], ebx
je 0x17c83
mov esi, dword [ebp + 0x1c]
cmp esi, ebx
je 0x17c83
cmp dword [ebp + 0x18], ebx
je 0x17c83
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [esi], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov edi, eax
cmp edi, ebx
jl 0x17c65
mov esi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov edi, eax
mov eax, 0xc0000023
cmp edi, eax
jne 0x17c65
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp - 8]
jb 0x17c63
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x17c73
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
jl 0x17c7f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, edi
jmp 0x17c88
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x17c94
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x37910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x394b0]
test eax, eax
jne 0x17d5e
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jl 0x17d59
cmp dword [ebp - 0x11c], 5
movzx ecx, word [ebp - 0xc]
jne 0x17cee
mov dword [0x394b0], 0x200
jmp 0x17d59
cmp dword [ebp - 0x11c], 6
jne 0x17d3c
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x17d06
cmp eax, 1
jne 0x17d12
mov dword [0x394b0], 0x262
jmp 0x17d59
cmp eax, 2
jne 0x17d27
test ecx, ecx
jne 0x17d59
mov dword [0x394b0], 0x26c
jmp 0x17d59
cmp eax, 3
jne 0x17d59
test ecx, ecx
jne 0x17d59
mov dword [0x394b0], 0x276
jmp 0x17d59
cmp dword [ebp - 0x11c], 0xa
jne 0x17d59
cmp dword [ebp - 0x118], 0
jne 0x17d59
mov eax, dword [ebp - 0x114]
mov dword [0x394b0], eax
mov eax, dword [0x394b0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00016ce5
leave
ret
Function at 0x181f2
Capabilities:
Parse pe header

Disassembly:
push 0x1ec
push 0x36d08
call fcn.00016d34
mov dword [ebp - 0x20], 0xc0000001
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp + 0xc], 0x38088
mov dword [ebp + 8], 8
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x2c], eax
add eax, 0x18
mov dword [ebp - 0x24], eax
push 0x38
pop ecx
mov esi, eax
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
push 0x3c
pop ecx
mov esi, eax
lea edi, [ebp - 0x1fc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xfc]
lea esi, [eax + ebx]
mov eax, dword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
cmp ebx, dword [eax]
jb 0x18326
push ebx
mov edi, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
call edi
test al, al
je 0x18326
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x18326
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x18326
mov eax, 0x20b
mov ecx, dword [ebp - 0x24]
cmp word [ecx], ax
jne 0x182b1
mov dword [ebp + 0xc], 0x38080
mov dword [ebp + 8], 6
mov eax, dword [ebp - 0x1ec]
lea esi, [eax + ebx]
cmp dword [ebp - 0x28], esi
jbe 0x18326
push esi
call edi
test al, al
je 0x18326
mov eax, dword [ebp + 8]
add eax, esi
cmp dword [ebp - 0x28], eax
ja 0x182f2
mov eax, 0x10b
mov ecx, dword [ebp - 0x24]
cmp word [ecx], ax
jne 0x182e4
mov dword [ebp + 0xc], 0x3807c
mov dword [ebp + 8], 3
jmp 0x182f2
mov dword [ebp + 0xc], 0x38078
mov dword [ebp + 8], 1
and dword [ebp - 4], 0
push 1
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.0001812c
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xfffffffe
test al, al
je 0x18326
and dword [ebp - 0x20], 0
jmp 0x18326
mov eax, dword [ebp - 0x20]
call fcn.00016d79
ret 8