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

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5af710]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0xa0]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
push edi
mov edi, dword [ebp + 0xa4]
mov dword [ebp - 0x7c], ecx
je 0x441628
cmp byte [esi], bl
je 0x441628
lea ecx, [ebp - 0x78]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x441628
mov ecx, dword [ebp - 0x7c]
push edi
push esi
push dword [ebp - 0x78]
call fcn.00431f40
test eax, eax
jne 0x44161f
xor esi, esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x44161f
mov ecx, dword [ebp - 0x7c]
push edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.0044158b
inc esi
jmp 0x4415eb
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
add ebp, 0x94
leave
ret 0xc
Function at 0x44312c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5617bc
call fcn.0053c1d0
mov eax, 0x1078
call fcn.0053aa40
mov eax, dword [0x5af710]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x1074], eax
mov dword [ebp - 0x1070], edx
je 0x44334f
cmp byte [eax], bl
je 0x44334f
lea edx, [ebp - 0x106c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44334f
push esi
push edi
mov edi, 0x1000
push edi
lea eax, [ebp - 0x1010]
push ebx
push eax
mov dword [ebp - 0x1068], 0xfff
call fcn.0053c340
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
push ebx
push str.DisplayName
push dword [ebp - 0x106c]
call esi
test eax, eax
jne 0x443290
lea ecx, [ebp - 0x1064]
call fcn.0042a014
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1064]
mov dword [ebp - 4], ebx
call fcn.00404af0
push edi
lea eax, [ebp - 0x1010]
push ebx
push eax
mov dword [ebp - 0x1068], 0xfff
call fcn.0053c340
add esp, 0xc
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
push ebx
push str.InstallDate
push dword [ebp - 0x106c]
call esi
test eax, eax
jne 0x443244
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00404af0
push edi
lea eax, [ebp - 0x1010]
push ebx
push eax
mov dword [ebp - 0x1068], 0xfff
call fcn.0053c340
add esp, 0xc
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
push ebx
push str.DisplayVersion
push dword [ebp - 0x106c]
call esi
test eax, eax
jne 0x443324
lea eax, [ebp - 0x1010]
push eax
jmp 0x443319
mov esi, 0x5740e0
push esi
push dword [ebp - 0x1074]
call fcn.0053c3a0
test eax, eax
pop ecx
pop ecx
je 0x443341
lea eax, [ebp - 0x1084]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x107e]
push eax
movzx eax, word [ebp - 0x1082]
push eax
movzx eax, word [ebp - 0x1084]
push eax
lea eax, [ebp - 0x1010]
push str._d__.2d__.2d
push eax
call fcn.0053bafc
add esp, 0x14
lea ecx, [ebp - 0x1064]
call fcn.0042a014
push esi
lea ecx, [ebp - 0x1064]
mov dword [ebp - 4], 1
call fcn.00404af0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00404af0
push str.6.0.22
lea ecx, [ebp - 0x102c]
call fcn.00404af0
mov ecx, dword [ebp - 0x1070]
lea eax, [ebp - 0x1064]
push eax
call fcn.004421ee
lea ecx, [ebp - 0x1064]
call fcn.00450025
push dword [ebp - 0x106c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret 0xc
Function at 0x443368
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
mov eax, 0x5617d1
call fcn.0053c1d0
sub esp, 0x41c
mov eax, dword [0x5af710]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x414], esi
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], esi
lea eax, [ebp - 0x414]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44341c
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0053c340
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push edi
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
jne 0x44341c
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
call fcn.0044312c
inc edi
jmp 0x4433c8
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x428]
push eax
mov ecx, ebx
call fcn.0044217b
lea ecx, [ebp - 0x428]
call fcn.00433880
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret 4

Function at 0x44396e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5af710]
xor eax, ebp
push edi
mov dword [ebp + 0x90], eax
lea eax, [ebp - 0x78]
push eax
push str.SOFTWAREMicrosoftUpdates
push reloc.WSOCK32.dll_bind
mov dword [ebp - 0x80], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
cmp eax, edi
jne 0x443a0f
push ebx
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x74]
push edi
push eax
mov dword [ebp - 0x7c], 0x104
call fcn.0053c340
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
jne 0x443a05
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
push eax
push dword [ebp - 0x78]
call fcn.0044158b
push 0xa
xor edx, edx
mov eax, ebx
pop ecx
div ecx
test edx, edx
jne 0x443a02
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x4439aa
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
pop edi
call fcn.0053aaae
add ebp, 0x94
leave
ret
Function at 0x44fbf0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44fc27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44fc41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x44fdb0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5625a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x30]
add ebx, 0xfffffff0
push ebx
mov dword [esp + 0x20], 2
call fcn.0040b110
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x1004]
mov edx, ecx
shr ecx, 2
lea ebp, [esi + 4]
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x1004]
mov esi, dword [esp + 0x2c]
push eax
push ebp
push ecx
push edi
push esi
mov byte [esp + 0x34], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
mov ebp, dword [esp + 0x28]
mov ecx, ebp
call fcn.004071e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44fe62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [esp + 0x1c], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44fe81
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44fea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x1c], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44febf
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x454720
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x562b43
call fcn.0053c1d0
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x804
mov dword [esi + 0x10], eax
mov ecx, esi
je 0x45475b
call fcn.00453e3c
jmp 0x454760
call fcn.00453558
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4566b0
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
lea eax, [ecx + 4]
mov ecx, dword [ecx + 0xc]
cmp ecx, 0xffffffff
push esi
mov esi, 1
mov dword [eax], edx
je 0x4566e6
push 4
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4566e6
xor eax, eax
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x456b56
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [ebp + 0x79c], eax
mov eax, dword [ebp + 0x7a8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x456c7a
cmp byte [eax], bl
je 0x456c7a
lea eax, [ebp - 0x70]
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x456c7a
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov esi, 0x400
push esi
lea eax, [ebp + 0x39c]
push ebx
push eax
mov dword [ebp - 0x6c], esi
call fcn.0053c340
add esp, 0xc
push dword [ebp - 0x6c]
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x456c6e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x456c66
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
mov dword [ebp - 0x6c], esi
call fcn.0053c340
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.NetCfgInstanceId
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x456c61
push dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
push eax
call fcn.0053dba0
test eax, eax
pop ecx
pop ecx
jne 0x456c61
push str.NetworkAddress
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x456c61
mov dword [ebp - 0x78], 1
push dword [ebp - 0x74]
call edi
inc dword [ebp - 0x68]
jmp 0x456bbc
push dword [ebp - 0x70]
call edi
mov eax, dword [ebp - 0x78]
pop edi
pop esi
jmp 0x456c7c
xor eax, eax
mov ecx, dword [ebp + 0x79c]
xor ecx, ebp
pop ebx
call fcn.0053aaae
add ebp, 0x7a0
leave
ret 4
Function at 0x456f55
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x562de5
call fcn.0053c1d0
sub esp, 0x8bc
mov eax, dword [0x5af710]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x824], eax
je 0x45707c
cmp byte [eax], bl
je 0x45707c
mov esi, 0x400
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x814], esi
call fcn.0053c340
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x5756b0
push 0x576650
mov edi, reloc.WSOCK32.dll_bind
push edi
call fcn.0050427e
add esp, 0x24
test al, al
je 0x4571b1
push 1
push 2
lea ecx, [ebp - 0x8c8]
call fcn.00404a20
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x8c8]
push str.SYSTEMCurrentControlSetServicesClass_
push eax
mov dword [ebp - 4], ebx
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.00407320
cmp dword [eax + 0x18], 0x10
jb 0x457032
mov eax, dword [eax + 4]
jmp 0x457035
add eax, 4
lea ecx, [ebp - 0x818]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push ebx
push 1
lea ecx, [ebp - 0x848]
mov edi, eax
call fcn.00402c50
cmp edi, ebx
je 0x457099
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.004028d0
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x87c], 0x572840
call fcn.0054dfcb
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret 4
xor edi, edi
push esi
lea eax, [ebp - 0x810]
push ebx
push eax
mov dword [ebp - 0x814], esi
call fcn.0053c340
add esp, 0xc
push dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x457181
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45717b
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
mov dword [ebp - 0x814], esi
call fcn.0053c340
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x82c]
push eax
push ebx
push str.NetWorkAddress
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45716f
push dword [ebp - 0x824]
lea eax, [ebp - 0x410]
push eax
call fcn.0053dba0
test eax, eax
pop ecx
pop ecx
jne 0x45716f
push str.NetworkAddress
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x45716f
mov dword [ebp - 0x820], 1
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x45709b
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.004028d0
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x87c], 0x572840
call fcn.0054dfcb
mov eax, dword [ebp - 0x820]
jmp 0x45707e
Function at 0x45c470
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x24
push ebx
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
jne 0x45c494
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x2c]
push edi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x45c4be
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 4
push esi
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x45c4e6
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop esi
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 4
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45c4ce
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, dword [esp + 0x2c]
mov esi, eax
cmp dword [esp + 0x1c], 2
jne 0x45c572
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x45c52b
mov edx, 0x3e8
jmp 0x45c538
cmp edx, 0x2710
jbe 0x45c538
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45c572
cmp dword [esp + 0x2c], ebp
jbe 0x45c55f
call ebx
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x45c56b
call ebx
mov ecx, dword [esp + 0x30]
sub eax, esi
cmp eax, ecx
ja 0x45c572
cmp dword [esp + 0x1c], 2
je 0x45c510
cmp dword [esp + 0x1c], 4
pop ebp
je 0x45c59d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x24
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret 4
Function at 0x45c6a0
Capabilities:
Modify service

Disassembly:
call fcn.005040f5
test eax, eax
jne 0x45c6af
or eax, 0xffffffff
ret 8
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x45c6cc
or eax, 0xffffffff
pop esi
ret 8
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebx, eax
test ebx, ebx
jne 0x45c6e9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
or eax, 0xffffffff
pop esi
ret 8
mov eax, dword [esp + 0xc]
push edi
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x45c718
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
or eax, 0xffffffff
pop esi
ret 8
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x45c756
call edi
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call edi
pop edi
pop ebx
or eax, 0xffffffff
pop esi
ret 8
call edi
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call edi
pop edi
pop ebx
xor eax, eax
pop esi
ret 8
Function at 0x45dce0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x5af710]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x21c], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0x22
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x207
lea eax, [esp + 0x15]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x10]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45dd30
mov ecx, dword [str.___service]
mov edx, dword [0x5768a4]
mov ax, word [0x5768a8]
mov dword [edi], ecx
mov cl, byte [0x5768aa]
push 0xf003f
mov dword [edi + 4], edx
push 0
mov word [edi + 8], ax
push 0
mov byte [edi + 0xa], cl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x45ddad
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 2
push 0x110
push 0xf01ff
lea eax, [ebx + 0x28]
push eax
add ebx, 0x127
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
push esi
jne 0x45ddc4
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret

Function at 0x45ddf0
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x45de0c
pop edi
pop esi
ret
push ebx
push ebp
push 0x10000
add esi, 0x127
push esi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x45de42
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x45de3f
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
ret

Function at 0x45df80
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x204
mov eax, dword [0x5af710]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [ecx + 4]
test eax, eax
push esi
mov esi, dword [esp + 0x20c]
je 0x45dfde
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45dfa8
sub eax, edx
cmp eax, 0x1f4
jae 0x45dfde
mov eax, dword [esp + 0x210]
push esi
push eax
lea ecx, [esp + 0xc]
push str.STATUS_d_ErrMsg_s
push ecx
call fcn.0053bafc
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
call fcn.0053aaae
add esp, 0x204
ret 8