joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e4de
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
mov dword [ebp - 0x630], 0x20a
cmp edi, ebx
je 0x101e6ea
push 1
push 1
push 0x10021cc
push 0x80000001
mov word [edi], ax
call fcn.0101fa9b
mov esi, eax
cmp esi, ebx
je 0x101e6e8
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x62c]
push eax
push ebx
push 0x1005030
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x1004fcc
test ebx, ebx
je 0x101e5c9
cmp ebx, 2
jne 0x101e6e8
mov dword [ebp - 0x628], 0x1005164
jmp 0x101e628
cmp dword [ebp - 0x62c], 1
je 0x101e5df
cmp dword [ebp - 0x62c], 2
jne 0x101e6e8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x628], ecx
lea ecx, [eax - 1]
cmp ecx, 0x103
ja 0x101e628
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x101e628
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.01007feb
test eax, eax
jl 0x101e6de
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 5
call fcn.0101e3b1
test eax, eax
jne 0x101e657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005128
call fcn.0101f99c
pop ecx
pop ecx
jmp 0x101e6e8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01007fb1
xor ebx, ebx
cmp eax, ebx
jl 0x101e6de
mov eax, dword [ebp - 0x628]
cmp word [eax], 0x5c
je 0x101e687
push esi
push dword [ebp + 0xc]
push edi
call fcn.01007feb
cmp eax, ebx
jl 0x101e6de
push dword [ebp - 0x628]
push dword [ebp + 0xc]
push edi
call fcn.01007feb
cmp eax, ebx
jl 0x101e6de
lea eax, [ebp - 0x624]
push eax
push 0x10050f4
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
cmp eax, ebx
jl 0x101e6de
push 0x93d
push 0x10050b0
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
cmp eax, ebx
jl 0x101e6de
push edi
call fcn.01020317
xor eax, eax
inc eax
jmp 0x101e6ea
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d7d3
leave
ret 8
Function at 0x101f1ac
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x120], 0
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [section..data]
mov esi, section..data
push 2
mov edi, 0x1005268
pop ebx
cmp eax, esi
je 0x101f210
test byte [eax + 0x1c], bl
je 0x101f210
cmp byte [eax + 0x19], 5
jb 0x101f210
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x101f25f
mov eax, dword [section..data]
cmp eax, esi
je 0x101f258
test byte [eax + 0x1c], bl
je 0x101f258
cmp byte [eax + 0x19], bl
jb 0x101f258
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
xor eax, eax
jmp 0x101f30c
cmp dword [ebp - 0x110], ebx
je 0x101f28b
mov eax, dword [section..data]
cmp eax, esi
je 0x101f258
test byte [eax + 0x1c], bl
je 0x101f258
cmp byte [eax + 0x19], 3
jb 0x101f258
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
jmp 0x101f258
cmp dword [ebp - 0x11c], 5
jae 0x101f2ad
mov eax, dword [section..data]
cmp eax, esi
je 0x101f258
test byte [eax + 0x1c], bl
je 0x101f258
cmp byte [eax + 0x19], 3
jb 0x101f258
push edi
push 0xe
jmp 0x101f27e
mov eax, dword [ebp - 8]
test al, 0x40
je 0x101f2c6
xor eax, eax
cmp byte [ebp - 6], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x101f30c
test eax, 0x200
je 0x101f2d2
xor eax, eax
inc eax
jmp 0x101f30c
test bl, al
je 0x101f2da
push 8
jmp 0x101f30b
test al, al
jns 0x101f2e2
push 0x10
jmp 0x101f30b
test eax, 0x400
je 0x101f2f0
mov eax, 0x80
jmp 0x101f30c
cmp byte [ebp - 6], 1
jne 0x101f2fa
mov eax, ebx
jmp 0x101f30c
cmp byte [ebp - 6], 3
je 0x101f309
cmp byte [ebp - 6], bl
jne 0x101f258
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d7d3
leave
ret
Function at 0x101f607
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov eax, dword [section..data]
mov esi, section..data
mov edi, 0x1005394
cmp eax, esi
je 0x101f63f
test byte [eax + 0x1c], 2
je 0x101f63f
cmp byte [eax + 0x19], 5
jb 0x101f63f
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x101f651
push 0x78
pop eax
jmp 0x101f70f
push 0x10053c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x101f69d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x101f70d
test byte [eax + 0x1c], 2
je 0x101f70d
cmp byte [eax + 0x19], 2
jb 0x101f70d
push ebx
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
jmp 0x101f70d
push 0x10053d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x101f6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x101f704
test byte [eax + 0x1c], 2
je 0x101f704
cmp byte [eax + 0x19], 2
jb 0x101f704
push ebx
push edi
push 0x2b
jmp 0x101f6f9
push 1
call eax
test eax, eax
jne 0x101f704
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x101f704
test byte [eax + 0x1c], 2
je 0x101f704
cmp byte [eax + 0x19], 2
jb 0x101f704
push ebx
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101f8f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10051ec
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101f91c
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005420
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101f949
cmp dword [ebp - 0x10], 4
je 0x101f94d
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101f99c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x102926c], 0
jne 0x101f9ec
call fcn.0101f8f1
mov dword [0x1028750], eax
mov dword [0x102926c], 1
cmp dword [0x1028750], 0
jle 0x101fa8a
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0101f960
test eax, eax
jl 0x101fa8a
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101fa1e
sub eax, edx
sar eax, 1
mov ecx, 0x3fd
cmp eax, ecx
jae 0x101fa4e
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101fa3e
sub eax, edx
sar eax, 1
jmp 0x101fa50
mov eax, ecx
add eax, eax
cmp word [ebp + eax - 0x806], 0xa
je 0x101fa7d
push 0xd
pop ecx
mov word [ebp + eax - 0x804], cx
push 0xa
pop ecx
mov word [ebp + eax - 0x802], cx
xor ecx, ecx
mov word [ebp + eax - 0x800], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101d7d3
leave
ret

Function at 0x101fb41
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], 4
mov dword [ebp - 8], esi
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x101fb83
test byte [eax + 0x1c], 2
je 0x101fb83
cmp byte [eax + 0x19], 5
jb 0x101fb83
push 0x1005448
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x101fbcc
mov eax, dword [section..data]
cmp eax, edi
je 0x101fc43
test byte [eax + 0x1c], 2
je 0x101fc43
cmp byte [eax + 0x19], 2
jb 0x101fc43
push ebx
push 0x1005448
push 0xf
jmp 0x101fc38
cmp dword [ebp - 4], 4
je 0x101fc00
mov eax, dword [section..data]
cmp eax, edi
je 0x101fbf9
test byte [eax + 0x1c], 2
je 0x101fbf9
cmp byte [eax + 0x19], 2
jb 0x101fbf9
push 0x1005448
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
mov ebx, 0x3f1
jmp 0x101fc43
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x101fc43
mov eax, dword [section..data]
cmp eax, edi
je 0x101fc43
test byte [eax + 0x1c], 2
je 0x101fc43
cmp byte [eax + 0x19], 2
jb 0x101fc43
push ebx
push 0x1005448
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x101ff4e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x28], 0x10
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x101ff98
test byte [eax + 0x1c], 2
je 0x101ff98
cmp byte [eax + 0x19], 5
jb 0x101ff98
push 0x100575c
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
test esi, esi
jne 0x101ffa4
xor eax, eax
inc eax
jmp 0x102004a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101ffa9
sub eax, edx
sar eax, 1
je 0x101ff9c
mov ecx, esi
mov eax, 0x100576c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101ffe6
test dx, dx
je 0x101ffe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101ffe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x101ffc0
xor eax, eax
jmp 0x101ffeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101ff9c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1020038
mov eax, dword [section..data]
cmp eax, edi
je 0x1020034
test byte [eax + 0x1c], 2
je 0x1020034
cmp byte [eax + 0x19], 2
jb 0x1020034
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x100575c
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
xor eax, eax
jmp 0x102004a
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d7d3
leave
ret 4
Function at 0x10201ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x10201de
test byte [eax + 0x1c], 2
je 0x10201de
cmp byte [eax + 0x19], 5
jb 0x10201de
push 0x100575c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
push 0x25
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x102022d
push dword [ebp + 8]
call fcn.01020100
test eax, eax
jne 0x102030d
mov eax, dword [section..data]
cmp eax, edi
je 0x1020226
test byte [eax + 0x1c], 2
je 0x1020226
cmp byte [eax + 0x19], 2
jb 0x1020226
push 0x100575c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
xor eax, eax
jmp 0x102030d
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1020284
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, edi
je 0x1020309
test byte [ecx + 0x1c], 2
je 0x1020309
cmp byte [ecx + 0x19], 2
jb 0x1020309
push eax
push 0x100575c
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100701e
jmp 0x1020309
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.0102060a
mov dword [ebp - 4], eax
test eax, eax
jne 0x10202be
mov eax, dword [section..data]
cmp eax, edi
je 0x1020309
test byte [eax + 0x1c], 2
je 0x1020309
cmp byte [eax + 0x19], 2
jb 0x1020309
push 0x100575c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
jmp 0x1020309
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x10202d2
cmp eax, ebx
ja 0x10202d2
mov eax, dword [ebp - 4]
jmp 0x102030b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, edi
je 0x1020301
test byte [ecx + 0x1c], 2
je 0x1020301
cmp byte [ecx + 0x19], 2
jb 0x1020301
push eax
push 0x100575c
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100701e
push dword [ebp - 4]
call fcn.010206a2
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x10206be
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [section..data]
mov esi, section..data
mov edi, 0x10057b8
cmp eax, esi
je 0x1020702
test byte [eax + 0x1c], 2
je 0x1020702
cmp byte [eax + 0x19], 5
jb 0x1020702
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
push 0x110
lea eax, [ebp - 0x114]
push 0
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
jne 0x1020766
mov eax, dword [section..data]
cmp eax, esi
je 0x1020762
test byte [eax + 0x1c], 2
je 0x1020762
cmp byte [eax + 0x19], 2
jb 0x1020762
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
xor eax, eax
jmp 0x1020770
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d7d3
leave
ret

Function at 0x1020783
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10057f4
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1020858
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1020847
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1020831
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1020847
push eax
push edi
push dword [ebp - 0x110]
call fcn.01020098
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x102085a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101d7d3
leave
ret 4
Function at 0x101f0f9
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102737c]
test eax, eax
jne 0x101f1b6
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 0x101f1a8
cmp dword [ebp - 0x318], 2
jne 0x101f19e
cmp dword [ebp - 0x324], 6
jae 0x101f19e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1027380]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101f1a8
push 0
push 8
lea eax, [ebp - 0x20c]
push eax
call fcn.01024a6b
cmp eax, dword [0x1027380]
mov dword [0x102737c], eax
jne 0x101f1a8
push eax
call fcn.01024699
jmp 0x101f1a8
mov eax, dword [0x1027380]
mov dword [0x102737c], eax
mov eax, dword [0x102737c]
test eax, eax
jne 0x101f1b6
mov eax, dword [0x1027380]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023399
leave
ret

Function at 0x101f1eb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1027050]
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 0x101f277
push 0x10013f4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101f277
push 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01023c39
mov ecx, dword [ebp - 0x210]
cmp ecx, 0x50000
mov eax, 0x60000
jb 0x101f267
cmp ecx, 0x50032
jae 0x101f26f
push 2
jmp 0x101f279
cmp ecx, 0x50032
jb 0x101f277
cmp ecx, eax
jae 0x101f277
push 3
jmp 0x101f279
push 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop eax
call fcn.01023399
leave
ret
Function at 0x101f3a3
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 0x1001460
push 0x80000001
call edi
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x101f444
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001448
push dword [ebp - 0x10]
call edi
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x101f43b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
mov edi, 0x1001430
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.01024303
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101f8fc
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1027050]
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.0101f30d
test eax, eax
je 0x101fa2e
cmp dword [ebp + 0x14], edi
lea eax, [ebp - 0x20c]
push eax
push esi
je 0x101f9f0
lea eax, [ebp - 0x620]
push eax
call fcn.0101f655
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101f9d5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101f9d5
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 0x101fa2e
test byte [ebp + 0x18], 4
jne 0x101fa2e
lea eax, [ebp - 0x20c]
push eax
push 0x40
push 0xc
push 0xb
push edi
call fcn.0101f818
jmp 0x101fa2e
lea eax, [ebp - 0x414]
push eax
call fcn.0101f655
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101fa2e
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.01023399
leave
ret 0x14
Function at 0x101fa44
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1027050]
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, 0x1001708
push ebx
push SysStringLen
call edi
test eax, eax
jne 0x101fbf8
lea eax, [ebp - 0x624]
push eax
push 0x20019
push esi
push 0x10016f0
push dword [ebp - 0x630]
call edi
test eax, eax
jne 0x101fbec
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.0101f655
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 0x101fbe0
mov ebx, 0x10016ec
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 0x101fb4d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push esi
push 0x10016cc
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 0x101fba4
lea eax, [ebp - 0x620]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x101fba4
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 0x101fb00
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.01023399
leave
ret