joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x466c47
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x466c72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x466c6c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x466d8b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x466ca9
cmp byte [edi + 0x18], al
je 0x466c9d
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.004308a0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x466ce2
call fcn.004308a0
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00466dc0
test eax, eax
jns 0x466d88
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.00466860
mov dword [ebp - 4], eax
test eax, eax
jns 0x466d12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00466dc0
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x466cb9
push 0
push 0
push ebx
mov ecx, esi
call fcn.00466860
mov edi, eax
test edi, edi
jns 0x466d50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00466dc0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4670e0
push 0
push 0
call fcn.0050b59e
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x466cb9
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x466d88
call fcn.004308a0
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e230
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x596634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.UtilsCefRes.dll
lea eax, [ebp - 0x14]
xor ebx, ebx
push esi
push eax
call fcn.0045d020
add esp, 0xc
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x468cb6
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468dba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.UtilsCefHelper.dll
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0045d020
add esp, 0xc
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x468d30
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468cfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x468dba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call fcn.00474780
add esp, 4
test eax, eax
je 0x468cd9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x468cd9
push 0x553698
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x468cd9
push str.3.2623.1401.0
call eax
push eax
push str.install_cef_nRet_d
call fcn.00456fb0
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0
mov ebx, 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468d9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x468dba
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469900
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dcfa0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], 1
push 2
push eax
mov dword [ebp - 0x228], 0x208
call fcn.00432d80
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x469953
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push str.Setup_Path
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x4699bb
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4699b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x469a2a
push edx
push ecx
call fcn.00496936
add esp, 8
test bl, bl
pop ebx
je 0x469a1a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469a1a
push 0x55ac1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469a1a
lea eax, [ebp - 0x20c]
push eax
call fcn.00474780
add esp, 4
test eax, eax
je 0x469a1a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
call fcn.004e8718
int3
Function at 0x46a090
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00496d60
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x46a1e4
test esi, esi
je 0x46a1e4
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004dcfa0
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004dcfa0
push 0x400
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0050b03e
add esp, 0x24
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a1c0
push esi
push str.Dest_File_Exist:__s
call fcn.00456fb0
push esi
call fcn.00455be0
add esp, 0xc
test eax, eax
jne 0x46a1c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Delete_File__s_Failed__error___d
call fcn.00456fb0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0
push 0x5509b8
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x46a1f9
lea eax, [ebp - 0x804]
push eax
push esi
push str.Rename_File__s_to__s_success
call fcn.00456fb0
add esp, 0xc
lea eax, [ebp - 0x804]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x46a1c0
mov dword [edi], 4
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46a231
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push str.Copy_From__s_to__s_Failed_Error_Code___d
call fcn.00456fb0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret 0xc
push esi
push str.Rename_File__s_failed__replace_until_reboot
call fcn.00456fb0
add esp, 8
lea eax, [ebp - 0x804]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x46a231
mov dword [edi], 5
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496d46
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46b3a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e716
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x596634]
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 dword [ebp - 0x24c], ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
mov ecx, str.ComputerZ_Tray
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b42c
test dx, dx
je 0x46b428
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b42c
add eax, 4
add ecx, 4
test dx, dx
jne 0x46b406
xor eax, eax
jmp 0x46b431
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x230]
push 0x1c
push eax
jne 0x46b471
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x46b44e
mov eax, dword [eax]
push 0x2001f
push eax
push SysReAllocString
lea ecx, [ebp - 0x244]
call fcn.00434ac0
lea ecx, [ebp - 0x230]
call fcn.004218e0
jmp 0x46b4ac
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x46b481
mov eax, dword [eax]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x244]
call fcn.00434ac0
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.004218e0
test esi, esi
jne 0x46b5ca
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x46b5fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
push dword [edi + 8]
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push dword [edi]
push str._s__s
push eax
call fcn.0041dc70
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
add esp, 0x1c
mov dword [ebp - 0x234], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46b54e
mov eax, dword [ebp - 0x248]
cmp eax, 1
je 0x46b53c
cmp eax, 2
jne 0x46b54e
cmp dword [ebp - 0x234], 0
jne 0x46b54e
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00507b5f
add esp, 8
test eax, eax
je 0x46b595
test esi, esi
je 0x46b595
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b571
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24c]
push 0
push str.Computer_Z
call fcn.0046c690
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b5c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x46b5d2
mov edi, dword [ebp - 0x244]
xor esi, esi
test edi, edi
je 0x46b5dd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00496d46
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040af60
int3
Function at 0x46c690
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e940
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x596634]
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
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp + 8]
je 0x46c77c
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x1c
push eax
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x46c6fa
mov eax, dword [eax]
push 0x2021f
push eax
push SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.00434ac0
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004218e0
mov ebx, dword [ebp - 0x4c]
test esi, esi
jne 0x46c726
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push 0x1c
push eax
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x46c755
mov eax, dword [eax]
push 0x2021f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.00434ac0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004218e0
test esi, esi
mov esi, dword [ebp - 0x1c]
jmp 0x46c82b
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push 0x1c
push eax
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x46c7ae
mov eax, dword [eax]
push 0x2001f
push eax
push SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.00434ac0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004218e0
mov ebx, dword [ebp - 0x1c]
test esi, esi
jne 0x46c7da
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push 0x1c
push eax
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x46c809
mov eax, dword [eax]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.00434ac0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004218e0
test esi, esi
mov esi, dword [ebp - 0x4c]
jne 0x46c835
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x46c842
push esi
call edi
test ebx, ebx
je 0x46c849
push ebx
call edi
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.00496d46
mov esp, ebp
pop ebp
ret 8
Function at 0x46cc80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ea08
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x596634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x59c1f0], 0
jne 0x46ccc4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x59c1f0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x46cd30
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x59c1f0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041d980
test al, al
jne 0x46cd1c
mov ecx, 0x59c1f0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cd00
sub ecx, edx
sar ecx, 1
push ecx
push 0x59c1f0
mov ecx, esi
call fcn.0040de70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040af60
int3
Function at 0x46e680
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x59657c]
test ecx, ecx
js 0x46e6c8
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x59657c], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.004dcfa0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x46e739
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46e790
push str.GetNativeSystemInfo
push 0x54f378
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46e790
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x46e770
cmp ax, 6
jne 0x46e790
mov dword [0x59657c], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x2aaaaaab
push esi
push edi
mov edi, dword [ebx + 4]
mov ecx, edi
mov esi, dword [ebx]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x46f4a8
cmp esi, edi
je 0x46f475
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46f46a
mov eax, dword [esi]
push eax
call edi
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x46f460
lea eax, [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0
push dword [ebp + 8]
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x46f810
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55c8dc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x55c8e0]
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46f879
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x14], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x46f879
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.00496d46
mov esp, ebp
pop ebp
ret

Function at 0x46f890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00496d60
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x46f986
test edi, edi
je 0x46f986
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x46f986
cmp eax, 0x3fff
ja 0x46f986
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46f986
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x54e950
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46f986
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004dcfa0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00424790
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00496d46
mov esp, ebp
pop ebp
ret
Function at 0x471a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f178
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.00416060
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
lea eax, [esi + 4]
mov ecx, esi
push eax
call fcn.004712f0
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x471b00
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00432d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x471ae1
mov eax, dword [eax]
push dword [ebp - 0x30]
push esi
push 7
push str.PendingFileRenameOperations
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea ecx, [ebp - 0x28]
call fcn.004218e0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471b1f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
Function at 0x4773e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f971
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x596634]
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 esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.0040d750
mov ecx, eax
test ecx, ecx
je 0x477574
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477535
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x477527
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x477535
add eax, 0x10
push 0x59ca72
push eax
mov dword [ebp - 0x20], eax
call fcn.00497327
mov esi, eax
add esp, 8
test esi, esi
je 0x477535
push dword [ebp - 0x20]
push 0
push esi
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4774ea
push esi
call fcn.00496f4c
add esp, 4
jmp 0x477535
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4774f0
sub ecx, edx
sar ecx, 1
je 0x47751e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477506
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040de70
push esi
call fcn.00496f4c
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x477535
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x477554
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.00496d46
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040af60
int3