joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10098541
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
lea ecx, [esi + 4]
call fcn.1002cf02
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.1002cf02
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 1
call fcn.1002cf02
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 3
call fcn.1002cf02
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 4
call fcn.1002cf02
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 5
call fcn.1002cf02
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 6
call fcn.1002cf02
mov dword [esi + 0x34], 0x100b7838
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 8
call fcn.1002cf02
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], 0x100b7834
call fcn.100110d0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x10015040
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x3c
push ebx
push esi
xor esi, esi
cmp eax, reloc.WS2_32.dll_accept
jne 0x10015060
mov edx, dword [0x1012c4e8]
test edx, edx
je 0x10015060
mov eax, reloc.WS2_32.dll_closesocket
lea edx, [esp + 0x10]
add ecx, 8
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100151e2
push eax
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x100150b9
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 8]
test eax, eax
jbe 0x100151e2
cmp ebx, 1
jbe 0x100151e2
mov esi, ebx
push ebp
imul esi, eax
add esi, 0xe
push edi
push esi
push 0x40
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x20], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push ebx
and ecx, 3
inc edx
rep stosb byte es:[edi], al
mov byte [edx - 1], 0x98
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov dword [edx], eax
mov al, byte [esp + 0x4c]
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov byte [edx + 0xc], al
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x100151bc
mov ecx, dword [esp + 0x20]
add ecx, 0xd
mov dword [esp + 0x1c], ecx
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push 0
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
mov dword [esp + 0x1c], edx
jb 0x10015148
mov esi, dword [esp + 0x2c]
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push 0x42
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret
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 [0x1012c4e8]
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.1001b660
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 [0x1012c4e8]
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 [0x1012c4e8]
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.1002c5d0
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
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 0x10016fa2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x10016f41
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 0x10017030
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10098ab1
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 0x100170fd
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 0x1001715e
push 0x64
push ebx
push 4
mov ecx, eax
call fcn.10018a50
jmp 0x10017160
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x10017850
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.1002bdb0
push ebx
push 0
push 0
push esi
push 0x100178c0
push 0
push 0
mov dword [esi + 0x120], eax
call fcn.1002bdb0
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 0x10017bb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10017c18
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 0x10017c10
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 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.1002c900
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 [0x1012bb70]
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 [0x1012bb70], 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.1001b690
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.1001b690
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.1001b690
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.1001b690
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.1001b690
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.1001b690
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc