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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x14]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x46aa6f
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.0041525c
pop ecx
lea eax, [ebp - 4]
call fcn.0046b388
test eax, eax
je 0x46aa64
mov eax, dword [0x50e594]
push esi
mov esi, 0x50e594
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x50e594]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.0046b40f
lea edi, [ebp - 8]
call fcn.00424a4a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0046b4b5
pop ecx
lea edi, [ebp - 0xc]
call fcn.00424a4a
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.0041525c
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 0x46aef4
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 0x46af53
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.0042ac5c
push dword [ebp + 0xc]
push esi
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x51049c
call fcn.004452e2
add esp, 0x14
jmp 0x46b0b7
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 0x46af8e
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.0042ac5c
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x46afc3
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 0x46afd5
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.0042ac5c
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x51049c
call fcn.004452e2
add esp, 0xc
jmp 0x46b061
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 0x46aff4
cmp dword [ebp - 0x18], ebx
je 0x46aff9
call fcn.00487f2c
cmp dword [ebp - 0x14], esi
je 0x46b04f
lea esi, [ebp - 0x18]
call fcn.004718bb
mov esi, dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x46b013
xor eax, eax
jmp 0x46b018
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
call fcn.0046b76c
push eax
push dword [ebp - 4]
call fcn.004870c0
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x46b037
xor esi, esi
jmp 0x46b03c
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
call fcn.0046b713
mov edi, dword [ebp + 8]
jmp 0x46afe6
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 0x46b071
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x46b0b7
push dword [ebp + 0xc]
mov eax, edi
call fcn.0046b0c1
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x46b0b7
mov eax, 0xe0000025
call fcn.0042ac4d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 0xc]
mov esi, 0x51049c
push dword [ebp - 4]
push str.ChecksumFileByMem_return_d__path:_ws
call fcn.004452e2
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46b0c1
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 0x46b11f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.0042ac5c
push ebx
push esi
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x51049c
call fcn.004452e2
add esp, 0x14
jmp 0x46b266
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 0x46b166
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.0042ac5c
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x51049c
call fcn.004452e2
add esp, 0xc
jmp 0x46b251
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 0x46b1ab
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.0042ac5c
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x51049c
call fcn.004452e2
add esp, 0xc
jmp 0x46b243
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 0x46b1c9
cmp dword [ebp - 0x20], ebx
je 0x46b1ce
call fcn.00487f2c
cmp dword [ebp - 0x1c], esi
je 0x46b23c
lea esi, [ebp - 0x20]
call fcn.004718bb
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x46b1e8
xor eax, eax
jmp 0x46b1ed
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0046b76c
push eax
push dword [ebp - 8]
call fcn.00489319
add esp, 0xc
test eax, eax
jne 0x46b226
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x46b20f
xor esi, esi
jmp 0x46b214
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.0046b713
xor edi, edi
jmp 0x46b1bc
push dword [ebp + 8]
mov esi, 0x51049c
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.004452e2
pop ecx
pop ecx
jmp 0x46b243
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x46b251
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 0x46b261
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 0x46b2ad
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 0x46b2e4
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x46b2f0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x46b2d1
jmp 0x46b2f7
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x46b2fe
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00423978
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46b333
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x46b31e
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x46b31e
lea eax, [ebp - 4]
call fcn.00473072
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x46b36a
xor esi, esi
jmp 0x46b321
push eax
call fcn.0046b2fe
test eax, eax
pop ecx
je 0x46b366
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x46b31e
call edi
cmp eax, ebx
jne 0x46b366
jmp 0x46b31e

Function at 0x46b40f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x510998], 1
jne 0x46b448
mov eax, dword [0x50e594]
or dword [0x510998], 1
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
push 0x4ddf1d
mov dword [0x510994], eax
call fcn.00486f0e
pop ecx
mov eax, dword [0x510994]
cmp dword [eax - 0xc], 0
jne 0x46b4a4
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x46b49f
push ebx
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048650a
pop ecx
lea ecx, [ebp - 0x208]
mov ebx, eax
mov esi, 0x510994
push ecx
mov eax, esi
call fcn.004152f3
call fcn.0046b270
push str.drivers_
push esi
call fcn.00401000
pop esi
pop ebx
mov eax, dword [0x510994]
add eax, 0xfffffff0
call fcn.004249f2
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x46c3ae
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x46c3c1
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
setne al
ret
Function at 0x46c703
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.00437100
pop ecx
push dword [eax]
lea eax, [ebp - 4]
call fcn.00423978
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x46c780
push str.operationcaskctrl.dat
lea eax, [ebp - 8]
call fcn.00423978
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 0x4f24fc
push 0x4e6838
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 0x46c772

Function at 0x46c8d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x50e594]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call dword [section..data]
cmp dword [ebp + 0xc], 0
je 0x46c90d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x46c911
xor eax, eax
jmp 0x46c92b
lea edi, [eax + eax]
mov eax, edi
call fcn.00496a60
mov esi, esp
push 0xfde9
push edi
push dword [ebp + 0xc]
call fcn.0043571e
push eax
lea eax, [ebp - 8]
push eax
call fcn.004239a3
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 0x46c951
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x46c948
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 2
add esi, 4
pop ebx
call fcn.0046c79d
movzx ebx, word [ebp - 4]
push edi
call fcn.0046c79d
lea eax, [edi - 0x10]
call fcn.00401023
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46cf41
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
setne al
mov word [edi + 0x2c], 0x165
call fcn.0046c86a
movzx eax, byte [edi + 0x32]
push eax
mov ecx, edi
call fcn.0046c886
cmp dword [ebp + 0xc], ebx
push edi
setne al
call fcn.0046c86a
push 6
mov ecx, edi
call fcn.0046c886
movzx eax, byte [edi + 0x36]
push eax
mov ecx, edi
call fcn.0046c886
push str.ProgramPath
lea eax, [ebp + 8]
push str.softwarekingsoft_antivirus
push eax
call fcn.0047314f
lea eax, [ebp + 8]
add esp, 0xc
push eax
call fcn.00473567
lea eax, [ebp + 8]
mov dword [esp], str.ressrcchsuplive.svr
push eax
call fcn.00401000
mov esi, dword [ebp + 8]
push esi
push ebx
push str.TryNo
push 0x4e6838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.00401023
push ebx
mov ecx, edi
call fcn.0046c89f
call fcn.004d9d40
neg eax
sbb eax, eax
neg eax
movzx esi, ax
call fcn.004732d5
neg eax
sbb eax, eax
and eax, 2
movzx ebx, ax
call fcn.0047324f
neg eax
sbb eax, eax
and eax, 4
movzx eax, ax
or eax, ebx
or eax, esi
push eax
mov ecx, edi
call fcn.0046c89f
mov eax, dword [0x50f8e8]
test eax, eax
jne 0x46d024
push 2
pop eax
push eax
mov ecx, edi
call fcn.0046c886
push dword [ebp + 0x10]
mov ecx, edi
call fcn.0046c886
call fcn.0042b473
push eax
mov ecx, edi
call fcn.0046c8b8
call fcn.0046ca6c
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x46dbd8
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.00437100
pop ecx
push dword [eax]
lea eax, [ebp - 8]
call fcn.00423978
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x46dc93
push str.operationcaskctrl.dat
lea eax, [ebp - 4]
call fcn.00423978
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.00486d70
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x4ee0dc
push 0x4f60bc
push 0x4e6838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x208]
push eax
call fcn.0048650a
test eax, eax
pop ecx
jbe 0x46dc93
lea eax, [ebp - 0x208]
push eax
jmp 0x46dc98
push str.http:__helpdesktop0.ksmobile.com_c_
mov eax, ebx
call fcn.00423978
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, ebx
pop esi
leave
ret
Function at 0x46dcac
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.00437100
pop ecx
push dword [eax]
lea eax, [ebp - 8]
call fcn.00423978
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x46dd52
push str.operationcaskctrl.dat
lea eax, [ebp - 4]
call fcn.00423978
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.00486d70
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x4ee0dc
push str.server1
push 0x4e6838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x208]
push eax
jmp 0x46dd57
push str.http:__helpdesktop1.ksmobile.com_c_
mov eax, ebx
call fcn.00423978
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, ebx
pop esi
leave
ret

Function at 0x46de9c
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.00486d70
mov esi, dword [ebp + 8]
mov edi, 0x50e594
add esp, 0xc
mov ecx, edi
call fcn.0040f75c
mov eax, dword [0x50e594]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x510270]
add eax, 0xfffffff0
call fcn.004249f2
lea esi, [eax + 0x10]
mov eax, dword [0x510270]
add eax, 0xfffffff0
call fcn.004249f2
lea ebx, [eax + 0x10]
lea eax, [ebp - 0x10]
push eax
mov eax, esi
mov dword [ebp - 0x14], ebx
call fcn.00405206
pop ecx
push eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.0041525c
pop ecx
lea edi, [ebp - 8]
call fcn.00424a4a
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 0x4edb6c
push str.TryNo
push 0x4e6838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x46df87
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.004152cd
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46e5ef
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.00440797
test eax, eax
mov ebx, 0x51049c
je 0x46e6b8
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [edi + 0x1c], esi
je 0x46e688
cmp dword [eax - 0xc], esi
jne 0x46e673
cmp dword [ebp - 4], esi
je 0x46e63c
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.004452e2
push dword [edi + 8]
push dword [edi + 4]
call fcn.0042a881
push eax
push str.DeleteSubKeyTree_return:_d
mov dword [ebp - 0xc], eax
call fcn.004452e2
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jmp 0x46e684
cmp dword [ebp - 4], esi
je 0x46e6b8
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x46e6b8
jmp 0x46e6b1
cmp dword [eax - 0xc], esi
je 0x46e6b1
cmp dword [edi + 0x18], 4
jne 0x46e6a1
push dword [edi + 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00404d0a
jmp 0x46e6ad
push dword [edi + 0x10]
lea esi, [ebp - 4]
push eax
call fcn.00473533
test eax, eax
je 0x46e6b8
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.004452e2
add esp, 0x20
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x46e6ee
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x46e906
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 0x46e920
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 0x46e94f
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 0x46e972
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 0x46e94b
push esi
call ebx
xor esi, esi
jmp 0x46e946
Function at 0x46e979
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 0x46e99e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x46e9eb
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 0x46e9c5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x46ea11
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 0x46e9ee
cmp dword [ebp - 0x1c], 4
jne 0x46e9ee
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 0x46ea17
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 0x46e9e9
push ebx
call esi
jmp 0x46e9c0

Function at 0x46ea1c
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 0x46ea41
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x46ea6a
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 0x46ea6d
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 0x46eaa5
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 0x46ea68
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 0x46eacb
cmp dword [ebp - 0x20], 1
je 0x46eadf
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x46eabd
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 0x46ea5d