joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], edx
mov edx, ecx
push esi
mov al, byte [edx + 8]
mov byte [ebp - 1], al
cmp al, 3
je 0x41fa80
mov cl, byte [edx + 9]
test al, 2
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [edx]
push edi
movzx edi, cl
mov ecx, edi
je 0x41f918
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov ecx, edi
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, edi
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, 3
jmp 0x41f926
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, 1
test byte [ebp - 1], 4
mov dword [ebp - 8], ecx
je 0x41f940
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
sub edi, eax
mov dword [ebp + ecx*4 - 0x20], edi
inc ecx
mov dword [ebp - 8], ecx
xor eax, eax
test ecx, ecx
je case.0x41f98e.3
xor esi, esi
nop dword [eax]
cmp dword [ebp + eax*4 - 0x20], 0
jg 0x41f961
mov dword [ebp + eax*4 - 0x20], 0
jmp 0x41f966
mov esi, 1
inc eax
cmp eax, ecx
jl 0x41f950
test si, si
mov esi, dword [ebp - 0xc]
je case.0x41f98e.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x41f98e.3
movzx eax, byte [eax + 0x41fa9c]
jmp dword [eax*4 + 0x41fa88]
mov ecx, dword [edx + 4]
test ecx, ecx
je case.0x41f98e.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x41f9a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov ebx, 0xf0
mov edx, dword [edx + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x41f98e.3
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x20]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x41f9e0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x41f98e.3
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x20]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 8]
cmp edi, ebx
jb 0x41fa04
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je case.0x41f98e.3
mov edi, pe_nt_image_headers32
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x20]
add di, ax
shr di, cl
movzx ecx, di
mov edi, pe_nt_image_headers32
mov eax, ecx
mov byte [esi - 1], cl
mov ecx, dword [ebp - 8]
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x10]
jb 0x41fa37
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ae00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c755
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x476050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0042b010
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42ae83
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x42afe0
cmp dword [0x478c90], 0xfffffff
je 0x42aff6
mov dword [ebp - 0x28], 0x478c8c
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.00433baf
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x478c90]
mov ebx, dword [0x478ca4]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x470930]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x470930]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x478c88]
comiss xmm1, xmm0
jbe 0x42af8d
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.00458c10
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00459770
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x42af6c
cmp ebx, 0x200
jae 0x42af6a
shl ebx, 3
cmp ebx, ecx
jae 0x42af6c
mov ebx, ecx
push ebx
call fcn.0042b550
mov edi, dword [ebp - 0x1c]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042b010
mov ecx, dword [0x478c90]
mov edx, dword [eax]
jmp 0x42af93
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x478c90], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0x478ca0]
mov ecx, dword [0x478c94]
and eax, edi
mov edi, dword [ecx + eax*8]
cmp edi, dword [0x478c8c]
jne 0x42afc4
mov dword [ecx + eax*8], esi
jmp 0x42afd3
cmp edi, edx
jne 0x42afcd
mov dword [ecx + eax*8], esi
jmp 0x42afd7
cmp dword [ecx + eax*8 + 4], ebx
jne 0x42afd7
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.004327a9
int3
Function at 0x42b550
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x42b6c9
lea eax, [ecx - 1]
mov esi, dword [0x478c8c]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x478c94
lea eax, [edi + edi]
push eax
call fcn.0042acf0
mov ecx, dword [0x478c8c]
lea ebx, [edi - 1]
mov dword [0x478ca0], ebx
mov dword [0x478ca4], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x42b6c0
nop dword [eax + eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
mov eax, dword [0x478c94]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x42b613
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x42b686
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x42b64d
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x42b645
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x42b686
mov edi, eax
cmp dword [ebp - 4], eax
je 0x42b663
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x42b697
cmp dword [ebp - 4], eax
jne 0x42b654
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
je 0x42b6c0
mov ebx, dword [0x478ca0]
jmp 0x42b5c0
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x42b686
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.004327a9
int3
Function at 0x42b6e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x42b843
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0042acf0
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x42b816
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x42b796
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x42b809
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x42b7d0
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x42b7c8
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x42b809
mov edi, eax
cmp dword [ebp - 4], eax
je 0x42b7e6
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x42b81f
cmp dword [ebp - 4], eax
jne 0x42b7d7
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x42b742
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x42b809
push str.invalid_hash_bucket_count
call fcn.004327a9
int3
Function at 0x42db70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x42db7b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0042db90
Function at 0x44b84a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044b6c0

Function at 0x44e90e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044e890

Function at 0x451dc5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451a42
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x405c71
pop dword [ebp - 0x18]
mov eax, 0x4406f969
add eax, 0xbc396308
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xf9a76c3f
add dword [ebp - 0x28], 0x54aad90c
mov dword [ebp - 0x24], 0xe790e99a
add dword [ebp - 0x24], 0x4aa262ab
mov dword [ebp - 0x20], 0x1893f6e
add dword [ebp - 0x20], 0x4ac304c0
mov dword [ebp - 0x1c], 0xf0f3afe8
sub dword [ebp - 0x1c], 0xf0f3afe8
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xd939c837
add dword [ebp - 0x28], 0x9b38a11f
mov dword [ebp - 0x24], 0x4536eccf
add dword [ebp - 0x24], 0xfc3574a6
mov dword [ebp - 0x20], 0x5bc5208c
sub dword [ebp - 0x20], 0xf855b420
mov dword [ebp - 0x1c], 0x8ac24157
sub dword [ebp - 0x1c], 0x8ac24157
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xf0e76e7a
add eax, 0xf5961ce
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x391fa
push 0
call eax
mov ecx, 0x459d
xor esi, esi
add esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x18]
mov ebx, 0x32eaad61
add dword [ebp - 0x14], 0xc90031c0
mov edx, dword [edi]
add dword [ebp - 0x10], 0xb0f9a734
xor edx, ebx
add dword [ebp - 8], eax
mov dword [esi], edx
sub dword [ebp - 0x10], eax
add esi, 4
add edi, 0x4672843b
add edi, 0xb98d7bc9
loop 0x405d7e
add eax, 0x10947
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf74df545
add ecx, 0x8f20abb
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x11000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push str.Enter_DriverEntry__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
call fcn.00011250
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x11150
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], 0x112a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov dword [edx + 0x44], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edx + 0x48], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00011090
mov dword [ebp - 4], eax
push str.Leave_DriverEntry__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x11090
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push str.DeviceMySSDTHook
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0xc]
push ecx
push 1
push 0
push 0x22
lea edx, [ebp - 0x18]
push edx
push 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x110cd
mov eax, dword [ebp - 0x10]
jmp 0x11142
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
or edx, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 8], ecx
push str.__MYSSDTHook
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 0x10], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x11140
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x10]
jmp 0x11142
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x11250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call sub.ntoskrnl.exe_PsGetVersion
cmp dword [ebp - 4], 5
jne 0x11291
cmp dword [ebp - 8], 0
jne 0x11281
mov dword [0x13214], 1
jmp 0x11291
cmp dword [ebp - 8], 1
jne 0x11291
mov dword [0x13214], 2
call fcn.00011490
mov dword [0x13210], eax
mov esp, ebp
pop ebp
ret
Function at 0x11340
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x222000
je 0x11370
cmp dword [ebp - 4], 0x222004
je 0x113ac
cmp dword [ebp - 4], 0x222008
je 0x113be
jmp 0x1146e
push str.IOCTL_SSDTHOOK_SETPROTECTPID__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
push str.g_szProcessName:_d__g_szProcessNameLength:_d_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [0x13224], eax
jmp 0x1147b
push str.IOCTL_SSDTHOOK_NtOpenProcess__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
jmp 0x1147b
push str.IOCTL_SSDTHOOK_NtUserQueryWindow__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [0x13210], 0
jne 0x113d9
jmp 0x1147b
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
cmp dword [0x13214], 1
jne 0x11418
mov edx, dword [0x13210]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x748]
mov dword [0x1321c], ecx
mov edx, dword [0x13210]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x748], 0x11570
jmp 0x11460
cmp dword [0x13214], 2
jne 0x11460
mov ecx, dword [0x13210]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x5e8]
mov dword [0x13220], eax
mov ecx, dword [0x13210]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x5e8], 0x115d0
push 0x11570
mov eax, dword [0x1321c]
push eax
push str.OldNtUserQueryWindow:_x___NewNtUserQueryWindow:_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
jmp 0x1147b
push str.IOCTL_SSDTHOOK_Default__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x470530]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4b5544], 0
je 0x4217f6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s___d__:__d_n
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
mov ecx, dword [0x4b5540]
push ecx
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
push 1
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004555a2
mov esp, ebp
pop ebp
ret

Function at 0x421d00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x461d88
cmp dword [0x4b107c], 0
je 0x421d1f
mov eax, 0x4b1080
jmp 0x421d40
push 0x461d8c
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x421d3d
mov eax, dword [ebp - 8]
jmp 0x421d40
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x421db0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4b107c], 0
je 0x421dd1
push 0x4b1080
push 0x4b5308
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x421e0d
push 0x461da0
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421dfc
push 0x461da8
push 0x4b5308
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x421e0d
mov eax, dword [ebp - 4]
push eax
push 0x4b5308
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0x461dac
mov ecx, dword [ebp + 8]
push ecx
call fcn.00455010
add esp, 8
push eax
push 0x5c
push 0x4b5308
push 0x461db4
push 0x4b5100
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
push 0x201
push 0x4b5100
call fcn.0044a260
add esp, 8
cmp dword [0x4b5514], 0
jne 0x421e6b
push 0x421ca0
call fcn.0045565d
add esp, 4
mov dword [0x4b5514], 1
mov esp, ebp
pop ebp
ret
Function at 0x4458d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x191
mov eax, dword [ebp - 4]
sub eax, 1
cmp eax, 0x190
je 0x44590f
push 0x190
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push str._RCSfile:_outilparutils.cxx_v__
push str.file__s_:_internal_error__size_mismatch:_._noutilpar.inc_size_d__dtbmax.inc_size_d_nAborting._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x446020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00445b80
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x446045
mov eax, 0xfffffff5
jmp 0x446179
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 1
jne 0x44605d
mov eax, 0xfffffff4
jmp 0x446179
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 2
and ecx, 1
je 0x44608b
mov edx, dword [ebp - 4]
push edx
call fcn.00447db0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44608b
mov eax, dword [ebp - 8]
jmp 0x446179
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 4]
cmp ecx, 1
je 0x4460fa
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00445da0
add esp, 4
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x2ab]
test eax, eax
je 0x4460fa
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x4460fa
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x316]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c4], 0
je 0x446136
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2cc], 0
je 0x446162
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2cc]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x2cc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffe
mov edx, dword [ebp - 4]
mov dword [edx + 0x320], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x446ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffd
mov edx, dword [ebp + 8]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [str.WKNC_Id:_fbread.cpp_7003_2011_05_16_16:32:53Z_jsturton___WORKNC]
mov dword [eax + 0x210], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x214], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x21c], 0xa0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], 0xa0
mov edx, dword [ebp + 8]
mov dword [edx + 0x220], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x224], 0
call fcn.00445a10
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x228
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
mov byte [edx + 0x2a8], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x2a9], 1
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2aa], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x2ac], 0
call fcn.004459a0
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2ab], al
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
push 0xa0
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x210
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 0xa0
je 0x446fbb
mov eax, 0xffffffe6
jmp 0x446fbd
xor eax, eax
pop ebp
ret

Function at 0x446fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
pop ebp
ret