joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16b80
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 0x16d1f
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 0x16d15
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 0x16d1f
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 0x16c74
sub ecx, edi
xor edi, edi
mov dword [ebp - 0x24], ecx
cmp dword [esi + 0x14], edi
jbe 0x16cc9
jmp 0x16c90
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 0x16cea
inc edi
cmp edi, dword [esi + 0x14]
jb 0x16c90
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 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 [0x20668]
mov dword [eax + 4], edx
mov edx, dword [0x2066c]
mov dword [eax + 8], edx
mov edx, dword [0x20670]
mov dword [eax + 0xc], edx
mov edx, dword [0x20674]
mov dword [eax + 0x10], edx
mov dx, word [0x20678]
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 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.0001e330
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.0001e470
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.0001e780
mov dword [ebp + 0xc], eax
push 0
test eax, eax
jl 0x17bd1
push 0x4000
push ebx
push edi
call fcn.0001e680
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.0001e710
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.00036855
Function at 0x180e0
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 0x181a5
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 0x18195
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 0x181a7
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x19650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x196cd
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x196cd
mov edx, dword [ecx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x196cd
movzx edx, word [ecx + 4]
push esi
cmp edx, 0x14c
je 0x196a3
cmp edx, 0x8664
jne 0x196cc
cmp dword [ecx + 0x84], 4
jbe 0x196cc
mov edx, dword [ecx + 0xa8]
test edx, edx
je 0x196cc
mov ecx, dword [ecx + 0xac]
jmp 0x196b9
cmp dword [ecx + 0x74], 4
jbe 0x196cc
mov edx, dword [ecx + 0x98]
test edx, edx
je 0x196cc
mov ecx, dword [ecx + 0x9c]
test ecx, ecx
je 0x196cc
mov esi, dword [ebp + 0xc]
cmp edx, esi
jae 0x196cc
add ecx, edx
cmp ecx, esi
ja 0x196cc
mov eax, edx
pop esi
pop ebp
ret 8
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.0001e970
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 0x1e930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1e96c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1e96c
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x1e96b
lea esp, [esp]
movzx edx, byte [ecx]
xor edx, 0x9e
mov dl, byte [edx + 0x20e60]
xor dl, 0x34
mov byte [eax], dl
inc eax
inc ecx
sub esi, 1
jne 0x1e950
pop esi
pop ebp
ret 0xc
Function at 0x1e970
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 0x1e99d
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 + 0x20a60]
dec ecx
inc edx
test ecx, ecx
jne 0x1e981
pop esi
pop ebp
ret 0xc
Function at 0x2515b
Capabilities:
Encrypt data using speck

Disassembly:
add esp, 0x18
test eax, ebp
stc
push ebp
test eax, eax
jmp 0x3c033
jmp 0x4a913

Function at 0x2534d
Capabilities:
Encrypt data using speck

Disassembly:
push edx
pushfd
call fcn.0003f3f6
push 0x7f1cd66c
mov byte [esp], 0x44
mov byte [esp], 0xda
mov byte [esp], 0xc9
mov dword [esp], esi
jmp 0x40144
pushfd
pushal
jmp 0x26be2

Function at 0x253b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0xc]
je 0x2c32d
cmp esi, ebx
bt eax, 1
bt esi, 0x1f
test esi, esi
call fcn.0004844c
not edx
add esp, 4
movzx dx, al
pushal
not si
mov esi, eax
pushfd
pop edx
lea edx, [eax + 0x7a11d737]
lea edx, [eax + 1]
mov byte [esp], dl
lea ecx, [ecx]
lea esp, [esp + 0x20]

Function at 0x2588b
Capabilities:
Encrypt data using speck

Disassembly:
jmp 0x2877b
call fcn.00039fe2

Function at 0x2634a
Capabilities:
Encrypt data using speck

Disassembly:
cmp edi, 3
jmp 0x2cc27
bswap dx
pushfd
mov edx, 0x8595a482
lea edx, [ebp - 8]
bswap cx
mov ecx, esi
jmp loc.00011297
lea esp, [esp + 4]
jne 0x2e224
and ah, ah
mov eax, dword [ebp - 8]
stc
bt di, bp
pushfd
cmp byte [eax], 0xc2
pushfd
lea esp, [esp + 8]
jne 0x27da2
pushal
lea esp, [esp + 0x20]
jmp fcn.00037845
call fcn.00048a87

Function at 0x26401
Capabilities:
Encrypt data using speck

Disassembly:
lea esp, [esp + 4]
je 0x29a00
pushfd
clc
cmc
cmp eax, dword [0x22430]
pushal
pushal
pushfd
lea esp, [esp + 0x48]
je 0x29a00
pushal
aad 0xb
stc
mov eax, dword [ebp - 8]
jmp 0x3e7fc

Function at 0x278fb
Capabilities:
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
cmc
test cl, cl
pushfd
lea esp, [esp + 0x10]
jmp 0x38d96

Function at 0x27a8c
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x44]
jne 0x2d26b
push ebx
lea esp, [esp + 4]
call fcn.0001e930
pushfd
call fcn.00029e13
test edx, edx
cmp byte [0x224b2], 0
pushal
lea esp, [esp + 0x20]
je 0x3049c
add ax, bx
shrd ax, ax, cl
btr ax, di
mov eax, dword [0x226bc]
test bl, 0xfa
cmp bh, 0xfe
push esp
test eax, eax
pushfd
mov byte [esp], al
lea esp, [esp + 8]
je 0x3049c
pushfd
stc
cmc
stc
cmp eax, dword [0x22430]
pushal
lea esp, [esp + 0x24]
jne 0x3049c
push 0xb0b29ed4
pushfd
mov word [esp], 0xbf97
lea esp, [esp + 8]
call fcn.0001f180
je 0x2a413
cmp eax, dword [ebp - 0x20]
jmp 0x38117
push 0x4a34e949
bt bx, 0xb
mov word [esp], cx
mov byte [esp], 0xa7
cmp eax, dword [ebp - 0x20]
lea esp, [esp + 4]
jl 0x36bb0
push 0x83944bdd
mov byte [esp], 0xf
pushal
lea esp, [esp + 0x24]
jb 0x3049c
pushfd
jmp 0x3f653
pushal
lea esp, [esp + 0x20]
call fcn.0001e930
pushal
call fcn.00030f65
pushal
lea esp, [esp + 0x20]
jb 0x3049c
pushal
lea esp, [esp + 0x20]
call fcn.000146b0
jmp 0x3c9d0
push esp
jmp 0x469dc

Function at 0x2858c
Capabilities:
Encrypt data using speck

Disassembly:
lea esp, [esp + 4]
je 0x32705
pushfd
pushfd
mov dword [esp + 4], eax
jmp loc.00014a99

Function at 0x28d44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 4]
jae 0x2f247
push 0xbca644d9
mov dword [esp], 0xd986d311
lea esp, [esp + 4]
jmp fcn.00049b29