joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405587
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x40531c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247c8], eax
jmp 0x4054a1
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405337
test eax, eax
je 0x40544c
test cl, 2
je 0x40544c
mov esi, 0x421d48
push ebx
push esi
call fcn.004059b4
cmp dword [ebp + 8], 0
je 0x405356
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40535c
push ebx
call fcn.004054ee
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405442
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054d2
cmp byte [eax], 0
je 0x4053ad
cmp byte [ebp - 0x18], 0
je 0x4053ad
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053c3
mov al, byte [esi + 1]
test al, al
je 0x405421
cmp al, 0x2e
jne 0x4053c3
cmp byte [esi + 2], 0
je 0x405421
push esi
push edi
call fcn.004059b4
test byte [ebp - 0x148], 0x10
je 0x4053e8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405421
push dword [ebp + 0xc]
push ebx
call fcn.004052e6
jmp 0x405421
push ebx
call fcn.0040566b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405419
test byte [ebp + 0xc], 4
je 0x405411
push ebx
push 0xfffffffffffffff1
call fcn.00404d48
push 0
push ebx
call fcn.00405701
jmp 0x405421
inc dword [0x4247c8]
jmp 0x405421
push ebx
push 0xfffffffffffffff2
call fcn.00404d48
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40538b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40544c
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4054a1
cmp dword [ebp - 8], esi
jne 0x405461
inc dword [0x4247c8]
jmp 0x4054a1
push ebx
call fcn.00405c70
test eax, eax
je 0x4054a1
push ebx
call fcn.004054a7
push ebx
call fcn.0040566b
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405499
test byte [ebp + 0xc], 4
je 0x405459
push ebx
push 0xfffffffffffffff1
call fcn.00404d48
push esi
push ebx
call fcn.00405701
jmp 0x4054a1
push ebx
push 0xffffffffffffffe5
call fcn.00404d48
pop esi
pop ebx
leave
ret 8
Function at 0x405587
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422148
push esi
call fcn.004059b4
push esi
call fcn.0040553a
mov edi, eax
test edi, edi
jne 0x4055a8
xor eax, eax
jmp 0x4055fa
push edi
call fcn.00405bd7
test byte [0x424750], 0x80
je 0x4055c1
mov al, byte [edi]
test al, al
je 0x4055a4
cmp al, 0x5c
je 0x4055a4
sub edi, esi
jmp 0x4055d9
call fcn.00405c70
test eax, eax
je 0x4055d3
test byte [eax], 0x10
je 0x4055a4
push esi
call fcn.004054ee
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055c5
call fcn.004054a7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40566b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405687
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40568a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056fd
test edi, edi
jne 0x4056c4
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056f7
Function at 0x405701
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cae
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40572d
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40586c
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ed0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ed0
je 0x405771
push 1
push 0
push esi
call fcn.0040568a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405872
cmp eax, edi
jg 0x405872
mov esi, 0x422948
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405872
cmp eax, edi
jg 0x405872
push esi
push ebp
push str._s_s_r_n
push 0x422548
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.0040568a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40586c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405865
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405865
cmp edi, dword [esp + 0x18]
jne 0x405865
push str._Rename__r_n
push esi
call fcn.004055ff
test eax, eax
jne 0x405879
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059b4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422548
push eax
call fcn.0040564b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4247d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409304
push eax
call fcn.004055ff
test eax, eax
je 0x405830
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058a0
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405895
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405832
Function at 0x4058a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40590c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058fb
cmp dword [ebp + 0x14], 1
je 0x4058fd
cmp dword [ebp + 0x14], 2
je 0x4058fd
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059d6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4059f7
mov ecx, dword [0x423f1c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424778]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4236e0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bb1
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bb1
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bbe
inc ebx
cmp cl, 0xfc
jbe 0x405ba4
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, RegDeleteKeyA
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x10], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405b4f
cmp dword [0x4247c4], 0
push 2
pop esi
je 0x405a82
push 4
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x424744]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405ab6
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.00405201
cmp dword [ebp + 0xc], 0
jne 0x405abd
and byte [edi], 0
test esi, esi
jne 0x405a82
cmp byte [edi], 0
jne 0x405b36
mov eax, dword [ebp - 0x14]
cmp eax, 0x2b
jne 0x405ae1
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058a8
jmp 0x405b31
cmp eax, 0x26
jne 0x405b0d
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058a8
cmp byte [edi], 0
jne 0x405b36
push str.C:Program_Files
push edi
call fcn.004059b4
jmp 0x405b31
cmp eax, 0x25
jne 0x405b20
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b31
cmp eax, 0x24
jne 0x405b31
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
je 0x405b47
cmp dword [ebp - 0xc], 0x1a
jne 0x405b47
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405bd7
jmp 0x405b95
cmp byte [ebp + 0xf], 0xfd
jne 0x405b83
cmp esi, 0x1b
jne 0x405b68
push dword [0x424744]
push edi
call fcn.00405912
jmp 0x405b79
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059b4
add esi, 0xffffffeb
cmp esi, 6
jae 0x405b95
jmp 0x405b47
cmp byte [ebp + 0xf], 0xff
jne 0x405b95
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059d6
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x4236e0
jmp 0x405bb1
jne 0x405bae
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bb1
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a22
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405bd3
push eax
push dword [ebp + 8]
call fcn.004059b4
leave
ret 8
Function at 0x405d0b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232d4], 0
push esi
jne 0x405d42
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d1c
mov dword [ecx*4 + 0x4232d0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d17
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d73
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232d0]
xor eax, esi
inc ecx
dec edx
jne 0x405d55
pop edi
not eax
pop esi
ret 0xc
Function at 0x10a84
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x104
push dword [ebp + 8]
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
call fcn.00010a36
push dword [ebp + 8]
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitString]
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 8]
push eax
push edi
push eax
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push dword [ebp - 8]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
cmp esi, edi
jne 0x10add
xor al, al
jmp 0x10b61
push edi
push dword [ebp - 8]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [esi]
cmp eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
jbe 0x10b55
mov edi, dword [ebp - 0xc]
lea eax, [esi + 0x20]
neg edi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x100
push dword [ebp + 8]
call fcn.00010a36
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jb 0x10b3a
add eax, edi
lea eax, [eax + esi + 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlEqualString]
test al, al
jne 0x10b51
inc dword [ebp - 0x10]
mov eax, 0x11c
add dword [ebp + 8], eax
add edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x10b00
jmp 0x10b55
mov byte [ebp - 1], 1
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10c2d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
pop edx
push ebp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
mov ebx, eax
mov esi, dword [ebx + 0x3c]
mov esi, dword [esi + ebx + 0x78]
add esi, ebx
mov edi, dword [esi + 0x20]
add edi, ebx
mov ecx, dword [esi + 0x14]
xor ebp, ebp
push esi
push edi
push ecx
mov edi, dword [edi]
add edi, ebx
mov esi, edx
push 0xc
pop ecx
repe cmpsb byte [esi], byte es:[edi]
je 0x10c6c
pop ecx
pop edi
add edi, 4
inc ebp
loop 0x10c55
pop ecx
pop edi
pop esi
mov ecx, ebp
mov eax, dword [esi + 0x24]
add eax, ebx
shl ecx, 1
add eax, ecx
xor ecx, ecx
mov cx, word [eax]
mov eax, dword [esi + 0x1c]
add eax, ebx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, ebx
pop ebp
push dword [ebp + 8]
call eax
jmp 0x10ca7
add esp, 0x14
popal
mov esp, ebp
pop ebp
ret
Function at 0x10d14
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x15390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
xor bl, bl
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
je 0x10d48
xor al, al
jmp 0x10e4e
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x48]
push eax
call esi
push edi
lea eax, [ebp - 0x28]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
push 0x20019
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x48]
push eax
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x34], 0x40
mov dword [ebp - 0x38], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x10d41
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
jge 0x10dd7
cmp esi, 0x80000005
je 0x10dd7
cmp esi, 0xc0000023
je 0x10dd7
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp esi, 0xc0000034
sete al
jmp 0x10e4e
push 0x76734d4d
push dword [ebp - 0x1c]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x10dfb
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x10d41
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push esi
push 2
push eax
push dword [ebp - 0x18]
call edi
test eax, eax
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
jl 0x10e3e
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 8]
add eax, 0xfffffffe
cmp ecx, eax
ja 0x10e27
mov eax, ecx
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp - 0x20]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push dword [ebp - 0x18]
call edi
mov bl, 1
push dword [ebp - 0x18]
call edi
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00012c87
leave
ret 0x10
Function at 0x10e64
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x15390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push 0xc6
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xca]
push edi
push eax
mov dword [ebp - 0xec], edi
mov word [ebp - 0xcc], di
call sub.ntoskrnl.exe_memset
add esp, 0xc
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
je 0x10eb8
xor al, al
jmp 0x1109f
lea eax, [ebp - 0x100]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x118]
push eax
push 0x20019
lea eax, [ebp - 0xf4]
push eax
mov word [ebp - 0x100], 0x8a
mov word [ebp - 0xfe], 0x8c
mov dword [ebp - 0xfc], 0x14ba6
mov dword [ebp - 0x118], 0x18
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x10c], 0x40
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x10eb1
push ebx
push esi
mov esi, 0x208
jmp 0x10f2e
xor edi, edi
lea eax, [ebp - 0xf0]
push eax
push 0x18
lea eax, [ebp - 0xe4]
push eax
push edi
push dword [ebp - 0xec]
push dword [ebp - 0xf4]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, edi
jge 0x10f67
cmp eax, 0xc0000023
je 0x10f67
cmp eax, 0x80000005
jne 0x110ae
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x76734d4d
push dword [ebp - 0xf0]
push 1
call edi
mov ebx, eax
test ebx, ebx
je 0x110ae
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
push ebx
push 0
push dword [ebp - 0xec]
push dword [ebp - 0xf4]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
jl 0x110b7
inc dword [ebp - 0xec]
push 0x76734d4d
push esi
push 1
call edi
mov edi, eax
test edi, edi
je 0x110c9
push esi
push 0
push edi
call sub.ntoskrnl.exe_memset
push 0x14ba6
push 0x14b9c
push esi
push edi
call fcn.000109fc
add esp, 0x1c
push dword [ebx + 0xc]
lea eax, [ebx + 0x10]
push eax
push esi
push edi
call fcn.000109a6
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10ffa
sub eax, ecx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
jae 0x11026
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x11016
sub eax, edx
sar eax, 1
jmp 0x11028
mov eax, ecx
and word [edi + eax*2], 0
push 0xc8
lea eax, [ebp - 0xcc]
push eax
push 0x14b84
push edi
call fcn.00010d14
push 0
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov byte [ebp - 0xe5], al
call ebx
push 0
push edi
call ebx
cmp byte [ebp - 0xe5], 0
je 0x10f2c
push dword [ebp - 0xf8]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ntoskrnl.exe_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x10f2c
mov byte [ebp - 0xe5], 1
push dword [ebp - 0xf4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0xe5]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00012c87
leave
ret 4
mov byte [ebp - 0xe5], 0
jmp 0x1108b
push 0
push ebx
mov byte [ebp - 0xe5], 0
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1108b
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x110ae
Function at 0x110da
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
and dword [ebp - 0x74], 0
push edi
xor eax, eax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
mov word [ebp - 0x34], 0x7d6
mov word [ebp - 0x32], 9
mov word [ebp - 0x30], 0xb
mov word [ebp - 0x2e], 0x11
mov word [ebp - 0x2c], 0x32
mov word [ebp - 0x2a], 0x14
mov dword [ebp - 0x54], 0x84
call dword [sym.imp.ntoskrnl.exe_RtlTimeFieldsToTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_ExLocalTimeToSystemTime]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [ebp - 0x48], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
push 0x60
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x44], eax
push 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x40100000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x40], 0x240
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
pop edi
jl 0x111c5
push 4
push 0x28
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
leave
ret 4
Function at 0x111ce
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x15390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 9
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x260]
push 0x206
mov dword [ebp - 0x264], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov byte [ebp - 0x20e], bl
mov byte [ebp - 0x20d], 1
mov word [ebp - 0x20c], bx
call sub.ntoskrnl.exe_memset
push esi
push 0x14c32
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.000109fc
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x40
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x22c], eax
push 3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x80010100
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x234], 0x18
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], 0x240
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, ebx
jl 0x1131c
cmp eax, 0xc0000034
je 0x1131c
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push 4
push 0x28
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x244], 0x80
call esi
push 0xd
push 1
lea eax, [ebp - 0x20e]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x214]
mov byte [ebp - 0x20e], 1
call esi
test eax, eax
je 0x11308
mov byte [ebp - 0x20d], bl
push dword [ebp - 0x214]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x20d]
jmp 0x1131e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00012c87
leave
ret 4

Function at 0x113b6
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x1140b
cmp dword [ebp + 0xc], ebx
je 0x1140b
cmp word [edi], 0x5a4d
jne 0x1140b
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x1140b
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [esi + 0x18], ebx
jbe 0x1140b
mov ecx, dword [esi + 0x20]
push dword [ebp + 0xc]
lea eax, [edi + ebx*4]
mov eax, dword [eax + ecx]
add eax, edi
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x11414
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x113ea
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x1140d