joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ff85
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
cmp esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x101fff4
lea eax, [ebp + 8]
push eax
push 0x20019
push edi
push 0x1001978
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101fff4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x100195c
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101ffeb
test byte [ebp - 4], bl
je 0x101ffeb
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01024185
test eax, eax
jne 0x1020019
cmp esi, edi
mov eax, 0x1001938
jne 0x102000b
mov eax, 0x100191c
push dword [ebp + 0x14]
push esi
push esi
push eax
push dword [ebp + 0xc]
call fcn.0101f8fc
push dword [ebp + 0x14]
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101f8fc
cmp esi, edi
je 0x102003e
push 0xd
push ebx
push esi
push 0x10018fc
push dword [ebp + 0xc]
call fcn.0101f8fc
push dword [ebp - 8]
push esi
call fcn.0101fc96
cmp esi, edi
pop edi
pop esi
pop ebx
jne 0x1020053
call fcn.0101fa44
leave
ret 0x10

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x10200a0
call fcn.0101f456
call fcn.0101f28b
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x102009a
call sub.iertutil.dll_Ordinal_37
call sub.iertutil.dll_Ordinal_33
call dword [sym.imp.SHELL32.dll_SHFlushSFCache]
cmp dword [ebp + 8], edi
mov eax, 0x1001a94
mov ebx, eax
je 0x1020143
call fcn.0101f1eb
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 0x1001a7c
push 0x1001a28
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
push 0x114
lea eax, [ebp - 0x118]
push edi
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 0x1020137
cmp dword [ebp - 0x114], 6
jb 0x1020120
mov ebx, 0x10019fc
jmp 0x1020137
cmp dword [ebp - 0x114], 5
jne 0x1020137
cmp dword [ebp - 0x110], 2
jne 0x1020137
mov ebx, 0x10019d4
push edi
push ebx
push 0x10019bc
push dword [ebp + 8]
jmp 0x102014b
push edi
push eax
push 0x10019bc
push edi
call fcn.0101ff85
cmp dword [ebp + 8], edi
pop edi
pop ebx
je 0x102015c
call fcn.0101f3a3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023399
leave
ret 4
Function at 0x102048a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
or eax, 3
cmp dword [ebp + 0xc], esi
je 0x10204cb
lea ebx, [ebp - 0x214]
push ebx
lea ebx, [ebp - 0x210]
push ebx
push esi
push eax
push esi
push esi
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x10204dc
lea ebx, [ebp - 0x210]
push ebx
push eax
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x102055c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call fcn.0102037f
cmp dword [ebp + 0xc], esi
je 0x1020520
cmp dword [ebp + 0x10], esi
jne 0x1020513
cmp eax, esi
je 0x1020550
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
jmp 0x1020541
cmp dword [ebp + 0x10], esi
jne 0x102053b
cmp eax, esi
jne 0x1020550
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1020550
push esi
push 0x10013f0
push 1
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 0xc

Function at 0x10205a6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x90]
push ecx
push 1
xor esi, esi
push esi
push eax
push SysStringLen
mov dword [ebp - 0x88], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1020675
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x90]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x1020675
push esi
lea eax, [ebp - 0x88]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp - 0x88]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1020669
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
push 1
push esi
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 8
Function at 0x10206cb
Capabilities:
Delete registry value
Get file attributes
Set file attributes
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
jne 0x10206e0
push esi
call fcn.01021f1c
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x102070b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp + 0x10], 0
je 0x10206fe
and eax, 0xfffffff9
jmp 0x1020701
or eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1020746
cmp dword [ebp + 0x10], 0
je 0x1020726
push dword [ebp + 8]
push 0x1001f98
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x1020746
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push dword [ebp + 8]
push 0x1001f98
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop esi
pop ebp
ret 0xc

Function at 0x10207a2
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01021f1c
mov esi, eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret 8
Function at 0x1020905
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
push 0
push 0x10
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
test eax, eax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0x104
je 0x1020996
push 0x10020c8
lea eax, [ebp - 0x20c]
push eax
call fcn.0102086a
mov eax, dword [0x102737c]
test eax, eax
jne 0x1020960
call fcn.0101f0f9
push ebx
lea ecx, [ebp - 0x414]
push ecx
push 0x10
push eax
call edi
test eax, eax
je 0x1020996
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10020c8
lea eax, [ebp - 0x20c]
push eax
call fcn.0102086a
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x1002090
push 0x1002018
push SysStringLen
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x10209ed
mov eax, dword [0x102737c]
test eax, eax
jne 0x10209dc
call fcn.0101f0f9
push ebx
lea ecx, [ebp - 0x414]
push ecx
push 0x11
push eax
call edi
test eax, eax
je 0x1020a25
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
test eax, eax
je 0x1020a25
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10020c8
lea eax, [ebp - 0x20c]
push eax
call fcn.0102086a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret

Function at 0x1020a39
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
push 0x1002170
push 0x80000001
mov edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1020a92
push 0x40
push 0x1002130
push 1
push esi
push 0x100211c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1020a89
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1020c56
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
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
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
push 0x1002834
push 1
xor esi, esi
push esi
push 0x1002844
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1020e3a
cmp dword [ebp + 0x18], esi
push edi
mov edi, 0x104
je 0x1020cdc
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push 0x10023a8
push edi
push eax
call fcn.0101f7b7
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push 0x1002378
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x1020e2d
cmp dword [ebp - 0x210], esi
je 0x1020d24
mov eax, dword [ebp - 0x218]
push dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x1020e2d
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x1002824
push eax
call dword [ecx]
test eax, eax
jl 0x1020e2d
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x214]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x1020e21
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1020d84
push dword [ebp + 0x14]
push 0x1002338
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
jmp 0x1020e21
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x210], esi
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
jl 0x1020e21
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1002328
push dword [ebp - 0x210]
mov dword [ebp - 0x214], esi
call dword [sym.imp.SHELL32.dll_SHBindToParent]
test eax, eax
jl 0x1020e15
mov eax, dword [0x102737c]
cmp eax, esi
jne 0x1020ddb
call fcn.0101f0f9
push edi
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x20c]
push edx
push dword [ebp - 0x214]
push esi
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 0x14
Function at 0x10213cf
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push esi
push edi
push eax
push 0x1001d70
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0101f7b7
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
mov edi, 0x1001f10
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80000001
push esi
mov dword [ebp - 0x214], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x210]
and eax, dword [ebp + 0xc]
push 4
or eax, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret 0xc

Function at 0x102147e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x10214d1
push 0
push dword [esi + edi*4]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10214cb
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push 0
push dword [ebp + 8]
push eax
call fcn.0102124a
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x102149f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret 0x10

Function at 0x10214e6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x61c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10215fb
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x1001b74
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
push edi
push 2
lea eax, [ebp - 0x20c]
push eax
call fcn.0102124a
mov eax, dword [0x102737c]
cmp eax, edi
jne 0x1021553
call fcn.0101f0f9
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x2db
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
call fcn.0102124a
mov eax, dword [0x102737c]
test eax, eax
jne 0x10215b3
call fcn.0101f0f9
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x2dd
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
call fcn.0102124a
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01023399
leave
ret 4
Function at 0x102168b
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jl 0x102171b
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x102171b
mov eax, dword [0x102737c]
test eax, eax
jne 0x10216cc
call fcn.0101f0f9
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x2da
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push eax
call fcn.0102124a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023399
leave
ret 8

Function at 0x102172e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x10]
jl 0x1021775
push esi
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1021775
push 1
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102124a
cmp dword [ebp + 0xc], 0
jl 0x102179d
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1021794
test esi, esi
je 0x1021794
call fcn.01020b13
test al, al
je 0x102179d
push esi
push dword [ebp + 0xc]
call fcn.0102168b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret 0xc

Function at 0x10217b1
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 ebx
push 2
pop ebx
push ebx
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x102189e
push esi
call fcn.01020571
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.01021623
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1021812
push 1
push esi
push 3
lea eax, [ebp - 0x20c]
push eax
call fcn.0102124a
push esi
push 1
push 0
call fcn.0102172e
test esi, esi
jne 0x1021883
push esi
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], 0x10
mov dword [ebp - 0x210], 0x19
call fcn.0102147e
push 0x17
pop esi
push 1
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 6
call fcn.0102147e
push 1
push 1
lea eax, [ebp - 0x210]
push eax
push 4
mov dword [ebp - 0x210], esi
call fcn.0102147e
call fcn.0102160f
push 0x1002460
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 4
Function at 0x10226fb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 2
push edi
push edi
push edi
push 0x1002590
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x1022782
push dword [ebp + 0xc]
push 0x1002568
push edi
push dword [ebp - 4]
call fcn.0102435f
mov esi, eax
cmp esi, edi
jl 0x1022777
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push 0x1002580
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x1022769
xor esi, esi
jmp 0x1022777
jle 0x1022775
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1022790
jle 0x102278e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x102337f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10256a8
call fcn.01023864
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1027700
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1023131
cmp eax, esi
jne 0x1023124
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1023134
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102310b
xor esi, esi
inc esi
mov eax, dword [0x10276fc]
cmp eax, esi
jne 0x1023147
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1023176
mov eax, dword [0x10276fc]
test eax, eax
jne 0x1023170
mov dword [0x10276fc], esi
push 0x10012c4
push 0x10012b8
call fcn.0102306d
pop ecx
pop ecx
test eax, eax
je 0x1023176
jmp 0x102329a
mov dword [0x10273b0], esi
mov eax, dword [0x10276fc]
cmp eax, esi
jne 0x102319a
push 0x10012b4
push 0x10012ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10276fc], 2
cmp dword [ebp - 0x20], ebx
jne 0x10231a7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1027708], ebx
je 0x10231c8
push 0x1027708
call fcn.010237db
pop ecx
test eax, eax
je 0x10231c8
push ebx
push 2
push ebx
call dword [0x1027708]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x102329a
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1023232
cmp cx, bx
je 0x10231ed
cmp dword [ebp - 0x1c], ebx
jne 0x1023232
movzx ecx, word [eax]
cmp cx, bx
je 0x1023202
cmp cx, 0x20
ja 0x1023202
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10231ed
test byte [ebp - 0x40], 1
je 0x102320e
movzx ecx, word [ebp - 0x3c]
jmp 0x1023211
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10273ac], eax
cmp dword [0x10273a0], ebx
jne 0x1023277
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1023243
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10231d7
cmp dword [0x10273b0], ebx
jne 0x1023285
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10273ac]
jmp 0x10232a6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010238a9
ret
call fcn.010239ae
jmp 0x10230ce

Function at 0x1023750
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1023763
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102375f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1023790
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10237cf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10237c5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10237d1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10237b5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1023c39
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x1023cea
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x1023cea
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1023ce1
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
lea eax, [ebp + 0x10]
push eax
je 0x1023cb9
lea eax, [ebp - 8]
push eax
push 0x10023f8
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1023ce1
cmp dword [ebp + 0x10], ebx
je 0x1023ce1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x1023cdf
lea eax, [ebp - 0xc]
push eax
push 0x10026c4
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1023ce1
cmp dword [ebp + 0x10], ebx
je 0x1023ce1
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [edi], ecx
movzx eax, word [eax + 2]
mov dword [esi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x10