joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cee1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x14]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x46cfc5
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
lea ecx, [ebp - 4]
call fcn.00413b36
pop ecx
lea eax, [ebp - 4]
call fcn.0046d891
test eax, eax
je 0x46cfba
mov eax, dword [0x512bd4]
push esi
mov esi, 0x512bd4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x512bd4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.0046d918
lea edi, [ebp - 8]
call fcn.004234ea
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0046d9be
pop ecx
lea edi, [ebp - 0xc]
call fcn.004234ea
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
push eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.00413b36
pop ecx
push 0
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
pop edi
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
or dword [ebx + 0x14], 0xffffffff
leave
ret
Function at 0x46d44a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
jne 0x46d4a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.004296d3
push dword [ebp + 0xc]
push esi
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0x14
jmp 0x46d60d
mov edi, dword [ebp + 8]
push ebx
push dword [edi + 4]
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp esi, ebx
mov dword [ebp - 8], eax
jne 0x46d4e4
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.004296d3
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x46d519
push dword [edi + 4]
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x46d52b
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.004296d3
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0xc
jmp 0x46d5b7
lea ebx, [edi + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebx + 4]
je 0x46d54a
cmp dword [ebp - 0x18], ebx
je 0x46d54f
call fcn.0048a6bc
cmp dword [ebp - 0x14], esi
je 0x46d5a5
lea esi, [ebp - 0x18]
call fcn.0046de7f
mov esi, dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x46d569
xor eax, eax
jmp 0x46d56e
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
call fcn.0046dc2c
push eax
push dword [ebp - 4]
call fcn.00489850
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x46d58d
xor esi, esi
jmp 0x46d592
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
call fcn.00473dbb
mov edi, dword [ebp + 8]
jmp 0x46d53c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x46d5c7
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x46d60d
push dword [ebp + 0xc]
mov eax, edi
call fcn.0046d617
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x46d60d
mov eax, 0xe0000025
call fcn.004296c4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 0xc]
mov esi, 0x514ad4
push dword [ebp - 4]
push str.ChecksumFileByMem_return_d__path:_ws
call fcn.00443ae2
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46d617
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
mov esi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x46d675
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.004296d3
push ebx
push esi
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0x14
jmp 0x46d7bc
push edi
push dword [esi + 4]
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
jne 0x46d6bc
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.004296d3
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0xc
jmp 0x46d7a7
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x46d701
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.004296d3
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0xc
jmp 0x46d799
lea ebx, [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
mov esi, dword [ebx + 4]
je 0x46d71f
cmp dword [ebp - 0x20], ebx
je 0x46d724
call fcn.0048a6bc
cmp dword [ebp - 0x1c], esi
je 0x46d792
lea esi, [ebp - 0x20]
call fcn.0046de7f
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x46d73e
xor eax, eax
jmp 0x46d743
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0046dc2c
push eax
push dword [ebp - 8]
call fcn.0048baa9
add esp, 0xc
test eax, eax
jne 0x46d77c
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x46d765
xor esi, esi
jmp 0x46d76a
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.00473dbb
xor edi, edi
jmp 0x46d712
push dword [ebp + 8]
mov esi, 0x514ad4
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.00443ae2
pop ecx
pop ecx
jmp 0x46d799
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x46d7a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x46d7b7
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46d840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x46d877
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x46d883
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x46d864
jmp 0x46d88a
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x46d918
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x514ff0], 1
jne 0x46d951
mov eax, dword [0x512bd4]
or dword [0x514ff0], 1
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
push 0x4e0721
mov dword [0x514fec], eax
call fcn.0048969e
pop ecx
mov eax, dword [0x514fec]
cmp dword [eax - 0xc], 0
jne 0x46d9ad
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x46d9a8
push ebx
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00488c9a
pop ecx
lea ecx, [ebp - 0x208]
mov ebx, eax
mov esi, 0x514fec
push ecx
mov eax, esi
call fcn.00413bce
call fcn.0046d803
push str.drivers_
push esi
call fcn.00401000
pop esi
pop ebx
mov eax, dword [0x514fec]
add eax, 0xfffffff0
call fcn.00423492
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x46e835
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x46e848
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x46eb8a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.00435a96
pop ecx
push dword [eax]
lea eax, [ebp - 4]
call fcn.0042241f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x46ec07
push str.operationcaskctrl.dat
lea eax, [ebp - 8]
call fcn.0042241f
mov esi, dword [ebp - 8]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.0040103b
lea eax, [esi - 0x10]
call fcn.00401023
mov esi, dword [ebp - 4]
push esi
push 0x50
push 0x4f550c
push 0x4e9838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, edi
pop edi
pop esi
leave
ret
push 0x50
pop edi
jmp 0x46ebf9
Function at 0x46ed58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x512bd4]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call dword [section..data]
cmp dword [ebp + 0xc], 0
je 0x46ed94
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x46ed98
xor eax, eax
jmp 0x46edb2
lea edi, [eax + eax]
mov eax, edi
call fcn.004991f0
mov esi, esp
push 0xfde9
push edi
push dword [ebp + 0xc]
call fcn.0043406a
push eax
lea eax, [ebp - 8]
push eax
call fcn.0042244a
mov edi, dword [ebp - 8]
movzx eax, word [edi - 0xc]
mov dword [ebp - 4], eax
movzx eax, ax
xor ecx, ecx
test eax, eax
jle 0x46edd8
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x46edcf
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 2
add esi, 4
pop ebx
call fcn.0046ec24
movzx ebx, word [ebp - 4]
push edi
call fcn.0046ec24
lea eax, [edi - 0x10]
call fcn.00401023
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x46f4ff
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.ProgramPath
lea eax, [ebp - 4]
push str.softwarekingsoft_antivirus
push eax
call fcn.004758e4
lea eax, [ebp - 4]
push eax
call fcn.00475cfc
add esp, 0x10
push str.ressrcchsuplive.svr
lea eax, [ebp - 4]
push eax
call fcn.00401000
mov esi, dword [ebp - 4]
push esi
push 0
push str.TryNo
push 0x4e9838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x47012d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
call fcn.00435a96
pop ecx
push dword [eax]
lea eax, [ebp - 8]
call fcn.0042241f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x4701e8
push str.operationcaskctrl.dat
lea eax, [ebp - 4]
call fcn.0042241f
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
lea eax, [ebp - 8]
push esi
call fcn.0040103b
lea eax, [esi - 0x10]
call fcn.00401023
and word [ebp - 0x208], 0
push 0x1fe
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.00489500
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x4f11d4
push 0x4f9144
push 0x4e9838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x208]
push eax
call fcn.00488c9a
test eax, eax
pop ecx
jbe 0x4701e8
lea eax, [ebp - 0x208]
push eax
jmp 0x4701ed
push str.http:__helpdesktop0.ksmobile.com_c_
mov eax, ebx
call fcn.0042241f
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, ebx
pop esi
leave
ret
Function at 0x470201
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
call fcn.00435a96
pop ecx
push dword [eax]
lea eax, [ebp - 8]
call fcn.0042241f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x4702a7
push str.operationcaskctrl.dat
lea eax, [ebp - 4]
call fcn.0042241f
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
lea eax, [ebp - 8]
push esi
call fcn.0040103b
lea eax, [esi - 0x10]
call fcn.00401023
and word [ebp - 0x208], 0
push 0x1fe
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.00489500
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x4f11d4
push str.server1
push 0x4e9838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x208]
push eax
jmp 0x4702ac
push str.http:__helpdesktop1.ksmobile.com_c_
mov eax, ebx
call fcn.0042241f
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, ebx
pop esi
leave
ret

Function at 0x4703f1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
and word [ebp - 0x21c], 0
push ebx
push esi
push edi
push 0x206
lea eax, [ebp - 0x21a]
push 0
push eax
call fcn.00489500
mov esi, dword [ebp + 8]
mov edi, 0x512bd4
add esp, 0xc
mov ecx, edi
call fcn.0040de3b
mov eax, dword [0x512bd4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x5148a8]
add eax, 0xfffffff0
call fcn.00423492
lea esi, [eax + 0x10]
mov eax, dword [0x5148a8]
add eax, 0xfffffff0
call fcn.00423492
lea ebx, [eax + 0x10]
lea eax, [ebp - 0x10]
push eax
mov eax, esi
mov dword [ebp - 0x14], ebx
call fcn.0040528e
pop ecx
push eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00413b36
pop ecx
lea edi, [ebp - 8]
call fcn.004234ea
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
mov esi, dword [ebp - 8]
push esi
push 0x208
lea eax, [ebp - 0x21c]
push eax
push 0x4f0b6c
push str.TryNo
push 0x4e9838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x4704dc
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.00413ba8
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x470a1c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ecx, ecx
push ecx
push eax
push dword [edi + 4]
lea esi, [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
call fcn.00404d44
test eax, eax
mov ebx, 0x514ad4
je 0x470ae5
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [edi + 0x1c], esi
je 0x470ab5
cmp dword [eax - 0xc], esi
jne 0x470aa0
cmp dword [ebp - 4], esi
je 0x470a69
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 8]
mov dword [ebp - 4], esi
push dword [edi + 4]
mov esi, ebx
push str.DeleteSubKeyTree_root:_d__path:_ws
call fcn.00443ae2
push dword [edi + 8]
push dword [edi + 4]
call fcn.004292f8
push eax
push str.DeleteSubKeyTree_return:_d
mov dword [ebp - 0xc], eax
call fcn.00443ae2
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jmp 0x470ab1
cmp dword [ebp - 4], esi
je 0x470ae5
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x470ae5
jmp 0x470ade
cmp dword [eax - 0xc], esi
je 0x470ade
cmp dword [edi + 0x18], 4
jne 0x470ace
push dword [edi + 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00404d92
jmp 0x470ada
push dword [edi + 0x10]
lea esi, [ebp - 4]
push eax
call fcn.00475cc8
test eax, eax
je 0x470ae5
mov dword [ebp - 8], 1
push dword [edi + 0x10]
mov esi, ebx
push dword [edi + 0xc]
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi + 0x1c]
push dword [ebp - 8]
push str.KExecReg_Run_Return:_d__delete:_d__root:0x_x__path:_ws__type:_d__name:_ws__value:_ws
call fcn.00443ae2
add esp, 0x20
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x470b1b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x470d33
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x470d4d
pop edi
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x470d7c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x470d9f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x470d78
push esi
call ebx
xor esi, esi
jmp 0x470d73
Function at 0x470da6
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x470dcb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x470e18
push ebx
push esi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x470df2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x470e3e
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x470e1b
cmp dword [ebp - 0x1c], 4
jne 0x470e1b
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x470e44
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x470e16
push ebx
call esi
jmp 0x470ded

Function at 0x470e49
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x470e6e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x470e97
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x470e9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x470ed2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x470e95
push 6
mov dword [ebp - 0x24], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
rep stosd dword es:[edi], eax
jmp 0x470ef8
cmp dword [ebp - 0x20], 1
je 0x470f0c
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x470eea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 8]
jmp 0x470e8a
Function at 0x4711fe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x512bd4]
and dword [ebp - 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 4
add ebx, 4
pop ecx
mov eax, ebx
call fcn.0040703b
lea edi, [ebp - 4]
call fcn.004234ea
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
call fcn.00424300
push 0x4f4720
mov eax, edi
push eax
call fcn.0040ddd3
test eax, eax
mov esi, 0x514ad4
jne 0x4712df
push dword [ebx]
lea edi, [ebp - 0x10]
call fcn.0047545d
pop ecx
lea edi, [ebp - 0xc]
call fcn.00429123
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x4712cc
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.0040103b
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.00489e54
test eax, eax
pop ecx
pop ecx
jne 0x4712cc
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
push eax
push dword [ebp - 0xc]
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.00443ae2
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x4712cc
mov dword [ebp - 8], 1
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebx]
push 0
push eax
call fcn.00489e54
test eax, eax
pop ecx
pop ecx
jne 0x471317
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebx]
push eax
push edi
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.00443ae2
add esp, 0x10
test edi, edi
jne 0x471317
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
sete al
pop ebx
leave
ret