joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513813
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005126fa
and dword [ebp - 4], 0
cmp dword [0x51eef0], 0
mov ebx, eax
jne 0x5138c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x513975
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x513975
push eax
call fcn.00512688
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51eef0], eax
call esi
push eax
call fcn.00512688
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x51eef4], eax
call esi
push eax
call fcn.00512688
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51eef8], eax
call esi
push eax
call fcn.00512688
pop ecx
mov dword [0x51ef00], eax
test eax, eax
je 0x5138c4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00512688
pop ecx
mov dword [0x51eefc], eax
mov eax, dword [0x51eefc]
cmp eax, ebx
je 0x51391c
cmp dword [0x51ef00], ebx
je 0x51391c
push eax
call fcn.00512703
push dword [0x51ef00]
mov esi, eax
call fcn.00512703
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51391c
test edi, edi
je 0x51391c
call esi
test eax, eax
je 0x513913
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x513913
test byte [ebp - 0xc], 1
jne 0x51391c
or dword [ebp + 0x10], 0x200000
jmp 0x513955
mov eax, dword [0x51eef4]
cmp eax, ebx
je 0x513955
push eax
call fcn.00512703
pop ecx
test eax, eax
je 0x513955
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x513955
mov eax, dword [0x51eef8]
cmp eax, ebx
je 0x513955
push eax
call fcn.00512703
pop ecx
test eax, eax
je 0x513955
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51eef0]
call fcn.00512703
pop ecx
test eax, eax
je 0x513975
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x513977
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5156a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51c4a8]
jne 0x5156b2
repz ret
jmp fcn.00516dd5
Function at 0x420710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x420732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x420739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x420728
mov eax, 1
add ebx, ebx
jne 0x42074b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420740
jne 0x42075c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420740
xor ecx, ecx
sub eax, 3
jb 0x420770
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4207e2
mov ebp, eax
add ebx, ebx
jne 0x42077b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4207ac
inc ecx
add ebx, ebx
jne 0x420798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42078d
jne 0x4207a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42078d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4207cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4207bd
jmp 0x42072e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4207cc
add edi, ecx
jmp 0x42072e
pop esi
mov edi, esi
mov ecx, 0x80d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4207ea
cmp byte [edi], 0xd
jne 0x4207ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4207ef
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420867
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2193c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42081c
mov ecx, edi
jns 0x42084b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x219f4]
or eax, eax
je 0x420861
mov dword [ebx], eax
add ebx, 4
jmp 0x420839
call dword [esi + 0x219f8]
popal
jmp section.UPX0
Function at 0x1027b48
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
push esi
push 2
push 5
mov dword [ebp - 0x214], esi
call fcn.01034068
test eax, eax
jne 0x1027bd9
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1027bd9
lea eax, [ebp - 0x210]
push eax
push 0xd
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1027bb3
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp dword [ebp - 0x210], esi
je 0x1027bcd
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
push eax
xor ebx, ebx
xor esi, esi
inc ebx
push ebx
push esi
push 0x10024d8
mov edi, 0x80000002
push edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027d38
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
push 0x10024b8
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027d2a
cmp dword [ebp - 0x3c], ebx
jne 0x1027d2a
lea eax, [ebp - 0x2c]
push eax
push 0x10024b0
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], esi
jne 0x1027da1
cmp dword [ebp + 8], esi
je 0x1027da1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10023f8
push edi
call ebx
test eax, eax
jne 0x1027d81
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push esi
push 0x10023e0
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1002360
push edi
call ebx
test eax, eax
jne 0x1027da1
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 4
Function at 0x10280c0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1028142
cmp dword [ebp + 0x10], esi
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
je 0x1028112
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10280f4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
jmp 0x1028130
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1028112
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push 0x1002828
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x1002850
push 0x80000001
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x102819d
xor eax, eax
jmp 0x1028274
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
mov esi, 0x100283c
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x10281fc
cmp dword [ebp - 0x224], 1
jne 0x10281fc
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10281e9
sub eax, edx
sar eax, 1
cmp eax, 0x14
jae 0x102825f
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x102825f
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x102825f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1028233
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01031a01
leave
ret
Function at 0x1028286
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x10024d8
push 0x80000002
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10282d7
xor eax, eax
jmp 0x10283ae
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
mov esi, 0x10028b0
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x1028336
cmp dword [ebp - 0x224], 1
jne 0x1028336
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1028323
sub eax, edx
sar eax, 1
cmp eax, 0x14
jae 0x1028399
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1028399
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1028399
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x102836d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01031a01
leave
ret

Function at 0x10283c0
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1002948
mov esi, 0x80000002
push esi
call edi
mov ebx, 0x10028c8
push ebx
push esi
call edi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 3
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x102840e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1028415
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1002a10
push 0x80000001
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1028535
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], 0x104
push esi
jmp 0x1028518
inc dword [ebp - 0x21c]
lea eax, [ebp - 0x214]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1028500
push 0x10029f4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x10029d8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x10029bc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x102848d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret
Function at 0x1028547
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 0x624]
push ecx
xor eax, eax
mov ebx, 0x2001f
push ebx
push eax
push 0x1002b50
mov edi, 0x80000001
push edi
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
call esi
test eax, eax
je 0x1028599
and dword [ebp - 0x624], 0
lea eax, [ebp - 0x628]
push eax
push ebx
push 0
push 0x1002ad8
push edi
call esi
test eax, eax
jne 0x10286e5
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x62c]
push ecx
push eax
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x414]
mov ebx, 0x104
mov esi, 0x208
push ecx
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x62c], 1
push eax
jmp 0x10286c9
inc dword [ebp - 0x620]
cmp dword [ebp - 0x620], 0x3e8
jae 0x10286d9
cmp dword [ebp - 0x624], 0
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x634], esi
je 0x1028668
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x624]
mov dword [ebp - 0x638], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102869e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call fcn.010326f3
test eax, eax
jne 0x102869e
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec dword [ebp - 0x620]
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x620]
push dword [ebp - 0x628]
call edi
test eax, eax
je 0x1028609
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x624], 0
pop edi
pop esi
pop ebx
je 0x10286fd
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01031a01
leave
ret
Function at 0x102870e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 8]
push eax
push 3
xor esi, esi
push esi
push 0x10024d8
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], esi
call ebx
test eax, eax
mov edi, 0x1002bd0
jne 0x10287aa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10287a1
cmp dword [ebp - 0x10], 4
jne 0x10287a1
cmp dword [ebp - 4], 0xd2af9
je 0x102878b
cmp dword [ebp - 4], 0xc00d2afb
jne 0x10287a1
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 3
push esi
push 0x10024d8
push 0x80000001
call ebx
test eax, eax
jne 0x1028816
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102880d
cmp dword [ebp - 0x10], ebx
jne 0x102880d
cmp dword [ebp - 4], 0xd2af9
je 0x10287f9
cmp dword [ebp - 4], 0xc00d2afb
jne 0x102880d
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1028820
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 0x10], esi
mov edi, esi
call fcn.010363d6
test eax, eax
je 0x1028844
mov edi, 0x101
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1002c08
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10288a2
push 4
pop edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1002bec
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1028899
cmp dword [ebp - 8], edi
jne 0x1028899
cmp dword [ebp - 0xc], esi
sete al
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x1028928
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x10289ab
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1002db8
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10289ab
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push 0x1002d98
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102898c
cmp dword [ebp - 8], 1
jne 0x102898c
inc edi
jmp 0x10289a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002d5c
push 4
call fcn.01036b8b
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 8

Function at 0x10289b7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
je 0x1028a1d
push edi
push esi
lea eax, [ebp - 4]
push eax
push esi
xor edi, edi
inc edi
push edi
push esi
push esi
push esi
push 0x1002db8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1028a1c
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
push 0x1002e10
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1028a13
cmp dword [ebp - 8], edi
jne 0x1028a13
mov esi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1028bdb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], ebx
jne 0x1028cad
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01034382
test eax, eax
je 0x1028dc6
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
push 0x1002f30
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x1028dc6
lea eax, [ebp - 0x20c]
push eax
call fcn.010326f3
test eax, eax
je 0x1028dc6
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.01032aa3
test eax, eax
jl 0x1028dc6
cmp edi, ebx
je 0x1028dbc
mov eax, dword [ebp - 0x210]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x214]
jmp 0x1028da3
cmp eax, 3
jne 0x1028ce0
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01034382
test eax, eax
je 0x1028dc6
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
push 0x1002f14
jmp 0x1028d40
cmp eax, 2
jne 0x1028d17
push 0x103
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1028dc6
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
push 0x1002efc
push 0x104
jmp 0x1028d41
cmp eax, 1
jne 0x1028dc6
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1028dc6
push 0x1002ee4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x1028dc6
lea eax, [ebp - 0x20c]
push eax
call fcn.010326f3
test eax, eax
je 0x1028dc6
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.01032aa3
test eax, eax
jl 0x1028dc6
cmp edi, ebx
je 0x1028dbc
mov eax, dword [ebp - 0x214]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x210]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1002ec4
push dword [ebp + 0x10]
push edi
call fcn.01028b64
add esp, 0x1c
mov dword [ebp - 0x218], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0xc