joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411c90
Capabilities:
Access peb ldr_data
Check os version
Contain obfuscated stackstrings
Get number of processors
Get process filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4bd0c8]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword fs:[0x30]
movaps xmm0, xmmword [0x4b4f10]
mov dword [esp + 0x30], 0x650057
mov dword [esp + 0x34], 0x740076
mov dword [esp + 0x38], 0x700061
mov dword [esp + 0x3c], 0x2e0069
mov dword [esp + 0x40], 0x6c0064
mov dword [esp + 0x44], 0x6c
cmp dword [eax + 0xa4], 6
push esi
mov esi, ecx
mov dword [esp + 0x10], 0x43747645
mov dword [esp + 0x14], 0x65736f6c
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0x51747645
mov dword [esp + 0x20], 0x79726575
mov byte [esp + 0x24], 0
mov dword [esp + 8], 0x4e747645
mov dword [esp + 0xc], 0x747865
mov dword [esp + 0x28], 0x52747645
mov dword [esp + 0x2c], 0x65646e65
mov word [esp + 0x30], 0x72
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], 0x65746e6f
mov word [esp + 0x60], 0x7478
mov byte [esp + 0x62], 0
jb 0x411dfe
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jne 0x411d77
cmp dword [eax + 0xa8], 0
je 0x411dfe
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x411dfe
push ecx
lea edx, [esp + 0x14]
mov ecx, eax
call fcn.00413140
mov dword [esi + 8], eax
test eax, eax
je 0x411dfe
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
call fcn.00413140
mov dword [esi + 0xc], eax
test eax, eax
je 0x411dfe
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x20]
call fcn.00413140
mov dword [esi + 0x10], eax
test eax, eax
je 0x411dfe
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2c]
call fcn.00413140
mov dword [esi + 0x14], eax
test eax, eax
je 0x411dfe
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x50]
call fcn.00413140
mov dword [esi + 0x18], eax
test eax, eax
je 0x411dfe
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
xor al, al
pop esi
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
Function at 0x4130f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
mov ebx, ecx
mov esi, dword [eax + 0xc]
mov esi, dword [esi + 0xc]
test ebx, ebx
jne 0x41310a
mov eax, dword [esi + 0x18]
pop esi
pop ebx
ret
push edi
test esi, esi
je 0x413130
nop
mov edi, dword [esi + 0x18]
test edi, edi
je 0x413130
mov edx, dword [esi + 0x30]
mov ecx, ebx
push 0xffffffffffffffff
call fcn.0040e230
add esp, 4
test al, al
jne 0x413136
mov esi, dword [esi]
test esi, esi
jne 0x413110
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4157e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4983d0
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x415874
add eax, eax
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403bf0
jmp 0x415897
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
je 0x41598a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
xorps xmm0, xmm0
mov dword [ebp - 0x270], 0x3c
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x270]
push eax
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
mov dword [ebp - 0x26c], 0x40
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], str.runas
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 5
mov dword [ebp - 0x250], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41598a
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x41598a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x415974
push dword [ebp - 0x238]
mov esi, dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415992
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x238]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415992
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4159ce
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4159c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4159ea
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3
Function at 0x416790
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0046ecc0
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4167d0
test al, 0x10
jne 0x416818
push pe_nt_image_headers32
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416823
push ebx
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x416835
xor bl, bl
jmp 0x4168cd
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4168c4
nop dword [eax]
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x4168c4
push 0
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4168e7
mov eax, dword [ebp - 0x100c]
cmp eax, dword [ebp - 0x1008]
jne 0x4168e7
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416870
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0046e338
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x4168c6
Function at 0x416f30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49860d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 0x18]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0
movups xmmword [ebp - 0x2c], xmm0
test eax, eax
je 0x41701b
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
jb 0x416f91
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
jmp 0x416f97
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
push 0
sub eax, ecx
lea ecx, [ebp + 8]
push 1
sar eax, 1
push eax
call fcn.004186b0
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
jb 0x416fbc
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
jmp 0x416fc2
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
push 0
sub eax, ecx
lea ecx, [ebp + 8]
push 1
sar eax, 1
push eax
call fcn.004186b0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x28], 3
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41701b
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.Failed_to_delete_the_directory__s_with:__i.
push 1
call fcn.00414f20
add esp, 0x10
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x417051
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417047
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417060
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3
Function at 0x417070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49863d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov esi, 7
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x49be50
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x41717e
mov edx, dword [ebp - 0x2c]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4170e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403bf0
push 1
push 0x4b2218
lea ecx, [ebp - 0x28]
call fcn.00409eb0
push 0xd
push str.EasyAntiCheat
lea ecx, [ebp - 0x28]
call fcn.00409eb0
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 0
je 0x41717b
cmp dword [0x4bdc78], 0
je 0x417165
mov ecx, 0x4bdc2c
call fcn.00418550
test eax, eax
jne 0x417165
mov eax, dword [0x4bdc28]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 0x4bdc28
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004144f0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040ba00
call fcn.00416f30
add esp, 0x18
mov esi, dword [ebp - 0x14]
cmp esi, 8
jb 0x4171b1
mov ecx, dword [ebp - 0x28]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x4171a7
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4171cb
push esi
push ecx
call fcn.0046e37b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3
Function at 0x4183b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x418490
cmp byte [ebx + 0x3e], 0
je 0x418490
mov eax, dword [ebx]
push esi
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x49b388]
mov ecx, ebx
call esi
mov ecx, 0xffff
cmp cx, ax
je 0x41847e
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x49b388]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x418446
sub eax, 1
je 0x41844a
sub eax, 2
jne 0x41847e
mov byte [ebx + 0x3e], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x418467
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00476df0
add esp, 0x10
cmp esi, eax
jne 0x41847e
cmp byte [ebx + 0x3e], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0046e338
mov esp, ebp
pop ebp
ret

Function at 0x418890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x4b16dc
call fcn.0046e346
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004572a4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x419bf6
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
cmp ecx, eax
je 0x419c1e
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x419c17
mov eax, dword [eax]
push edx
push eax
call fcn.00403bf0
lea esi, [ebx + 0x20]
mov dword [ebx + 0x1c], 2
cmp dword [esi + 0x14], 8
jb 0x419c3e
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
jmp 0x419c4a
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
push 8
mov dword [eax], 0
call fcn.0046e346
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebx + 4]
mov dword [eax], 0x419f60
push 0
push 0
push eax
push 0x40dc70
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x419cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push dword [ebp - 4]
call fcn.0046e37b
add esp, 8
mov ecx, edi
push 0x33
push str.Code_signing_certificate_validation_timed_out__1_2_
call fcn.00403bf0
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419ce9
push 0x33
push str.Code_signing_certificate_validation_timed_out__2_2_
mov ecx, edi
call fcn.00403bf0
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, esi
je 0x419d01
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x419cf8
mov esi, dword [esi]
push eax
push esi
mov ecx, edi
call fcn.00403bf0
mov eax, dword [ebx + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b890
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4bd0c8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41b8b7
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
push 2
push ecx
push ecx
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x41b9ce
cmp dword [edi + 0x14], 8
jb 0x41b8df
mov edi, dword [edi]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0x10030
push str.EasyAntiCheat_EOSSys
push str.EasyAntiCheat_EOSSys
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x41b987
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41b9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x41b9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.StartService_EasyAntiCheat_EOSSys_failed_with__i.
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [esp + 0xc]
call fcn.004036b0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.CreateService_failed_with__i.
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [esp + 0xc]
call fcn.004036b0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push str.OpenSCManager_failed_with__i.
push ecx
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [esp + 0xc]
call fcn.004036b0
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret 8
Function at 0x41fc20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4bd0c8]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41fc49
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [esp + 8]
push eax
push 0xf003f
push ecx
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fca5
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41fcaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegDeleteKeyW_failed_with__i
lea ecx, [esp + 0x14]
push ecx
jmp 0x41fcd0
cmp eax, 2
jne 0x41fcbf
mov eax, 3
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_failed_with__i
lea eax, [esp + 0x14]
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [esp + 0xc]
call fcn.004036b0
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret

Function at 0x4219d0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4bd0c8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, edx
xor bl, bl
push edi
mov edi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4219f7
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
test edi, edi
jne 0x421a29
push 0x12
push 0x4b4ae0
mov ecx, esi
call fcn.00403bf0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x421a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x421a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.DeleteService_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [esp + 0x10]
call fcn.004036b0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
Function at 0x421f00
Capabilities:
Create directory
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov byte [ebp - 1], dl
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x421f1b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
mov word [eax], cx
lea eax, [ebp - 8]
push eax
push ecx
push 0x8000
push 0x49be40
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x421f8e
mov edx, dword [ebp - 8]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f50
sub ecx, dword [ebp - 0xc]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403bf0
push 1
push 0x4b2218
mov ecx, esi
call fcn.00409eb0
push 0x11
push str.EasyAntiCheat_EOS
mov ecx, esi
call fcn.00409eb0
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebx], 0
je 0x422045
cmp byte [ebp - 1], 0
je 0x422007
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421fa7
mov eax, dword [esi]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421fbd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421fce
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x422007
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x422007
cmp dword [esi + 0x14], 8
jb 0x421ff0
mov esi, dword [esi]
xor eax, eax
mov dword [ebx], 0
mov word [esi], ax
cmp dword [ebx], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
mov ecx, esi
call fcn.0040de80
sub edi, 0
je 0x422034
sub edi, 1
jne 0x422042
push 0x15
push str.EasyAntiCheat_EOS.sys
mov ecx, esi
call fcn.00409eb0
cmp dword [ebx], edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x15
push str.EasyAntiCheat_EOS.exe
mov ecx, esi
call fcn.00409eb0
cmp dword [ebx], 0
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret