joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f081
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404606
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x94
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x404048
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 4
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 5
mov edx, dword [0x4232ac]
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrCopy
mov dword [ebp - 4], 6
mov eax, dword [ebp + 8]
movsx eax, word [eax]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x2c], 1
jmp 0x41f147
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x9c]
jo 0x41f308
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xa0]
jg 0x41f282
mov dword [ebp - 4], 7
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 8
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 9
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xa
push dword [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaLenBstr
mov ecx, eax
call sub.MSVBVM60.DLL___vbaI2I4
mov word [ebp - 0x94], ax
mov word [ebp - 0x90], 1
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0041eeb3
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], 8
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 0x4008
lea eax, [ebp - 0x3c]
push eax
movsx eax, word [ebp - 0x98]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.MSVBVM60.DLL_rtcMidCharVar
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 0xb
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xc
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xd
jmp 0x41f135
mov dword [ebp - 4], 0xe
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xf
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x10
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x41f2f4
jmp 0x41f2eb
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2bb151f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x731161b3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40a990
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x40aa51
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00506bc0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40aa3b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00506bc0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x578a30
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x40aa51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00506bc0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.0040ab20
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00523c82
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40aab1
cmp eax, 0x207
ja 0x40aab1
jne 0x40aab8
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aac1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a9518
mov esp, ebp
pop ebp
ret
Function at 0x40ad90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cf20
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x40b4b0
push 0x40b400
push 0x40b4d0
push 0x40b470
push 0x40b420
push 0x40b520
push 0x40b510
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.Cabinet.dll_FDICreate
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40aeed
push dword [ebp - 0x20]
push edi
push 0x40b530
push edi
push dword [ebp - 0x28]
push esi
push ebx
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
test eax, eax
jne 0x40ae83
lea ecx, [ebp - 0x20]
call fcn.0040ab30
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 4], edi
call fcn.0040af10
push eax
push esi
lea eax, [ebp - 0x20]
push str.FDICopy_failed_with_error_code__d_:__s
push eax
call fcn.0040b090
mov esi, dword [ebp - 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ae88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ae88
mov edi, 1
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 4
cmp eax, 1
je 0x40aeed
lea ecx, [ebp - 0x20]
call fcn.0040ab30
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 4], 1
call fcn.0040af10
push eax
push esi
lea eax, [ebp - 0x20]
push str.FDIDestroy_failed_with_error_code__d_:__s
push eax
call fcn.0040b090
mov esi, dword [ebp - 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40aeed
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004a9970
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.00506bc0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40ba32
test edi, edi
je 0x40ba32
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40ba32
cmp eax, 0x3fff
ja 0x40ba32
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ba32
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x578de4
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ba32
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.00506bc0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a9518
mov esp, ebp
pop ebp
ret
Function at 0x40d4d0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5c8060]
test ecx, ecx
js 0x40d518
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x5c8060], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.00506bc0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d589
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d5e0
push 0x57a220
push 0x578f00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5e0
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x40d5c0
cmp ax, 6
jne 0x40d5e0
mov dword [0x5c8060], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x40db50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dba9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dba9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40db9a
cmp esi, edx
jae 0x40dba9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40db88
cmp esi, edx
jae 0x40dba9
cmp word [esi], 0
je 0x40dba9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40e5d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40e5f1
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40e61b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x40e800
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40e821
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40e84b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x40e970
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d0a1
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x40e9d6
mov eax, 0x80004003
jmp 0x40eace
push 0xf01ff
push edi
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x128], edi
test edi, edi
jne 0x40e9fd
mov ebx, 0x80004005
jmp 0x40eac5
push dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
xor ebx, ebx
call fcn.0040e0d0
push dword [eax]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0040e030
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x40ea48
push eax
call fcn.00524179
add esp, 4
mov eax, dword [ebp - 0x120]
cmp dword [eax - 0xc], 0
je 0x40ea64
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
push ebx
push dword [ebp - 0x11c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
test ebx, ebx
je 0x40ea89
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov ebx, 0x80004005
test eax, eax
cmovne ebx, ecx
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
or eax, 0xffffffff
mov dword [ebp - 0x118], ecx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40eabe
mov ecx, dword [ecx]
push dword [ebp - 0x118]
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret
Function at 0x40ee50
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40ee8f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40eeaa
mov edi, 0x80004005
jmp 0x40eee1
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push ebx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push ebx
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004a9518
mov esp, ebp
pop ebp
ret
Function at 0x40f650
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004a9970
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40f680
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00506bc0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00532f47
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004a9518
mov esp, ebp
pop ebp
ret
Function at 0x40f710
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f923
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f923
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f743
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40f923
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00506bc0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00506bc0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x57a5ac
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f7c4
test al, 1
je 0x40f7c4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x40f909
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40f8fd
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x40f878
cmp word [ebp - 0x638], 0x2e
jne 0x40f837
mov ax, word [ebp - 0x636]
test ax, ax
je 0x40f8e2
cmp ax, 0x2e
jne 0x40f837
cmp word [ebp - 0x634], 0
je 0x40f8e2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00506bc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f710
add esp, 4
jmp 0x40f8e0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00506bc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f8cf
test al, 1
je 0x40f8cf
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f800
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004a9518
mov esp, ebp
pop ebp
ret
Function at 0x40f940
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f998
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f998
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40f978
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f998
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f993
test al, 0x10
je 0x40f993
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40f998
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x410080
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4100b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_code_d
call fcn.0044beb0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4100af
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4100fa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4100fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_d
call fcn.0044beb0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret