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

Disassembly:
push 0xffffffffffffffff
push 0x5d89c6
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.00461e80
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00461e80
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 0x41ac19
mov edx, dword [0x62d430]
mov cx, word [0x62d434]
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.0045a830
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00462510
mov edx, dword [0x5f1c04]
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.0045b380
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00462510
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0045b0a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0045b0a0
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 0x41ab3b
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 0x41b1e0
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 0x41b20d
mov eax, 3
mov ebp, dword [esp + 0x120]
push eax
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.00441500
mov al, byte [esp + 0x18]
add esp, 0xc
cmp al, 0x43
jl 0x41b22f
cmp al, 0x5a
jle 0x41b237
cmp al, 0x63
jl 0x41b261
cmp al, 0x7a
jg 0x41b261
cmp byte [esp + 0xd], 0x3a
jne 0x41b261
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, ebx
je 0x41b261
cmp eax, 2
je 0x41b261
cmp eax, 3
je 0x41b261
cmp eax, 5
je 0x41b261
cmp eax, 6
jne 0x41b26f
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 0x41b28a
push eax
call fcn.0048ce60
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 0x41b32e
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 0x41b32c
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.00441500
add esp, 0xc
mov esi, 1
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x41b339
call fcn.0048d1d0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x110
ret 8

Function at 0x41dda0
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 0x41de18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x41de18
cmp dword [esp + 0x20], esi
je 0x41ddf1
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 0x41ddfd
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
jne 0x41de06
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 0x41df70
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 0x41e059
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x41e059
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 0x633cc4
mov word [esp + 0x25], cx
push edx
xor edi, edi
mov byte [esp + 0x1c], bl
mov byte [esp + 0x2b], cl
call fcn.00441992
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 0x41e04e
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41e04e
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 0x41e042
cmp dword [esp + 0x10], 1
jne 0x41e042
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp edx, eax
ja 0x41e042
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 0x41e042
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 0x41e8b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5d8b18
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 0x41eaab
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.004d6df0
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0
call fcn.00474210
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.004d7d90
push 0
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 2
call fcn.004d7e20
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 8
push edx
lea ecx, [esp + 0x34]
call fcn.004d8010
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 0x633d5c
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 0x633d5c
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 0x633d5c
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.00474b00
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.004d7dd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call fcn.00474340
mov dword [esp + 0x48], 0xffffffff
call fcn.004d6f90
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x41ead0
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 0x633d5c
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 0x633d5c
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 0x633d5c
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 0x41ec00
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 0x633d5c
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 0x633d5c
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 0x633d5c
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 0x420020
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 0x420050
test al, 0x10
jne 0x420068
test al, 1
je 0x420049
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004dd280
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x420065
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x420074
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4201f0
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 0x628274
push edx
call fcn.00441992
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
add esp, 0x10
lea edx, [esp]
push eax
push ecx
push 0x628274
push edx
call fcn.00441992
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 0x420450
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x420473
mov ebp, dword [esp + 0x14]
push 0x20019
push eax
push ebp
call fcn.00420410
add esp, 0xc
mov esi, eax
jmp 0x420479
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x4204fb
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 0x4204ee
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4204b5
cmp eax, 2
je 0x4204b5
cmp eax, 6
je 0x4204b5
cmp eax, 7
jne 0x4204ee
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x4204ee
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 0x4204ee
cmp esi, ebp
je 0x4204e4
push esi
call fcn.00420440
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
cmp esi, ebp
je 0x4204fb
push esi
call fcn.00420440
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x420510
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 0x628238
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00420450
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4205eb
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 0x42062e
mov edi, 0x6283c8
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, 0x634828
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.00441500
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x214
ret
Function at 0x420740
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 0x42085d
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 0x42084a
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 0x42083e
mov ebx, dword [esp + 0x824]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x830]
mov ebp, dword [esp + 0x82c]
cmp eax, ebx
jne 0x420818
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x828]
cmp eax, ecx
jne 0x420818
test ebp, ebp
je 0x420802
mov ecx, dword [esp + 0x28]
push ebp
push ecx
call fcn.004420bf
add esp, 8
test eax, eax
jne 0x420818
test edi, edi
je 0x42083a
mov edx, dword [esp + 0x2c]
push edi
push edx
call fcn.004420bf
add esp, 8
test eax, eax
je 0x42083a
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
Function at 0x420870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x11c]
push str.Empty
push ecx
lea edx, [esp + 0x20]
push str._sEmpty__08d__08d__08d
push edx
call fcn.00441992
mov edi, dword [esp + 0x234]
add esp, 0x1c
xor esi, esi
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 8], eax
jle 0x42095e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 4
push 0
push 0
lea eax, [esp + 0x28]
push 0xc0000000
push eax
call ebp
cmp eax, 0xffffffff
je 0x420953
push eax
call ebx
mov ecx, dword [edi + 4]
push 0
push 0
push 0x240
mov edx, dword [ecx + esi*4]
lea eax, [esp + 0x20]
push edx
push 0
push eax
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x420911
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x420970
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d8ceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push 0x6283c0
push ecx
lea edx, [esp + 0x124]
push 0x628274
push edx
call fcn.00441992
add esp, 0x10
lea ecx, [esp + 4]
call fcn.005c6a91
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push 0x420a50
push ecx
mov dword [esp + 0x234], 0
call fcn.0040c9e0
lea edx, [esp + 0x10]
push edx
call fcn.00420870
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.005c6ac4
mov ecx, dword [esp + 0x220]
pop edi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x420bf0
Capabilities:
Query service configuration

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
jne 0x420c07
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
lea eax, [esp + 0x2c]
push esi
push eax
push ebx
push ebx
push 2
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebx
call ebp
test eax, eax
jne 0x420d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6646f8]
cmp eax, ebx
je 0x420c5b
mov ecx, dword [esp + 0x30]
push ecx
push esi
push str.CheckServConf_1___d____d_
push str.SrcSer
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x18
cmp esi, 0x7a
jne 0x420d0f
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x420d0f
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x420d0f
lea edx, [esp + 0x30]
push edx
push esi
push ebx
push 2
push edi
call ebp
test eax, eax
je 0x420d08
mov eax, dword [0x6646f8]
xor esi, esi
cmp eax, esi
je 0x420cbf
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
push str.CheckServConf_2___d____d_
push str.SrcSer
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x18
cmp dword [ebx], 0x3f480
jne 0x420d08
cmp dword [ebx + 0xc], 3
jne 0x420d08
mov eax, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov esi, dword [ebx + 0x10]
mov ecx, 6
lea edi, [esp + 0x14]
xor edx, edx
mov dword [esp + 0x18], 0xea60
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0x1d4c0
mov dword [esp + 0x1c], eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x420d08
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x6646f8]
pop esi
test eax, eax
pop ebp
je 0x420d38
mov eax, dword [esp + 8]
push eax
push str.CheckServConf____d_
push str.SrcSer
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x14
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x1c
ret