joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52f828
Capabilities:
Create process on windows
Get common file path
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x418
push eax
push str._sautorun.inf
lea edx, [ebp - 0x114]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 0x114]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x418]
push edx
push str.explorer.exe__e__root__c:_
lea ecx, [ebp - 0x114]
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x52f93c
call fcn.00560bcc
test eax, eax
jne 0x52f934
lea edx, [ebp - 0x24c]
push edx
push dword [ebp - 8]
call sub.KERNEL32.DLL_GetFileInformationByHandle
test eax, eax
je 0x52f934
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x52f934
mov eax, dword [ebp - 0x228]
cmp eax, 0x10000
jae 0x52f934
mov edx, dword [ebp - 0x228]
add edx, 0xa
push edx
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x52f934
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x228]
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x52f92c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x228]
cmp edx, ecx
jne 0x52f92c
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0052f61c
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_LocalFree
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0x218]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, dword [ebp - 4]
add ecx, 0x418
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
push 5
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.DLL_WinExec
lea edx, [ebp - 0x218]
push edx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x53b890
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0x14
push 0
push dword [ebp + 0xc]
call fcn.0066c86c
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x53b907
push str.c_APEDecompress_Create
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
push str.c_APEDecompress_Destroy
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetProcAddress
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
push str.c_APEDecompress_GetData
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], eax
push str.c_APEDecompress_Seek
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetProcAddress
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
push str.c_APEDecompress_GetInfo
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x53b938
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
test edx, edx
je 0x53b938
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
test eax, eax
je 0x53b938
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x53b938
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x53b93d
or eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x53ba80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x53ba9c
mov eax, 1
jmp 0x53bbe3
push 0x8094d4
call sub.KERNEL32.DLL_LoadLibraryA
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
test eax, eax
jne 0x53bade
push 0x823144
push 0x8094db
lea edx, [ebp - 0x10c]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
call sub.KERNEL32.DLL_LoadLibraryA
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
jne 0x53baee
xor eax, eax
jmp 0x53bbe3
push str.c_APECompress_Create
mov edx, dword [ebp + 8]
push dword [edx]
call sub.KERNEL32.DLL_GetProcAddress
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
push str.c_APECompress_Destroy
mov eax, dword [ebp + 8]
push dword [eax]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
push str.c_APECompress_Start
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
push str.c_APECompress_AddData
mov eax, dword [ebp + 8]
push dword [eax]
call sub.KERNEL32.DLL_GetProcAddress
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
push str.c_APECompress_Finish
mov eax, dword [ebp + 8]
push dword [eax]
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x53bb89
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x53bb89
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x53bb89
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x53bb89
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
test ecx, ecx
jne 0x53bb8d
xor eax, eax
jmp 0x53bbe3
push 0x809553
mov edx, dword [ebp + 8]
push dword [edx]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x53bbba
push 0
push 1
push 0xf82
call dword [ebp - 4]
test eax, eax
je 0x53bbba
xor eax, eax
jmp 0x53bbe3
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call dword [ecx + 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
jne 0x53bbde
xor eax, eax
jmp 0x53bbe3
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x552e68
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x552ec6
push 0xff
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
push 1
call sub.USER32.DLL_MsgWaitForMultipleObjects
test eax, eax
jne 0x552eaf
mov dword [ebp - 4], 1
jmp 0x552f28
lea ecx, [ebp - 0x24]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call sub.USER32.DLL_PeekMessageA
test eax, eax
jne 0x552e9d
jmp 0x552e7a
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
jmp 0x552f17
push 0xff
push 0x64
push 0
push dword [ebp + 8]
push 1
call sub.USER32.DLL_MsgWaitForMultipleObjects
test eax, eax
jne 0x552f02
mov dword [ebp - 4], 1
jmp 0x552f28
lea ecx, [ebp - 0x24]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call sub.USER32.DLL_PeekMessageA
test eax, eax
jne 0x552ef0
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [ebp - 8]
sub eax, ecx
mov edx, dword [ebp + 0xc]
cmp eax, edx
jb 0x552ed0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x55e3a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 4], 0x848c24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push 0
push 0x800
mov eax, dword [ebp - 0x24]
cdq
call fcn.006744e4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jmp 0x55e539
cmp dword [ebp - 8], 0
jne 0x55e3e3
cmp dword [ebp - 0xc], 0x11fff
jbe 0x55e3ee
jmp 0x55e3e5
jle 0x55e3ee
mov eax, 0x12000
xor edx, edx
jmp 0x55e3f4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add eax, 0x7ff
adc edx, 0
and eax, 0xfffff800
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
call fcn.0066c86c
add esp, 0xc
mov edx, dword [0x80cdac]
test edx, edx
je 0x55e45e
push 0
push 0x800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00674507
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0055e760
add esp, 0xc
test eax, eax
jne 0x55e48c
mov eax, 0xfffffffe
jmp 0x55e556
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp edx, dword [ebp - 0x10]
jne 0x55e480
cmp eax, dword [ebp - 0x14]
je 0x55e48c
mov eax, 0xfffffffe
jmp 0x55e556
push 0
push 0x800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00674507
add dword [0x6f4078], eax
mov eax, dword [0x6f4078]
xor edx, edx
mov dword [0x826584], eax
mov dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x2c], eax
sub edx, 0x80000000
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
fadd qword [0x55e55c]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x34], eax
sub edx, 0x80000000
mov dword [ebp - 0x30], edx
fild qword [ebp - 0x34]
fadd qword [0x55e55c]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jne 0x55e51b
cmp eax, dword [ebp - 0x14]
jbe 0x55e52b
jmp 0x55e51d
jle 0x55e52b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
sbb dword [ebp - 8], edx
jmp 0x55e539
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x55e54b
cmp dword [ebp - 0xc], 0
ja 0x55e3d2
jmp 0x55e551
jg 0x55e3d2
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x55e60c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, dword [ebp + 8]
test eax, eax
je 0x55e62a
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x55e62a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x55e62e
xor eax, eax
jmp 0x55e698
xor edx, edx
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 4]
push ecx
push 0x80cdb4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
jne 0x55e695
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x55e68d
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
call fcn.0066cc30
add esp, 0xc
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x55e69c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, dword [ebp + 8]
test eax, eax
je 0x55e6ba
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x55e6ba
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x55e6be
xor eax, eax
jmp 0x55e728
xor edx, edx
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 4]
push ecx
push str.SOFTWAREEasyBoot_SystemsUltraISO5.0
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
jne 0x55e725
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x55e71d
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
call fcn.0066cc30
add esp, 0xc
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x55e760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x24
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x55e856
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jl 0x55e7f1
mov ecx, dword [0x6f4078]
mov eax, dword [ebp - 0x14]
add ecx, eax
push ecx
push dword [ebp - 0x10]
push 0x85ac24
mov edx, dword [ebp - 0x14]
shl edx, 0xb
mov ecx, dword [ebp + 0xc]
add edx, ecx
push edx
call fcn.004394d0
add esp, 0x10
imul eax, dword [ebp - 0x10], 0x930
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push 0x85ac24
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ecx, eax
je 0x55e7e3
xor eax, eax
jmp 0x55e85b
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x14], ecx
jmp 0x55e84b
mov eax, dword [0x6f4078]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x85ac24
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 0xc]
add ecx, eax
push ecx
call fcn.004394d0
add esp, 0x10
imul edx, dword [ebp - 0xc], 0x930
mov dword [ebp - 4], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push 0x85ac24
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp eax, edx
je 0x55e846
xor eax, eax
jmp 0x55e85b
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jg 0x55e783
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x55ff00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_QueryDosDeviceA
lea edx, [ebp - 0x104]
push edx
push dword [ebp + 8]
push 7
call sub.KERNEL32.DLL_DefineDosDeviceA
mov esp, ebp
pop ebp
ret

Function at 0x55ff34
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_QueryDosDeviceA
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x55ff72
imul ecx, dword [ebp - 4], 0x23
mov al, byte [ecx*8 + 0xcf1d39]
mov edx, dword [ebp + 8]
mov cl, byte [edx]
cmp al, cl
je 0x55ff7f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov edx, dword [0x80d1ac]
cmp eax, edx
jl 0x55ff5b
mov ecx, dword [ebp - 4]
mov eax, dword [0x80d1ac]
cmp ecx, eax
jge 0x55ffaa
imul edx, dword [ebp - 4], 0x23
push dword [edx*8 + 0xcf1d34]
push 0x80d1d3
lea ecx, [ebp - 0x108]
push ecx
call fcn.00670e94
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push 1
call sub.KERNEL32.DLL_DefineDosDeviceA
mov esp, ebp
pop ebp
ret
Function at 0x56034c
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x80d180]
mov dword [ebp - 8], eax
mov ax, word [0x80d184]
mov word [ebp - 4], ax
mov al, byte [0x80d186]
mov byte [ebp - 2], al
mov dl, byte [ebp + 8]
mov byte [ebp - 4], dl
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jne 0x5603aa
lea edx, [ebp - 4]
push edx
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560460
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x5603d3
lea ecx, [ebp - 4]
push ecx
call fcn.0055feb8
pop ecx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x5603fc
lea edx, [ebp - 4]
push edx
call fcn.0055feb8
pop ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0x2d4808
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x560423
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x56044c
lea edx, [ebp - 4]
push edx
call fcn.0055feb8
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
lea ecx, [ebp - 4]
push ecx
call fcn.0055ff00
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x560464
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcc8
mov eax, dword [0x80d18e]
mov dword [ebp - 8], eax
mov ax, word [0x80d192]
mov word [ebp - 4], ax
mov al, byte [0x80d194]
mov byte [ebp - 2], al
mov dl, byte [ebp + 8]
mov byte [ebp - 4], dl
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jne 0x5604fc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x5604e2
lea edx, [ebp - 4]
push edx
call fcn.0055ff34
pop ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jne 0x5604fc
lea edx, [ebp - 4]
push edx
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560602
push 0x226
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.0066c86c
add esp, 0xc
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x226
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0x23310
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x560553
lea edx, [ebp - 4]
push edx
call fcn.0055feb8
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
or eax, 0xffffffff
jmp 0x560602
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
movzx edx, word [ebp - 0x36]
push edx
movzx ecx, word [ebp - 0x38]
push ecx
movzx eax, word [ebp - 0x3a]
push eax
movsx edx, byte [ebp + 8]
push edx
push str._c:_Length_d__Status_d__Device_d_n
call fcn.004626fc
add esp, 0x14
push 0xff
push 0
lea ecx, [ebp - 0x338]
push ecx
call fcn.0066c86c
add esp, 0xc
push 0
push 0
push 0xff
lea eax, [ebp - 0x338]
push eax
movzx edx, word [ebp - 0x3a]
shr edx, 1
push edx
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0
call sub.KERNEL32.DLL_WideCharToMultiByte
movzx eax, word [ebp - 0x36]
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], eax
cmp word [ebp - 0x3a], 0
jne 0x5605d3
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xc], 0
jmp 0x5605ea
cmp word [ebp - 0x38], 0
je 0x5605e3
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xc], 1
jmp 0x5605ea
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xc], 2
lea ecx, [ebp - 0x338]
push ecx
mov eax, dword [ebp + 0xc]
add eax, 0xe
push eax
call fcn.0066c9ec
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5607f8
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov eax, dword [0x80d195]
mov dword [ebp - 8], eax
mov ax, word [0x80d199]
mov word [ebp - 4], ax
mov al, byte [0x80d19b]
mov byte [ebp - 2], al
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x80d2e9
push SysStringLen
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x56085c
push 0x80d31f
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560954
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push 0x80d32c
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x56089e
push 0x80d33c
call fcn.0055feb8
pop ecx
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x560954
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push 0x80d349
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5608dd
push 0x80d353
call fcn.0055feb8
pop ecx
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x560954
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
call fcn.00560608
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x560928
imul ecx, dword [ebp - 0x18], 0x23
mov al, byte [ecx*8 + 0xcf1d39]
mov byte [ebp - 4], al
imul edx, dword [ebp - 0x18], 0x23
mov cl, byte [edx*8 + 0xcf1d38]
cmp cl, 1
jne 0x56091b
mov al, byte [ebp - 4]
push eax
call fcn.0056034c
pop ecx
jmp 0x560925
lea edx, [ebp - 4]
push edx
call fcn.0055ff00
pop ecx
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x80d1ac]
cmp ecx, eax
jl 0x5608f1
call fcn.00560adc
call fcn.005609f0
call fcn.00560608
mov edx, dword [0x6e713c]
test edx, edx
je 0x560952
call fcn.00560010
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5609f0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x560a21
push 0x80d3ba
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560ad8
push 0xf01ff
push 0x80d3d2
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
jne 0x560a58
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push 0x80d3db
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560ad8
mov byte [ebp - 9], 0
push 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_StartServiceA
test eax, eax
jne 0x560a89
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x420
je 0x560ac3
push 0x80d3ef
call fcn.0055feb8
pop ecx
mov byte [ebp - 9], 0xff
jmp 0x560ac3
push 0x3e8
call sub.KERNEL32.DLL_Sleep
jmp 0x560aa7
mov edx, dword [ebp - 0x24]
cmp edx, 2
jne 0x560ab7
push 0x3e8
call sub.KERNEL32.DLL_Sleep
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x560a95
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x560ac3
mov byte [ebp - 9], 0xff
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x560adc
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x560b0d
push 0x80d405
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560bc6
push 0xf01ff
push 0x80d41d
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
jne 0x560b44
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push str.OpenService_failed_
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x560bc6
mov byte [ebp - 9], 0
lea edx, [ebp - 0x28]
push edx
push 1
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ControlService
test eax, eax
jne 0x560b77
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x426
je 0x560bb1
push str.StopService_failed_
call fcn.0055feb8
pop ecx
mov byte [ebp - 9], 0xff
jmp 0x560bb1
push 0x3e8
call sub.KERNEL32.DLL_Sleep
jmp 0x560b95
mov ecx, dword [ebp - 0x24]
cmp ecx, 3
jne 0x560ba5
push 0x3e8
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x560b83
mov edx, dword [ebp - 0x24]
cmp edx, 1
je 0x560bb1
mov byte [ebp - 9], 0xff
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret