joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12f20
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 0x1300d
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 0x13123
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 0x13114
mov eax, dword [ebp - 4]
test eax, eax
je 0x13114
add eax, 2
push eax
push 0
mov dword [ebp - 4], eax
call ebx
mov esi, eax
test esi, esi
jne 0x1301b
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 0x13063
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 0x130ab
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x130ab
push eax
push 0
call ebx
mov dword [0x223b0], eax
test eax, eax
je 0x130a4
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 0x130b0
mov edi, 0xc000009a
jmp 0x130b0
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 0x13109
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 0x13109
mov eax, dword [0x223c4]
mov ecx, dword [0x223c0]
push eax
push ecx
push 0
call fcn.0001e7f0
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 0x167d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x28]
push edi
push 0x58
lea eax, [esi + 8]
push 0
lea ebx, [esi + 4]
push 0x226a0
mov dword [esi], 0
mov dword [ebx], 0
mov dword [ebp - 8], eax
mov dword [eax], 0
mov byte [esi + 0x3c], 0
call sub.ntoskrnl.exe_memset
mov edi, dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
add esp, 0xc
push 0
lea eax, [esi + 0xc]
push 1
push eax
call edi
push 0
lea eax, [esi + 0x1c]
push 1
push eax
mov dword [ebp - 0xc], eax
call edi
push 0
lea eax, [esi + 0x2c]
push 1
push eax
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp + 8]
push ecx
push 0x15640
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x169c0
mov eax, dword [ebp - 4]
push 0
push esi
push 0
push 0
push 0x1fffff
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, dword [ebp - 4]
push ecx
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jl 0x1691b
mov edx, dword [ebp + 8]
push edx
push 0x16150
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
test edi, edi
jl 0x1691b
mov ecx, dword [ebp - 4]
push 0
push ebx
push 0
push 0
push 0x1fffff
push ecx
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov edx, dword [ebp - 4]
push edx
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jl 0x1691b
mov eax, dword [ebp + 8]
push eax
push 0x166a0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
test edi, edi
jl 0x1691b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
push 0
push edx
push 0
push 0
push 0x1fffff
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, dword [ebp - 4]
push ecx
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jge 0x169be
push 0
push 0
lea eax, [esi + 0xc]
push eax
mov byte [esi + 0x3c], 1
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov eax, dword [esi]
test eax, eax
je 0x16950
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ecx, dword [esi]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [esi], 0
mov edx, dword [ebp - 0xc]
mov esi, dword [sym.imp.ntoskrnl.exe_KeSetEvent]
push 0
push 0
push edx
call esi
mov eax, dword [ebx]
test eax, eax
je 0x16983
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ecx, dword [ebx]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [ebx], 0
mov eax, dword [ebp - 0x10]
push 0
push 0
push eax
call esi
mov esi, dword [ebp - 8]
mov eax, dword [esi]
test eax, eax
je 0x169b3
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ecx, dword [esi]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x16bc0
Capabilities:
Map section object
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x20
xor esi, esi
push 1
lea edx, [ebp - 0x30]
push edx
mov dword [eax], esi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x40], ecx
push 0x100020
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x240
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x16d5f
mov edx, dword [ebp - 8]
push edx
push 0x1000000
push 0x10
push esi
lea eax, [ebp - 0x48]
push eax
push 0xf001f
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp - 0x40], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x16d55
mov ecx, dword [ebp + 0xc]
push 4
push 0x100000
push 1
lea edx, [ebp - 0x10]
push edx
push esi
push 0x400
push esi
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov edx, dword [ebp - 8]
mov edi, eax
push edx
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, esi
jl 0x16d5f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x78]
mov ecx, dword [esi + eax + 0x20]
mov ebx, dword [esi + eax + 0x1c]
mov edx, dword [esi + eax + 0x10]
add esi, eax
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x24]
add ebx, eax
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x16cb4
sub ecx, edi
xor edi, edi
mov dword [ebp - 0x24], ecx
cmp dword [esi + 0x14], edi
jbe 0x16d09
jmp 0x16cd0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + edi*2]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + edx*4 - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe__strnicmp]
add esp, 0xc
test eax, eax
je 0x16d2a
inc edi
cmp edi, dword [esi + 0x14]
jb 0x16cd0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x16f30
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 0x17032
mov ecx, dword [ebp + 8]
cmp dword [ebx], ecx
jb 0x17032
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x16f98
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 0x1701b
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 0x16ff0
sub ecx, esi
mov edx, ecx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x17000
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 0x1702e
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 0x17050
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 0x170a5
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 0x170a5
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, dword [ebp - 4]
add edi, edi
jmp 0x17066
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x170b0
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 0x1710b
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 0x1717c
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x1717c
cmp dword [ebp - 0x34], ebx
jne 0x1717c
push eax
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x1717c
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 0x1717c
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 0x1721d
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x17214
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x17214
mov ecx, dword [esi + 0x50]
push ecx
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x17214
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 0x17214
add edi, 0x10
mov eax, dword [edi]
test eax, eax
je 0x17202
cmp eax, dword [esi + 0x50]
jae 0x17202
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 0x171e1
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 0x17b10
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 0x17b3a
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 0x17b60
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.0001e1b0
mov edi, eax
cmp edi, 0xffffffff
jne 0x17bac
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.0001e2f0
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x17c0f
mov eax, esi
lea edx, [eax + 1]
jmp 0x17be0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x17be0
push 0
sub eax, edx
push eax
push esi
push edi
call fcn.0001e600
mov dword [ebp + 0xc], eax
push 0
test eax, eax
jl 0x17c11
push 0x4000
push ebx
push edi
call fcn.0001e500
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x17c31
push 0
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call esi
push 0
push ebx
call esi
push edi
call fcn.0001e590
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.0003e89a
Function at 0x18120
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
xor esi, esi
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp + 0x10]
push 0x100
push esi
push esi
push esi
push esi
push 0x20
push 1
push eax
mov eax, dword [ebp + 0xc]
push 0x80
push esi
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
pop esi
test eax, eax
jl 0x181e5
mov ecx, dword [ebp - 4]
push 4
push 0x28
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x181d5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
test byte [ebp - 0x34], 0x10
mov eax, dword [ebp - 4]
je 0x181e7
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x19690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x1970d
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1970d
mov edx, dword [ecx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x1970d
movzx edx, word [ecx + 4]
push esi
cmp edx, 0x14c
je 0x196e3
cmp edx, 0x8664
jne 0x1970c
cmp dword [ecx + 0x84], 4
jbe 0x1970c
mov edx, dword [ecx + 0xa8]
test edx, edx
je 0x1970c
mov ecx, dword [ecx + 0xac]
jmp 0x196f9
cmp dword [ecx + 0x74], 4
jbe 0x1970c
mov edx, dword [ecx + 0x98]
test edx, edx
je 0x1970c
mov ecx, dword [ecx + 0x9c]
test ecx, ecx
je 0x1970c
mov esi, dword [ebp + 0xc]
cmp edx, esi
jae 0x1970c
add ecx, edx
cmp ecx, esi
ja 0x1970c
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1b4d0
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 0x1b662
mov edi, dword [ebp + 0x10]
push edi
call ebx
test al, al
je 0x1b662
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 0x1b667
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 0x1b64a
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1b64a
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 0x1b5a6
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 0x1b5ee
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 0x1b63f
cmp dword [esi + 8], 2
jbe 0x1b63f
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 0x1b644
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 8]
push edx
push eax
push 0
call fcn.0001e7f0
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 0x1b5d4
mov edi, 0xc000003e
mov edx, dword [ebp + 0xc]
push edx
jmp 0x1b5d4
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