joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x456ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11c
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00425f70
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40414a
mov dword [ebp - 0x120], 0x114
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00425f70
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40414a
xor eax, eax
jmp 0x404320
cmp dword [ebp - 0x110], 2
jb 0x4042d5
cmp dword [ebp - 0x11c], 5
jbe 0x404172
push str.WNT:_WFuture
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40420f
cmp dword [ebp - 0x11c], 5
jne 0x4041f9
cmp dword [ebp - 0x118], 2
jbe 0x404193
push str.WNT:_WFuture
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x4041f7
cmp dword [ebp - 0x118], 2
jne 0x4041ab
push str.WNT:_WSer2003
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x4041f7
cmp dword [ebp - 0x118], 1
jne 0x4041ea
push str.WNT:_WXP
mov ecx, dword [ebp + 8]
call fcn.00406a30
movzx eax, word [ebp - 8]
and eax, 0x200
je 0x4041db
push 0x443e5c
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4041e8
push 0x443e54
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4041f7
push str.WNT:_W2K
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40420f
cmp dword [ebp - 0x11c], 4
jne 0x40420f
push str.WNT:_WNT4
mov ecx, dword [ebp + 8]
call fcn.00406a30
movzx eax, byte [ebp - 6]
cmp eax, 3
jne 0x4042d3
cmp dword [ebp - 0x11c], 5
jb 0x4042a3
movzx eax, word [ebp - 8]
and eax, 0x80
je 0x40423f
push 0x443e24
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4042a1
movzx eax, word [ebp - 8]
and eax, 2
je 0x40427a
push 0
push 0x443e1c
mov ecx, dword [ebp + 8]
call fcn.00405b30
cmp eax, 0xffffffff
jle 0x40426b
push 0x443e14
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x404278
push 0x443e0c
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4042a1
movzx eax, word [ebp - 8]
cmp eax, 0x400
jne 0x404294
push 0x443e04
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4042a1
push 0x443dfc
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4042d3
push 0
push str.WNT4
mov ecx, dword [ebp + 8]
call fcn.00405b30
cmp eax, 0xffffffff
jle 0x4042c6
push str.NT4SRV
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x4042d3
push 0x443dfc
mov ecx, dword [ebp + 0xc]
call fcn.00406a30
jmp 0x40431b
cmp dword [ebp - 0x110], 1
jne 0x40431b
cmp dword [ebp - 0x118], 0xa
jae 0x4042f6
push str.W9X:_W95
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40431b
cmp dword [ebp - 0x118], 0x5a
jae 0x40430e
push str.W9X:_W98
mov ecx, dword [ebp + 8]
call fcn.00406a30
jmp 0x40431b
push str.W9X:_WME
mov ecx, dword [ebp + 8]
call fcn.00406a30
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425f3c
mov esp, ebp
pop ebp
ret
Function at 0x404340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e890
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0xfffffffd
mov dword [ebp - 0x18], 0x800
lea ecx, [ebp - 0x20]
call fcn.00406900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406a30
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00406b40
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406a30
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00406b40
mov ecx, dword [ebp + 0x14]
call fcn.00407310
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.00406ab0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40449d
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00406ab0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00406ae0
push eax
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00406ab0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40447a
cmp dword [ebp - 0x18], 0
jbe 0x40445f
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406b40
jmp 0x404478
mov dword [ebp - 0x10], 1
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406b40
mov ecx, dword [ebp + 0x14]
call fcn.00407310
jmp 0x404493
mov dword [ebp - 0x10], 0xfffffffe
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406b40
mov ecx, dword [ebp + 0x14]
call fcn.00407310
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004069e0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
call fcn.00407310
push 0x104
mov ecx, dword [ebp + 8]
call fcn.00406ae0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x104
jb 0x404fe6
mov eax, dword [ebp - 4]
add eax, 2
push eax
mov ecx, dword [ebp + 8]
call fcn.00406ae0
push eax
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406b40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405510
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x456ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0x104
cmp dword [ebp + 0xc], 0
je 0x4055fb
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4055fb
lea eax, [ebp - 0x220]
push eax
push 0x10008
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4055f9
cmp dword [ebp - 8], 0
jne 0x4055ec
mov dword [ebp - 0xc], 0x105
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x103
jne 0x4055c2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 8], eax
jmp 0x4055ec
cmp dword [ebp - 8], 0
je 0x4055d1
cmp dword [ebp - 8], 0xea
jne 0x4055ea
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00405510
add esp, 8
mov dword [ebp - 8], eax
jmp 0x405572
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405602
mov dword [ebp - 8], 0x3f2
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425f3c
mov esp, ebp
pop ebp
ret

Function at 0x406cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406d17
xor eax, eax
jmp 0x406d97
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406d2e
xor eax, eax
jmp 0x406d97
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x406d7a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x406d7a
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x406d51
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x406d86
xor eax, eax
jmp 0x406d97
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
jne 0x406d94
xor eax, eax
jmp 0x406d97
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f060
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
call fcn.004067a0
lea ecx, [ebp - 0x1c]
call fcn.00406900
mov dword [ebp - 4], 0
push 1
call fcn.00405000
add esp, 4
test eax, eax
jne 0x40af3e
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0040d5a0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x174], 0
je 0x40af64
mov eax, dword [ebp + 8]
push eax
push str.setup64.exe_terminated_due_to_fatal_error__Setupcaller_errorcode:__d
push 0
push 0x45858c
call fcn.00416150
add esp, 0x10
jmp 0x40af7c
mov eax, dword [ebp + 8]
push eax
push str.setup.exe_terminated_due_to_fatal_error__Setupcaller_errorcode:__d
push 0
push 0x45858c
call fcn.00416150
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
call fcn.00406770
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
push str._Y__m__d____H:_M:_S
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406800
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004069e0
push 0x445d10
push 7
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
push 0x444b48
push 7
push 0x45858c
call fcn.00416150
add esp, 0x10
push 0x445d10
push 7
push 0x45858c
call fcn.00416150
add esp, 0xc
push 0x444b44
push 7
push 0x45858c
call fcn.00416150
add esp, 0xc
push 0x444b44
push 7
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00427162
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004069e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b630
Capabilities:
Accept command line arguments
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f11f
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00419b22
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CSetupCommandLine.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00406900
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00406900
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00406900
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.00406900
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00406900
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x5c], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x60], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x7c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], 1
push 0x442630
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00406a30
push 0x442630
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00406a30
push 0x442630
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00406a30
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x70], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x74], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x78], 0
push 0x400
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00406ae0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00406a30
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00406b40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d190
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f450
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d1d2
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWARESiemensShared_ToolsCompSetup
push 0x80000002
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d2e0
mov edx, dword [ebp + 0x58]
test edx, edx
lea esi, [ebp + 0x58]
je 0x40d22b
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d216
sub eax, edi
sar eax, 1
js 0x40d2d6
cmp eax, dword [edx - 8]
jg 0x40d2d6
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], 0
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x40d25f
push 0
mov ecx, esi
call fcn.00407500
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
lea ecx, [edi + edi + 2]
push ecx
push eax
push 1
push 0
push 0x444894
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
lea eax, [esp + 0x18]
push str.x86_adscomlx:_Client_entry_set:
push eax
call fcn.00406010
mov ecx, dword [eax]
mov edx, dword [ebp + 0x1c]
push ecx
lea eax, [ebp + 0x1c]
push 0xa
push eax
mov eax, dword [edx + 0x68]
mov byte [esp + 0x3c], 1
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d2f6
push 0x80070057
call fcn.00406210
mov edx, dword [ebp + 0x1c]
lea eax, [ebp + 0x1c]
push str.x86_adscomlx:_Cannot_open_write_key:_SOFTWARESiemensShared_ToolsCompSetup
push 0
push eax
mov eax, dword [edx + 0x68]
call eax
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d31e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x40d480
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f4c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d4c2
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x27
push str.SOFTWARESiemensShared_ToolsCompSetup
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
xor edi, edi
call fcn.004073e0
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40d50d
push edi
lea ecx, [esp + 0x14]
call fcn.00407500
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d560
mov edx, dword [esp + 0x14]
push 0x444894
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
jne 0x40d555
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx + 0x68]
lea eax, [ebx + 0x1c]
push str.Delete_client_at_compsetup_interface
push 0xa
push eax
call edx
add esp, 0xc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40d5a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f500
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d5e1
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d613
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x27
push str.SOFTWARESiemensShared_ToolsCompSetup
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.004073e0
mov esi, dword [esp + 0xc]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40d65a
push 0
lea ecx, [esp + 0x10]
call fcn.00407500
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d6cf
lea ecx, [esp + 0x14]
call fcn.00407310
mov edx, dword [esp + 0x10]
push 2
push 0x442630
push 1
push 0
push 0x444894
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 0x68]
lea eax, [edi + 0x1c]
push str._Client_entry_set_empty.
push 0xa
push eax
call edx
mov eax, dword [esp + 0x1c]
add esp, 0xc
push str.SetupLanguage
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d6d2
or edi, 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d6f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d71b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x40ec20
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041890e
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40ec64
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x1d
push str.SoftwareSiemensShared_Tools
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebp
call fcn.004073e0
lea ecx, [edi + 0x10c]
push ecx
lea edx, [esp + 0x20]
push 0x442694
push edx
call fcn.00406010
push str.Clients
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x40], 1
call fcn.00405f60
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.00406540
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ecf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40ed36
push ebp
lea ecx, [esp + 0x14]
call fcn.00407500
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebp
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40edc7
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x14]
lea esi, [edi + 0x58]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebp, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
test ebp, ebp
mov eax, dword [eax + 8]
je 0x40ed92
or eax, ecx
jge 0x40ed86
push 0
mov ecx, esi
call fcn.00407500
mov esi, dword [esi]
push esi
push 0x448640
push 0
jmp 0x40eda9
or eax, ecx
jge 0x40ed9f
push 0
mov ecx, esi
call fcn.00407500
mov esi, dword [esi]
push esi
push str.Delete_client_successful:__s
push 0xa
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 0x68]
lea eax, [edi + 0x1c]
push eax
call edx
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret