joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0e4e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push ecx
push 0x20006
sub esp, 8
lea ecx, [ebp - 0x20]
push str.SOFTWAREAtom_SecurityRemoteInstaller
push connect
call fcn.0040b400
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x443ab4
call fcn.0046c0e0
mov edi, eax
mov ecx, edi
call fcn.0046e8e0
cmp byte [0x4f3b4c], 0
jne 0x443a66
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x443a5b
push 0x4f3b4c
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x9a
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUILicenseDlg.cpp
push 0x20
call fcn.0046bf00
jmp 0x443a5d
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x4f3ecc], eax
mov ecx, edi
call fcn.0046e8f0
mov ecx, dword [0x4f3ecc]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f3ecc]
push str.Fail_create_license_registry_branch
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x4f3ecc]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f3ecc]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
xor bl, bl
jmp 0x443b93
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0xb
push 0
push str.License
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x443b91
call fcn.0046c0e0
mov edi, eax
mov ecx, edi
call fcn.0046e8e0
cmp byte [0x4f3b4e], 0
jne 0x443b46
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x443b3b
push 0x4f3b4e
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0xa0
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUILicenseDlg.cpp
push 0x20
call fcn.0046bf00
jmp 0x443b3d
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x4f3ed4], eax
mov ecx, edi
call fcn.0046e8f0
mov ecx, dword [0x4f3ed4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f3ed4]
push str.Fail_store_license_registry_key
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x4f3ed4]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f3ed4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
xor bl, bl
jmp 0x443b93
mov bl, 1
test esi, esi
je 0x443b9e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push 1
push 0
push 0
add eax, 0x7c
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop ebp
ret 0xc
Function at 0x4446f0
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0fb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
je 0x44478a
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0041e920
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041a2e0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x444777
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
test edx, edx
jne 0x444798
xor ecx, ecx
jmp 0x4447af
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4447a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00419800
push dword [ebp - 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4447e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad378
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push dword [ebp + 8]
xor bl, bl
push 0
push 8
push 1
push dword [ecx]
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
je 0x444870
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.0041e920
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041a2e0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44485d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4451e0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b10b3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push 4
push dword [edx]
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x34], 1
push dword [eax]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x38], 1
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
je 0x4453ef
cmp edi, 0x55
je 0x4453ef
call fcn.0046c0e0
mov esi, eax
mov ecx, esi
call fcn.0046e8e0
cmp byte [0x4f3b66], 0
jne 0x4452d9
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4452cb
push 0x4f3b66
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x46
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIInstallerHelper.cpp
push 0x20
call fcn.0046bf00
jmp 0x4452cd
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4f3f44], eax
mov ecx, esi
call fcn.0046e8f0
mov ecx, dword [0x4f3f44]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00410ed0
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.00418b90
mov byte [ebp - 4], 2
push dword [esi]
mov ecx, dword [0x4f3f44]
push dword [eax]
push str.Cant_connect_to__s__error:___s_
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 8]
add esp, 0x10
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x445350
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x445373
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f3f44]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f3f44]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.00410c50
mov dword [ebp - 4], 3
push dword [eax]
push 0x4d1158
push dword [ebp + 0xc]
call fcn.0041b160
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4453d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], 5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x445ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1220
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea eax, [ebp - 0x12]
push eax
lea ecx, [ebp - 0x20]
call fcn.00422b20
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0x80
push 3
push 1
push connect
push dword [esi]
call fcn.0040e130
test eax, eax
js 0x446081
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne 0x445f7c
push 0x80004005
call fcn.0040abe0
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
jne 0x445fdf
call fcn.0040add0
test eax, eax
jns 0x445fdc
mov esi, 0x104
mov dword [ebp - 0x30], 0
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x445fc1
push esi
mov ecx, edi
call fcn.0041a8d0
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x445ff3
call fcn.0040add0
jmp 0x445ff5
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
test esi, esi
jns 0x445fa6
push 0x80070057
call fcn.0040abe0
xor eax, eax
test eax, eax
mov eax, dword [edi]
setns dl
mov byte [ebp - 0x11], dl
test eax, eax
jne 0x446007
xor ecx, ecx
jmp 0x44601c
push dword [eax - 8]
push eax
call fcn.004721a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x445fe9
mov dl, byte [ebp - 0x11]
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x445fe9
mov dword [eax - 0xc], ecx
xor esi, esi
mov eax, dword [edi]
mov word [eax + ecx*2], si
test dl, dl
je 0x446063
push edi
call fcn.004460f0
mov ecx, dword [edi]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
inc eax
dec ecx
push ecx
push eax
mov ecx, edi
call fcn.00447e00
push edi
call fcn.004461a0
mov ecx, dword [ebp - 0x18]
test al, al
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00410c50
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0041a2e0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4460bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
xor bl, bl
test ecx, ecx
je 0x4460cf
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b15be
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00448930
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00448930
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x68], eax
mov dword [edi + 0x58], edx
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
movsx eax, byte [edx + 8]
and eax, 8
shr eax, 3
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [edx + 0x18]
call fcn.004487e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44b660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x44b691
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x44b680
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x44f040
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push 0
push 0x44f440
call fcn.0047938b
add esp, 0xc
mov dword [esi + 0xc], eax
pop esi
ret

Function at 0x451df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx]
xor eax, eax
test ecx, ecx
push esi
setne al
push 0
test eax, eax
je 0x451e41
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451e2d
call fcn.0040add0
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x80070026
cmp dword [ebp - 4], esi
pop esi
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 8
push str.ATLASSERT
mov edx, 0x5f
mov ecx, str.ATL::CAtlFile::Read
call fcn.00451ce0
add esp, 8
push 0x80004005
call fcn.0040abe0
int3

Function at 0x451f50
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b20a6
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4e96d0]
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 edi, ecx
push 0
call fcn.00410800
mov esi, eax
mov dword [ebp - 0x41c], 0
xor eax, eax
ja 0x4520ca
cmp esi, 0xffffffff
ja 0x4520ca
cmp esi, 0x400
jbe 0x451fc0
push esi
lea ecx, [ebp - 0x41c]
call fcn.0041a7a0
mov eax, dword [ebp - 0x41c]
jmp 0x451fcc
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], 0
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00410800
mov edi, dword [ebp - 0x41c]
lea ebx, [esi - 0x14]
xor ecx, ecx
xor edx, edx
lea eax, [edi + 0x14]
test ebx, ebx
je 0x45202c
mov edi, eax
jmp 0x452010
mov al, byte [ecx + 0x4d50ec]
inc ecx
xor byte [edx + edi], al
cmp ecx, 0xe
sbb eax, eax
inc edx
and ecx, eax
cmp edx, ebx
jb 0x452010
mov edi, dword [ebp - 0x41c]
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x452059
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.0040df60
add esp, 8
push 0x80004005
call fcn.0040abe0
push 0
lea eax, [ebp - 0x420]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x452088
call fcn.0040add0
test eax, eax
jns 0x452088
push eax
mov dword [ebp - 0x428], 0
call fcn.0040abe0
lea ecx, [ebp - 0x428]
call fcn.00451e70
lea eax, [ebp - 0x418]
cmp dword [ebp - 0x41c], eax
je 0x4520ac
lea ecx, [ebp - 0x41c]
call fcn.00419f10
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.004712e4
mov esp, ebp
pop ebp
ret 4
push 0x80070216
call fcn.0040abe0
int3
Function at 0x452d40
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b21e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [esi + 4]
push 0xf003f
push ecx
cmp word [eax], cx
cmove eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov byte [ebp - 4], 1
test edi, edi
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x452dae
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x452dc3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x4e6654
push eax
call fcn.0047ad64
push 0x10000
push dword [esi]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov byte [ebp - 4], 2
test esi, esi
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x452df3
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x452e08
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4e6654
push eax
call fcn.0047ad64
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
sbb ebx, ebx
neg ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x452e27
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x452e57
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x4e6654
push eax
call fcn.0047ad64
mov eax, 0x452e42
ret
test esi, esi
je 0x452e66
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x452e6c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x452e73
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452e90
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2208
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0
call fcn.0041b210
or eax, 0xffffffff
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x1c]
sub eax, ecx
cmp eax, 1
jb 0x453071
lea eax, [ecx + 1]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045eca0
test al, al
jne 0x452f18
push 0x8007000e
call fcn.0040abe0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x452f2a
push 0x80070057
call fcn.0040abe0
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0x1c]
mov dword [edx + 4], eax
cmp edi, 0xffffffff
je 0x452f84
lea esi, [ebp + 0x20]
mov ebx, ecx
cmp ecx, dword [esp + 0x20]
jb 0x452f65
lea eax, [ecx + 1]
push eax
lea ecx, [esp + 0x1c]
call fcn.0045ed00
test al, al
je 0x452f0e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*8]
test eax, eax
je 0x452f74
mov dword [eax], edi
mov edi, dword [esi + 4]
mov dword [eax + 4], edi
mov edi, dword [esi + 8]
add esi, 8
inc ecx
mov dword [esp + 0x1c], ecx
cmp edi, 0xffffffff
jne 0x452f44
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x38], edx
push 0xf003f
mov eax, dword [esi + 4]
push ecx
cmp word [eax], cx
cmove eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x452fc9
movzx ebx, bx
or ebx, 0x80070000
cmp dword [esp + 0x14], 0
je 0x453048
push 0xf01ff
push dword [esi]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor eax, eax
test esi, esi
setne al
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x453000
movzx ebx, bx
or ebx, 0x80070000
cmp dword [esp + 0x14], 0
je 0x45303d
lea eax, [esp + 0x28]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x453034
movzx ebx, bx
or ebx, 0x80070000
cmp dword [esp + 0x14], 0
je 0x45303d
xor ebx, ebx
test esi, esi
je 0x453048
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x453053
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x18]
call fcn.0041b730
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070216
call fcn.0040abe0
int3
Function at 0x453080
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x14]
mov dword [ebp + 0x18], eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4530b4
movzx eax, ax
or eax, 0x80070000
test esi, esi
je 0x45312f
mov eax, dword [ebp + 0xc]
cmp dword [edi + 4], eax
je 0x453123
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
ja 0x45311a
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi + 4]
jne 0x4530df
mov eax, dword [edi + 0x14]
cmp eax, ebx
jb 0x45311a
mov ebx, eax
mov eax, 0xcccccccd
mul dword [edi + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x453100
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x453092
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x453092
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x14
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push 0x4e6654
push eax
call fcn.0047ad64
int3