joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e7f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x44e82b
push 0x49b8e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.0044e480
mov edi, eax
test edi, edi
je 0x44e82b
inc dword [edi + 0x14]
push 0x49b8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44e84f
test esi, esi
je 0x44e847
push 0x49b8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44e864
test esi, esi
jmp 0x44e95a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x44e899
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44e956
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00464c80
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.0044e4c0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x44e91d
push eax
mov eax, esi
call fcn.0044e640
add esp, 4
push esi
call fcn.0044e6d0
add esp, 4
test eax, eax
je 0x44e94f
push esi
call fcn.0044e570
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x44e973
add eax, edi
je 0x44e94f
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x44e970
mov eax, esi
call fcn.0044eac0
cmp dword [ebp + 0xc], 0
je 0x44e967
push 0x49b8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x44e9a4
push eax
call fcn.0045d17a
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.0044e380
push 0x49b8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459753
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4979d4]
jne 0x45975d
repz ret
jmp fcn.00462399
Function at 0x45c51a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45c541
call fcn.0045cabb
mov dword [eax], esi
call fcn.0045caa8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00463ca0
mov eax, esi
jmp 0x45c596
test dword [ebp + 0xc], 0xfffffff9
jne 0x45c527
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45c56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045cace
pop ecx
call fcn.0045caa8
mov eax, dword [eax]
jmp 0x45c596
test al, 0x10
jne 0x45c594
test al, 1
je 0x45c594
test byte [ebp + 0xc], 2
je 0x45c594
call fcn.0045cabb
mov dword [eax], 5
call fcn.0045caa8
mov dword [eax], 0xd
jmp 0x45c565
xor eax, eax
pop esi
pop ebp
ret

Function at 0x470e40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4979d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00463fe9
and dword [ebp - 0x14], 0
cmp dword [0x49a184], 0
mov dword [ebp - 0x18], eax
jne 0x470ef3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x470f9b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47fa8c
push ebx
call edi
test eax, eax
je 0x470f9b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47fa7c
push ebx
mov dword [0x49a184], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49a188], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49a18c], eax
call edi
push eax
call esi
mov dword [0x49a194], eax
test eax, eax
je 0x470ef3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49a190], eax
mov eax, dword [0x49a190]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x470f4c
cmp dword [0x49a194], ecx
je 0x470f4c
push eax
call esi
push dword [0x49a194]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x470f4c
test ebx, ebx
je 0x470f4c
call edi
test eax, eax
je 0x470f43
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x470f43
test byte [ebp - 8], 1
jne 0x470f4c
or dword [ebp + 0x10], 0x200000
jmp 0x470f7f
mov eax, dword [0x49a188]
cmp eax, dword [ebp - 0x18]
je 0x470f7f
push eax
call esi
test eax, eax
je 0x470f7f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x470f7f
mov eax, dword [0x49a18c]
cmp eax, dword [ebp - 0x18]
je 0x470f7f
push eax
call esi
test eax, eax
je 0x470f7f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49a184]
call esi
test eax, eax
je 0x470f9b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x470f9d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459753
leave
ret
Function at 0x12f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [0x22700], ax
mov ax, word [esi + 2]
add ax, 2
push edi
movzx ecx, ax
push ecx
xor edi, edi
push edi
mov word [0x22702], ax
call ebx
mov dword [0x22704], eax
cmp eax, edi
je 0x12ffd
movzx edx, word [0x22702]
push edx
push edi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
push 0x22700
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x24], 0x22700
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x13113
push str.ImagePath
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
push 2
lea ecx, [ebp - 0xc]
push ecx
push edx
call edi
cmp eax, 0xc0000034
je 0x13104
mov eax, dword [ebp - 4]
test eax, eax
je 0x13104
add eax, 2
push eax
push 0
mov dword [ebp - 4], eax
call ebx
mov esi, eax
test esi, esi
jne 0x1300b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push ecx
push 0
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push eax
push esi
push 2
lea ecx, [ebp - 0xc]
push ecx
push edx
call edi
mov edi, eax
test edi, edi
jge 0x13053
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], 2
jne 0x1309b
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x1309b
push eax
push 0
call ebx
mov dword [0x223b0], eax
test eax, eax
je 0x13094
mov ecx, dword [esi + 8]
push ecx
push 0
push eax
call sub.ntoskrnl.exe_memset
mov edx, dword [esi + 8]
mov ecx, dword [0x223b0]
push edx
lea eax, [esi + 0xc]
push eax
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0x18
jmp 0x130a0
mov edi, 0xc000009a
jmp 0x130a0
mov edi, 0xc000003e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test edi, edi
jl 0x130f9
mov eax, dword [0x223b0]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x223c4
push 0x223c0
lea edx, [ebp - 0x14]
push edx
call fcn.00012490
mov edi, eax
test edi, edi
jl 0x130f9
mov eax, dword [0x223c4]
mov ecx, dword [0x223c0]
push eax
push ecx
push 0
call fcn.0001e8d0
mov dword [0x223c8], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x16ef0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0xb
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
call edi
mov esi, dword [ebp - 8]
add esi, esi
push esi
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
lea ecx, [ebp - 8]
push ecx
push esi
mov ebx, eax
push ebx
push 0xb
call edi
test eax, eax
jl 0x16ff2
mov ecx, dword [ebp + 8]
cmp dword [ebx], ecx
jb 0x16ff2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x16f58
mov edx, ecx
imul edx, edx, 0x11c
mov edx, dword [edx + ebx + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x16fdb
mov edx, dword [str.SystemRootSystem32_]
imul ecx, ecx, 0x11c
mov dword [eax], edx
mov edx, dword [0x20670]
mov dword [eax + 4], edx
mov edx, dword [0x20674]
mov dword [eax + 8], edx
mov edx, dword [0x20678]
mov dword [eax + 0xc], edx
mov edx, dword [0x2067c]
mov dword [eax + 0x10], edx
mov dx, word [0x20680]
mov word [eax + 0x14], dx
movzx edx, word [ecx + ebx + 0x1e]
add edx, ecx
lea ecx, [edx + ebx + 0x20]
mov esi, ecx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x16fb0
sub ecx, esi
mov edx, ecx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x16fc0
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x16fee
imul ecx, ecx, 0x11c
mov ecx, dword [ecx + ebx + 0x10]
mov dword [eax], ecx
mov byte [ebp - 1], 1
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x17010
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x1000
mov dword [ebp - 4], 0
push edi
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x17065
push edi
push 0
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x17065
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, dword [ebp - 4]
add edi, edi
jmp 0x17026
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x17070
Capabilities:
Enumerate pe sections
Get file attributes
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x20], eax
push 0x100020
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
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_ZwCreateFile]
test eax, eax
jge 0x170cb
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push esi
push edi
push 5
push 0x18
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
test eax, eax
jl 0x1713c
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x1713c
cmp dword [ebp - 0x34], ebx
jne 0x1713c
push eax
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x1713c
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
push ebx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jge 0x1713c
mov ecx, dword [ebp + 8]
push ecx
call esi
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebx, ebx
mov edx, dword [ebp + 8]
push edx
call esi
test ebx, ebx
je 0x171dd
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x171d4
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x171d4
mov ecx, dword [esi + 0x50]
push ecx
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x171d4
mov edx, dword [esi + 0x54]
push edx
mov edi, eax
push ebx
push edi
call sub.ntoskrnl.exe_memcpy
movzx eax, word [esi + 0x14]
add eax, dword [edi + 0x3c]
xor ecx, ecx
add esp, 0xc
lea edi, [eax + edi + 0x18]
mov dword [ebp - 8], 0
cmp cx, word [esi + 6]
jae 0x171d4
add edi, 0x10
mov eax, dword [edi]
test eax, eax
je 0x171c2
cmp eax, dword [esi + 0x50]
jae 0x171c2
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi - 4]
add eax, dword [ebp - 4]
add edx, ebx
push edx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
movzx ecx, word [esi + 6]
inc eax
add edi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x171a1
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x17662
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
mov dword [esp], 0xf81c1061
mov dword [esp + 0x20], edx
call fcn.0003500c
Function at 0x17ad0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push 0x1000
push 1
call edi
mov esi, eax
test esi, esi
jne 0x17afa
pop edi
mov eax, 0xc000009a
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0x4001
push 1
call edi
mov ebx, eax
test ebx, ebx
jne 0x17b20
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop ebx
pop edi
mov eax, 0xc000009a
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push str.GET__s_HTTP_1.1_r_nHost:__s_r_nAccept:___r_nUser_Agent:Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__r_n_r_n
push 0x1000
push esi
call dword [sym.imp.ntoskrnl.exe__snprintf]
add esp, 0x14
push 0
push 1
push 2
call fcn.0001e290
mov edi, eax
cmp edi, 0xffffffff
jne 0x17b6c
push 0
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call esi
push 0
push ebx
call esi
pop ebx
pop edi
mov eax, 0xc000009a
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x10], dx
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
mov word [ebp - 0xe], ax
mov dword [ebp - 0xc], ecx
call fcn.0001e3d0
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x17bcf
mov eax, esi
lea edx, [eax + 1]
jmp 0x17ba0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x17ba0
push 0
sub eax, edx
push eax
push esi
push edi
call fcn.0001e6e0
mov dword [ebp + 0xc], eax
push 0
test eax, eax
jl 0x17bd1
push 0x4000
push ebx
push edi
call fcn.0001e5e0
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x17bf1
push 0
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call esi
push 0
push ebx
call esi
push edi
call fcn.0001e670
mov eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov byte [ebx + 0x4000], 0
jmp fcn.000385f7
Function at 0x1b5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call ebx
test al, al
je 0x1b742
mov edi, dword [ebp + 0x10]
push edi
call ebx
test al, al
je 0x1b742
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0x1c]
push eax
call ebx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp - 0x34], ecx
push 0x20019
lea ecx, [ebp + 0xc]
xor esi, esi
push ecx
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x30], 0x240
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1b747
push edi
lea edx, [ebp - 0x14]
push edx
call ebx
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 2
lea ecx, [ebp - 0x14]
push ecx
push edx
call edi
cmp eax, 0xc0000034
je 0x1b72a
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1b72a
add eax, 2
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
jne 0x1b686
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 0xc]
push eax
push esi
push 2
lea ecx, [ebp - 0x14]
push ecx
push edx
call edi
mov edi, eax
test edi, edi
jge 0x1b6ce
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 4], 1
jne 0x1b71f
cmp dword [esi + 8], 2
jbe 0x1b71f
lea ecx, [esi + 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
call ebx
push 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
mov edi, eax
test edi, edi
jl 0x1b724
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 8]
push edx
push eax
push 0
call fcn.0001e8d0
lea ecx, [ebp - 0xc]
push ecx
mov dword [0x224c8], eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
mov edx, dword [ebp + 0xc]
push edx
jmp 0x1b6b4
mov edi, 0xc000003e
mov edx, dword [ebp + 0xc]
push edx
jmp 0x1b6b4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, 0xc0000034
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1b750
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
push str.REGISTRYMACHINESOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], 0xc0000001
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x2c]
push edx
xor edi, edi
push 0x20019
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x1b8be
mov edx, dword [ebp - 8]
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push 2
push edx
call esi
mov eax, dword [ebp - 4]
add eax, 2
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
mov eax, dword [ebp - 8]
cmp ebx, edi
jne 0x1b7ea
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
pop ebx
mov eax, 0xc000009a
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push edx
push ebx
push 2
push eax
call esi
mov esi, eax
cmp esi, edi
jge 0x1b819
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14], edi
jbe 0x1b8a6
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov eax, dword [ebp - 4]
add eax, 2
push eax
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x1b897
mov ecx, dword [ebp - 4]
push ecx
push 0
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push 0
push edi
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
jl 0x1b88e
mov eax, dword [ebp - 8]
push str.ServiceName
lea edx, [esi + 0x10]
push edx
push eax
call fcn.0001b5b0
test eax, eax
jge 0x1b89f
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc edi
cmp edi, dword [ebx + 0x14]
jb 0x1b822
jmp 0x1b8a6
mov dword [ebp - 0xc], 0
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1e890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1e8cc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1e8cc
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x1e8cb
lea esp, [esp]
movzx edx, byte [ecx]
xor edx, 0x9e
mov dl, byte [edx + 0x20e68]
xor dl, 0x34
mov byte [eax], dl
inc eax
inc ecx
sub esi, 1
jne 0x1e8b0
pop esi
pop ebp
ret 0xc
Function at 0x1e8d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x1e8fd
mov edx, dword [ebp + 0xc]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x20a68]
dec ecx
inc edx
test ecx, ecx
jne 0x1e8e1
pop esi
pop ebp
ret 0xc