joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45960b
Capabilities:
Terminate process

Disassembly:
call fcn.00459618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x44da92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
add eax, edx
add eax, 4
add eax, 0x14
lea eax, [eax + 0x60]
add eax, 8
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x118], 0x49
mov byte [ebp - 0x117], 0x6d
mov byte [ebp - 0x116], 0x70
mov byte [ebp - 0x115], 0x6f
mov byte [ebp - 0x114], 0x72
mov byte [ebp - 0x113], 0x74
mov byte [ebp - 0x112], 0x20
mov byte [ebp - 0x111], 0x54
mov byte [ebp - 0x110], 0x61
mov byte [ebp - 0x10f], 0x62
mov byte [ebp - 0x10e], 0x6c
mov byte [ebp - 0x10d], 0x65
mov byte [ebp - 0x10c], 0x3a
mov byte [ebp - 0x10b], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x44db67
lea esi, [ebp - 0x14]
mov ecx, 0x14
mov al, 0
mov byte [esi], al
inc esi
dec ecx
jne 0x44db31
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edi, ebx
mov ecx, 0x14
repe cmpsb byte [esi], byte es:[edi]
je 0x44db5d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044db71
test eax, eax
je 0x44db67
add ebx, 0x14
jmp 0x44db3a
popal
mov eax, 1
leave
ret 8
popal
mov eax, 0
leave
ret 8
Function at 0x44db71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
pushal
mov eax, 1
test eax, eax
je 0x44dddd
mov byte [ebp - 0x10c], 0x50
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x6f
mov byte [ebp - 0x109], 0x63
mov byte [ebp - 0x108], 0x65
mov byte [ebp - 0x107], 0x73
mov byte [ebp - 0x106], 0x73
mov byte [ebp - 0x105], 0x69
mov byte [ebp - 0x104], 0x6e
mov byte [ebp - 0x103], 0x67
mov byte [ebp - 0x102], 0x20
mov byte [ebp - 0x101], 0x49
mov byte [ebp - 0x100], 0x6d
mov byte [ebp - 0xff], 0x70
mov byte [ebp - 0xfe], 0x6f
mov byte [ebp - 0xfd], 0x72
mov byte [ebp - 0xfc], 0x74
mov byte [ebp - 0xfb], 0x20
mov byte [ebp - 0xfa], 0x44
mov byte [ebp - 0xf9], 0x69
mov byte [ebp - 0xf8], 0x72
mov byte [ebp - 0xf7], 0x65
mov byte [ebp - 0xf6], 0x63
mov byte [ebp - 0xf5], 0x74
mov byte [ebp - 0xf4], 0x6f
mov byte [ebp - 0xf3], 0x72
mov byte [ebp - 0xf2], 0x79
mov byte [ebp - 0xf1], 0x3a
mov byte [ebp - 0xf0], 0
mov eax, 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp + 0xc]
mov ebx, eax
mov eax, 1
test eax, eax
je 0x44dddd
mov eax, 1
test eax, eax
je 0x44dddd
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x44dddd
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
sub ecx, ecx
mov eax, dword [ebp - 0xc]
add eax, ecx
mov eax, dword [eax]
test eax, eax
je 0x44ddd3
mov ebx, eax
and eax, 0x80000000
jne 0x44dd4a
mov byte [ebp - 0x10c], 0x4e
mov byte [ebp - 0x10b], 0x61
mov byte [ebp - 0x10a], 0x6d
mov byte [ebp - 0x109], 0x65
mov byte [ebp - 0x108], 0x3a
mov byte [ebp - 0x107], 0x20
mov byte [ebp - 0x106], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0x44dddd
add ebx, dword [ebp + 0xc]
lea ebx, [ebx + 2]
mov eax, ebx
mov eax, 1
test eax, eax
je 0x44dddd
mov eax, 1
test eax, eax
je 0x44dddd
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0x44dddd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0x44dca5
mov byte [ebp - 0x10c], 0x4f
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x64
mov byte [ebp - 0x109], 0x69
mov byte [ebp - 0x108], 0x6e
mov byte [ebp - 0x107], 0x61
mov byte [ebp - 0x106], 0x6c
mov byte [ebp - 0x105], 0x3a
mov byte [ebp - 0x104], 0x20
mov byte [ebp - 0x103], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0x44dddd
xor ebx, 0x80000000
mov eax, ebx
mov eax, 1
test eax, eax
je 0x44db67
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0x44dddd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0x44dca5
popal
mov eax, 1
leave
ret 0xc
popal
mov eax, 0
leave
ret 0xc
Function at 0x44de9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0x44dfee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x44dfee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.0044dff8
test eax, eax
je 0x44dfee
add ebx, 0x28
dec ecx
jne 0x44dfc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0x44e09e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x44e0c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0x44e12e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x44e0e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0x44e12e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x44e105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0x44e12e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x44e123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0x44e12e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x44e16b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0x44e172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x44e1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x44e1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x44edff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0044ef04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0044ef20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0044eeec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0044ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0044eecb
push ecx
push dword [ebp + 8]
call fcn.0044ef04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0044ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0044eecb
push ecx
push dword [ebp + 8]
call fcn.0044ef04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0044ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0044eecb
push ecx
push dword [ebp + 8]
call fcn.0044ef04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0044ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0044eecb
cmp ecx, 0x2b
jne 0x44ee0f
leave
ret 0xc

Function at 0x4504b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x450544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0xc210
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4505d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0xc210
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0xc210
call fcn.004503fa
push 0xc210
push dword [ebp + 0xc]
call fcn.0044e1a8
test eax, eax
jne 0x4505b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0xc210
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004505dd
test eax, eax
je 0x4505d6
jmp 0x450574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4505d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x45060b
Capabilities:
Terminate process

Disassembly:
call fcn.00450618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4453b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044534e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042e4c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x445408
cmp dword [ebp - 0x1c], 5
jb 0x445420
jmp 0x44541c
cmp dword [ebp - 0x10], 1
jne 0x445420
cmp dword [ebp - 0x1c], 4
ja 0x44541c
jne 0x445420
cmp dword [ebp - 0x18], 0
jbe 0x445420
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f390
call fcn.0044523f
test eax, eax
jge 0x445441
mov byte [0x464678], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042d9ad
add ebp, 0x78
leave
ret
Function at 0x495ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5e000]
push edi
jmp 0x495aea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x495af1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495ae0
mov eax, 1
add ebx, ebx
jne 0x495b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x495b14
jne 0x495b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495b33
dec eax
add ebx, ebx
jne 0x495b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x495af8
add ebx, ebx
jne 0x495b2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x495b85
xor ecx, ecx
sub eax, 3
jb 0x495b4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x495bba
sar eax, 1
mov ebp, eax
jmp 0x495b56
add ebx, ebx
jne 0x495b56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495b24
inc ecx
add ebx, ebx
jne 0x495b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495b24
add ebx, ebx
jne 0x495b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x495b66
jne 0x495b82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x495b66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x495ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x495b96
jmp 0x495ae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x495ba4
add edi, ecx
jmp 0x495ae6
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x495bc2
cmp byte [edi], 0x1b
jne 0x495bc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x495bc7
lea edi, [esi + 0x92000]
mov eax, dword [edi]
or eax, eax
je 0x495c3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x96c50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x96d68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x495bf4
mov ecx, edi
jns 0x495c23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x96d6c]
or eax, eax
je 0x495c39
mov dword [ebx], eax
add ebx, 4
jmp 0x495c11
call dword [esi + 0x96d7c]
mov ebp, dword [esi + 0x96d70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x495c73
sub esp, 0xffffff80
jmp 0x453e3d

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x112a0
Capabilities:
Check os version
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x74
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x48], eax
push str.CSDVersion
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.RegistryMachineSystemControlSet001ControlWindows
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
lea edx, [ebp - 0x44]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x11335
mov dword [ebp - 0x2c], 0
jmp 0x11382
lea edx, [ebp - 8]
push edx
push 0x74
mov eax, dword [ebp - 0x48]
push eax
push 2
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x11363
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
jmp 0x11378
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x11382
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0xc], 5
jne 0x113e4
cmp dword [ebp - 0x30], 1
jne 0x113e4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x100
je 0x113b1
cmp dword [ebp - 0x4c], 0x200
je 0x113bd
cmp dword [ebp - 0x4c], 0x300
je 0x113c9
jmp 0x113d5
mov dword [0x1cbf4], 1
jmp 0x113df
mov dword [0x1cbf4], 2
jmp 0x113df
mov dword [0x1cbf4], 3
jmp 0x113df
mov dword [0x1cbf4], 0
jmp 0x1148d
cmp dword [ebp - 0xc], 5
jne 0x1142e
cmp dword [ebp - 0x30], 2
jne 0x1142e
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x100
je 0x1140a
cmp dword [ebp - 0x50], 0x200
je 0x11416
jmp 0x11422
mov dword [0x1cbf4], 5
jmp 0x1142c
mov dword [0x1cbf4], 6
jmp 0x1142c
mov dword [0x1cbf4], 4
jmp 0x1148d
cmp dword [ebp - 0xc], 6
jne 0x1148d
cmp dword [ebp - 0x30], 0
jne 0x1148d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x100
je 0x11454
cmp dword [ebp - 0x54], 0x200
je 0x11460
jmp 0x1146c
mov dword [0x1cbf4], 8
jmp 0x11476
mov dword [0x1cbf4], 9
jmp 0x11476
mov dword [0x1cbf4], 7
cmp dword [ebp - 0x2c], 0x200
jbe 0x1148d
push str.Error_Version
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x11730
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov dword [ebp - 0x21c], 0xffffffff
cmp dword [ebp + 8], 0
je 0x11776
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
jmp 0x1193d
mov dword [ebp - 0x214], 0x15ae0
mov edx, dword [ebp - 0x214]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x117ce
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x1193d
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x218], ecx
push 0xff
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.ntoskrnl.exe__wcsupr]
add esp, 4
cmp dword [ebp - 0x218], 0
je 0x11902
mov edx, dword [ebp - 0x218]
cmp dword [edx + 0x3c], 0
je 0x1183a
push 0x1ff
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x3c]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
jmp 0x1187c
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x44], 0
jne 0x11862
push 0x1ff
push str.system_idle_process
lea ecx, [ebp - 0x620]
push ecx
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
jmp 0x1187c
push 0x1ff
push str.___________________
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.ntoskrnl.exe__wcslwr]
add esp, 4
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.ntoskrnl.exe__wcsicmp]
add esp, 8
test eax, eax
jne 0x118c6
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x21c], ecx
push str.Find_Process_OK__n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
jmp 0x11902
mov edx, dword [ebp - 0x218]
cmp dword [edx], 0
jne 0x118dd
mov dword [ebp - 0x624], 0
jmp 0x118f1
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x218]
add ecx, dword [eax]
mov dword [ebp - 0x624], ecx
mov edx, dword [ebp - 0x624]
mov dword [ebp - 0x218], edx
jmp 0x11800
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x11923
mov dword [ebp - 0x628], 0
jmp 0x11937
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00011730
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x628]
mov esp, ebp
pop ebp
ret 8
Function at 0x11950
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x8000
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x11976
xor eax, eax
jmp 0x119de
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc0000004
jne 0x119bc
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0xc0000004
je 0x1195d
cmp dword [ebp - 0xc], 0
jl 0x119d0
mov eax, dword [ebp - 8]
jmp 0x119de
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x119f0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x40
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x20
push 1
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0x100020
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x11a5d
xor eax, eax
jmp 0x11adb
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0x1000000
push 0x10
push 0
lea edx, [ebp - 0x3c]
push edx
push 0xf001f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x11a91
xor eax, eax
jmp 0x11adb
push 4
push 0x100000
push 1
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x3e8
push 0
lea edx, [ebp - 8]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x11ac4
xor eax, eax
jmp 0x11adb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4