joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10086410
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x102683e0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], 0
test eax, eax
je 0x100865f8
push 0x207
lea eax, [ebp - 0x21b]
mov byte [ebp - 0x21c], 0
push 0
push eax
call fcn.101a01b0
xor eax, eax
mov dword [ebp - 0x240], 0
add esp, 0xc
mov dword [ebp - 0x238], 0
mov edi, 0x206
mov dword [ebp - 0x220], 7
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x238]
push eax
push 0x20219
push 0
push dword [ebp - 0x244]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100865ad
mov edi, edi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], edi
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x1022fd78
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1008655f
cmp eax, 0xea
jne 0x100865ad
lea eax, [ebp - 0x21c]
add edi, edi
cmp esi, eax
je 0x1008652c
push esi
call fcn.101a1ad1
add esp, 4
lea eax, [edi + 2]
push eax
call fcn.101875f8
add esp, 4
mov esi, eax
lea eax, [ebp - 0x238]
push eax
push 0x20219
push 0
push dword [ebp - 0x244]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100864e0
jmp 0x100865ad
mov eax, dword [ebp - 0x23c]
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x23c]
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x240]
cmp eax, 1
je 0x100865a1
cmp eax, 2
jne 0x100865ad
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push edi
cmovae eax, dword [ebp - 0x234]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea ecx, [ebp - 0x234]
call fcn.100032d0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x100865be
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
cmp esi, eax
je 0x100865d1
push esi
call fcn.101a1ad1
add esp, 4
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
call fcn.10003230
cmp dword [ebp - 0x220], 8
jb 0x10086616
push dword [ebp - 0x234]
call fcn.101a02f0
add esp, 4
jmp 0x10086616
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
push 0x1022a5e4
mov word [ebx], ax
call fcn.10003c10
mov eax, ebx
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.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10086640
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e8e26
mov eax, dword fs:[0]
push eax
sub esp, 0xa40
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0xa38], eax
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0xa50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], 0
cmp dword [eax + 0x14], 8
jb 0x10086696
mov eax, dword [eax]
sub esp, 8
lea ecx, [esp + 0x2c]
push eax
call fcn.10086410
add esp, 0xc
mov dword [esp + 0xa58], 0
cmp dword [esp + 0x34], 0
je 0x100866c9
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.10003230
jmp 0x100867fd
cmp word [0x102795c0], 0
jne 0x100866f9
mov eax, dword [0x102793b4]
test eax, eax
jne 0x100866e8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x102793b4], eax
push 0x104
push 0x102795c0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x3c]
mov esi, 0x102795c0
mov eax, ecx
mov edx, 0x104
sub esi, eax
jmp 0x10086710
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1008672e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1008672e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10086710
jmp 0x10086732
test edx, edx
jne 0x10086735
sub ecx, 2
xor eax, eax
push eax
mov word [ecx], ax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.101875f8
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
push ebx
push esi
push 0
lea eax, [esp + 0x48]
mov byte [esp + 0xa64], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100867e8
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
push eax
push 0x102285e4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x100867e8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100867e8
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [esp + 0x254]
push 0x1022aa68
push eax
call fcn.10087f50
add esp, 0x18
lea eax, [esp + 0x244]
mov ecx, edi
push eax
call fcn.100031d0
push ebx
call fcn.101a1ad1
add esp, 4
lea ecx, [esp + 0x24]
call fcn.100032a0
jmp 0x10086810
push str.0.0.0.0
mov ecx, edi
call fcn.100031d0
push ebx
call fcn.101a1ad1
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x10086810
push dword [esp + 0x24]
call fcn.101a02f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xa50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa38]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10086b60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8f27
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x29c], 0
test edx, edx
je 0x10086da8
cmp word [edx], 0
je 0x10086da8
push edx
lea ecx, [ebp - 0x228]
call fcn.100031d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.101875f8
mov ebx, eax
add esp, 4
mov dword [ebp - 0x298], ebx
push ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
push esi
cmovae eax, dword [ebp - 0x228]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10086c4b
push 0x1022a5e4
mov ecx, edi
call fcn.100031d0
push ebx
call fcn.101a02f0
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x10086dc6
push dword [ebp - 0x228]
call fcn.101a02f0
add esp, 4
jmp 0x10086dc6
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0
push eax
push 0x102285e4
push ebx
call esi
test eax, eax
je 0x10086c16
cmp dword [ebp - 0x28c], 0
je 0x10086c16
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0x1022a5e4
push eax
push 0x1022fdc8
push ebx
call esi
test eax, eax
je 0x10086d34
push str.__build
lea ecx, [ebp - 0x288]
call fcn.100031d0
mov byte [ebp - 4], 3
push dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.1001edd0
push 0x1022fe68
push eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 4
push eax
call fcn.1001edd0
add esp, 0x18
lea ecx, [ebp - 0x240]
push eax
call fcn.10007bd0
lea ecx, [ebp - 0x258]
call fcn.100032a0
lea ecx, [ebp - 0x270]
call fcn.100032a0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.100032a0
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
cmovae edx, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 8]
push edx
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, si
push eax
shr esi, 0x10
lea eax, [ebp - 0x210]
push esi
push str._d._d._d._d_s
push eax
call fcn.10087f30
add esp, 0x1c
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.100031d0
lea ecx, [ebp - 0x240]
call fcn.100032a0
push ebx
call fcn.101a02f0
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.100032a0
jmp 0x10086dc6
xor eax, eax
mov dword [edi + 0x14], 7
push eax
mov dword [edi + 0x10], 0
push 0x1022a5e4
mov word [edi], ax
call fcn.10003c10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x1008c110
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x1008c11c
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1008c13a
jle 0x1008c17f
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 4]
push edi
cmp dword [eax + 0x14], 8
jb 0x1008c14a
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
je 0x1008c172
jle 0x1008c174
movzx edi, di
push esi
or edi, 0x80070000
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1008c3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x1008c3dc
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008c401
jle 0x1008c451
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 4]
push edi
cmp dword [eax + 0x14], 8
jb 0x1008c411
mov eax, dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x1008c444
jle 0x1008c446
movzx edi, di
push esi
or edi, 0x80070000
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008e930
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e96fd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
push 0x208
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1008ea3e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.100031d0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.10004000
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], 8
jb 0x1008e9fe
push dword [ebp - 0x238]
call fcn.101a02f0
add esp, 4
push 1
push 0x102285e4
mov ecx, esi
call fcn.10003b30
push 0xd
push str.LightRegulate
mov ecx, esi
call fcn.10003b30
push 7
push str.Common
mov ecx, esi
call fcn.10003b30
push esi
call fcn.1008e2a0
add esp, 4
test al, al
jne 0x1008ea3e
push esi
call fcn.1008e3d0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret

Function at 0x1008ecc0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e96fd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
push 0x208
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1008edce
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.100031d0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.10004000
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], 8
jb 0x1008ed8e
push dword [ebp - 0x238]
call fcn.101a02f0
add esp, 4
push 1
push 0x102285e4
mov ecx, esi
call fcn.10003b30
push 0xd
push str.LightRegulate
mov ecx, esi
call fcn.10003b30
push 0xa
push str._bugreport
mov ecx, esi
call fcn.10003b30
push esi
call fcn.1008e2a0
add esp, 4
test al, al
jne 0x1008edce
push esi
call fcn.1008e3d0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10092430
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e9d90
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call fcn.1008e930
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0
call fcn.1007fd00
push 1
push 0x102285e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 1
call fcn.10003b30
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.10004000
push 5
push 0x10231464
lea ecx, [esp + 0x18]
call fcn.10003b30
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
push str.IsCheckProxyByFile_path:__s
push 0
push str.Light_pub.cpp
call fcn.10036720
add esp, 0x10
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
push ebx
push str.IsFileExist_path:__d
push 0
push str.Light_pub.cpp
call fcn.10036720
xor eax, eax
add esp, 0x10
test ebx, ebx
sete al
cmp dword [esp + 0x3c], 8
mov dword [esp + 0xc], eax
jb 0x1009252d
push dword [esp + 0x28]
call fcn.101a02f0
mov eax, dword [esp + 0x10]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x24], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], cx
jb 0x1009255b
push dword [esp + 0x10]
call fcn.101a02f0
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10095a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101ea4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov dword [esp + 0x68], eax
mov edx, str.Softwarelightregulate_
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push ecx
mov ecx, SysReAllocStringLen
call fcn.1008cee0
add esp, 0xc
test eax, eax
jne 0x10095b27
mov ecx, dword [esp + 0xc]
call fcn.1008cf70
push 0x1022a5e4
push str.InstallDir
push str.Softwarelightregulate_
lea ecx, [esp + 0x1c]
call fcn.1008d4e0
mov esi, eax
lea eax, [esp + 0x28]
cmp eax, esi
je 0x10095b14
cmp dword [esp + 0x3c], 8
jb 0x10095af3
push dword [esp + 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.10003640
cmp dword [esp + 0x24], 8
jb 0x10095b27
push dword [esp + 0x10]
call fcn.101a02f0
add esp, 4
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10018a30
mov esi, eax
add esp, 8
lea eax, [esp + 0x28]
cmp eax, esi
je 0x10095b77
cmp dword [esp + 0x3c], 8
jb 0x10095b56
push dword [esp + 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.10003640
cmp dword [esp + 0x24], 8
jb 0x10095b8a
push dword [esp + 0x10]
call fcn.101a02f0
add esp, 4
push str.LightRegulate.exe
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10004650
add esp, 0xc
lea eax, [esp + 0x40]
cmp dword [esp + 0x54], 8
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10095bc6
test al, 0x10
jne 0x10095bc6
mov esi, 1
jmp 0x10095bc8
xor esi, esi
cmp dword [esp + 0x54], 8
jb 0x10095bdb
push dword [esp + 0x40]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x10095c05
push dword [esp + 0x28]
call fcn.101a02f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100969e0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10251878
push 0x101afc70
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x102683e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 0x7530
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x10096b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10096b41
push dword [ebp - 0x44]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10096b41
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push 1
push esi
call edi
test eax, eax
je 0x10096b2e
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x4c]
jae 0x10096b71
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x48]
movdqu xmm1, xmmword [ecx + eax*4]
movdqu xmm0, xmmword [ecx + eax*4 + 0x10]
movdqu xmmword [ebp - 0x78], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x68], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x10096b2e
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10096b2e
cmp dword [ebp - 0x3c], 1
je 0x10096b45
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10096b2e
cmp dword [ebp - 0x3c], 1
je 0x10096b45
call ebx
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x60]
jbe 0x10096af8
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x102683e0
call fcn.101c4fd0
add esp, 0xc
xor eax, eax
jmp 0x10096b82
mov dword [ebp - 4], 0
call fcn.10096b69
inc edi
jmp 0x10096a9e
mov dword [ebp - 4], 0xfffffffe
call fcn.10096b9e
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10096d10
Capabilities:
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102518a0
push 0x101afc70
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x102683e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x10096e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10096dc5
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x10096dc5
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x10096dcc
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x102683e0
call fcn.101c4fd0
add esp, 0xc
xor eax, eax
jmp 0x10096e59
xor esi, esi
mov dword [ebp - 0x50], esi
cmp esi, dword [ebp - 0x54]
jae 0x10096e48
lea eax, [esi + esi*8]
movdqu xmm1, xmmword [ebx + eax*4]
movdqu xmm0, xmmword [ebx + eax*4 + 0x10]
movdqu xmmword [ebp - 0x70], xmm0
mov eax, dword [ebx + eax*4 + 0x20]
mov dword [ebp - 0x60], eax
push 0x24
movd eax, xmm1
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x10096db2
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10096db2
mov dword [ebp - 4], 0
call fcn.10096e40
inc esi
mov edi, dword [ebp - 0x4c]
jmp 0x10096dce
mov dword [ebp - 4], 0xfffffffe
call fcn.10096e78
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10098050
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x22c], edx
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
push ebx
push 4
movdqu xmmword [ebp - 0x224], xmm0
movq qword [ebp - 0x214], xmm0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x1009816e
cmp esi, 0xffffffff
je 0x1009816e
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x100980d1
push esi
call edi
jmp 0x1009816e
cmp dword [ebp - 0x21c], ebx
jne 0x10098152
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.101a01b0
add esp, 0xc
mov dword [ebp - 0x230], 0
push dword [ebp - 0x220]
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x10098152
lea eax, [ebp - 0x230]
push eax
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x10098152
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call fcn.101a8487
add esp, 8
test eax, eax
je 0x10098184
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100980d1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret