joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eb40
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ef806
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0046dfe0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0046dfe0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x41ec79
mov edx, dword [0x6489c8]
mov cx, word [0x6489cc]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.00466990
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.0046e670
mov edx, dword [0x60a46c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x103
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.004674e0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.0046e670
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.00467200
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00467200
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x41eb9b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 8
Function at 0x41f240
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
xor eax, eax
push ebx
mov word [esp + 5], ax
push ebp
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x120]
xor ebx, ebx
push edi
cmp eax, 3
mov edi, ecx
mov byte [esp + 0xc], bl
jbe 0x41f26d
mov eax, 3
mov ebp, dword [esp + 0x120]
push eax
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.0044c930
mov al, byte [esp + 0x18]
add esp, 0xc
cmp al, 0x43
jl 0x41f28f
cmp al, 0x5a
jle 0x41f297
cmp al, 0x63
jl 0x41f2c1
cmp al, 0x7a
jg 0x41f2c1
cmp byte [esp + 0xd], 0x3a
jne 0x41f2c1
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, ebx
je 0x41f2c1
cmp eax, 2
je 0x41f2c1
cmp eax, 3
je 0x41f2c1
cmp eax, 5
je 0x41f2c1
cmp eax, 6
jne 0x41f2cf
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 8
mov eax, dword [edi + 0x5c]
push esi
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x41f2ea
push eax
call fcn.00498e20
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x24], 0x104
mov byte [esp + 0x1e], bl
call sub.MPR.dll_WNetGetConnectionA
test eax, eax
jne 0x41f38e
lea edx, [ebp + 2]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
cmp ebx, 0x104
jae 0x41f38c
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x1c]
mov esi, edi
mov edx, ecx
mov edi, ebx
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 eax, dword [esp + 0x128]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.0044c930
add esp, 0xc
mov esi, 1
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x41f399
call fcn.00499190
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x110
ret 8
Function at 0x421ca0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x109
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x43c]
push eax
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, dword [esp + 0x440]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x421d44
mov ecx, 0x10a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push ecx
push ebp
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x421d3d
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [esi + 1]
push edx
call fcn.00422ff0
mov edx, dword [ebx + 4]
mov eax, esi
shl eax, 5
add eax, esi
lea ecx, [esi + eax*4]
lea eax, [esp + 0x10]
lea esi, [esp + 0x10]
push eax
lea edi, [edx + ecx*8]
mov ecx, 0x10a
rep movsd dword es:[edi], dword [esi]
push ebp
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x421cfe
mov esi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6844b0]
test eax, eax
je 0x421d73
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x43c]
push ecx
push esi
push edx
push str.CProcMgr::GetProcessModuleByToolHelp_Process___d__ret___d__Moudles_num___d_
push str.ProcMgr
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 8

Function at 0x423430
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4234a8
mov eax, dword [esp + 4]
cmp eax, esi
je 0x4234a8
cmp dword [esp + 0x20], esi
je 0x423481
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x42348d
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
jne 0x423496
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
xor eax, eax
pop esi
pop ecx
ret 0x18
Function at 0x423600
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
je 0x4236e9
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x4236e9
xor ecx, ecx
push edi
mov dword [esp + 0x11], ecx
push eax
mov dword [esp + 0x19], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x1d], ecx
push 0x650998
mov word [esp + 0x25], cx
push edx
xor edi, edi
mov byte [esp + 0x1c], bl
mov byte [esp + 0x2b], cl
call fcn.0044cdc2
add esp, 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push 0x2001f
push ebx
push str.softwareTECOcular.3ShareDataPID
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4236de
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4236de
lea ecx, [esp + 0x28]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x20]
push ebx
push ecx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
jne 0x4236d2
cmp dword [esp + 0x10], 1
jne 0x4236d2
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp edx, eax
ja 0x4236d2
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push ebp
push ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
push edx
call esi
test eax, eax
jne 0x4236d2
mov edi, 1
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc

Function at 0x4260c9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5eff14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0041d000
lea ecx, [esi + 8]
call fcn.00426080
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.0046df10
mov eax, dword [0x60a46c]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 2
call fcn.00480480
mov edx, dword [0x664c18]
lea edi, [esi + 0x58]
mov dword [esp + 0x10], edi
lea ecx, [edi + 4]
mov dword [ecx], edx
push 0x684008
mov byte [esp + 0x20], 4
mov dword [edi], ebx
call fcn.005df350
mov dword [edi + 8], ebx
add edi, 0xc
xor eax, eax
lea edx, [esi + 0x48]
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [edx], ecx
mov eax, esi
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x38], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x426cd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5f0088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
xor eax, eax
lea ecx, [esp]
mov dword [esp + 0x15], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov word [esp + 0x1d], ax
push ecx
push 0x20019
push eax
push str.SYSTEMWPAPnP
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x2c], 0
mov byte [esp + 0x33], al
call edi
test eax, eax
jne 0x426ecb
mov ecx, dword [esp + 4]
push ebp
lea edx, [esp + 0x14]
push esi
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push str.seed
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x50]
and eax, 0xff
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.004f9b60
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0
call fcn.00480480
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.004fab00
push 0
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 2
call fcn.004fab90
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 8
push edx
lea ecx, [esp + 0x34]
call fcn.004fad80
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov edx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 1
push ecx
push 3
push 0
push 0x650a58
push edx
call ebp
mov eax, dword [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftNon_Driver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
push 3
push 0
push 0x650a58
push eax
call ebp
mov ecx, dword [esp + 0xc]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push SysReAllocStringLen
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 1
push eax
push 3
push 0
push 0x650a58
push ecx
call ebp
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 0x10
lea ecx, [esp + 0x18]
call fcn.00480d70
mov ecx, dword [esp + 0x10]
push eax
push 3
push 0
push str.PrivateHash
push ecx
call ebp
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.004fab40
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call fcn.004805b0
mov dword [esp + 0x48], 0xffffffff
call fcn.004f9d00
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x426ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftDriver_Signing
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 3
mov dword [esp + 0x28], 1
call edi
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push esi
push edx
push 0
push 0x650a58
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftNon_Driver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [esp + 0x14]
lea ecx, [esi + 1]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0x650a58
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push SysReAllocStringLen
call edi
lea eax, [esp + 0x14]
lea ecx, [esi + 2]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0x650a58
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x10]
add esi, 3
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
push 0
push str.PrivateHash
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x427020
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftDriver_Signing
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push esi
push 3
push 0
push 0x650a58
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftNon_Driver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
push 1
push ecx
push 3
push 0
push 0x650a58
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x10]
lea edx, [esi + 2]
push 1
push edx
push 3
push 0
push 0x650a58
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [esp + 0x10]
add esi, 3
push 0x10
push esi
push 3
push 0
push str.PrivateHash
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x428440
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x428470
test al, 0x10
jne 0x428488
test al, 1
je 0x428469
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004ffff0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x428485
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x428494
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x428610
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x208
lea edx, [esp + 0x104]
push eax
push ecx
push 0x643284
push edx
call fcn.0044cdc2
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
add esp, 0x10
lea edx, [esp]
push eax
push ecx
push 0x643284
push edx
call fcn.0044cdc2
add esp, 0x10
lea eax, [esp]
lea ecx, [esp + 0x104]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x208
ret

Function at 0x428870
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x428893
mov ebp, dword [esp + 0x14]
push 0x20019
push eax
push ebp
call fcn.00428830
add esp, 0xc
mov esi, eax
jmp 0x428899
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x42891b
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x42890e
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4288d5
cmp eax, 2
je 0x4288d5
cmp eax, 6
je 0x4288d5
cmp eax, 7
jne 0x42890e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x42890e
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x42890e
cmp esi, ebp
je 0x428904
push esi
call fcn.00428860
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
cmp esi, ebp
je 0x42891b
push esi
call fcn.00428860
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x428930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
xor bl, bl
mov ecx, 0x43
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x643248
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00428870
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x428a0b
mov ecx, 0x40
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x120]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.Program_FilesCommon_Files
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x11e], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
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 edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x428a4e
mov edi, 0x6433d8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x65151c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
mov ecx, ebx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
call fcn.0044c930
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x214
ret
Function at 0x428b90
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x80c
push ebx
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
je 0x428cad
mov eax, dword [esp + 0x818]
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x428c9a
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ebp
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x20]
push 0x400
push edx
push esi
mov dword [esp + 0x28], 0
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x428c8e
mov ebx, dword [esp + 0x824]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x830]
mov ebp, dword [esp + 0x82c]
cmp eax, ebx
jne 0x428c68
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x828]
cmp eax, ecx
jne 0x428c68
test ebp, ebp
je 0x428c52
mov ecx, dword [esp + 0x28]
push ebp
push ecx
call fcn.0044cfdc
add esp, 8
test eax, eax
jne 0x428c68
test edi, edi
je 0x428c8a
mov edx, dword [esp + 0x2c]
push edi
push edx
call fcn.0044cfdc
add esp, 8
test eax, eax
je 0x428c8a
mov eax, dword [esp + 0x828]
push 0
push 0
push 0
push 0
push 0
push edi
push ebp
push 0xffffffffffffffff
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
pop ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop esi
pop edi
pop ebx
add esp, 0x80c
ret
mov eax, edi
pop edi
pop ebx
add esp, 0x80c
ret