joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e1d9
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5a82a3
call fcn.00580b4b
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x41e22a
cmp dword [ebp - 0x14], ebx
je 0x41e208
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41e25e
mov eax, dword [ebp - 0x14]
jmp 0x41e22f
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x41e25e
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], ebx
jne 0x41e253
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x41e26c
push dword [ebp - 0x14]
call esi
mov al, byte [ebp - 0xd]
call fcn.00580c23
ret

Function at 0x41e275
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x5a8280
call fcn.00580b4b
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 4
cmp byte [0x6d68b0], bl
je 0x41e2a4
cmp byte [ebp + 0x10], bl
je 0x41e2a4
mov esi, 0x101
jmp 0x41e2a7
xor esi, esi
inc esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x41e2e2
cmp dword [ebp - 0x10], ebx
je 0x41e2c5
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41e310
mov eax, dword [ebp - 0x10]
jmp 0x41e2e7
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x41e30d
cmp dword [ebp - 0x18], 4
jne 0x41e30d
cmp dword [ebp - 0x1c], ebx
jne 0x41e310
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x41e321
push dword [ebp - 0x10]
call edi
mov eax, esi
call fcn.00580c23
ret
Function at 0x41ef1c
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0x34
mov eax, 0x5a686d
call fcn.00580b4b
lea eax, [ebp - 0x18]
push eax
push 0x5cdacc
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0x5cdb9c
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x41ef52
xor eax, eax
call fcn.00580c23
ret
push dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
call fcn.0042b5a0
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 0x41ef96
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 0x41ef4a
push dword [ebp - 0x14]
lea esi, [ebp - 0x24]
call fcn.0042b5f4
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 0x41efd2
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 0x41ef7f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_Processor
push 0x6816b8
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x41f027
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 0x41ef4c
push dword [ebp - 0x10]
lea esi, [ebp - 0x2c]
call fcn.0042b648
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 0x41f0a8
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 0x41f08d
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 0x41f07e
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 0x41f045
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41f09a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x41f0a8
mov eax, esi
xor edx, edx
div edi
mov edi, eax
jmp 0x41f0aa
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 0x41eff5
Function at 0x41f107
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f38
call fcn.005788a0
mov eax, dword [0x6bd6f8]
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.0041f277
pop ecx
pop ecx
test al, al
je 0x41f262
push dword [ebp - 0x2f30]
lea eax, [ebp - 0x80c]
push str..PhysicalDrive_d
push ebx
push eax
call fcn.005754b3
add esp, 0x10
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push closesocket
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f30], eax
cmp eax, 0xffffffff
je 0x41f262
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.005780d0
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 0x41f256
mov eax, dword [ebp - 0x2f04]
mov edi, dword [ebp - 0x2f34]
cmp eax, 0xffffffff
je 0x41f229
mov esi, edi
lea ecx, [ebp - 0x2f1c]
call fcn.0041f524
xor esi, esi
mov eax, dword [ebp - 0x2f0c]
cmp eax, esi
je 0x41f24a
cmp byte [edi], 0
jne 0x41f24f
lea eax, [ebp + eax - 0x2f1c]
push eax
push ebx
push edi
call fcn.00576040
add esp, 0xc
cmp byte [edi], 0
je 0x41f256
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.0057340c
leave
ret
Function at 0x41f8e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x5b15cc
call fcn.00580b4b
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.0041fbc6
pop ecx
pop ecx
push ebx
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41f95a
push 0x68187c
lea eax, [ebp - 0x24]
push eax
call fcn.0040852d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ebx
push ecx
mov ecx, eax
call fcn.0040fc0a
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.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040856e
push ebx
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41f9aa
push 0x681888
lea eax, [ebp - 0x2c]
push eax
call fcn.0040852d
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push ecx
mov ecx, eax
call fcn.0040fc0a
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.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040856e
cmp dword [ebp - 0x18], 0
jne 0x41f9f1
cmp dword [ebp - 0x1c], 0
je 0x41f9f1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x41f900
cmp dword [0x6bc38c], 1
jl 0x41f9e8
push str.CLEAN:_Processing_file:_file_failed_to_delete
push str.Helper::virDeleteFile
push 1
call fcn.00532652
add esp, 0xc
mov al, byte [ebp - 0xd]
call fcn.00580c23
ret
cmp dword [0x6bc38c], 1
mov byte [ebp - 0xd], 1
jl 0x41f9e8
push str.CLEAN:_Processing_file:_file_deleted_successfully
push 0x6818c8
jmp 0x41f9de

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

Disassembly:
push 8
mov eax, 0x5b1591
call fcn.00580b4b
push 0x68193c
lea eax, [ebp - 0x14]
push eax
call fcn.0040852d
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0040fc0a
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.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040856e
cmp edi, 0xffffffff
jne 0x41fbbe
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, edi
call fcn.00580c23
ret
Function at 0x41fbc6
Capabilities:
Set file attributes

Disassembly:
push 0x10
mov eax, 0x5b1566
call fcn.00580b4b
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 0x681948
lea eax, [ebp - 0x1c]
push eax
call fcn.0040852d
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.0040fc0a
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 0x41fc2b
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x41fc2d
mov esi, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.0040856e
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], bl
je 0x41fc55
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x1c]
call fcn.0040856e
test esi, esi
je 0x41fc6d
cmp dword [0x6bc38c], ebx
jl 0x41fc88
push str.CLEAN:_Processing_file:_attributes_changed_successfully
push 0x68198c
jmp 0x41fc7f
cmp dword [0x6bc38c], ebx
jl 0x41fc88
push str.CLEAN:_Processing_file:_attributes_failed_to_change
push str.Helper::virSetFileAttributes
push ebx
call fcn.00532652
add esp, 0xc
test esi, esi
setne al
call fcn.00580c23
ret
Function at 0x41fed8
Capabilities:
Get storage device properties

Disassembly:
push 0x60
mov eax, 0x5b150f
call fcn.00580bb4
xor ebx, ebx
push 0x681ae4
lea esi, [ebp - 0x3c]
mov byte [ebp - 0x65], bl
call fcn.00408187
mov dword [ebp - 4], ebx
push 4
pop edi
mov eax, esi
call fcn.00425dbf
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
mov word [eax], cx
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x41ff18
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 0x41ff7f
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 0x41ff78
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.00409bbf
mov al, byte [ebp - 0x65]
call fcn.00580c37
ret

Function at 0x420685
Capabilities:
Get session user name

Disassembly:
push 0x2c
mov eax, 0x5b14e2
call fcn.00580bb4
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.00425d9d
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.00425dbf
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x4206f0
call fcn.00425dbf
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4206d6
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.00425ddf
jmp 0x4206f5
call fcn.004082cb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x420701
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.0040852d
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409bbf
mov eax, dword [ebp - 0x30]
call fcn.00580c37
ret
Function at 0x420725
Capabilities:
Get hostname

Disassembly:
push 0x2c
mov eax, 0x5b149c
call fcn.00580bb4
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.00425d9d
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.00425dbf
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x42078e
call fcn.00425dbf
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420774
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.00425ddf
jmp 0x420793
call fcn.004082cb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42079f
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.0040852d
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409bbf
mov eax, dword [ebp - 0x30]
call fcn.00580c37
ret

Function at 0x4208dc
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x5a81ca
call fcn.00580b4b
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 0x42091b
cmp byte [0x6d68b0], bl
je 0x420914
cmp byte [ebp + 0x18], bl
je 0x420914
mov edi, 0x20119
jmp 0x420932
mov edi, 0x20019
jmp 0x420932
cmp byte [0x6d68b0], bl
je 0x42092d
mov edi, 0x20106
cmp byte [ebp + 0x18], bl
jne 0x420932
mov edi, 0x20006
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x420945
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 0x420970
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x420970
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
je 0x42097e
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0040856e
mov al, byte [ebp - 0xd]
call fcn.00580c23
ret
Function at 0x42099e
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x14
mov eax, 0x5ae4ed
call fcn.00580b4b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
cmp byte [ebp + 0x10], bl
je 0x4209d9
cmp byte [0x6d68b0], bl
je 0x4209d0
cmp byte [ebp + 0x14], bl
je 0x4209d0
mov dword [ebp - 0x14], 0x20119
jmp 0x4209f4
mov dword [ebp - 0x14], 0x20019
jmp 0x4209f4
cmp byte [0x6d68b0], bl
je 0x4209ed
mov dword [ebp - 0x14], 0x20106
cmp byte [ebp + 0x14], bl
jne 0x4209f4
mov dword [ebp - 0x14], 0x20006
lea eax, [ebp - 0x1c]
push eax
call fcn.004084d7
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.004084d7
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004260df
mov esi, eax
cmp esi, 0xffffffff
jne 0x420a2c
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.00408591
jmp 0x420a81
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004262df
mov byte [ebp - 4], 3
lea edi, [ebp - 0x1c]
call fcn.00408591
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0040856e
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.00426283
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.00408591
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0040856e
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 0x420acc
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, ebx
je 0x420abf
cmp eax, 2
jne 0x420ac3
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x420ac3
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.0040856e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040856e
mov al, byte [ebp - 0xd]
call fcn.00580c23
ret
Function at 0x421027
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x5b1453
call fcn.00580b4b
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.00420ebf
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea esi, [ebp + 0x810]
call fcn.004087a8
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4210f0
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 0x4210e7
push 0x400
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4210e1
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.0040852d
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00421027
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x4210a9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x810]
call fcn.0040856e
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.0057340c
add ebp, 0x804
leave
ret
Function at 0x421122
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x5b487f
call fcn.00580b4b
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0xd], 0
je 0x42115d
cmp byte [0x6d68b0], 0
je 0x421156
cmp byte [ebp + 0x14], 0
je 0x421156
mov ebx, 0x20119
jmp 0x421176
mov ebx, 0x20019
jmp 0x421176
cmp byte [0x6d68b0], 0
je 0x421171
cmp byte [ebp + 0x14], 0
mov ebx, 0x20106
jne 0x421176
mov ebx, 0x20006
lea eax, [ebp - 0x18]
push eax
call fcn.004084d7
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.004084d7
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004260df
mov esi, eax
cmp esi, 0xffffffff
jne 0x4211ae
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.00408591
jmp 0x421203
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004262df
mov byte [ebp - 4], 3
lea edi, [ebp - 0x18]
call fcn.00408591
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040856e
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.00426283
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.00408591
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040856e
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 0x42126a
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor bl, bl
jmp 0x421251
cmp eax, 5
jne 0x421261
test bl, bl
jne 0x421261
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
lea ecx, [ebp + 0x10]
push ecx
push eax
call fcn.004084fe
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00421027
pop ecx
pop ecx
inc bl
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x421224
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.0040856e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040856e
mov al, byte [ebp - 0xd]
call fcn.00580c23
ret
Function at 0x422020
Capabilities:
Get file version info

Disassembly:
push 0x34
mov eax, 0x5ae4aa
call fcn.00580b4b
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
push dword [ebp + 8]
call fcn.004084d7
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 0x42217f
lea ebx, [ebp - 0x20]
call fcn.00426662
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 0x422173
push dword [esi]
lea eax, [ebp - 0x40]
push eax
call fcn.004221b9
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 0x422166
lea eax, [ebp - 0x14]
push eax
call fcn.004084d7
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 0x4220cd
call fcn.005741fa
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 0x4220e1
call fcn.005741fa
movzx eax, word [edi + 2]
push 0x681edc
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.004175e6
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 0x42212c
cmp dword [ebp - 0x1c], edi
je 0x42212c
cmp dword [ebp - 0x18], edi
ja 0x42214c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0040856e
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x4220a9
jmp 0x422166
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.0040cde8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0040856e
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0043c1cc
mov byte [ebp - 4], 0
lea ebx, [ebp - 0x20]
call fcn.004266a7
mov eax, dword [ebp + 8]
call fcn.00580c23
ret