joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eb40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5e1258
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 0x41ed3b
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.004d7270
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0
call fcn.00474480
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.004d8210
push 0
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 2
call fcn.004d82a0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 8
push edx
lea ecx, [esp + 0x34]
call fcn.004d8490
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 0x63edc8
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 0x63edc8
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 0x63edc8
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.00474d70
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.004d8250
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call fcn.004745b0
mov dword [esp + 0x48], 0xffffffff
call fcn.004d7410
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x41ed60
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 0x63edc8
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 0x63edc8
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 0x63edc8
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 0x41ee90
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 0x63edc8
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 0x63edc8
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 0x63edc8
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 0x4202b0
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 0x4202e0
test al, 0x10
jne 0x4202f8
test al, 1
je 0x4202d9
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004dd700
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4202f5
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x420304
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x420703
mov ebp, dword [esp + 0x14]
push 0x20019
push eax
push ebp
call fcn.004206a0
add esp, 0xc
mov esi, eax
jmp 0x420709
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x42078b
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 0x42077e
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x420745
cmp eax, 2
je 0x420745
cmp eax, 6
je 0x420745
cmp eax, 7
jne 0x42077e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x42077e
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 0x42077e
cmp esi, ebp
je 0x420774
push esi
call fcn.004206d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
cmp esi, ebp
je 0x42078b
push esi
call fcn.004206d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4207a0
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 0x633238
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004206e0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42087b
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 0x4208be
mov edi, 0x6333c8
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, 0x63f894
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.00441770
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x214
ret
Function at 0x4209d0
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 0x420aed
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 0x420ada
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 0x420ace
mov ebx, dword [esp + 0x824]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x830]
mov ebp, dword [esp + 0x82c]
cmp eax, ebx
jne 0x420aa8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x828]
cmp eax, ecx
jne 0x420aa8
test ebp, ebp
je 0x420a92
mov ecx, dword [esp + 0x28]
push ebp
push ecx
call fcn.0044232f
add esp, 8
test eax, eax
jne 0x420aa8
test edi, edi
je 0x420aca
mov edx, dword [esp + 0x2c]
push edi
push edx
call fcn.0044232f
add esp, 8
test eax, eax
je 0x420aca
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 0x420b00
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.00441c02
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 0x420bee
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 0x420be3
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 0x420ba1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x420c00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5e142b
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 0x6333c0
push ecx
lea edx, [esp + 0x124]
push 0x633274
push edx
call fcn.00441c02
add esp, 0x10
lea ecx, [esp + 4]
call fcn.005cf1d1
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push 0x420ce0
push ecx
mov dword [esp + 0x234], 0
call fcn.0040cc70
lea edx, [esp + 0x10]
push edx
call fcn.00420b00
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.005cf204
mov ecx, dword [esp + 0x220]
pop edi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x420e80
Capabilities:
Query service configuration

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
jne 0x420e97
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 0x420f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x66fd48]
cmp eax, ebx
je 0x420eeb
mov ecx, dword [esp + 0x30]
push ecx
push esi
push str.CheckServConf_1___d____d_
push str.SrcSer
push 0xf
push 0x66fcdc
call fcn.004277c0
add esp, 0x18
cmp esi, 0x7a
jne 0x420f9f
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x420f9f
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x420f9f
lea edx, [esp + 0x30]
push edx
push esi
push ebx
push 2
push edi
call ebp
test eax, eax
je 0x420f98
mov eax, dword [0x66fd48]
xor esi, esi
cmp eax, esi
je 0x420f4f
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 0x66fcdc
call fcn.004277c0
add esp, 0x18
cmp dword [ebx], 0x3f480
jne 0x420f98
cmp dword [ebx + 0xc], 3
jne 0x420f98
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 0x420f98
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x66fd48]
pop esi
test eax, eax
pop ebp
je 0x420fc8
mov eax, dword [esp + 8]
push eax
push str.CheckServConf____d_
push str.SrcSer
push 0xf
push 0x66fcdc
call fcn.004277c0
add esp, 0x14
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x42af30
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x42af71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42af71
push esi
call fcn.0042ad00
add esp, 4
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42af80
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 0x42afb0
test al, 0x10
jne 0x42afc8
test al, 1
je 0x42afa9
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0048cca0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42afc5
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x42afd4
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x42f4b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42f516
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x42f4f0
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x42f516
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x42f50c
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 5
mov eax, 3
je 0x42f518
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret
Function at 0x42f770
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x6c
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesTPacket
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42f926
mov eax, dword [esp]
test eax, eax
je 0x42f926
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x648004
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 1
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push 0x64800c
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x648014
push edx
call ebx
mov ecx, dword [0x6481c0]
mov eax, dword [str.Extended_Base]
mov dword [esp + 0x30], ecx
mov edx, dword [0x6481c4]
mov ecx, 0xa
mov esi, str.SystemRootSystem32Drivers_tpacket.sys
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov ax, word [0x6481c8]
mov dword [esp + 0x34], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.TPacket_Driver]
mov edx, dword [0x648190]
mov word [esp + 0x38], ax
mov eax, dword [0x648194]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x648198]
lea eax, [esp + 0x2c]
push 0xe
push eax
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x14]
push 1
mov dword [esp + 0x4c], edx
mov dl, byte [0x64819a]
push 0
push 0x648024
push ecx
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x62], dl
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4c]
push 0x29
push edx
push 2
push 0
push 0x64802c
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x3c]
push 0xf
push ecx
push 1
push 0
push str.DisplayName
push edx
call ebx
mov eax, dword [str.NDIS]
mov cl, byte [0x648178]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 5
push eax
mov byte [esp + 0x28], cl
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0x648044
push ecx
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 5
push edx
push 1
push 0
push 0x648054
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
xor eax, eax
add esp, 0x6c
ret