joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55f9e8
Capabilities:
Reference alidns dns server

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
xor eax, eax
push ebp
push 0x55fba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
je 0x55fb87
mov eax, dword [0x59945c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004e3ac0
test al, al
je 0x55fa47
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00407428
mov byte [ebp - 9], 1
jmp 0x55fb87
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x18], 0x597ba8
xor edx, edx
push ebp
push 0x55fb3d
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x55c0f4]
call fcn.004d44a0
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x55fb2c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
add eax, 0xc4
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
call fcn.00407428
mov eax, dword [ebp - 0x14]
mov edx, dword [0x55fbb8]
mov dword [eax + 0xd0], edx
push 1
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0055e85c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xcc]
test eax, eax
je 0x55fb16
mov eax, dword [eax + 8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x55fb16
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xcc]
mov edx, esi
call fcn.0055ce90
mov edi, eax
mov eax, dword [ebp - 8]
mov edx, dword [edi + 0x24]
call fcn.00407428
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [0x59945c]
mov eax, dword [eax]
call fcn.004e3ac0
test al, al
je 0x55fb12
mov byte [ebp - 9], 1
call fcn.0040688c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55fb87
inc esi
dec ebx
jne 0x55facd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55fb33
mov eax, dword [ebp - 0x14]
call fcn.00405628
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55fbac
lea eax, [ebp - 0x1c]
call fcn.00407048
lea eax, [ebp - 4]
call fcn.00407048
ret

Function at 0x55fc00
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
xor ecx, ecx
mov dl, 1
mov eax, dword [0x55f754]
call fcn.004d44a0
mov ebx, eax
movzx eax, byte [ebx + 0x141]
or al, byte [0x55fc68]
mov byte [ebx + 0x141], al
mov byte [ebx + 0x140], 1
mov eax, ebx
call fcn.0054ad80
add eax, 4
mov edx, 0x55fc78
call fcn.00407428
mov eax, ebx
call fcn.0054ad80
add eax, 0xa0
mov edx, 0x55fc98
call fcn.00407428
mov edx, 0x7530
mov eax, ebx
call fcn.0051fd98
mov eax, ebx
pop ebx
ret
Function at 0x560cc4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x597bb8]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x560cff
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x560dd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x597bb8]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x560e1f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x56fa60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x56fbf4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.004047c4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0041f15c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
mov ecx, 0x56fc10
call fcn.00407c78
mov dl, 1
mov eax, dword [0x4376a8]
call fcn.00444474
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x56fbca
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00420ec8
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 0xfffffe98
call fcn.004508c0
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, 0x56fc28
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0056f7b0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x56fbb4
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
mov dl, 1
call fcn.0041ec6c
test al, al
je 0x56fbac
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
call fcn.00407a2c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x56fbac
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
call fcn.00407a2c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x56fba3
test ah, 4
je 0x56fba3
test al, 0x10
je 0x56fba3
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
call fcn.00407a2c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
jmp 0x56fbac
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetLastError
inc ebx
dec esi
jne 0x56fb15
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56fbd1
mov eax, dword [ebp - 8]
call fcn.00405628
ret

Function at 0x570160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x210], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5701e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
xor ecx, ecx
mov edx, 0x20a
call fcn.00404cdc
push 0x104
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea ebx, [ebp - 0x20a]
lea edx, [ebp - 0x210]
mov eax, ebx
call fcn.0041f8cc
mov edx, dword [ebp - 0x210]
mov eax, esi
mov ecx, 0x570200
call fcn.00407c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5701eb
lea eax, [ebp - 0x210]
call fcn.00407048
ret
Function at 0x570214
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
mov eax, dword [ebp - 8]
call fcn.0040712c
xor eax, eax
push ebp
push 0x5703a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0041f2f4
mov eax, dword [ebp - 0x50]
mov edx, 0x5703c0
call fcn.0041dcf8
test al, al
je 0x5702b2
cmp dword [ebp - 8], 0
jne 0x5702b2
lea eax, [ebp - 0x10]
call fcn.00570160
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.0041ec6c
test al, al
je 0x5702b2
push 0x5703d8
push dword [ebp - 4]
push 0x5703f0
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407d00
lea eax, [ebp - 4]
mov edx, 0x570400
call fcn.00407470
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f15c
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404cdc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov eax, dword [0x59919c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
call fcn.00407a2c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.00407a2c
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.00407a2c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
mov esi, eax
test esi, esi
jne 0x570350
push dword [ebp - 4]
push 0x57041c
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0041e4b0
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00407d00
mov eax, dword [ebp - 0x54]
call fcn.00566378
test bl, bl
je 0x57037c
test esi, esi
je 0x57037c
jmp 0x57036a
mov eax, dword [0x59919c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x57037c
push 0x64
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x57035a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5703ab
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.004070a8
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004070a8
ret
Function at 0x570bb4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
xor eax, eax
push ebp
push 0x570cd8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005704c0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00570430
cmp dword [ebp - 0xc], 0
jne 0x570c0b
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407470
cmp dword [ebp - 0x10], 0
jne 0x570c1c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00407470
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.005700b0
mov esi, eax
mov dword [ebp - 0x23c], 0x22c
lea edx, [ebp - 0x23c]
mov eax, esi
call fcn.005700d0
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x570cb3
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x234]
call fcn.00570630
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041dcf8
test al, al
jne 0x570c86
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041dcf8
test al, al
jne 0x570c86
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0041dcf8
test al, al
je 0x570ca0
push 0
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x23c]
mov eax, esi
call fcn.005700f0
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x570c4b
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570cdf
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004070a8
ret
Function at 0x571df8
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x571eee
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x571ed8
push 0xf01ff
mov eax, ebx
call fcn.00407a2c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x571ed8
xor eax, eax
push ebp
push 0x571e9a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x571ebd
cmp byte [ebp - 1], 0
jne 0x571ed8
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x14]
call fcn.00422834
mov eax, dword [ebp - 0x14]
call fcn.00566378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571ef5
lea eax, [ebp - 0x14]
call fcn.00407048
ret

Function at 0x571f00
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x571fae
push 0xf01ff
mov eax, ebx
call fcn.00407a2c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x571fae
xor eax, eax
push ebp
push 0x571f8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x571fae
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x571fbc
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, 0x57211c
call fcn.00407428
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x572109
push 0xf01ff
mov eax, esi
call fcn.00407a2c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x572109
xor edx, edx
push ebp
push 0x5720e6
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x572047
mov eax, ebx
mov edx, 0x572130
call fcn.00407428
jmp 0x5720ca
cmp eax, 4
jne 0x57205a
mov eax, ebx
mov edx, 0x572144
call fcn.00407428
jmp 0x5720ca
cmp eax, 2
jne 0x57206d
mov eax, ebx
mov edx, 0x572144
call fcn.00407428
jmp 0x5720ca
cmp eax, 3
jne 0x572080
mov eax, ebx
mov edx, 0x57215c
call fcn.00407428
jmp 0x5720ca
cmp eax, 7
jne 0x572093
mov eax, ebx
mov edx, 0x572174
call fcn.00407428
jmp 0x5720ca
cmp eax, 1
jne 0x5720a6
mov eax, ebx
mov edx, 0x572188
call fcn.00407428
jmp 0x5720ca
cmp eax, 5
jne 0x5720b9
mov eax, ebx
mov edx, 0x57219c
call fcn.00407428
jmp 0x5720ca
cmp eax, 6
jne 0x5720ca
mov eax, ebx
mov edx, 0x57219c
call fcn.00407428
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x572109
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5721a8
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5722b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
test esi, esi
je 0x57229e
xor eax, eax
mov dword [ebp - 0xc], eax
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x57229e
xor eax, eax
push ebp
push 0x57227b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0
mov eax, esi
call fcn.00407a2c
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov eax, ebx
call fcn.00407a2c
mov edi, eax
push edi
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x57225b
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x10]
call fcn.00422834
mov eax, dword [ebp - 0x10]
call fcn.00566378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57229e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57229e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5722bb
lea eax, [ebp - 0x10]
call fcn.00407048
ret
Function at 0x575d34
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, edx
push esp
push eax
mov eax, dword [0x59919c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov edx, ebx
lea eax, [esp + 4]
call fcn.0041f8cc
mov eax, dword [esp]
call fcn.00575cd4
add esp, 0x204
pop ebx
ret

Function at 0x575d7c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
xor eax, eax
push ebp
push 0x575e1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0041ec6c
test al, al
je 0x575e06
push 0x80
mov eax, dword [ebp - 4]
call fcn.00407a2c
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesW
push esi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x575e06
call sub.kernel32.dll_GetLastError_1
mov edi, eax
push esi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x575e00
test ah, 4
je 0x575e00
test al, 0x10
je 0x575e00
mov eax, dword [ebp - 4]
call fcn.00407a2c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x575e06
push edi
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x575e23
lea eax, [ebp - 4]
call fcn.00407048
ret
Function at 0x5760cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040712c
xor eax, eax
push ebp
push 0x576226
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bl
cmp eax, 6
ja case.0x5760f9.1
jmp dword [eax*4 + 0x576100]
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00575d34
jmp case.0x5760f9.1
lea edx, [ebp - 0xc]
mov eax, 2
call fcn.00575d34
jmp case.0x5760f9.1
lea edx, [ebp - 0xc]
mov eax, 9
call fcn.00575d34
jmp case.0x5760f9.1
lea edx, [ebp - 0xc]
mov eax, 0x18
call fcn.00575d34
jmp case.0x5760f9.1
lea edx, [ebp - 0xc]
mov eax, 7
call fcn.00575d34
jmp case.0x5760f9.1
lea edx, [ebp - 0xc]
mov eax, 0x17
call fcn.00575d34
push dword [ebp - 0xc]
push 0x576240
push dword [ebp - 4]
push 0x576250
lea eax, [ebp - 8]
mov edx, 4
call fcn.00407d00
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041ec6c
test al, al
je 0x5761aa
mov eax, dword [ebp - 8]
call fcn.00407a2c
push eax
call sub.kernel32.dll_DeleteFileW
sub bl, 1
jb 0x5761b6
sub bl, 2
je 0x5761c5
jmp 0x5761d2
lea edx, [ebp - 0xc]
mov eax, 0x19
call fcn.00575d34
jmp 0x5761d2
lea edx, [ebp - 0xc]
mov eax, 0x17
call fcn.00575d34
push dword [ebp - 0xc]
push 0x576240
push dword [ebp - 4]
push 0x576250
lea eax, [ebp - 8]
mov edx, 4
call fcn.00407d00
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041ec6c
test al, al
je 0x57620b
mov eax, dword [ebp - 8]
call fcn.00407a2c
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57622d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004070a8
ret