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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2640
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x14], ebx
je 0x4683c1
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042bf63
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4684f0
call fcn.004a35be
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4683f8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp + 0x14], esi
mov byte [ebp - 4], 1
jmp 0x468410
mov dword [ebp - 0x18], 0x514
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x46843b
push 0x514
lea ecx, [ebp + 0x14]
call fcn.0042251d
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004b1c9b
add esp, 8
test eax, eax
jl 0x46852b
cmp eax, dword [esi - 8]
jg 0x46852b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x4684c6
cmp dword [ebp + 0x18], ecx
je 0x4684b1
push edi
push ecx
lea edx, [esi - 0x10]
mov dword [ebp - 0x1c], esp
mov edi, esp
push edx
call fcn.004252a0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
add esp, 4
call fcn.0046a550
inc dword [ebp - 0x14]
add esp, 8
inc ebx
jmp 0x468410
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004249fe
inc dword [ebp - 0x14]
inc ebx
jmp 0x468410
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4684f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468516
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x468540
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf880
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x518f10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], 1
je 0x46862f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x468632
cmp word [eax], 0
je 0x468632
lea ecx, [ebp - 0x220]
push ecx
push 0x10008
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46862f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x220]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push ecx
mov dword [ebp - 0x224], 0x104
call esi
cmp eax, 0x103
je 0x468614
test eax, eax
jne 0x468622
push eax
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
push eax
call fcn.00467c10
add esp, 0xc
test eax, eax
je 0x4685c1
jmp 0x468622
mov ecx, dword [ebp - 0x22c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push edi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x46869c
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x468672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468698
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46871b
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x228]
push 0
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
mov ecx, dword [ebp - 0x21c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test esi, esi
sete dl
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4686f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004b134c
mov esp, ebp
pop ebp
ret
Function at 0x469180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4691b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4691c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4691de
test al, 0x10
je 0x4691de
mov esi, 1
jmp 0x4691e0
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4691ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x469260
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469270
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push ebx
push eax
call fcn.004b2522
lea ecx, [esi + 2]
push 0x5c
push ecx
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.004b2768
add esp, 0xc
test eax, eax
je 0x4692f3
push edi
sub eax, esi
sar eax, 1
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x4692dc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4692b7
sub eax, edx
push edi
sar eax, 1
push esi
inc eax
push eax
push ebx
call fcn.004b29c8
add esp, 0x10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc dword [ebp - 4]
lea edx, [esi + edi*2 + 2]
push 0x5c
push edx
call fcn.004b2768
add esp, 8
test eax, eax
jne 0x4692a6
pop edi
push ebx
call fcn.004b2405
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x469bd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0538
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004252a0
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov edi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469c52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
test edi, edi
sete cl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x469c83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46c740
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfaa9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46c791
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
jge 0x46c7d0
push 0x200
mov ecx, esi
call fcn.0042251d
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46c7f4
push ecx
push eax
call fcn.004b1c9b
add esp, 8
test eax, eax
jl 0x46c818
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46c818
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3

Function at 0x46c830
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d13a1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.004a35be
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46c87c
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4e3948
mov dword [ebp - 4], 1
test ecx, 0xffff0000
jne 0x46c8b8
mov edx, ecx
movzx edi, dx
push edi
call fcn.004ab4f3
test eax, eax
je 0x46c8d2
push edi
push eax
mov ecx, esi
call fcn.00424cac
jmp 0x46c8d2
push 0x4e3948
call fcn.004b1cba
add esp, 4
push eax
push 0x4e3948
mov ecx, esi
call fcn.0042522f
mov dword [ebp - 4], 0
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 0x14], 0x104
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x46c90c
push 0x104
mov ecx, esi
call fcn.0042251d
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46c930
push ecx
push eax
call fcn.004b1c9b
add esp, 8
test eax, eax
jl 0x46c955
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46c955
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x46c9b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4270
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
or ebx, 0xffffffff
test byte [0x51f424], 1
jne 0x46ca80
or dword [0x51f424], 1
mov dword [ebp - 4], 0
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46ca14
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x51f420], eax
mov ecx, 0x4e3948
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x46ca53
mov edx, ecx
movzx esi, dx
push esi
call fcn.004ab4f3
test eax, eax
je 0x46ca70
push esi
push eax
mov ecx, 0x51f420
call fcn.00424cac
jmp 0x46ca70
push 0x4e3948
call fcn.004b1cba
add esp, 4
push eax
push 0x4e3948
mov ecx, 0x51f420
call fcn.0042522f
push 0x4daf80
call fcn.004b48d8
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [0x51f420]
cmp dword [ecx - 0xc], 0
jne 0x46cb8b
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
sub edx, 0x514
or eax, edx
jge 0x46caba
push 0x514
mov ecx, 0x51f420
call fcn.0042251d
mov ecx, dword [0x51f420]
push 0x514
push ecx
push str._USERPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [0x51f420]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004b1c9b
add esp, 8
test eax, eax
jl 0x46cbb2
mov ecx, dword [0x51f420]
cmp eax, dword [ecx - 8]
jg 0x46cbb2
mov dword [ecx - 0xc], eax
mov edx, dword [0x51f420]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
jbe 0x46cb3b
mov eax, dword [0x51f420]
cmp dword [eax - 0xc], ecx
jle 0x46cb3b
push 0x7e
push eax
call fcn.004b2768
add esp, 8
test eax, eax
je 0x46cb3b
sub eax, dword [0x51f420]
sar eax, 1
cmp eax, ebx
je 0x46cb3b
push 0x51f420
call fcn.00469320
add esp, 4
mov eax, dword [0x51f420]
push eax
lea ecx, [ebp - 0x10]
push str.ReplaceUserProfile:_CurProfile_s
push ecx
call fcn.00466ad0
mov dword [ebp - 4], 2
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.00464cb0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x46cb85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x51f420]
lea eax, [ecx - 0x10]
push eax
call fcn.004252a0
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
int3
Function at 0x46cbc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfa70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x46cd33
push 0x25
push ecx
call fcn.004b2768
add esp, 8
cmp eax, ebx
je 0x46cd33
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x46cd33
call fcn.004a35be
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x46cc37
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x46cc6d
push 0x514
lea ecx, [ebp - 0x10]
call fcn.0042251d
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push 0x514
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004b1c9b
add esp, 8
cmp eax, ebx
jl 0x46cd84
cmp eax, dword [esi - 8]
jg 0x46cd84
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jbe 0x46cd14
add esi, 0xfffffff0
push esi
call fcn.004252a0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ccda
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cd00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cd33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004252a0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cd70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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
push 0x80070057
call fcn.00422000
int3
Function at 0x46cf80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1360
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46cfc9
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
je 0x46d03a
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x46d093
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46d02b
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x46d02b
push eax
call fcn.004252a0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x46d023
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x46d093
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.0042522f
jmp 0x46d093
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x46d05a
push esi
lea ecx, [ebp + 8]
call fcn.0042251d
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.004b4bb5
add esp, 8
test esi, esi
jl 0x46d10f
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x46d10f
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
xor ecx, ecx
lea eax, [ebp + 8]
mov word [edx + esi*2], cx
push eax
lea ecx, [ebp - 0x18]
call fcn.00424d3a
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
push edx
push 0x46cd90
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d0d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d0fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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
push 0x80070057
call fcn.00422000
int3
Function at 0x4701c0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50a458
push 0x4b8280
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x518f10]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x4703a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x47027a
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x47027a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x47028e
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x518f10
call fcn.004c1af4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x470394
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x4702ec
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x518f10
call fcn.004c1af4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x470267
cmp dword [ebp - 0x54], edi
je 0x470368
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4702c5
cmp dword [ebp - 0x54], edi
je 0x470368
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x470308
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x518f10
call fcn.004c1af4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0047038c
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x470293
mov dword [ebp - 4], 0xfffffffe
call fcn.004703ba
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret