joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015760
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov edx, dword [edx + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, reloc.WS2_32.dll_accept
stosb byte es:[edi], al
jne 0x100157f0
mov edi, dword [0x1012c5f8]
test edi, edi
je 0x100157f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, ebx
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 ebx, [esp + 0x10]
and ecx, 3
mov edx, reloc.WS2_32.dll_closesocket
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100fa614
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x414]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x400
ret 4

Function at 0x10015870
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x100158b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8
Function at 0x100167e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
push esi
push edi
push str.DwmEnableComposition
push str.Dwmapi.dll
call fcn.1001b770
mov edi, eax
add esp, 8
test edi, edi
je 0x100168bc
mov esi, dword [esp + 0x414]
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0xc], eax
mov eax, dword [0x1012c5f8]
test eax, eax
push str.SoftwareMicrosoftWindowsDWM
je 0x1001683a
push eax
lea ecx, [esp + 0x18]
push 0x100fa490
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x1001684d
lea edx, [esp + 0x14]
push 0x100fbcd8
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [0x1012c5f8]
lea eax, [esp + 8]
neg edx
sbb edx, edx
push eax
and edx, 2
push 2
lea ecx, [esp + 0x18]
push 0
add edx, reloc.WS2_32.dll_accept
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100168bc
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.SuppressDisableCompositionUI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x100168ae
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x408
ret 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
pop edi
pop esi
add esp, 0x408
ret 4
Function at 0x10016d20
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x10016eed
call fcn.1002c6e0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x10016eed
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
lea ebx, [edx + 8]
mov dword [esp + 0x18], esi
mov eax, dword [ebx - 4]
cmp eax, 0x200
jb 0x10016d9d
cmp eax, 0x208
ja 0x10016d9d
mov edi, dword [ebx + 4]
xor esi, esi
mov si, word [ebx + 4]
shr edi, 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.keybd_event
push str.USER32.dll
call esi
push eax
call ebp
push str.mouse_event
push str.USER32.dll
mov edi, eax
call esi
push eax
call ebp
mov esi, eax
mov eax, dword [ebx - 4]
cmp eax, 0x203
ja 0x10016e69
je 0x10016e51
cmp eax, 0x105
ja 0x10016e25
je 0x10016e0b
sub eax, 0x100
je 0x10016df1
dec eax
je 0x10016e0b
sub eax, 3
jne case.0x10016e73.521
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebx]
push eax
push ecx
call edi
jmp case.0x10016e73.521
mov edx, dword [ebx]
push 0
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebx]
push eax
call edi
jmp case.0x10016e73.521
sub eax, 0x201
je 0x10016e42
dec eax
jne case.0x10016e73.521
push 0
push 0
push 0
push 0
push 4
jmp 0x10016ed6
push 0
push 0
push 0
push 0
push 2
jmp 0x10016ed6
push 0
push 0
push 0
push 0
push 6
call esi
push 0
push 0
push 0
push 0
push 6
jmp 0x10016ed6
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x10016e73.521
jmp dword [eax*4 + 0x10016ef4]
push 0
push 0
push 0
push 0
push 8
jmp 0x10016ed6
push 0
push 0
push 0
push 0
push 0x10
jmp 0x10016ed6
push 0
push 0
push 0
push 0
push 0x18
call esi
push 0
push 0
push 0
push 0
push 0x18
jmp 0x10016ed6
push 0
push 0
push 0
push 0
push 0x20
jmp 0x10016ed6
push 0
push 0
push 0
push 0
push 0x40
jmp 0x10016ed6
mov ecx, dword [ebx]
push 0
shr ecx, 0x10
movsx edx, cx
push edx
push 0
push 0
push 0x800
call esi
mov eax, dword [esp + 0x18]
add ebx, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x10016d69
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x10016f10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10016f78
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10016f70
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8

Function at 0x10016f80
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 0x10017012
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x10016fb1
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.MFC42.DLL_operatornew
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x7d
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.10010b00
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x100170a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10098bd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.100109b0
mov dword [esp + 0x5c], 0
mov dword [esi + 0x128], 0x100b78ac
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebp, [esp + 0x14]
lea edi, [esi + 0x16c]
mov ebx, 0x10
mov eax, dword [ebp]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [edi], eax
add ebp, 4
add edi, 4
dec ebx
jne 0x1001716d
mov ebx, 1
push 0x110
mov byte [esp + 0x60], bl
mov dword [esi], 0x100b78b0
mov byte [esi + 0x117], bl
mov dword [esi + 0x11c], 3
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x100171ce
push 0x64
push ebx
push 4
mov ecx, eax
call fcn.10018a50
jmp 0x100171d0
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x100178c0
push 0
push 0
mov byte [esp + 0x78], bl
mov dword [esi + 0x1ac], eax
mov byte [esi + 0x114], bl
mov byte [esi + 0x116], 0
mov byte [esi + 0x115], 0
mov byte [esi + 0x118], 0
call fcn.1002bec0
push ebx
push 0
push 0
push esi
push 0x10017930
push 0
push 0
mov dword [esi + 0x120], eax
call fcn.1002bec0
mov ecx, dword [esp + 0x8c]
add esp, 0x38
mov dword [esi + 0x124], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x10017a30
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x10017bfd
call fcn.1002c6e0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x10017bfd
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
lea ebx, [edx + 8]
mov dword [esp + 0x18], esi
mov eax, dword [ebx - 4]
cmp eax, 0x200
jb 0x10017aad
cmp eax, 0x208
ja 0x10017aad
mov edi, dword [ebx + 4]
xor esi, esi
mov si, word [ebx + 4]
shr edi, 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.keybd_event
push str.USER32.dll
call esi
push eax
call ebp
push str.mouse_event
push str.USER32.dll
mov edi, eax
call esi
push eax
call ebp
mov esi, eax
mov eax, dword [ebx - 4]
cmp eax, 0x203
ja 0x10017b79
je 0x10017b61
cmp eax, 0x105
ja 0x10017b35
je 0x10017b1b
sub eax, 0x100
je 0x10017b01
dec eax
je 0x10017b1b
sub eax, 3
jne case.0x10017b83.521
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebx]
push eax
push ecx
call edi
jmp case.0x10017b83.521
mov edx, dword [ebx]
push 0
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebx]
push eax
call edi
jmp case.0x10017b83.521
sub eax, 0x201
je 0x10017b52
dec eax
jne case.0x10017b83.521
push 0
push 0
push 0
push 0
push 4
jmp 0x10017be6
push 0
push 0
push 0
push 0
push 2
jmp 0x10017be6
push 0
push 0
push 0
push 0
push 6
call esi
push 0
push 0
push 0
push 0
push 6
jmp 0x10017be6
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x10017b83.521
jmp dword [eax*4 + 0x10017c04]
push 0
push 0
push 0
push 0
push 8
jmp 0x10017be6
push 0
push 0
push 0
push 0
push 0x10
jmp 0x10017be6
push 0
push 0
push 0
push 0
push 0x18
call esi
push 0
push 0
push 0
push 0
push 0x18
jmp 0x10017be6
push 0
push 0
push 0
push 0
push 0x20
jmp 0x10017be6
push 0
push 0
push 0
push 0
push 0x40
jmp 0x10017be6
mov ecx, dword [ebx]
push 0
shr ecx, 0x10
movsx edx, cx
push edx
push 0
push 0
push 0x800
call esi
mov eax, dword [esp + 0x18]
add ebx, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x10017a79
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x10017c20
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 0x10017cb2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x10017c51
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.MFC42.DLL_operatornew
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x83
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.10010b00
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x10018200
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
test ebx, ebx
je 0x100183ab
mov eax, dword [esi + 0x78]
test eax, eax
je 0x100183ab
push ebp
push edi
call fcn.10018a20
mov al, byte [esi + 0x10]
lea ecx, [esp + 0x3c]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0x7c], 0
mov byte [esp + 0x44], al
call fcn.10018840
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
fild dword [esi + 0x1c]
push 0
fstp dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivr dword [esp + 0x18]
fild dword [esp + 0x1c]
fmul st(1)
fadd dword [0x100b78bc]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fmul st(1)
fadd dword [0x100b78bc]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 8
push eax
mov ecx, esi
fstp st(0)
call fcn.10018840
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x14
push ecx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x100182eb
cmp dword [esp + 0x28], 1
jne 0x100182eb
mov ecx, dword [esp + 0x2c]
xor edi, edi
lea eax, [esi + 0x1ac]
cmp ecx, dword [eax]
je 0x100182d8
inc edi
add eax, 4
cmp edi, 0x10
jl 0x100182cb
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x100182e7
or edi, 0xffffffff
mov eax, edi
jmp 0x100182ee
or eax, 0xffffffff
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x1b], al
call fcn.10018840
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x50]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov al, byte [esp + 0x3c]
cmp al, 1
jne 0x10018335
push 1
mov ecx, esi
call fcn.100183c0
jmp 0x10018361
cmp al, 2
jne 0x10018361
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x7c]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0x78]
add ecx, eax
push ecx
push edx
lea ecx, [esi + 0x84]
call fcn.1002ca10
test eax, eax
mov dword [ebx], eax
jbe 0x10018361
add dword [esi + 0x7c], eax
mov eax, dword [esi + 0x7c]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebx], eax
lea edi, [esi + 0x40]
lea ebx, [esi + 0x38]
push edi
call ebp
mov ecx, dword [edi]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
sub ecx, eax
mov eax, dword [edi + 4]
sbb eax, edx
mov edx, dword [esi + 0x34]
cmp eax, edx
jg 0x1001839b
jl 0x10018391
cmp ecx, dword [esi + 0x30]
jae 0x1001839b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10018372
push ebx
call ebp
mov eax, dword [esi + 0x78]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret 4
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
Function at 0x10018df0
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 0x10018fa3
cmp dword [esi + 0x1c], edi
je 0x10018fa3
call fcn.100193b0
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.100191f0
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.100191f0
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push edx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x10018e86
cmp dword [esp + 0x1c], 1
jne 0x10018e86
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x10018e73
inc edi
add eax, 4
cmp edi, 0x10
jl 0x10018e66
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x10018e82
or edi, 0xffffffff
mov eax, edi
jmp 0x10018e89
or eax, 0xffffffff
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov ecx, esi
call fcn.100191f0
cmp byte [ebx], 2
jne 0x10018ef1
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.100193f0
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.10019450
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 [0x1012bb80]
cmp ecx, eax
mov edi, edx
je 0x10018f1e
push edi
mov ecx, esi
call fcn.10018fb0
test al, al
je 0x10018f1e
add edi, 0x13
jmp 0x10018f21
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x10018f3f
push edi
mov ecx, esi
call fcn.10018fb0
test al, al
je 0x10018f35
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x10018f26
mov eax, dword [esp + 0x14]
mov ecx, 0x13
mov dword [0x1012bb80], 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 0x10018f8c
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 0x10018f7b
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 0x10019680
Capabilities:
Acquire debug privileges
Modify service

Disassembly:
sub esp, 0x1f8
push ebx
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001b7a0
add esp, 8
push 8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [esp + 0x20c]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
mov al, byte [esp + 0x214]
test al, al
jne 0x100196fc
mov eax, 4
jmp 0x10019714
cmp al, 1
jne 0x10019707
mov eax, 3
jmp 0x10019714
cmp al, 2
mov eax, 2
je 0x10019714
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test edi, edi
je 0x10019739
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.10019650
push 0
push str.SeDebugPrivilege
call fcn.1001b7a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f8
ret 0xc

Function at 0x10019780
Capabilities:
Acquire debug privileges
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001b7a0
add esp, 8
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [esp + 0x224]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x10024
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 1
je 0x1001980b
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.10019650
push 0
push str.SeDebugPrivilege
call fcn.1001b7a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 8
Function at 0x10019850
Capabilities:
Acquire debug privileges
Query service status
Start service

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001b7a0
add esp, 8
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [esp + 0x224]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x34
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [esp + 0x22c]
mov eax, 1
cmp ecx, eax
mov ecx, dword [esp + 0x14]
jne 0x100198e2
cmp ecx, eax
jne 0x100198f3
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x100198f3
cmp ecx, eax
je 0x100198f3
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.10019650
push 0
push str.SeDebugPrivilege
call fcn.1001b7a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc