joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d9f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x457c76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x471df4]
push ebp
push esi
mov ebp, ecx
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp + 0x324], esi
test eax, eax
je 0x41db5a
lea ecx, [esp + 0x114]
push edi
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
mov edi, str.__f2
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.nw_setup.log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x21c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 4]
push ecx
lea ecx, [esp + 0x10]
call fcn.0044a4c1
mov eax, dword [esp + 0x330]
pop edi
test eax, 0x2000000
mov eax, 0x46c330
jne 0x41db0e
mov eax, 0x475b44
push eax
lea ecx, [esp + 0xc]
call fcn.0044a764
lea edx, [esp + 0x218]
lea ecx, [esp + 0xc]
push edx
call fcn.0044a442
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x328], 1
call fcn.0044a7a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x324], 0
call fcn.0044a3d4
mov eax, dword [esp + 8]
mov ecx, ebp
push eax
call fcn.0041d970
mov esi, eax
lea ecx, [esp + 8]
mov dword [esp + 0x324], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x31c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x320
ret 4
Function at 0x41e220
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x457d6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f8
push esi
push edi
mov esi, ecx
push str.OEM
lea ecx, [esp + 0x18]
mov dword [esp + 0x40c], 0
xor edi, edi
call fcn.0044a442
push eax
lea eax, [esp + 0x414]
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x414], 1
call fcn.0044a5b7
lea ecx, [esp + 0x14]
mov byte [esp + 0x408], 3
call fcn.0044a3d4
mov eax, dword [esi + 4]
push edi
test eax, eax
je 0x41e29f
mov edx, dword [esp + 0xc]
push 0x46c384
push str.ATMSSTR
push edx
jmp 0x41e2ae
mov eax, dword [esp + 0xc]
push 0x46c374
push str.ATMSSTR
push eax
push 0x80000002
call fcn.004301e0
mov edx, dword [esp + 0x1c]
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e34a
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.ATMS
push edx
mov dword [esp + 0x28], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e33f
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
neg eax
sbb al, al
lea edx, [esp + 0x18]
and al, 2
push ecx
add al, 0x5a
push edx
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x14]
push 3
push 0
push str.ATMS
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x408], 0
call fcn.0044a3d4
lea ecx, [esp + 0x410]
mov dword [esp + 0x408], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x400]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x404
ret 4
Function at 0x41ee80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x457f76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push esi
push edi
lea eax, [esp + 0x1a4]
xor edi, edi
push 0x104
push eax
mov dword [esp + 0x2b8], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x46a404
lea ecx, [esp + 0x20]
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x2b0], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.0044a442
push esi
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x2bc], 2
call fcn.0044a5b7
lea ecx, [esp + 0x2b8]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x2bc], 3
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x2b4], 4
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 3
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b0], 2
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b0], 1
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b0], 0
call fcn.0044a3d4
lea ecx, [esp + 0x58]
call fcn.00413770
push 0xa
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b4], 5
call fcn.00449a9b
push 0xa
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b4], 6
call fcn.00449a9b
lea eax, [esp + 0x2b8]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x2b4], 7
call fcn.00449c44
lea ecx, [esp + 0x20]
lea edx, [esp + 0x3c]
push ecx
push edx
push edi
lea ecx, [esp + 0x64]
call fcn.00419e70
mov eax, dword [0x471df4]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x24]
mov byte [esp + 0x2b0], 8
mov eax, dword [esp + 0x2c]
cmp eax, edi
jbe 0x41f039
push ebp
mov ebp, dword [esp + 0x2c0]
mov dword [esp + 0x10], eax
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0044a4c1
lea ecx, [esp + 0xc]
call fcn.0044a88a
push str..CTY
lea ecx, [esp + 0x10]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41f02d
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebp
call fcn.0044a4c1
mov edi, 1
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x41efef
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x2b0], 7
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 6
call fcn.00449b0f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b0], 5
call fcn.00449b0f
push fcn.00449b0f
push 0xa
lea edx, [esp + 0x90]
push 0x1c
push edx
mov byte [esp + 0x2c0], 0xa
call fcn.0043abc0
lea ecx, [esp + 0x68]
mov byte [esp + 0x2b0], 9
call fcn.00449b0f
lea ecx, [esp + 0x64]
mov byte [esp + 0x2b0], 0
call fcn.0044a3d4
lea ecx, [esp + 0x2b8]
mov dword [esp + 0x2b0], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x2a8]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2ac
ret 8
Function at 0x41f540
Capabilities:
Check os version
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45812e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [0x471df4]
mov dword [esp + 0x14], esi
lea eax, [esi + 0x10]
mov dword [esp + 0xc], eax
mov dword [eax], ecx
mov edx, dword [0x471df4]
xor ebp, ebp
mov dword [esp + 0x1b8], ebp
mov dword [eax + 4], edx
mov ecx, dword [0x471df4]
mov dword [eax + 8], ecx
mov edx, dword [0x471df4]
mov dword [eax + 0xc], edx
mov ecx, dword [0x471df4]
mov dword [eax + 0x10], ecx
mov edx, dword [0x471df4]
mov dword [eax + 0x14], edx
mov ecx, dword [0x471df4]
mov dword [eax + 0x18], ecx
push 0xa
lea ecx, [eax + 0x1c]
mov byte [esp + 0x1bc], 6
call fcn.00449a9b
mov edx, dword [0x471df4]
mov dword [esp + 0x1b8], 7
mov dword [esi + 0x48], edx
mov eax, dword [0x471df4]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x471df4]
lea edi, [esi + 0x50]
mov dword [edi], ecx
push 0xa
lea ecx, [esi + 0x54]
mov byte [esp + 0x1bc], 0xa
call fcn.00449a9b
lea ecx, [esi + 0x70]
mov byte [esp + 0x1b8], 0xb
call fcn.00413770
lea edx, [esp + 0x18]
mov byte [esp + 0x1b8], 0xc
push edx
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], ebp
cmp eax, 5
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi], ebp
jb 0x41f6ad
mov ecx, dword [esp + 0x20]
mov eax, 1
cmp ecx, eax
jb 0x41f6ad
cmp dword [esp + 0x28], 2
jne 0x41f6ad
mov dword [esi + 0xc], eax
mov eax, dword [0x471df4]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x1b8], 0xd
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0xac]
mov ecx, edi
push edx
call fcn.0044a511
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.0044a149
call fcn.0042cdd0
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x1b8], 0xc
call fcn.0044a3d4
mov ecx, dword [esp + 0x1b0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1b0
ret
Function at 0x41f770
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x458237
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x18], 0
lea edi, [esi + 0x70]
mov dword [esp + 0xc], edi
push fcn.00449b0f
push 0xa
lea eax, [edi + 0x30]
push 0x1c
push eax
mov byte [esp + 0x28], 6
call fcn.0043abc0
lea ecx, [edi + 0x10]
mov byte [esp + 0x18], 5
call fcn.00449b0f
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 4
call fcn.0044a3d4
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 3
call fcn.00449b0f
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 2
call fcn.0044a3d4
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 1
call fcn.0044a3d4
lea ecx, [esi + 0x48]
mov byte [esp + 0x18], 0
call fcn.0044a3d4
add esi, 0x10
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x18], 0xd
call fcn.00449b0f
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 0xc
call fcn.0044a3d4
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 0xb
call fcn.0044a3d4
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 0xa
call fcn.0044a3d4
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 9
call fcn.0044a3d4
lea ecx, [esi + 8]
mov byte [esp + 0x18], 8
call fcn.0044a3d4
lea ecx, [esi + 4]
mov byte [esp + 0x18], 7
call fcn.0044a3d4
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x421020
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4586b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x471df4]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
lea edx, [esi + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x2c], 1
call fcn.0044a149
mov ecx, esi
call fcn.00420960
test eax, eax
je 0x421182
lea eax, [esi + 0x4c]
lea ecx, [esp + 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionReinstall_
push ecx
call fcn.0044a691
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0044a3d4
mov edx, dword [esp + 0xc]
push edx
push 0x80000002
call fcn.0042ffc0
mov ecx, dword [esp + 0x14]
add esp, 8
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421182
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push 0
push str.DeviceDesc
push edx
call edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x10]
push 7
push 0
push str.DeviceInstanceIds
push eax
call edi
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push 0
push str.DisplayName
push ecx
call edi
mov eax, dword [esi + 0x24]
mov edx, dword [esp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push 0
push 0x46c46c
push edx
call edi
mov esi, dword [esi + 0x28]
mov eax, dword [esi - 8]
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push str.ProviderName
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push 0
push str.ReinstallString
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x18]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret
Function at 0x4211c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x471df4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x30]
mov bl, 3
test eax, eax
mov byte [esp + 0x44], bl
jbe 0x421392
push ebp
lea ebp, [esi + 0x50]
mov dword [esp + 0x1c], eax
mov eax, edi
mov edi, dword [edi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.0044a4c1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ebp
push ecx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 4
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.0044a3d4
lea ecx, [esp + 0x14]
call fcn.0044a88a
cmp dword [esi], 0
je 0x4212f7
push 0x46ad80
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4212f7
push str..PNF
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4212f7
push str.I386_
lea ecx, [esp + 0x30]
call fcn.0044a442
push eax
lea edx, [esi + 0x48]
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x54], 5
call fcn.0044a5b7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x54], 6
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 7
call fcn.0044a4c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 6
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 5
call fcn.0044a3d4
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x2c]
jmp 0x421361
push 0x46a404
lea ecx, [esp + 0x3c]
call fcn.0044a442
push eax
lea eax, [esi + 0x48]
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x54], 8
call fcn.0044a5b7
lea edx, [esp + 0x10]
mov byte [esp + 0x48], 9
push edx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 0xa
call fcn.0044a4c1
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 9
call fcn.0044a3d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 8
call fcn.0044a3d4
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x38]
call fcn.0044a3d4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0042cf30
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042cc40
mov eax, dword [esp + 0x28]
add esp, 0xc
dec eax
mov dword [esp + 0x1c], eax
jne 0x421216
pop ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 2
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x422000
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push esi
push eax
push str.SystemCurrentControlSetControlCommAlias
push 0x80000002
xor esi, esi
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42207d
push eax
push eax
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push eax
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x422072
cmp dword [esp + 8], 1
jbe 0x422072
mov edx, dword [esp + 4]
push esi
push esi
push esi
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x422072
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x110
ret
Function at 0x4226a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x11c
lea eax, [esp + 0x1c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
push edi
push str.DeleteTheService_ENTRY_:_lpszServiceName___s_n
push eax
call fcn.0043a4a0
add esp, 0xc
mov ecx, 0x475b68
call fcn.0042f5e0
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x475b68
call fcn.0042f820
xor esi, esi
test edi, edi
je 0x422786
push ebx
push 0xf003f
push str.ServicesActive
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4227b3
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x4227e5
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x422803
cmp dword [esp + 0x14], 4
jne 0x422772
push esi
lea eax, [esp + 0x30]
push str.Service_is_currently_running_n
push eax
call fcn.0043a4a0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x475b68
call fcn.0042f820
lea edx, [esp + 0x10]
push edx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x422822
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x422841
jmp 0x422868
push 0
lea eax, [esp + 0x2c]
push str.Invalid_Service_Name_n
push eax
mov esi, 0x57
call fcn.0043a4a0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x475b68
call fcn.0042f820
jmp 0x42288f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
lea edx, [esp + 0x30]
push str.Failed_OpenSCManager_n
push edx
mov esi, eax
call fcn.0043a4a0
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, 0x475b68
push eax
call fcn.0042f820
jmp 0x42287b
call edi
push 0
lea ecx, [esp + 0x30]
push str.Failed_OpenService_n
push ecx
mov esi, eax
call fcn.0043a4a0
add esp, 0xc
lea edx, [esp + 0x2c]
jmp 0x42285d
call edi
mov esi, eax
push 0
lea eax, [esp + 0x30]
push str.Failed_QueryServiceStatus_n
push eax
call fcn.0043a4a0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
jmp 0x42285e
call edi
push 0
lea edx, [esp + 0x30]
push str.Failed_SERVICE_CONTROL_STOP_n
push edx
mov esi, eax
call fcn.0043a4a0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
jmp 0x42285e
call edi
push 0
lea ecx, [esp + 0x30]
push str.Failed_DeleteService_n
push ecx
mov esi, eax
call fcn.0043a4a0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x475b68
call fcn.0042f820
test ebx, ebx
je 0x42287b
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x42287b
call edi
mov esi, eax
test ebp, ebp
pop ebx
je 0x42288f
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x42288f
call edi
mov esi, eax
push esi
lea eax, [esp + 0x2c]
push str.DeleteServices_EXIT_:_dwErrorCode___d_n
push eax
call fcn.0043a4a0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x475b68
call fcn.0042f820
mov ecx, 0x475b68
call fcn.0042f5f0
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x11c
ret 4
Function at 0x4228d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x458a89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x28], ebp
mov eax, dword [0x471df4]
mov edi, 1
mov dword [esp + 0x13c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x148]
mov byte [esp + 0x13c], 4
call fcn.0044a88a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call esi
test eax, eax
jne 0x422a92
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push 0x104
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x422a83
push ebx
mov bl, 5
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a511
lea ecx, [esp + 0x10]
call fcn.0044a88a
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x34]
call fcn.0044a442
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x14c], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 6
call fcn.0044a4c1
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], bl
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 4
call fcn.0044a3d4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x422a61
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x422a52
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
call fcn.0044a511
lea ecx, [esp + 0x14]
call fcn.0044a88a
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x14]
push eax
call fcn.00449464
cmp eax, 0xffffffff
je 0x422a52
mov ebp, 1
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x422a82
lea edx, [esp + 0x34]
mov eax, edi
push 0x104
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x42296b
pop ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x422aa0
push str.ERROR
lea ecx, [esp + 0x10]
call fcn.0044a511
mov esi, dword [esp + 0x144]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0044a149
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 3
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 2
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call fcn.0044a3d4
lea ecx, [esp + 0x148]
mov byte [esp + 0x13c], 0
call fcn.0044a3d4
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x134
ret 8