joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cc4b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x828], edi
cmp word [0x59b6e8], 0
jne 0x421fba
push 0x20219
push str.SOFTWAREPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.0041d520
mov ebx, dword [ebp - 0x824]
test eax, eax
jne 0x421faf
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.FROM
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421faf
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x421f4c
cmp eax, 2
jne 0x421faf
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x421f69
test al, 1
jne 0x421faf
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x421f72
jmp 0x421faf
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x59b6e8
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x421fa2
movzx eax, word [esi + ecx]
test ax, ax
je 0x421fa2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x421f84
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x421fba
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00420520
mov ecx, eax
test ecx, ecx
je 0x42202a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x59b6e8
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040a050
test al, al
jne 0x42200c
mov ecx, 0x59b6e8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421ff0
sub ecx, edx
sar ecx, 1
push ecx
push 0x59b6e8
mov ecx, edi
call fcn.0040b260
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404c40
int3
Function at 0x422c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ce5b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x828], ebx
cmp word [0x59aee8], 0
jne 0x422d9a
push 0x20219
push str.SOFTWAREPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.0041d520
mov edi, dword [ebp - 0x824]
test eax, eax
jne 0x422d8f
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0x550a4c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422d8f
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x422d2c
cmp eax, 2
jne 0x422d8f
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x422d49
test al, 1
jne 0x422d8f
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x422d52
jmp 0x422d8f
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x59aee8
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x422d82
movzx eax, word [esi + ecx]
test ax, ax
je 0x422d82
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x422d64
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x422d9a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x59aee8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x422deb
mov ecx, 0x59aee8
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x422dde
movzx eax, word [esi + ecx]
test ax, ax
je 0x422dde
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x422dc0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00420520
mov ecx, eax
test ecx, ecx
je 0x422e5a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x59aee8
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040a050
test al, al
jne 0x422e3c
mov ecx, 0x59aee8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422e20
sub ecx, edx
sar ecx, 1
push ecx
push 0x59aee8
mov ecx, ebx
call fcn.0040b260
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404c40
int3
Function at 0x4242c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00455d30
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4242f0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.004b0810
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004e2cf6
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
Function at 0x424380
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x424560
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424560
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4243b3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x424560
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, 1
push 0
push eax
call fcn.004b0810
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004b0810
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call edi
push str..
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x424546
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42453a
test byte [ebp - 0x664], 0x10
je 0x4244ca
cmp word [ebp - 0x638], 0x2e
jne 0x424489
mov ax, word [ebp - 0x636]
test ax, ax
je 0x42451f
cmp ax, 0x2e
jne 0x424489
cmp word [ebp - 0x634], 0
je 0x42451f
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b0810
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00424380
add esp, 4
jmp 0x42451d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b0810
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424452
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
and eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
Function at 0x424580
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4245e1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4245e1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4245b8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4245e1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4245dc
test al, 0x10
je 0x4245dc
push esi
call fcn.00424380
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4245e1
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x424c90
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d1b6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x424ccb
xor eax, eax
jmp 0x424d86
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0x820], 0
lea eax, [ebp - 0x810]
movq qword [ebp - 0x828], xmm0
push 0
push eax
movups xmmword [ebp - 0x838], xmm0
mov word [ebp - 0x81c], 0
call fcn.004b0810
lea edx, [ebp - 0x810]
mov dword [ebp - 0x834], 3
add esp, 0xc
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x424d20
lea eax, [ebp - 0x810]
mov dword [ebp - 0x830], eax
mov eax, 0x614
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x424d68
push eax
push edi
push str.SHFileOperation__s_failed___X
call fcn.0042be60
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
test eax, eax
jne 0x424da1
push str.rm__s_ok
call fcn.0042be60
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
call fcn.00424580
add esp, 4
test eax, eax
jne 0x424d81
call fcn.00407e20
mov ecx, eax
test ecx, ecx
je 0x424e5d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x818], eax
push edi
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
call fcn.00409d40
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00423e30
mov edx, dword [ebp - 0x814]
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424e1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
test esi, esi
mov esi, dword [ebp - 0x818]
push 0
je 0x424e2e
push esi
jmp 0x424e2f
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x424e56
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x424d86
push 0x80004005
call fcn.00404c40
int3

Function at 0x424e70
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x424eb8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424eb8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x424ea8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x424eb8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x424ec0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d1f6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x424efc
xor eax, eax
jmp 0x425102
cmp word [ebx], 0
je 0x424ef5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424f07
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x424ef5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b0810
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x55531c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424f62
test al, 1
je 0x424f62
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.004245f0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4250b2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x425011
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x425011
cmp word [ebp - 0x858], 0x2e
jne 0x425011
mov ax, word [ebp - 0x856]
test ax, ax
je 0x424fec
cmp ax, 0x2e
jne 0x425011
cmp word [ebp - 0x854], 0
jne 0x425011
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42511e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x4250a4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00424730
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x42504c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42504c
mov esi, dword [ebp - 0x888]
push esi
call fcn.00424ec0
jmp 0x425058
mov esi, dword [ebp - 0x888]
push esi
call fcn.00424e70
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x425069
xor edi, edi
jmp 0x425088
cmp dword [ebp - 0x424], 0
jne 0x425076
xor edi, edi
jmp 0x425088
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4250a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x424fa9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x4250d8
cmp eax, 0xffffffff
je 0x4250d8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.004242c0
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x4250fd
cmp eax, 0xffffffff
je 0x4250fd
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x4250d8
Function at 0x426590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4265e3
push edi
push ebx
call fcn.00434730
mov edi, dword [ebp + 0xc]
push edi
push ebx
push str.call_exe_begin__path__s__cmd__s_
call fcn.0042be60
add esp, 0xc
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edi
push ebx
call fcn.00434930
push dword [ebp + 0x14]
push edi
push ebx
push eax
push str.call_exe_return___d___path__s___cmd__s___sync__d_
call fcn.0042be60
add esp, 0x14
pop edi
pop ebx
pop ebp
ret

Function at 0x4266a0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x420], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
test eax, eax
je 0x426841
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x426841
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push 0
push eax
call fcn.004b0810
add esp, 0xc
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426835
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push ebx
push eax
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x426835
nop dword [eax]
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], 0x208
push 0
push eax
inc ebx
call fcn.004b0810
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e7202
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x426805
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x426805
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4267f5
sub esp, 0x28
mov eax, esp
push esi
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00429d40
add esp, 0x30
jmp 0x426805
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00429c00
add esp, 8
push 0
push 0
lea eax, [ebp - 0x424]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x426760
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
Function at 0x427430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d5a2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
mov dword [ebp - 0x228], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
call fcn.004b0810
add esp, 0xc
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], 0x104
call fcn.00420520
mov ecx, eax
test ecx, ecx
je 0x42754a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
lea eax, [ebp - 0x224]
push eax
push 0x550a4c
push str.SOFTWAREPCStoreX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427500
sub eax, edx
sar eax, 1
je 0x42752e
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040b260
mov ecx, esi
call fcn.0042a120
mov ecx, esi
call fcn.0042a020
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404c40
int3
Function at 0x428490
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d6db
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xd8
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0xf0]
push 0
push eax
mov byte [ebp - 0x531], 0
call fcn.004b0810
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x53c], eax
cmp eax, 0x6c
jae 0x4285b1
xor esi, esi
test eax, eax
je 0x4285b1
nop
push 0x410
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.004b0810
mov eax, dword [0x555b24]
add esp, 0xc
mov dword [ebp - 0x18], eax
movzx eax, word [0x555b28]
mov word [ebp - 0x14], ax
movzx eax, word [ebp + esi*2 - 0xf0]
add esi, 4
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x500]
push 0x207
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x538], esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4285a5
lea esi, [ebp - 0x500]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x428571
sub esi, ecx
mov eax, edi
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x42858a
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x500]
push ecx
push eax
call fcn.004e8a11
add esp, 0xc
test eax, eax
je 0x4285d2
mov esi, dword [ebp - 0x538]
cmp esi, dword [ebp - 0x53c]
jb 0x428510
mov al, byte [ebp - 0x531]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x520], 0
mov word [ebp - 0x530], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x51c], 7
cmp eax, esi
jb 0x4286f2
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x42860d
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x530]
call fcn.00419030
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428630
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push 0
lea ecx, [ebp - 0x530]
call fcn.0042a900
mov esi, dword [ebp - 0x544]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x554], xmm0
movups xmmword [ebp - 0x518], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x518]
movq qword [ebp - 0x540], xmm0
movq qword [ebp - 0x508], xmm0
cmp esi, eax
je 0x4286d5
mov ecx, esi
call fcn.0042a490
movups xmm0, xmmword [ebp - 0x554]
xor eax, eax
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x518], ax
movq xmm0, qword [ebp - 0x540]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x518]
call fcn.00413940
lea ecx, [ebp - 0x530]
call fcn.00413940
mov al, 1
jmp 0x4285b7
call fcn.00418c70
int3