joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e67
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x1002e2c
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x1002e92
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1002eb6
push 0x1001790
lea ecx, [ebp - 0x1c]
call 0x1012495
push 0
push 3
push 2
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtInitiatePowerAction]
lea ecx, [ebp - 0x1c]
call 0x10124fc
leave
ret 4

Function at 0x1002eea
Capabilities:
Create thread
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x1002eba
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x1002f15
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1002f35
push 0x1001790
lea ecx, [ebp - 0x1c]
call 0x1012495
push 0
push dword [ebp + 8]
call dword [sym.imp.user32.dll_ExitWindowsEx]
lea ecx, [ebp - 0x1c]
call 0x10124fc
leave
ret 4

Function at 0x1002f39
Capabilities:
Lock the desktop
Log keystrokes via polling
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffff05e
sub esp, 0x18
cmp eax, 8
ja case.default.0x1002f50
jmp dword [eax*4 + 0x1003000]
push 2
jmp 0x1002f5d
push 3
call fcn.01002e67
jmp case.default.0x1002f50
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ax, ax
jge 0x1002f85
push 0x1001790
lea ecx, [ebp - 0x18]
call 0x1012495
push 2
jmp 0x1002fbf
xor eax, eax
lea ecx, [ebp + 8]
push ecx
push eax
push eax
mov dword [ebp + 8], eax
call fcn.01002cf0
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 7
inc eax
push eax
jmp 0x1002fd1
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ax, ax
jge 0x1002fcf
push 0x1001790
lea ecx, [ebp - 0x18]
call 0x1012495
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea ecx, [ebp - 0x18]
call 0x10124fc
jmp case.default.0x1002f50
push 2
call fcn.01002eea
jmp case.default.0x1002f50
xor eax, eax
push eax
push eax
call dword [sym.imp.user32.dll_ExitWindowsEx]
jmp case.default.0x1002f50
push 0
call dword [0x10154c0]
jmp case.default.0x1002f50
call dword [0x1015dd8]
jmp case.default.0x1002f50
call dword [sym.imp.user32.dll_LockWorkStation]
leave
ret 4
Function at 0x100312d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10154a4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [esi], eax
mov dword [ebx], eax
mov dword [ecx], eax
push 0x47
pop ecx
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x100320e
test word [ebp - 8], 0x110
je 0x100320e
xor eax, eax
inc eax
cmp byte [ebp - 6], 3
mov dword [esi], eax
je 0x1003209
cmp byte [ebp - 6], 2
je 0x1003209
cmp byte [ebp - 6], al
jne 0x100320e
cmp word [ebp - 8], 0x100
jne 0x100320e
lea ecx, [ebp - 0x124]
push ecx
push eax
xor esi, esi
push esi
push 0x1001810
push 0x80000002
mov dword [ebx], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100320e
push 4
pop edi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x10017e0
push dword [ebp - 0x124]
mov dword [ebp + 0x10], edi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x10031fb
cmp dword [ebp + 8], edi
jne 0x10031fb
cmp dword [ebp + 0xc], esi
je 0x10031fb
mov dword [ebx], esi
push dword [ebp - 0x124]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x100320e
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call 0x1011fd4
leave
ret 0xc

Function at 0x100321d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
push 0x2c
lea eax, [ebp - 0x30]
push eax
push 0
mov byte [ebp - 1], 1
call esi
test eax, eax
jl 0x100327e
xor edx, edx
mov eax, 0x100000
div dword [ebp - 0x28]
push edi
push 0
push 0x138
mov edi, eax
lea eax, [ebp - 0x168]
push eax
push 2
call esi
test eax, eax
jl 0x100327d
mov eax, dword [ebp - 0x134]
sub eax, dword [ebp - 0x138]
xor edx, edx
div edi
cmp eax, 8
jbe 0x100327d
mov byte [ebp - 1], 0
pop edi
mov al, byte [ebp - 1]
pop esi
leave
ret

Function at 0x100353f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0x10018dc
push 0
push 0x1001530
push 0x80000001
mov edi, ecx
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003597
push 0x2b0
push edi
push 3
push eax
push 0x10015a4
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
push dword [ebp - 4]
je 0x10035a5
call dword [sym.imp.advapi32.dll_RegCloseKey]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.01003024
jmp 0x10035ad
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
pop edi
leave
ret
Function at 0x10035b0
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.user32.dll_GetKeyState]
push 0x10
mov esi, ecx
call edi
test ax, ax
jge 0x10035e4
push 0x12
call edi
test ax, ax
jge 0x10035e4
push 0x11
call edi
test ax, ax
jge 0x10035e4
mov ecx, esi
call entry0
jmp 0x1003603
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1001530
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003608
xor eax, eax
inc eax
jmp 0x100366b
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10015a4
push dword [ebp - 8]
mov edi, 0x2b0
mov dword [ebp - 4], edi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003656
cmp dword [ebp - 0xc], 3
jne 0x1003656
cmp dword [ebp - 4], edi
jne 0x1003656
push eax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.user32.dll_MonitorFromRect]
test eax, eax
je 0x1003656
mov eax, dword [0x1015dc0]
dec eax
cmp dword [esi + 0x20], eax
jg 0x1003656
xor esi, esi
jmp 0x1003660
mov ecx, esi
call entry0
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x100381c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.user32.dll_GetForegroundWindow]
cmp eax, dword [ebp + 8]
jne 0x100383b
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jl 0x10038db
push esi
xor esi, esi
cmp dword [0x1015dc0], esi
push edi
jle 0x100385c
mov ecx, dword [esi*4 + 0x1015dc4]
mov eax, dword [ecx]
call dword [eax + 0x18]
inc esi
cmp esi, dword [0x1015dc0]
jl 0x1003847
movzx eax, byte [0x10164b4]
mov ecx, dword [0x1015020]
imul eax, ecx
push ebx
push 0x64
xor edx, edx
pop esi
div esi
mov ebx, eax
cmp ebx, ecx
jb 0x100387d
lea ebx, [ecx - 1]
mov esi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push 0x80
push 0
call esi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10038b1
movzx eax, byte [0x10164b4]
push eax
push 0x1015a28
push 0x40
push edi
call fcn.0100368a
add esp, 0x10
push edi
push ebx
push 0x402
push dword [0x1015d88]
call dword [sym.imp.user32.dll_PostThreadMessageW]
test eax, eax
pop ebx
jne 0x10038d4
push edi
push eax
call esi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
call fcn.01003703
pop edi
pop esi
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x47da6e
Capabilities:
Check for software breakpoints

Disassembly:
call 0x47da73
pop eax
mov ebx, 0x400000
mov esi, dword [ebx + 0xc0]
lea eax, [ebx + esi]
dec eax
mov cl, byte [eax]
cmp cl, 0xcc
je 0x47da82
sub eax, 3
mov edx, dword [eax]
mov esi, dword [ebx + 0x16c]
add esi, ebx
lea edi, [ebx + 0x1000]
push edi
mov ecx, edx
sub ecx, esi
push ecx
push esi
call fcn.0047d915
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x47db01
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x47dafc
pushal
test eax, 0x80000000
je 0x47dae6
and eax, 0x7fffffff
jmp 0x47daea
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x47dad1
add esi, 0x14
jmp 0x47dab7
pop edx
add ebx, dword [edx + 0x28]
jmp ebx
Function at 0x404e5e
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x416b60], 0
push esi
mov esi, 0xc0000001
je 0x404f55
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00404dc0
test eax, eax
je 0x404e8e
xor esi, esi
jmp 0x404f47
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test esi, esi
js 0x404f47
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov ebx, eax
test ebx, ebx
je 0x404f46
mov ecx, 0x416b64
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp + 0xb], al
xor edx, edx
mov eax, dword [0x416b68]
push 0x64
pop ecx
lea eax, [eax + 1]
div ecx
xor ecx, ecx
mov dword [0x416b68], edx
xor edx, edx
cmp dword [edx + 0x416b70], 0
je 0x404ef5
add edx, 0x18
inc ecx
cmp edx, 0x960
jb 0x404ede
jmp 0x404efa
cmp ecx, 0xffffffff
jne 0x404efc
xor ecx, ecx
push dword [ebp - 4]
imul esi, ecx, 0x18
call dword [sym.imp.ntoskrnl.exe_PsGetProcessSessionId]
mov edx, ebx
mov dword [esi + 0x416b6c], eax
mov dword [esi + 0x416b70], edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404f19
sub edx, ecx
lea eax, [edx + 1]
push eax
lea eax, [esi + 0x416b74]
push ebx
push eax
call sub.ntoskrnl.exe_memcpy
mov dl, byte [ebp + 0xb]
add esp, 0xc
mov ecx, 0x416b64
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
xor esi, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
test ecx, ecx
je 0x404f55
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405102
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ecx, edx
mov dword [ebp - 8], eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov edi, eax
mov dword [ebp - 0x14], edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x405122
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + ecx]
mov ecx, dword [ebp + 0x14]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0xc], ecx
mov word [ebp - 0x16], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x40514c
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + ecx]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x10]
add eax, 2
mov word [ebp - 0xe], ax
lea eax, [ebp - 4]
push eax
push 2
push edx
push dword [ebp + 8]
call fcn.00408fc4
test eax, eax
js 0x405256
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 7
jne 0x405239
push 0x414e4d5a
push dword [eax + 8]
xor ebx, ebx
push 1
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x405256
mov ecx, dword [ebp - 4]
push ebx
push dword [ecx + 8]
add ecx, 0xc
push ecx
jmp 0x405208
inc dword [ebp + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x4051c5
sub ecx, edx
sar ecx, 1
push ebx
lea eax, [ecx*2 + 2]
mov dword [ebp + 0x14], eax
call dword [ebp + 0x10]
test eax, eax
jne 0x4051fa
push dword [ebp + 0x14]
lea eax, [edi + esi]
push ebx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add edi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push ecx
push dword [eax + 8]
add eax, 0xc
push eax
call fcn.004047d4
mov ebx, eax
test ebx, ebx
jne 0x4051bd
mov eax, edi
xor ecx, ecx
shr eax, 1
add edi, 2
mov word [esi + eax*2], cx
cmp edi, 2
jbe 0x405239
push edi
push esi
push 7
xor eax, eax
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
test esi, esi
je 0x405256
push 0x414e4d5a
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x405267
push dword [ebp - 4]
call fcn.0040484e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405680
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
push esi
mov esi, 0xc0000001
je 0x4056f1
push ebx
push 1
xor esi, esi
push esi
push esi
push dword [ebp + 0xc]
call fcn.004046ae
mov ebx, eax
test ebx, ebx
jne 0x4056ae
mov esi, 0xc000009a
jmp 0x4056f0
push 0x80
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x18
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0x240
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0040676a
mov esi, eax
test esi, esi
js 0x4056ea
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov esi, eax
push ebx
call fcn.00404832
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4058d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax + 0x2c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0xb
mov dword [ebp - 4], ebx
call fcn.00407482
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x405a16
push edi
push 0x414e4d5a
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x40591e
mov esi, 0xc000009a
jmp 0x405a15
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x405a09
mov edx, ebx
mov dword [ebp - 0xc], edx
cmp dword [edi], ebx
jbe 0x405a09
mov eax, dword [ebp - 8]
lea ebx, [edi + 0xc]
mov ecx, dword [ebx]
cmp eax, ecx
jbe 0x4059f0
mov eax, dword [ebx + 4]
add eax, ecx
cmp dword [ebp - 8], eax
jae 0x4059ed
mov esi, dword [ebp + 0xc]
push 0x124
push 0
push esi
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp + 8]
lea edx, [ebx + 0x14]
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [ecx + 0x38]
mov dword [esi + 4], eax
mov eax, dword [ecx + 0x44]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x48]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x68]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x4c]
mov dword [esi + 0x14], eax
mov ecx, dword [ebx]
mov dword [esi + 0x18], ecx
mov eax, dword [ebx + 4]
add eax, ecx
mov ecx, edx
mov dword [esi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4059b4
sub ecx, dword [ebp - 0x10]
lea eax, [ecx + 1]
cmp eax, 0x104
ja 0x405a04
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4059d0
sub ecx, dword [ebp - 0x10]
lea eax, [esi + 0x20]
push ecx
push edx
push eax
call sub.ntoskrnl.exe_memcpy
mov edx, dword [ebp - 0xc]
add esp, 0xc
xor esi, esi
mov eax, dword [ebp - 8]
inc edx
add ebx, 0x11c
mov dword [ebp - 0xc], edx
cmp edx, dword [edi]
jb 0x40594b
jmp 0x405a09
mov esi, 0xc0000004
push 0x414e4d5a
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405a20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x405a37
mov ebx, dword [ebp + 0x10]
jmp 0x405a83
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0xb
call fcn.00407482
cmp dword [ebp - 4], esi
je 0x405ad8
push 0x414e4d5a
push dword [ebp - 4]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
je 0x405ad8
push dword [ebp - 4]
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x405acc
push edi
mov edi, dword [ebx]
mov edx, esi
test edi, edi
je 0x405ac5
lea ecx, [ebx + 0xc]
lea eax, [ecx - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], eax
jbe 0x405aaa
mov eax, dword [ecx + 4]
add eax, dword [ebp - 8]
cmp dword [ebp + 0xc], eax
jb 0x405ab7
inc edx
add ecx, 0x11c
cmp edx, edi
jb 0x405a8f
jmp 0x405ac5
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
cmp dword [ebp + 0x10], 0
pop edi
jne 0x405ad8
push 0x414e4d5a
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405ae2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x405af8
mov ebx, dword [ebp + 0x10]
jmp 0x405b44
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0xb
call fcn.00407482
cmp dword [ebp - 4], esi
je 0x405b92
push 0x414e4d5a
push dword [ebp - 4]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
je 0x405b92
push dword [ebp - 4]
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x405b86
mov dword [ebp - 8], esi
cmp dword [ebx], esi
jbe 0x405b80
push edi
lea edi, [ebx + 4]
push dword [ebp + 0xc]
lea eax, [edi + 0x1c]
push eax
call fcn.0040476a
test eax, eax
jne 0x405b72
mov eax, dword [ebp - 8]
add edi, 0x11c
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx]
jb 0x405b4f
jmp 0x405b7f
push 0x47
mov esi, edi
mov edi, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
pop edi
cmp dword [ebp + 0x10], 0
jne 0x405b92
push 0x414e4d5a
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405b9c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0xb
mov esi, ebx
mov dword [ebp - 4], ebx
call fcn.00407482
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x405bf2
push 0x414e4d5a
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x405bf2
push dword [ebp - 4]
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
test edi, edi
jns 0x405c08
test esi, esi
je 0x405c08
push 0x414e4d5a
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ee2
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x416644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x30], edx
test eax, eax
je 0x405f56
push esi
lea ecx, [ebp - 0x30]
push ecx
push 7
push 0x180
push edx
push edx
push dword [ebp + 0xc]
push eax
call fcn.00405404
mov esi, dword [ebp - 0x30]
test eax, eax
js 0x405f4a
push 4
push 0x28
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x405f4a
and dword [ebp - 0xc], 0xfffffffe
lea eax, [ebp - 0x2c]
push 4
push 0x28
push eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test esi, esi
je 0x405f55
push esi
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b6a
mov esp, ebp
pop ebp
ret 8
Function at 0x40676a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x416644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
push esi
mov esi, 0xc0000001
test eax, eax
je 0x4067ec
lea ecx, [ebp - 0x30]
push ecx
push 7
push 0x180
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00405404
mov esi, eax
test esi, esi
js 0x4067de
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push 0x28
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov esi, eax
cmp dword [ebp - 0x30], ebx
je 0x4067ec
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409b6a
mov esp, ebp
pop ebp
ret 0xc