joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fe3d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46e2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi], 0x468a10
mov dword [esi + 4], 0x468a30
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
push 8
mov dword [esi + 0x10], 0
call fcn.00447196
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x1c], ecx
call fcn.00447196
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 3
mov word [eax], cx
mov byte [ebp - 4], 2
push 8
mov dword [esi + 0x28], ecx
call fcn.00447196
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov dword [esi + 0x4c], ecx
mov byte [ebp - 4], 4
push 8
mov dword [esi + 0x50], ecx
call fcn.00447196
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
add esp, 0x10
mov dword [esi + 0x58], 3
mov word [eax], cx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 5
call fcn.00424160
mov byte [ebp - 4], 6
push 8
mov dword [esi + 0xec], 0
call fcn.00447196
add esp, 4
mov dword [esi + 0xec], eax
xor ecx, ecx
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 3
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4259a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46e2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x425add
lea esp, [esp]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x425ad8
inc eax
cmp eax, 0x40
jb 0x425ab6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446168
mov esp, ebp
pop ebp
ret
inc edx
cmp edx, esi
jl 0x425ab0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00446168
mov esp, ebp
pop ebp
ret
Function at 0x425bc0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ff10
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x46e2f0]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x46e2f0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
lea esi, [ecx + 0x80]
mov dword [esp + 0x18], 0
push esi
push 0x467ba8
mov dword [esp + 0x34], esi
call dword [0x467ba8]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x425c4b
push 0x46cda8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
call fcn.0044c29d
mov dword [esp + 0x18], esi
mov dword [esp + 0x78], 0
lea esi, [edi + 0x80]
push dword [esp + 0xc]
push dword [esp + 0x2c]
push esi
call fcn.00448c70
mov eax, dword [0x467bbc]
add esp, 0xc
mov dword [edi], eax
mov edx, esi
mov dword [edi + 8], 0
mov ecx, edi
mov dword [edi + 0xc], 0
push dword [esp + 0xc]
mov dword [edi + 0x20], 0x6a09e667
mov dword [edi + 0x24], 0xbb67ae85
mov dword [edi + 0x28], 0x3c6ef372
mov dword [edi + 0x2c], 0xa54ff53a
mov dword [edi + 0x30], 0x510e527f
mov dword [edi + 0x34], 0x9b05688c
mov dword [edi + 0x38], 0x1f83d9ab
mov dword [edi + 0x3c], 0x5be0cd19
call fcn.00408770
xorps xmm0, xmm0
mov byte [esp + 0x48], 0
lea edx, [esp + 0x48]
movq qword [esp + 0x59], xmm0
mov ecx, edi
mov dword [esp + 0x61], 0
movdqu xmmword [esp + 0x49], xmm0
mov word [esp + 0x65], 0
mov byte [esp + 0x67], 0
call fcn.00408820
push dword [esp + 0x10]
lea eax, [esp + 0x6c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], 0
call fcn.004436f0
push dword [esp + 0x2c]
mov byte [esp + 0x7c], 1
push 0
push edi
call fcn.0044fb50
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
call fcn.00425b30
cmp dword [eax + 0x14], 0x10
jb 0x425d53
mov eax, dword [eax]
cmp dword [esp + 0x44], 0x10
movdqu xmm0, xmmword [eax]
mov ecx, dword [esp + 0x10]
movdqu xmmword [ecx], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movdqu xmmword [ecx + 0x20], xmm0
movdqu xmm0, xmmword [eax + 0x30]
movdqu xmmword [ecx + 0x30], xmm0
jb 0x425d90
push dword [esp + 0x30]
call fcn.00444e70
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x425da1
push eax
call fcn.00444e70
add esp, 4
push edi
push 0x467ba8
mov dword [esp + 0x80], 0xffffffff
call dword [0x467bac]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00446168
mov esp, ebp
pop ebp
ret 8
Function at 0x425de0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46e2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x214], ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, edx
lea eax, [ebp - 0x20a]
push eax
call fcn.0044fb50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x425ec8
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x425e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x425e91
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.00447196
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00446168
mov esp, ebp
pop ebp
ret
Function at 0x4437a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46009a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x46e2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0045b58e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x443846
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00448490
push 0x46cec8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0044c29d
push edi
push esi
call fcn.0045a4cc
add esp, 8
mov eax, esi
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.00446168
mov esp, ebp
pop ebp
ret 4

Function at 0x443dd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x46e2f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00442f90
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00443d00
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x443e41
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.00448490
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x443e6a
push dword [esp + 0xc]
call fcn.00444e70
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45443c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0044bbf8
mov dword [ebp - 0x14], eax
cmp dword [0x47085c], esi
jne 0x45452f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4544bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45460f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x45460f
push 0x466090
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45460f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47085c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x470860], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x470864], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47086c], eax
test eax, eax
je 0x45452c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x470868], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x454554
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x454547
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x454569
push 4
pop eax
jmp 0x454611
cmp dword [ebp - 0x14], esi
je 0x454569
push dword [0x47085c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x45454e
mov eax, dword [0x470868]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4545c7
cmp dword [0x47086c], edi
je 0x4545c7
push eax
call ebx
push dword [0x47086c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4545c7
test eax, eax
je 0x4545c7
call ecx
test eax, eax
je 0x4545bc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4545bc
test byte [ebp - 8], 1
jne 0x4545c7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4545f7
mov eax, dword [0x470860]
cmp eax, edi
je 0x4545f4
push eax
call ebx
test eax, eax
je 0x4545f4
call eax
mov esi, eax
test esi, esi
je 0x4545f4
mov eax, dword [0x470864]
cmp eax, edi
je 0x4545f4
push eax
call ebx
test eax, eax
je 0x4545f4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47085c]
call ebx
test eax, eax
je 0x45460f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x454611
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446168
mov esp, ebp
pop ebp
ret
Function at 0x101f6e4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102837c]
test eax, eax
jne 0x101f7a1
push 0x11c
push eax
lea eax, [ebp - 0x328]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101f793
cmp dword [ebp - 0x318], 2
jne 0x101f789
cmp dword [ebp - 0x324], 6
jae 0x101f789
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1028380]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101f793
push 0
push 8
lea eax, [ebp - 0x20c]
push eax
call fcn.010254d6
mov dword [0x102837c], eax
cmp eax, dword [0x1028380]
jne 0x101f793
push eax
call fcn.01025385
jmp 0x101f793
mov eax, dword [0x1028380]
mov dword [0x102837c], eax
mov eax, dword [0x102837c]
test eax, eax
jne 0x101f7a1
mov eax, dword [0x1028380]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023d2d
leave
ret

Function at 0x101f7d6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x101f862
push 0x1001424
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101f862
push 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010245d9
mov ecx, dword [ebp - 0x210]
mov eax, 0x60000
cmp ecx, 0x50000
jb 0x101f852
cmp ecx, 0x50032
jae 0x101f85a
push 2
jmp 0x101f864
cmp ecx, 0x50032
jb 0x101f862
cmp ecx, eax
jae 0x101f862
push 3
jmp 0x101f864
push 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop eax
call fcn.01023d2d
leave
ret
Function at 0x101f98f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push esi
push 4
pop ebx
push ebx
push esi
push esi
push esi
push 0x1001490
push 0x80000001
call edi
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x101fa30
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001478
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x101fa27
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
mov edi, 0x1001460
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 4], 0x100000
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.0101f6c5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101ff4e
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x214
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x628]
push edi
push eax
mov dword [ebp - 0x62c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101f8f8
test eax, eax
je 0x1020080
lea eax, [ebp - 0x20c]
push eax
push esi
cmp dword [ebp + 0x14], edi
je 0x1020042
lea eax, [ebp - 0x620]
push eax
call fcn.0101fc52
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1020027
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1020027
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x624], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x40
or eax, 4
mov dword [ebp - 0x418], eax
push edi
lea eax, [ebp - 0x62c]
push eax
push edi
call sub.ADVPACK.dll_ExecuteCabW
jmp 0x1020080
test byte [ebp + 0x18], 4
jne 0x1020080
lea eax, [ebp - 0x20c]
push eax
push 0x40
push 0xc
push 0xb
push edi
call fcn.0101fe6a
jmp 0x1020080
lea eax, [ebp - 0x414]
push eax
call fcn.0101fc52
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1020080
push edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push edi
push edi
push eax
push dword [ebp - 0x630]
lea eax, [ebp - 0x414]
push eax
push edi
call sub.ADVPACK.dll_RunSetupCommandW
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01023d2d
leave
ret 0x14
Function at 0x1020096
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x630]
push eax
push 0x20019
xor esi, esi
push esi
mov ebx, 0x1001738
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x102024a
lea eax, [ebp - 0x624]
push eax
push 0x20019
push esi
push 0x1001720
push dword [ebp - 0x630]
call edi
test eax, eax
jne 0x102023e
mov eax, 0x104
push ebx
push eax
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x62c], esi
call fcn.0101fc52
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1020232
mov ebx, 0x100171c
lea eax, [ebp - 0x620]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
call edi
test eax, eax
jne 0x102019f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push esi
push 0x10016fc
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10201f6
lea eax, [ebp - 0x620]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x10201f6
push dword [ebp - 0x620]
push esi
push esi
call sub.ADVPACK.dll_RegRestoreAllW
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x62c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x62c]
mov dword [ebp - 0x628], 0x104
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1020152
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01023d2d
leave
ret
Function at 0x10205d6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp esi, edi
je 0x1020645
lea eax, [ebp + 8]
push eax
push 0x20019
push edi
push 0x10019a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020645
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x100198c
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102063c
test byte [ebp - 4], bl
je 0x102063c
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01024b29
test eax, eax
jne 0x102066a
mov eax, 0x1001968
cmp esi, edi
jne 0x102065c
mov eax, 0x100194c
push dword [ebp + 0x14]
push esi
push esi
push eax
push dword [ebp + 0xc]
call fcn.0101ff4e
push dword [ebp + 0x14]
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101ff4e
cmp esi, edi
je 0x102068f
push 0xd
push ebx
push esi
push 0x100192c
push dword [ebp + 0xc]
call fcn.0101ff4e
push dword [ebp - 8]
push esi
call fcn.010202e8
cmp esi, edi
pop edi
pop esi
pop ebx
jne 0x10206a4
call fcn.01020096
leave
ret 0x10

Function at 0x10206ad
Capabilities:
Check os version
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
cmp dword [ebp + 8], ebx
je 0x10206f1
call fcn.0101fa42
call fcn.0101f876
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x10206eb
call sub.iertutil.dll_Ordinal_37
call sub.iertutil.dll_Ordinal_33
call dword [sym.imp.SHELL32.dll_SHFlushSFCache]
mov eax, 0x1001af4
mov edi, eax
cmp dword [ebp + 8], ebx
je 0x10207a9
call fcn.0101f7d6
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.msvcrt.dll__time64]
pop ecx
push 2
push 8
lea eax, [ebp - 0x120]
push eax
push 0xb
push 0x1001adc
push 0x1001a88
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
push 0x114
lea eax, [ebp - 0x118]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x102079d
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x1020798
jne 0x1020777
cmp dword [ebp - 0x110], 1
jae 0x1020798
cmp eax, 6
jb 0x1020783
mov edi, 0x1001a5c
jmp 0x102079d
cmp eax, 5
jne 0x102079d
cmp dword [ebp - 0x110], 2
jne 0x102079d
mov edi, 0x1001a34
jmp 0x102079d
mov edi, 0x1001a04
push ebx
push edi
push 0x10019ec
push dword [ebp + 8]
jmp 0x10207b1
push ebx
push eax
push 0x10019ec
push ebx
call fcn.010205d6
cmp dword [ebp + 8], ebx
pop edi
pop ebx
je 0x10207c2
call fcn.0101f98f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023d2d
leave
ret 4