joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f740
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4a8], 0x105
test ebx, ebx
je 0x45f7f0
test eax, eax
je 0x45f7f0
push 0x20a
call fcn.0047d207
mov edi, eax
add esp, 4
test edi, edi
je 0x45f7f0
mov edx, dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4a8]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov esi, eax
test esi, esi
jne 0x45f805
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x45f7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x45f7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x45f805
push edi
call fcn.0047ef43
mov eax, dword [ebp - 0x4a8]
lea ecx, [eax + eax]
add esp, 4
push ecx
call fcn.0047d207
mov edi, eax
add esp, 4
test edi, edi
jne 0x45f790
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x45f819
mov dx, word [edi]
mov eax, dword [ebp - 0x4ac]
mov word [eax + 0x1ca], dx
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x45f7f0
cmp eax, 5
je 0x45f7f0
test eax, eax
je 0x45f7f0
cmp eax, 2
jne 0x45f885
mov cx, word [edi]
mov dx, word [edi + 2]
mov word [ebp - 0x10], cx
push 0x104
lea ecx, [ebp - 0x29c]
mov word [ebp - 0xe], dx
push ecx
lea edx, [ebp - 0x10]
xor eax, eax
push edx
mov word [ebp - 0xc], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x45f885
cmp eax, 0x7a
je 0x45f885
push 0xe
lea eax, [ebp - 0x29c]
push eax
push str.DeviceFloppy
call fcn.0047f911
add esp, 0xc
test eax, eax
je 0x45f7f0
mov dword [ebp - 0x10], 0
test esi, esi
je 0x45f92d
cmp word [edi], 0
je 0x45f92d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.360SANDBOXSHADOW_
push edi
lea ecx, [ebp - 0x4a4]
push ecx
call ebx
lea edx, [ebp - 0x4a4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x45f92d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
mov ecx, dword [ebp - 0x4ac]
call fcn.0045f950
xor esi, esi
push esi
lea edx, [ebp - 0x94]
push str.360SANDBOX_08X_
push edx
mov ecx, 0x40
call fcn.00456340
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push edi
lea ecx, [ebp - 0x4a4]
push ecx
call ebx
mov edx, dword [ebp - 0x4b0]
mov ecx, dword [ebp - 0x4ac]
push edx
lea eax, [ebp - 0x4a4]
push eax
call fcn.0045f950
inc esi
cmp esi, 5
jl 0x45f8e3
test edi, edi
je 0x45f93a
push edi
call fcn.0047ef43
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45f950
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov dword [ebp - 0x66c], ecx
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.004845b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.004845b0
add esp, 0xc
test esi, esi
jne 0x45f9c7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret 8
push 0x4b5094
push edi
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x670], ebx
cmp ebx, 0xffffffff
je 0x45fb16
nop
cmp word [ebp - 0x63c], 0x2e
jne 0x45fa2e
mov ax, word [ebp - 0x63a]
test ax, ax
je 0x45faf9
cmp ax, 0x2e
jne 0x45fa2e
cmp word [ebp - 0x638], 0
je 0x45faf9
push 0x208
lea ecx, [ebp - 0x210]
push 0
push ecx
call fcn.004845b0
add esp, 0xc
lea edx, [ebp - 0x63c]
push edx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x668], 0x10
je 0x45fa7f
push esi
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x66c]
call fcn.0045f950
test eax, eax
je 0x45fb0f
jmp 0x45faf9
xor eax, eax
lea edx, [ebp - 0x694]
push edx
push eax
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x45faf9
mov ecx, dword [ebp - 0x678]
push 1
push 0
push 0
push ecx
call fcn.004866d0
mov ecx, dword [ebp - 0x674]
xor ebx, ebx
add eax, ecx
adc edx, ebx
add dword [esi], eax
mov ebx, dword [ebp - 0x670]
adc dword [esi + 4], edx
lea edx, [ebp - 0x668]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45fa00
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret 8
Function at 0x45fb70
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a263b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c9614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.00414640
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], eax
lea ebx, [esi + 0x54]
mov dword [ebp - 4], edi
push ebx
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
call fcn.0042e370
mov dword [esi + method.IFontIconCBImpl_class_CStatusPage_.virtual_0], vtable.IFontIconCBImpl_class_CStatusPage_.0
mov dword [esi], vtable.CStatusPage.0
mov dword [esi + 0x2c], vtable.CStatusPage.1.0
mov dword [esi + 0x50], vtable.CStatusPage.2.0
mov dword [ebx], vtable.CStatusPage.3.0
mov dword [esi + method.IFontIconCBImpl_class_CStatusPage_.virtual_0], vtable.CStatusPage.4.0
mov edx, dword [0x4cdb0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4cdb0c
call eax
add eax, 0x10
mov dword [esi + 0x1c0], eax
mov ecx, 0x41
mov word [esi + 0x1c8], cx
mov edx, ecx
mov ecx, 4
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
push ecx
mov word [esi + 0x1ca], dx
lea eax, [esi + 0x1a8]
push eax
mov dword [esi + 0x1cc], edi
lea edx, [ebp - 0x14]
push edx
mov dword [esi + 0x1d0], edi
push str.SB_ClearSize
push 0x4b3ff4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi + 0x1d4], 1
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1c4], edi
mov dword [eax], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x460a00
Capabilities:
Enumerate disk volumes
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x21c], esi
mov word [ebp - 0x210], ax
call fcn.004845b0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1c4], edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
jne 0x460a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460aa0
sub eax, edx
mov ecx, 0x5c
sar eax, 1
cmp word [ebp - 0x210], cx
jne 0x460bcd
cmp word [ebp - 0x20e], cx
jne 0x460bcd
cmp word [ebp - 0x20c], 0x3f
jne 0x460bcd
cmp word [ebp - 0x20a], cx
jne 0x460bcd
cmp word [ebp + eax*2 - 0x212], cx
jne 0x460bcd
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
call fcn.0045f740
test eax, eax
je 0x460bcd
mov edx, dword [ebp - 0x218]
add dword [esi + 0x1b0], edx
mov eax, dword [ebp - 0x214]
push edi
adc dword [esi + 0x1b4], eax
push edi
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x460bcd
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x214]
xor eax, eax
add esi, ebx
adc edi, ecx
mov edx, esi
or edx, edi
je 0x460b9e
push eax
push 0x64
push ecx
push ebx
call fcn.004866d0
push edi
push esi
push edx
push eax
call fcn.00486660
test eax, eax
jne 0x460ba7
mov ecx, dword [ebp - 0x214]
or ebx, ecx
je 0x460ba7
mov eax, 1
mov ecx, dword [ebp - 0x21c]
xor edi, edi
mov esi, ecx
cmp dword [ecx + 0x1c4], eax
jae 0x460bcd
mov dx, word [ecx + 0x1ca]
mov dword [ecx + 0x1c4], eax
mov word [ecx + 0x1c8], dx
mov ebx, dword [ebp - 0x22c]
push 0x208
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x460a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x460ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push str.SB_State
push 0x4b3ff4
mov ebx, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x218], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x218], 0
je 0x460ffd
push str.ipc_sbmon.dll
push 0x4cfd70
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [0x4d21d4], bl
jne 0x460f86
or dword [0x4d21d4], ebx
call fcn.00454be0
push 0x4a67a0
call fcn.0047edbf
add esp, 4
lea eax, [ebp - 0x210]
mov esi, 0x4d21d8
call fcn.00454ca0
test byte [0x4d21d4], bl
jne 0x460fb6
or dword [0x4d21d4], ebx
call fcn.00454be0
push 0x4a67a0
call fcn.0047edbf
add esp, 4
mov eax, dword [0x4d21f4]
test eax, eax
je 0x460ff7
push ebx
call eax
add esp, 4
test eax, eax
jne 0x460ff7
mov byte [edi + 0x1d4], bl
test byte [0x4d21d4], bl
jne 0x460fef
or dword [0x4d21d4], ebx
call fcn.00454be0
push 0x4a67a0
call fcn.0047edbf
add esp, 4
mov dword [0x4d21e4], ebx
jmp 0x461004
mov byte [ebp - 0x214], bl
mov byte [edi + 0x1d4], 0
cmp byte [edi + 0x1d4], 0
jne 0x461037
test byte [0x4d21d4], bl
jne 0x46102d
or dword [0x4d21d4], ebx
call fcn.00454be0
push 0x4a67a0
call fcn.0047edbf
add esp, 4
mov dword [0x4d21e4], 2
mov ecx, dword [ebp - 0x214]
movzx edx, byte [edi + 0x1d4]
push ecx
push 0
push edx
push edi
call fcn.00461060
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x469050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4d1ea0], 0
push esi
mov esi, eax
jne 0x4691f8
push 0x4d1ea4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4d1ea0], 0
je 0x46908a
push 0x4d1ea4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret
push edi
xor ecx, ecx
push ecx
push 0x28
push 0x4d1a88
xor eax, eax
push ecx
mov dword [0x4d1c90], 0
mov dword [0x4d1e9c], 0
mov word [0x4d1a88], ax
mov word [0x4d1c94], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4690db
push str.:windows_
push 0x4d1a88
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x46915d
xor edi, edi
call fcn.0046ce80
test al, al
jne 0x4691ec
test esi, esi
je 0x4691ec
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x46914d
test eax, eax
je 0x46914d
lea edx, [ebp - 4]
push edx
push 8
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46914d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x4d1a88
push ecx
mov dword [ebp - 8], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x469143
mov edi, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.00468a30
test edi, edi
je 0x4691ec
push 0x4d1a88
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x4d1a88
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469170
push 0x104
sub eax, edx
push 0x4d1c94
sar eax, 1
push 0x4d1a88
mov dword [0x4d1c90], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4691a4
cmp eax, 0x104
jb 0x4691ac
xor eax, eax
mov word [0x4d1c94], ax
push 0x4d1c94
push 0x4d1a88
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4691c9
xor ecx, ecx
mov word [0x4d1c94], cx
mov eax, 0x4d1c94
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4691d1
sub eax, edx
sar eax, 1
mov dword [0x4d1e9c], eax
mov byte [0x4d1ea0], 1
push 0x4d1ea4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469270
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x46931b
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x4692a5
push eax
call fcn.0047ff1e
add esp, 4
push esi
call fcn.0047fde5
add esp, 4
mov dword [edi + 0x20c], eax
test eax, eax
je 0x46931b
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46931b
mov eax, dword [edi + 0x20c]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push str.VarFileInfoTranslation
push eax
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46931b
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x208
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4694b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004845b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x469507
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
push str.ntdll.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4694f7
push str.RtlGetVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret

Function at 0x469550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004845b0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x4695a6
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x4695a8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x469770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4697f8
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push 0x4aa7c0
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4697d2
sub eax, edx
sar eax, 1
je 0x4697fa
cmp word [esi + eax*2 - 2], 0x5c
je 0x4697fa
mov edx, 0x5c
mov word [esi + eax*2], dx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46c720
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0011
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4c9614]
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
xor esi, esi
xor eax, eax
mov byte [ebp - 0x251], 0
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], esi
mov word [ebp - 0x24c], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x218], cx
call fcn.004845b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x46c7fa
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46c7b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea esi, [ebp - 0x250]
call fcn.00403640
cmp dword [ebp - 0x23c], 0
jne 0x46c7fa
cmp dword [ebp - 0x238], 8
jb 0x46c7f3
mov edx, dword [ebp - 0x24c]
push edx
call fcn.0047e6e0
add esp, 4
xor al, al
jmp 0x46c91b
call fcn.00469670
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x46c818
call fcn.004696f0
test al, al
je 0x46c892
push str.Shcore.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.004034e0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x46c84e
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x46c86e
push str.SetProcessDpiAwareness
push eax
call ebx
test eax, eax
je 0x46c86e
push 1
call eax
test eax, eax
sete byte [ebp - 0x251]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], esi
jb 0x46c889
mov eax, dword [ebp - 0x230]
push eax
call fcn.0047e6e0
add esp, 4
cmp byte [ebp - 0x251], 0
jne 0x46c8fd
push str.User32.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.004034e0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x46c8c8
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x46c8e6
push str.SetProcessDPIAware
push eax
call ebx
test eax, eax
je 0x46c8e6
call eax
test eax, eax
setne byte [ebp - 0x251]
cmp dword [ebp - 0x21c], esi
jb 0x46c8fd
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.0047e6e0
add esp, 4
cmp dword [ebp - 0x238], 8
jb 0x46c915
mov edx, dword [ebp - 0x24c]
push edx
call fcn.0047e6e0
add esp, 4
mov al, byte [ebp - 0x251]
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.0047e6eb
mov esp, ebp
pop ebp
ret

Function at 0x46ce80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004845b0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x46d9d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a018d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [0x4cdb0c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4cdb0c
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.004845b0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46daec
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46da60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00403ad0
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.004845b0
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4b6990
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x46daec
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46dac1
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00403ad0
lea eax, [ebp - 0x21c]
jmp 0x46db1a
mov edx, dword [0x4cdb0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4cdb0c
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov ebx, 1
mov byte [ebp - 4], 1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov eax, dword [eax]
sub eax, 0x10
call fcn.00403850
add eax, 0x10
or ebx, 2
mov dword [edi], eax
mov dword [ebp - 4], 0
test bl, 1
je 0x46db5a
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x476840
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4c9614]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0047a3d0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.0047a470
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0047e6eb
add esp, 0x68
ret