joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019d10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100397d5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10048100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x10019eea
nop dword [eax]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.10019ca0
cmp dword [ebp - 0x1c], 0
jne 0x10019edb
cmp dword [ebx + 8], 0x15555555
je 0x10019efe
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.1001cfc7
mov cx, word [edi]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov word [esi + 8], cx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
mov dword [ebp - 0x14], eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1003b2f0]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1003b2f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x10019e82
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.10026ea0
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1001d7d0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x10019e5b
cmp eax, 0x200
jae 0x10019e59
shl eax, 3
cmp eax, ecx
jae 0x10019e5b
mov eax, ecx
push eax
mov ecx, ebx
call fcn.1001b2e0
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10019ca0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x10019e85
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jne 0x10019ebd
mov dword [ecx + eax*8], esi
jmp 0x10019ed0
cmp dword [ecx + eax*8], edx
jne 0x10019ec7
mov dword [ecx + eax*8], esi
jmp 0x10019ed4
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10019ed4
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
add edi, 2
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0xc]
jne 0x10019d50
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.1001b925
int3
Function at 0x1001b2e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
cmp edx, eax
ja 0x1001b414
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10016e70
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x1001b3ef
mov eax, ecx
movzx edx, byte [eax + 8]
mov ecx, dword [ecx]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
mov edx, dword [edi + 0xc]
imul esi, esi, 0x1000193
and esi, dword [edi + 0x18]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp + 8], ebx
cmp esi, dword [ebp - 8]
jne 0x1001b37a
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x1001b3e4
mov edx, dword [ebx + 4]
movzx edi, word [eax + 8]
cmp di, word [edx + 8]
jne 0x1001b3b3
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x1001b3ae
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x1001b3e1
cmp esi, edx
je 0x1001b3c4
mov edx, dword [edx + 4]
cmp di, word [edx + 8]
je 0x1001b3f8
cmp esi, edx
jne 0x1001b3b7
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x1001b342
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x1001b3e1
push str.invalid_hash_bucket_count
call fcn.1001b925
int3
Function at 0x1001b420
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001b4c8
mov eax, dword [ebx + 0x1c]
shr eax, 3
push esi
cmp eax, ecx
jbe 0x1001b570
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x1001b4c7
mov eax, dword [edx + 4]
mov esi, edx
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.1001cff7
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x1001b4cd
cmp esi, dword [ebp - 4]
jne 0x1001b493
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x1001b4be
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x1001b4e1
mov dword [ecx], edx
mov eax, edx
jmp 0x1001b4e4
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
cmp esi, edx
je 0x1001b4be
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.1001cff7
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x1001b552
cmp esi, dword [ebp - 4]
jne 0x1001b520
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp esi, edx
jne 0x1001b4f0
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x1001b595
mov esi, dword [eax]
push 0xc
push eax
call fcn.1001cff7
add esp, 8
mov eax, esi
test esi, esi
jne 0x1001b582
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.10010770
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d0e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f704
push 0x1003f6fc
push str.FlsAlloc
push 0x1e
call fcn.1002cf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d116
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003a1cc]
call esi
jmp 0x1002d11c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002d160
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f714
push 0x1003f70c
push str.FlsGetValue
push 0x20
call fcn.1002cf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d197
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003a1cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1002fef2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002ff8f
push ebx
push esi
call fcn.1002febb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002ee00
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002ff3c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ff8e
push edi
push eax
call fcn.1002b9a2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002ff5c
call fcn.1002b968
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ff8d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002ee00
add esp, 0x20
test eax, eax
jne 0x1002ff7b
push edi
call fcn.1002b968
jmp 0x1002ff83
push ebx
call fcn.1002b968
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10037960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003798d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003798d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013c0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
mov eax, dword [esp + 0x24]
push 2
mov ecx, dword [esp + 0x24]
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x401414
push eax
push str.failure:_CreateService__0x_02x__n
call fcn.00401c00
add esp, 8
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
xor eax, eax
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
ret

Function at 0x401420
Capabilities:
Delete service

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, dword [esp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401440
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401469
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failure:_DeleteService__0x_02x__n
call fcn.00401c00
add esp, 8
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
ret

Function at 0x401480
Capabilities:
Start service

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, dword [esp + 8]
push edi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4014bd
call edi
push eax
push str.failure:_OpenService__0x_02x__n
call fcn.00401c00
add esp, 8
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4014d4
mov eax, 1
pop edi
pop esi
ret
call edi
cmp eax, 0x420
jne 0x4014ef
push str.Sentry_Service_is_Already_Installed_n
call fcn.00401c00
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push eax
push str.failure:_StartService__0x_02x__n
call fcn.00401c00
add esp, 8
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
ret

Function at 0x401520
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401546
xor eax, eax
pop esi
add esp, 0x1c
ret
lea eax, [esp + 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401562
mov eax, 1
pop esi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failure:_ControlService__0x_02x__n
call fcn.00401c00
add esp, 8
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
add esp, 0x1c
ret
Function at 0x401590
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebx
mov eax, dword [str.ddd]
push esi
push edi
push eax
call fcn.00401c40
add esp, 4
mov dword [0x408934], eax
mov eax, dword [str.ddd]
push eax
call fcn.00401c40
add esp, 4
mov dword [0x4089b0], eax
mov eax, dword [str.ddd]
push eax
call fcn.00401c40
add esp, 4
mov ecx, dword [str.ddd]
mov dword [0x4089a8], eax
mov eax, dword [0x408934]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [0x408930], eax
test eax, eax
jne 0x401601
push str.Error_in_Installation__Error_Code:_4_n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
jmp 0x40163d
mov edi, str._sentry.sys
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edx, dword [0x408934]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4089b0], edx
mov eax, dword [str.ddd]
push eax
call fcn.00401c40
add esp, 4
mov ecx, dword [0x40704c]
mov dword [0x408934], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x40892c], eax
test eax, eax
jne 0x401680
push str.Error_in_Installation__Error_Code:_5_n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
jmp 0x4016bc
mov edi, str.drivers_sentry.sys
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edx, dword [0x408934]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4089a8], edx
push 1
mov eax, dword [0x4089a8]
push eax
mov ecx, dword [0x4089b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [0x4089b4], eax
mov ecx, eax
test ecx, ecx
jne 0x401734
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4089b4]
mov dword [0x40892c], eax
cmp eax, 2
je 0x4016f9
cmp eax, 0x50
je 0x40172a
jmp 0x401734
mov eax, dword [0x4089b0]
push eax
push str.Make_Sure_the_Presence_of__s_File._n
call fcn.00401c00
add esp, 8
mov eax, dword [0x4089a4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
mov ecx, dword [0x4089b4]
jmp 0x401734
mov eax, dword [0x4089a8]
mov dword [0x407040], eax
mov dword [0x4089b4], ecx
cmp ecx, 1
jne 0x40174b
mov eax, dword [0x4089a8]
mov dword [0x407040], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x401750
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebx
mov eax, dword [str.ddd]
push esi
push edi
push eax
call fcn.00401c40
add esp, 4
mov ecx, dword [0x40704c]
mov dword [0x408934], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x40892c], eax
test eax, eax
jne 0x401796
push str.Error_in_Installation__Error_Code:_6_n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
jmp 0x4017d2
mov edi, str.drivers_sentry.sys
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edx, dword [0x408934]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4089a8], edx
mov eax, dword [0x4089a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x4089b4], eax
test eax, eax
jne 0x401805
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40892c], eax
cmp eax, 2
mov eax, dword [0x4089b4]
jne 0x401805
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
mov dword [0x4089b4], eax
cmp eax, 1
jne 0x40181b
mov eax, dword [0x4089a8]
mov dword [0x407040], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x401820
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebx
mov eax, dword [str.ddd]
push esi
push edi
push eax
call fcn.00401c40
add esp, 4
mov dword [0x408934], eax
mov eax, dword [str.ddd]
push eax
call fcn.00401c40
add esp, 4
mov dword [0x4089b0], eax
mov eax, dword [str.ddd]
push eax
call fcn.00401c40
add esp, 4
mov ecx, dword [str.ddd]
mov dword [0x4089a8], eax
mov eax, dword [0x408934]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [0x408930], eax
test eax, eax
jne 0x401891
push str.Error_in_Installation__Error_Code:_1_n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
jmp 0x4018cd
mov edi, str._sentryvxd.vxd
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edx, dword [0x408934]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4089b0], edx
mov eax, dword [str.ddd]
push eax
call fcn.00401c40
add esp, 4
mov ecx, dword [0x40704c]
mov dword [0x408934], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x40892c], eax
test eax, eax
jne 0x401910
push str.Error_in_Installation__Error_Code:_2_n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
jmp 0x40194c
mov edi, str._sentryvxd.vxd
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edx, dword [0x408934]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4089a8], edx
push 1
mov eax, dword [0x4089a8]
push eax
mov ecx, dword [0x4089b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [0x4089b4], eax
mov ecx, eax
test ecx, ecx
jne 0x401987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4089b4]
mov dword [0x40892c], eax
cmp eax, 2
je 0x4019a5
cmp eax, 0x50
je 0x4019c4
mov dword [0x4089b4], ecx
cmp ecx, 1
jne 0x4019a1
push str.Sentry_Service_is_Succesfully_Installed_n
call fcn.00401c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.Make_Sure_the_Presence_of__s_File._n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
mov ecx, dword [0x4089b4]
jmp 0x401987
push str.Sentry_Service_is_already_Installed_n
call fcn.00401c00
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x4019e0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebx
mov eax, dword [str.ddd]
push esi
push edi
push eax
call fcn.00401c40
add esp, 4
mov ecx, dword [0x40704c]
mov dword [0x408934], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x40892c], eax
test eax, eax
jne 0x401a26
push str.Error_in_Installation__Error_Code:_3_n
call fcn.00401c00
add esp, 4
push 0xffffffffffffffff
call fcn.00401af0
add esp, 4
jmp 0x401a62
mov edi, str._sentryvxd.vxd
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edx, dword [0x408934]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4089a8], edx
mov eax, dword [0x4089a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x4089b4], eax
test eax, eax
jne 0x401aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40892c], eax
cmp eax, 2
mov eax, dword [0x4089b4]
jne 0x401aa2
push str.Please_Install..._n
call fcn.00401c00
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
mov dword [0x4089b4], eax
cmp eax, 1
jne 0x401abb
push str.Succesfull_UnInstallation_n
call fcn.00401c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x401b30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4075f8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x401b4e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4075f4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4075f0], bl
jne 0x401ba8
cmp dword [0x409aec], 0
je 0x401b96
mov edi, dword [0x409ae8]
sub edi, 4
cmp edi, dword [0x409aec]
jb 0x401b96
mov eax, dword [edi]
test eax, eax
je 0x401b8b
call eax
sub edi, 4
cmp edi, dword [0x409aec]
jae 0x401b83
push 0x40701c
push 0x407014
call fcn.00401be0
add esp, 8
push 0x407024
push 0x407020
call fcn.00401be0
add esp, 8
test ebx, ebx
jne 0x401bcf
mov dword [0x4075f8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret