joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023d0
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call fcn.00402310
test eax, eax
jne 0x4023f7
ret 0x10
push ebx
push esi
mov ebx, dword [esp + 0x18]
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40245e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40244c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x40244c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40245e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x402470
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x210
push esi
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
jne 0x402497
push 0x2e5
push str.C:My_ProgramsCCommonQResource.cpp
push str.hEFSFile
call fcn.00401960
mov esi, dword [esp + 0x228]
test esi, esi
jne 0x4024b6
push 0x2e6
push str.C:My_ProgramsCCommonQResource.cpp
push str.lpszOutFileName
call fcn.00401960
lea eax, [esp + 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402526
lea ecx, [esp + 8]
lea edx, [esp + 0x110]
push ecx
push 0
push str.Embedded
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x402526
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
push ecx
push edx
push edi
call fcn.004023d0
test eax, eax
je 0x402526
lea eax, [esp + 8]
push eax
call fcn.00402040
add esp, 4
test eax, eax
jne 0x402533
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x210
ret 0x10
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x210
ret 0x10
Function at 0x402cdf
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x428718
call fcn.0041f054
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, 0x42c3b0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 3
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 5
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x5c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 7
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x6c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 9
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x7c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xb
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xd
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x9c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xf
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0xac]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0x11
call fcn.00403191
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 0x12
call fcn.004088a5
lea ecx, [esi + 0xcc]
mov byte [ebp - 4], 0x13
call fcn.004088a5
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 0x14
call fcn.004088a5
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 0x15
mov byte [esi + 0xec], bl
call fcn.004088a5
lea ecx, [esi + 0x100]
mov byte [ebp - 4], 0x16
call fcn.004088a5
lea ecx, [esi + 0x110]
mov byte [ebp - 4], 0x17
call fcn.004088a5
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x120], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4034e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x428878
call fcn.0041f054
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403530
mov al, byte [ebp + 0xc]
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov byte [esi + 0x70], al
test al, al
mov dword [esi + 0x6c], ecx
jne 0x40351f
push 0
push ecx
mov ecx, esi
call fcn.004092ae
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x403620
Capabilities:
Hide graphical window

Disassembly:
cmp byte [ecx + 0x70], 0
jne 0x403631
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x403bd5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x428958
call fcn.0041f054
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0041f56d
mov eax, 0x42ce60
lea edi, [ebx + 0x10]
mov esi, eax
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], ecx
mov ecx, ebx
mov dword [ebx], 0x42c4c4
mov dword [ebx + 0xc], eax
call fcn.00403cc3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x403c35
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42896c
call fcn.0041f054
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0041f56d
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebx], 0x42c4c4
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
push dword [esi + 0x30]
call fcn.0041f780
inc eax
push eax
call fcn.0041f770
mov dword [ebx + 0x30], eax
push dword [esi + 0x30]
push eax
call fcn.0041f680
push dword [esi + 0x34]
call fcn.0041f780
inc eax
push eax
call fcn.0041f770
mov dword [ebx + 0x34], eax
push dword [esi + 0x34]
push eax
call fcn.0041f680
add esp, 0x20
add esi, 0x20
lea edi, [ebx + 0x20]
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4060fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x428d20
call fcn.0041f054
sub esp, 0x268
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ebx
push 0x20019
push str.SoftwareInstallShieldUpdate_Service
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040629d
test eax, eax
jne 0x4061f5
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x20]
push ebx
push eax
mov edi, str.IsConnected
push ebx
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x4061f5
cmp dword [ebp - 0x20], 1
je 0x4061a2
cmp dword [ebp - 0x20], 7
je 0x4061a2
cmp dword [ebp - 0x20], 2
je 0x4061a2
lea eax, [ebp - 0x30]
or dword [ebp - 0x1c], 0xffffffff
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 4
call esi
jmp 0x4061d2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x200
push eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x274]
push eax
call fcn.0041f7fb
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4061f5
cmp dword [ebp - 0x1c], ebx
setne byte [ebp + 0xf]
cmp dword [ebp - 0x18], ebx
je 0x4061ed
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0xf]
jmp 0x40628c
call fcn.004116aa
cmp eax, 2
je 0x406209
cmp eax, 1
je 0x406209
mov byte [ebp - 0x11], bl
jmp 0x40627b
cmp byte [0x436ffc], bl
mov byte [ebp - 0x11], 1
jne 0x40627b
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0xc]
add eax, 0x2c
lea ecx, [ebp - 0x74]
push eax
call fcn.0041ad08
sub esp, 0x10
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp + 0xc], esp
push dword [ebp + 8]
call fcn.00408911
lea ecx, [ebp - 0x74]
call fcn.004062db
push ebx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.004060cc
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x11], al
jmp 0x406270
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], ebx
call fcn.0041ad46
cmp dword [ebp - 0x18], ebx
je 0x406289
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x40ab62
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040cb74
mov esi, dword [esi + 4]
xor eax, eax
push 5
push eax
push eax
push esi
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
pop esi
ret 4
Function at 0x40af8e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42958b
call fcn.0041f054
sub esp, 0x3c
push ebx
push esi
push dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call fcn.004088ea
push 1
mov dword [ebp - 0x10], ebx
pop esi
mov dword [ebp - 4], esi
push 0x20019
lea ecx, [ebp - 0x10]
push dword [ebp + 0x10]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
call fcn.0040629d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], 0x42c3b0
mov eax, 0x200
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.0040b193
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040b296
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x18], ebx
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
lea ecx, [ebp - 0x48]
sete byte [ebp + 0x1b]
mov byte [ebp - 4], 3
call fcn.0040b26f
cmp byte [ebp + 0x1b], bl
je 0x40b03d
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
call fcn.00409178
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00408911
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00408947
cmp dword [ebp - 0x10], ebx
je 0x40b069
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00408947
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14

Function at 0x40b4e3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x40b4fc
xor esi, esi
jmp 0x40b529
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041f080
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b547
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40b4ee
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c1f2
Capabilities:
Get common file path
Move file

Disassembly:
mov eax, 0x42972b
call fcn.0041f054
sub esp, 0x254
and dword [ebp - 0x10], 0
push ebx
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ebx, [edi + 8]
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.0040c37b
mov esi, eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040cb74
mov esi, dword [esi + 4]
lea eax, [ebp - 0x260]
push eax
push 0
lea eax, [ebp - 0x15c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040c779
lea eax, [ebp - 0x260]
push 0xffffffffffffffff
push eax
call fcn.00403388
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.00403191
mov esi, 0x42c4d4
mov dword [ebp - 0x20], esi
cmp byte [edi + 0x1c], 0
mov dword [ebp - 4], 3
je 0x40c345
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040c37b
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040cb74
push dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x15c]
push eax
call edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040c779
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040c484
mov ebx, eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040cb74
push dword [ebx + 4]
lea eax, [ebp - 0x15c]
push eax
call edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040c779
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040c71c
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 6
call fcn.00409178
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040c779
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040c743
mov dword [edi], esi
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040c779
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40cfa5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40cfd9
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x40cffc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x40d007
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x40d095
xor eax, eax
cmp dword [ebp - 4], esi
je 0x40d051
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x40d095
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.0040cfa5
cmp dword [ebp - 4], esi
je 0x40d091
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x40d0b3
cmp eax, esi
push ebx
jle 0x40d0a4
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x40d0b0
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40d1a7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4297d8
call fcn.0041f054
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0040629d
mov edi, eax
cmp edi, esi
je 0x40d1f1
cmp dword [ebp - 0x10], esi
je 0x40d1ea
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d28e
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40d262
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040d1a7
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x40d24f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x40d214
cmp dword [ebp - 0x10], esi
je 0x40d25d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x40d28e
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d275
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x40d28c
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d326
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x40d345
xor al, al
jmp 0x40d35f
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40d363
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x40d433
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push str.SoftwareInstallShield
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
jne 0x40d478
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push str.AdminRights
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x14]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareInstallShieldAdminRights
push ebx
call edi
cmp eax, esi
jne 0x40d4c0
mov ebx, dword [ebp - 8]
push str.AdminRights
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40d4c3
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d4d3
push dword [ebp - 4]
call edi
cmp ebx, esi
je 0x40d4da
push ebx
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e3fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x40e417
xor esi, esi
jmp 0x40e445
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041f080
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x40e482
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40e46d
call esi
mov esi, eax
jmp 0x40e517
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e517
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40e4b3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x40e4c6
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e50e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x40e4ca
jmp 0x40e495
call esi
jmp 0x40e50c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x40e500
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.0041f080
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.0041f100
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.0040e57e
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10