joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41edc7
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0x34
mov eax, 0x5acd8b
call fcn.0058705b
lea eax, [ebp - 0x18]
push eax
push 0x5d4a8c
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0x5d4b5c
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x41edfd
xor eax, eax
call fcn.00587133
ret
push dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
call fcn.0042c0b8
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x41ee41
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
jmp 0x41edf5
push dword [ebp - 0x14]
lea esi, [ebp - 0x24]
call fcn.0042c10c
mov byte [ebp - 4], 1
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x41ee7d
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
jmp 0x41ee2a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_Processor
push 0x688fe0
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x41eed2
xor edi, edi
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, edi
jmp 0x41edf7
push dword [ebp - 0x10]
lea esi, [ebp - 0x2c]
call fcn.0042c160
mov byte [ebp - 4], 2
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x10], ebx
je 0x41ef53
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [eax + 0x10]
cmp dword [ebp - 0x28], ebx
je 0x41ef38
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x40]
push edx
push ebx
push str.MaxClockSpeed
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x41ef29
inc edi
add esi, dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x10], ebx
jne 0x41eef0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41ef45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x41ef53
mov eax, esi
xor edx, edx
div edi
mov edi, eax
jmp 0x41ef55
xor edi, edi
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x41eea0
Function at 0x41efb2
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f38
call fcn.0057edb0
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2f34], eax
mov byte [eax], 0
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x80c]
push eax
mov byte [ebp - 0x2f29], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x80c]
lea eax, [ebp - 0x2f30]
push eax
call fcn.0041f122
pop ecx
pop ecx
test al, al
je 0x41f10d
push dword [ebp - 0x2f30]
lea eax, [ebp - 0x80c]
push str..PhysicalDrive_d
push ebx
push eax
call fcn.0057b783
add esp, 0x10
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push connect
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f30], eax
cmp eax, 0xffffffff
je 0x41f10d
xor eax, eax
lea edi, [ebp - 0x2f28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2f1c]
push esi
push eax
mov dword [ebp - 0x2f38], esi
mov dword [ebp - 0x2f28], esi
mov dword [ebp - 0x2f24], esi
call fcn.0057e5e0
add esp, 0xc
push esi
lea eax, [ebp - 0x2f38]
push eax
push edi
lea eax, [ebp - 0x2f1c]
push eax
push 0xc
lea eax, [ebp - 0x2f28]
push eax
push 0x2d1400
push dword [ebp - 0x2f30]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f101
mov eax, dword [ebp - 0x2f04]
mov edi, dword [ebp - 0x2f34]
cmp eax, 0xffffffff
je 0x41f0d4
mov esi, edi
lea ecx, [ebp - 0x2f1c]
call fcn.0041f3cf
xor esi, esi
mov eax, dword [ebp - 0x2f0c]
cmp eax, esi
je 0x41f0f5
cmp byte [edi], 0
jne 0x41f0fa
lea eax, [ebp + eax - 0x2f1c]
push eax
push ebx
push edi
call fcn.0057c310
add esp, 0xc
cmp byte [edi], 0
je 0x41f101
mov byte [ebp - 0x2f29], 1
push dword [ebp - 0x2f30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x2f29]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005796dc
leave
ret
Function at 0x41f7c6
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x5b8386
call fcn.0058705b
and dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0xd], 0
push 0x80
push ebx
call fcn.0041faac
pop ecx
pop ecx
push ebx
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41f840
push 0x6891a4
lea eax, [ebp - 0x24]
push eax
call fcn.00408518
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ebx
push ecx
mov ecx, eax
call fcn.0040fcd8
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408559
push ebx
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41f890
push 0x6891b0
lea eax, [ebp - 0x2c]
push eax
call fcn.00408518
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push ecx
mov ecx, eax
call fcn.0040fcd8
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
call edi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408559
cmp dword [ebp - 0x18], 0
jne 0x41f8d7
cmp dword [ebp - 0x1c], 0
je 0x41f8d7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x41f7e6
cmp dword [0x6c438c], 1
jl 0x41f8ce
push str.CLEAN:_Processing_file:_file_failed_to_delete
push str.Helper::virDeleteFile
push 1
call fcn.00538922
add esp, 0xc
mov al, byte [ebp - 0xd]
call fcn.00587133
ret
cmp dword [0x6c438c], 1
mov byte [ebp - 0xd], 1
jl 0x41f8ce
push str.CLEAN:_Processing_file:_file_deleted_successfully
push 0x6891f0
jmp 0x41f8c4

Function at 0x41fa42
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x5b834b
call fcn.0058705b
push 0x689264
lea eax, [ebp - 0x14]
push eax
call fcn.00408518
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0040fcd8
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00408559
cmp edi, 0xffffffff
jne 0x41faa4
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, edi
call fcn.00587133
ret
Function at 0x41faac
Capabilities:
Set file attributes

Disassembly:
push 0x10
mov eax, 0x5b8320
call fcn.0058705b
push dword [ebp + 0xc]
and dword [ebp - 0x10], 0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call esi
mov dword [ebp - 0x14], eax
push 0x689270
lea eax, [ebp - 0x1c]
push eax
call fcn.00408518
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor ebx, ebx
push ecx
inc ebx
mov ecx, eax
mov dword [ebp - 0x10], ebx
call fcn.0040fcd8
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push 3
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push eax
call esi
test eax, eax
jne 0x41fb11
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x41fb13
mov esi, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], bl
je 0x41fb3b
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x1c]
call fcn.00408559
test esi, esi
je 0x41fb53
cmp dword [0x6c438c], ebx
jl 0x41fb6e
push str.CLEAN:_Processing_file:_attributes_changed_successfully
push 0x6892b4
jmp 0x41fb65
cmp dword [0x6c438c], ebx
jl 0x41fb6e
push str.CLEAN:_Processing_file:_attributes_failed_to_change
push str.Helper::virSetFileAttributes
push ebx
call fcn.00538922
add esp, 0xc
test esi, esi
setne al
call fcn.00587133
ret
Function at 0x41fdbe
Capabilities:
Get storage device properties

Disassembly:
push 0x60
mov eax, 0x5b82c9
call fcn.005870c4
xor ebx, ebx
push 0x68940c
lea esi, [ebp - 0x3c]
mov byte [ebp - 0x65], bl
call fcn.00408172
mov dword [ebp - 4], ebx
push 4
pop edi
mov eax, esi
call fcn.00425dd6
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
mov word [eax], cx
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x41fdfe
lea eax, [ebp - 0x38]
push ebx
push ebx
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fe65
xor eax, eax
push 9
pop ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push ebx
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
push 0x28
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41fe5e
cmp dword [ebp - 0x48], 7
sete byte [ebp - 0x65]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00409bf1
mov al, byte [ebp - 0x65]
call fcn.00587147
ret

Function at 0x420544
Capabilities:
Get session user name

Disassembly:
push 0x2c
mov eax, 0x5b829c
call fcn.005870c4
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x30], eax
mov eax, 0x101
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0042c1b4
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push eax
xor edi, edi
lea eax, [ebp - 0x2c]
call fcn.00425dd6
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x4205af
call fcn.00425dd6
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420595
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.00425df6
jmp 0x4205b4
call fcn.004082b6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4205c0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.00408518
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409bf1
mov eax, dword [ebp - 0x30]
call fcn.00587147
ret
Function at 0x4205e4
Capabilities:
Get hostname

Disassembly:
push 0x2c
mov eax, 0x5b8256
call fcn.005870c4
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
push 0x10
mov dword [ebp - 0x30], eax
pop eax
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0042c1b4
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push eax
xor edi, edi
lea eax, [ebp - 0x2c]
call fcn.00425dd6
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x42064d
call fcn.00425dd6
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420633
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.00425df6
jmp 0x420652
call fcn.004082b6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42065e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.00408518
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409bf1
mov eax, dword [ebp - 0x30]
call fcn.00587147
ret

Function at 0x420784
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x5ae91b
call fcn.0058705b
mov dword [ebp - 4], 1
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp byte [ebp + 0x14], bl
je 0x4207c3
cmp byte [0x6de964], bl
je 0x4207bc
cmp byte [ebp + 0x18], bl
je 0x4207bc
mov edi, 0x20119
jmp 0x4207da
mov edi, 0x20019
jmp 0x4207da
cmp byte [0x6de964], bl
je 0x4207d5
mov edi, 0x20106
cmp byte [ebp + 0x18], bl
jne 0x4207da
mov edi, 0x20006
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x4207ed
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x420818
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x420818
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
je 0x420826
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00408559
mov al, byte [ebp - 0xd]
call fcn.00587133
ret
Function at 0x420846
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x14
mov eax, 0x5b4e5a
call fcn.0058705b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
cmp byte [ebp + 0x10], bl
je 0x420881
cmp byte [0x6de964], bl
je 0x420878
cmp byte [ebp + 0x14], bl
je 0x420878
mov dword [ebp - 0x14], 0x20119
jmp 0x42089c
mov dword [ebp - 0x14], 0x20019
jmp 0x42089c
cmp byte [0x6de964], bl
je 0x420895
mov dword [ebp - 0x14], 0x20106
cmp byte [ebp + 0x14], bl
jne 0x42089c
mov dword [ebp - 0x14], 0x20006
lea eax, [ebp - 0x1c]
push eax
call fcn.004084c2
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.004084c2
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004260f6
mov esi, eax
cmp esi, 0xffffffff
jne 0x4208d4
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.0040857c
jmp 0x420929
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004262f6
mov byte [ebp - 4], 3
lea edi, [ebp - 0x1c]
call fcn.0040857c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00408559
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x20]
push eax
sub ecx, esi
lea eax, [ebp + 0xc]
dec ecx
push eax
call fcn.0042629a
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.0040857c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00408559
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x420974
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, ebx
je 0x420967
cmp eax, 2
jne 0x42096b
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x42096b
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00408559
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408559
mov al, byte [ebp - 0xd]
call fcn.00587133
ret
Function at 0x420fe5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x5b820d
call fcn.0058705b
mov edi, dword [ebp + 0x80c]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x810]
mov dword [ebp - 0x10], ebx
push edi
call fcn.00420e7a
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea esi, [ebp + 0x810]
call fcn.00408793
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4210ae
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x14], ebx
jbe 0x4210a5
push 0x400
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x42109f
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.00408518
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00420fe5
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x421067
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x810]
call fcn.00408559
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.005796dc
add ebp, 0x804
leave
ret
Function at 0x4210e0
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x5bb6b5
call fcn.0058705b
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0xd], 0
je 0x42111b
cmp byte [0x6de964], 0
je 0x421114
cmp byte [ebp + 0x14], 0
je 0x421114
mov ebx, 0x20119
jmp 0x421134
mov ebx, 0x20019
jmp 0x421134
cmp byte [0x6de964], 0
je 0x42112f
cmp byte [ebp + 0x14], 0
mov ebx, 0x20106
jne 0x421134
mov ebx, 0x20006
lea eax, [ebp - 0x18]
push eax
call fcn.004084c2
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.004084c2
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004260f6
mov esi, eax
cmp esi, 0xffffffff
jne 0x42116c
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.0040857c
jmp 0x4211c1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004262f6
mov byte [ebp - 4], 3
lea edi, [ebp - 0x18]
call fcn.0040857c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00408559
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
push eax
sub ecx, esi
lea eax, [ebp + 0xc]
dec ecx
push eax
call fcn.0042629a
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.0040857c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00408559
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421228
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor bl, bl
jmp 0x42120f
cmp eax, 5
jne 0x42121f
test bl, bl
jne 0x42121f
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
lea ecx, [ebp + 0x10]
push ecx
push eax
call fcn.004084e9
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00420fe5
pop ecx
pop ecx
inc bl
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4211e2
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00408559
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408559
mov al, byte [ebp - 0xd]
call fcn.00587133
ret
Function at 0x421fb5
Capabilities:
Get file version info

Disassembly:
push 0x34
mov eax, 0x5b4e17
call fcn.0058705b
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
push dword [ebp + 8]
call fcn.004084c2
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x422114
lea ebx, [ebp - 0x20]
call fcn.004265ee
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x20]
push dword [esi]
xor ebx, ebx
push edi
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x422108
push dword [esi]
lea eax, [ebp - 0x40]
push eax
call fcn.0042214e
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 2
test eax, eax
jbe 0x4220fb
lea eax, [ebp - 0x14]
push eax
call fcn.004084c2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [ebp - 0x34]
sar ecx, 2
cmp ebx, ecx
jb 0x422062
call fcn.0057a4ca
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
lea edi, [ecx + ebx*4]
cmp ebx, eax
jb 0x422076
call fcn.0057a4ca
movzx eax, word [edi + 2]
push 0x689814
push eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + ebx*4]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x14]
call fcn.00417a4d
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [esi]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4220c1
cmp dword [ebp - 0x1c], edi
je 0x4220c1
cmp dword [ebp - 0x18], edi
ja 0x4220e1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00408559
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x42203e
jmp 0x4220fb
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.0040cf35
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00408559
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0043d638
mov byte [ebp - 4], 0
lea ebx, [ebp - 0x20]
call fcn.00426633
mov eax, dword [ebp + 8]
call fcn.00587133
ret