joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100efa3
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push dword [eax + 0x14]
lea eax, [ebp - 0x24]
push 0x100a220
push 0x10
push eax
xor ebx, ebx
call fcn.0100a5fc
add esp, 0x10
test eax, eax
jl 0x100f00b
lea eax, [ebp - 0x28]
push eax
push 2
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f00b
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100f002
mov bl, 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 4

Function at 0x100f7e9
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push eax
push 1
xor ebx, ebx
push ebx
push 0x100a1b0
mov dword [esi], 2
push 0x80000002
mov dword [edi], 0x65
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
cmp eax, ebx
mov dword [ebp - 0x80], eax
jl 0x100f98f
push 4
pop eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100a178
push ebx
push dword [ebp - 0x74]
mov dword [ebp - 0x70], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call ebx
push eax
call fcn.0100a2af
test eax, eax
jl 0x100f986
xor eax, eax
inc eax
cmp dword [ebp - 0x70], eax
jne 0x100f986
mov dword [esi], eax
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
mov dword [edi], 0x64
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100bc94
push 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x64
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x100f986
cmp dword [ebp - 0x6c], 1
jne 0x100f986
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push 0x100bcc0
push eax
call sub.msvcrt.dll_swscanf_s
add esp, 0x14
cmp eax, 3
jne 0x100f986
lea eax, [ebp - 0x94]
push eax
push 0x800
push 1
mov dword [ebp - 0x94], 0xc
call dword [sym.imp.KERNEL32.dll_GetNLSVersion]
test eax, eax
je 0x100f986
push 4
pop eax
cmp dword [ebp - 0x84], eax
jne 0x100f986
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x90]
jne 0x100f986
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x8c]
ja 0x100f986
and dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100f9a4
push 0
push dword [ebp - 0x74]
call ebx
test eax, eax
je 0x101a371
and dword [esi], 0
and dword [edi], 0
Function at 0x100faf8
Capabilities:
Create directory

Disassembly:
push 0x144
mov eax, 0x10409bc
call fcn.010030e2
mov eax, ecx
mov ebx, dword [ebp + 0x9c]
and dword [ebp - 4], 0
test ebx, ebx
je 0x100fb1a
mov byte [ebx], 0
mov ecx, dword [eax + 4]
push 2
call fcn.01011a52
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.0100ecc1
lea eax, [ebp - 0xa8]
push eax
call fcn.0100fba2
push dword [ebp - 0xa4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
and dword [ebp - 0x140], 0
mov byte [ebp - 4], 1
call esi
test eax, eax
je 0x101b9ae
push dword [ebp - 0xa4]
mov byte [ebp - 4], 2
call esi
test eax, eax
je 0x101ba48
lea ecx, [ebp - 0xa8]
call fcn.01007e75
lea ecx, [ebp + 8]
call fcn.01007e75
mov eax, dword [ebp - 0x140]
call fcn.01003122
ret 0x98
push dword [ebp - 0xa4]
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov edi, eax
mov eax, edi
sub eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
sar eax, 1
push eax
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.01003b7b
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x13c]
call fcn.01014445
push dword [ebp - 0x138]
call esi
test eax, eax
jne 0x101ba1d
push eax
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101ba1d
cmp dword [ebp - 0x140], eax
jl 0x101ba1d
call fcn.0100f26b
mov dword [ebp - 0x140], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
lea ecx, [ebp - 0x13c]
mov edi, eax
call fcn.01007e75
test edi, edi
je 0x100fb68
cmp word [edi], 0
je 0x100fb68
jmp 0x101b9bc
test ebx, ebx
je 0x101ba4f
mov byte [ebx], 1
push 0
push dword [ebp - 0xa4]
call fcn.010323f4
jmp 0x100fb7c
Function at 0x100ff94
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x83c
mov eax, 0x10412f4
call fcn.01002325
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x828], ebx
cmp ebx, eax
je 0x101006f
cmp word [ebx], ax
je 0x101006f
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
push eax
mov esi, 0x1010080
push esi
call edi
mov ecx, ebx
lea edx, [ecx + 2]
mov bx, word [ecx]
inc ecx
inc ecx
test bx, bx
jne 0x100ffd4
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + eax + 0x104]
lea ecx, [ebp - 0x824]
call fcn.0100a2e2
and dword [ebp - 4], 0
push ebx
push ebx
lea ecx, [ebp - 0x824]
call fcn.0100fa34
push eax
push esi
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x824]
call fcn.0101008f
mov eax, dword [ebp - 0x824]
push 0xffffffffffffffff
push dword [ebp - 0x818]
lea ecx, [ebp - 0x824]
push 0x101007c
call dword [eax + 0x10]
mov eax, dword [ebp - 0x824]
push 0xffffffffffffffff
push dword [ebp - 0x818]
lea ecx, [ebp - 0x824]
push dword [ebp - 0x828]
call dword [eax + 0x10]
push dword [ebp - 0x820]
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x101c916
lea ecx, [ebp - 0x824]
call fcn.0100a304
xor eax, eax
call fcn.01002362
ret 4
push 0x8000ffff
lea ecx, [ebp - 0x848]
call fcn.010255a9
mov esi, eax
lea edi, [ebp - 0x838]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1045724
lea eax, [ebp - 0x838]
push eax
movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll__CxxThrowException

Function at 0x1010ba9
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01010c7d
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1010c4b
cmp dword [ebp - 0x94], 5
jb 0x1010c1e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1010c68
call fcn.0100fcba
test eax, eax
jl 0x101b6df
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret
cmp dword [ebp - 0x88], 1
je 0x101b6c7
jmp 0x1010c1e
cmp dword [ebp - 0x90], 0
jbe 0x1010c1e
jmp 0x1010c1a
cmp dword [ebp - 0x94], 4
ja 0x1010c1a
je 0x1010c5a
jmp 0x1010c1e
mov byte [0x104bb74], 1
jmp 0x1010c3c
Function at 0x10114c9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1011540
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101152b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1011530
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102030b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
cmp dword [ebp - 8], 4
jne 0x1011522
cmp dword [ebp - 0xc], 1
jne 0x1011522
inc esi
jmp 0x1011522

Function at 0x1016286
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x104a040], 0
je 0x1016814
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002376
leave
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10162aa
lea eax, [ebp - 0x20c]
push eax
push 0x1011f04
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x101ff21
mov byte [0x104a040], 1
jmp 0x10162a8
call fcn.0100f26b
jmp 0x10162aa

Function at 0x101663a
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x101664b
mov eax, dword [eax]
mov dword [esi + 0x48], eax
inc dword [esi + 0x48]
call fcn.01016668
test eax, eax
jl 0x101e69a
mov ecx, esi
pop esi
jmp fcn.01005bea
pop esi
ret
Function at 0x10171ef
Capabilities:
Get disk information

Disassembly:
push 0x228
mov eax, 0x10437c1
call fcn.01002325
mov ebx, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea ecx, [ebp - 0x1f8]
call fcn.01008ac0
push dword [esi + 0x10]
xor edi, edi
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 4], edi
call fcn.01008ac0
push ebx
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 1
call fcn.01003e4b
mov ebx, dword [ebp - 0x1ec]
mov eax, dword [ebx - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 2
call fcn.0100323e
movzx eax, ax
cmp ax, 0x2a
je 0x101ea4a
cmp ax, 0x5c
je 0x101726b
cmp ax, 0x2f
jne 0x101ea5e
lea ecx, [ebp - 0x234]
call fcn.01003876
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x1ec]
push eax
mov byte [ebp - 4], 3
call fcn.01016ec5
xor esi, esi
cmp eax, edi
je 0x101ea79
cmp eax, 1
jne 0x1017364
xor esi, esi
push edi
lea ecx, [ebp - 0x1e8]
inc esi
call fcn.010039f1
push ebx
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 4
call fcn.01003c73
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.01012577
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x208]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x1f0]
call fcn.01003eac
push 3
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 5
call fcn.01007a54
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 6
call fcn.01003ffb
mov ecx, dword [ebp - 0x1fc]
add ecx, 0xfffffff0
call fcn.01002400
push 0xa
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x1f0]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, edi
jne 0x101ea8b
mov ecx, dword [ebp - 0x1f0]
add ecx, 0xfffffff0
call fcn.01002400
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 3
call fcn.010035fc
push ebx
lea ecx, [ebp - 0x1f0]
call fcn.01008ac0
push esi
push dword [ebp - 0x1f0]
mov byte [ebp - 4], 7
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f8]
call fcn.010173e1
mov dword [ebp - 0x1ec], eax
cmp eax, 0x80070005
je 0x101ea92
push dword [ebp - 0x1f0]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x234]
call fcn.010023c1
lea ecx, [ebx - 0x10]
call fcn.01002400
push dword [ebp - 0x1f4]
call esi
push dword [ebp - 0x1f8]
call esi
mov eax, dword [ebp - 0x1ec]
call fcn.01002362
ret 4
mov ebx, dword [ebx - 0xc]
push 1
dec ebx
push ebx
lea ecx, [ebp - 0x1ec]
call fcn.010080bb
jmp 0x101ea6e
push 0x1002de8
lea ecx, [ebp - 0x1ec]
call fcn.010122e5
mov ebx, dword [ebp - 0x1ec]
jmp 0x101726b
cmp dword [ebp - 0x220], edi
jne 0x1017364
inc esi
jmp 0x1017364
xor esi, esi
jmp 0x1017347
mov dword [ebp - 0x1ec], edi
jmp 0x101739d
Function at 0x1018c3b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x2001f
push edi
push ecx
xor esi, esi
push eax
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.01017747
mov ebx, eax
cmp ebx, esi
jne 0x101e000
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1018ceb
cmp eax, esi
jne 0x101e016
push edi
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x210]
call fcn.01019a49
cmp eax, esi
je 0x1018c91
jmp 0x101e016
lea ecx, [ebp - 0x210]
call fcn.01003c55
lea ecx, [ebp - 0x210]
call fcn.01003c55
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 0xc
lea ecx, [ebp - 0x210]
call fcn.01003c55
push ebx
call fcn.0100a2af
jmp 0x1018d03
push eax
call fcn.0100a2af
mov esi, eax
jmp 0x1018ceb
Function at 0x1018edb
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x10436d1
call fcn.01001630
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push 0x2001f
push dword [0x104b7f4]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], edi
call fcn.01003c19
lea eax, [ebp - 0x20]
push eax
push 0x1011ebc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], edi
call fcn.01002f88
cmp eax, edi
je 0x1018fdf
mov ecx, dword [ebx + 0x3c]
push dword [ecx]
call fcn.01007a94
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x1018fbc
call sub.SHELL32.dll_SHGetKnownFolderPath
cmp eax, edi
jl 0x1018fdf
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.01003eac
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.01007d69
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], edi
je 0x1018fcc
mov ecx, dword [ebx + 0x3c]
lea eax, [ebp - 0x14]
push eax
call fcn.01007a33
mov esi, eax
cmp dword [esi + 0x2c], edi
je 0x1018f7b
cmp dword [esi + 4], 2
jne 0x1018f7b
push edi
mov ecx, esi
call fcn.010073f0
mov eax, dword [eax]
push 0x1011f20
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1018f7b
jmp 0x101e9e8
lea ecx, [ebp - 0x4c]
call fcn.010027b4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01002400
lea ecx, [ebp - 0x2c]
call fcn.01003c55
call fcn.01001600
ret
push 1
mov ecx, esi
call fcn.010073f0
push eax
lea ecx, [ebp - 0x6c]
call fcn.01007d69
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.01007dc7
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.010027b4
cmp esi, edi
je 0x101ea21
or dword [ebp - 0x10], 1
jmp 0x101ea25
or dword [ebp - 0x10], 2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push 0x1011ebc
call fcn.01015a17
jmp 0x1018f7b
Function at 0x1019a49
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push edi
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01017747
mov ebx, eax
cmp ebx, esi
jne 0x101dfd6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x101dfe8
lea ecx, [ebp - 0x214]
call fcn.01003c55
mov ecx, dword [ebp - 0x218]
push edi
push dword [ebp - 0x21c]
call fcn.01019b28
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01003c55
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 8
cmp eax, esi
je 0x1019aad
jmp 0x1019afd
lea ecx, [ebp - 0x214]
call fcn.01003c55
mov eax, ebx
jmp 0x1019b0c
push edi
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01019a49
jmp 0x1019b1d

Function at 0x10250bd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100a1b0
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
test eax, eax
jl 0x1025133
and dword [ebp + 8], 0
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x102513c
push 0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
call fcn.0100a2af
test eax, eax
jl 0x102512a
cmp dword [ebp + 8], 1
jne 0x102512a
mov byte [esi], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret 4

Function at 0x10251a5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x1025220
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
mov esi, eax
test esi, esi
jl 0x1025201
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x1025208
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
call fcn.0100a2af
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1025275
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x414]
push eax
push 9
xor esi, esi
push esi
push 0x10253d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10253a7
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0x410], esi
push esi
jmp 0x1025345
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 2
push 0x10253c8
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1025327
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push 0x1020d4c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1025362
inc dword [ebp - 0x410]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x414]
mov dword [ebp - 0x418], 0x100
call ebx
mov edi, eax
cmp edi, esi
jne 0x102538e
jmp 0x10252d4
push 4
lea eax, [ebp - 0x410]
push eax
push 4
push 0x1020d28
push 0x1020cc0
push 0x80000002
mov dword [ebp - 0x410], 1
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov edi, eax
pop ebx
cmp edi, 0x103
jne 0x1025399
xor edi, edi
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10253b3
cmp edi, 2
je 0x10253b1
cmp edi, 3
jne 0x10253b3
xor edi, edi
push edi
call fcn.0100a2af
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret

Function at 0x102548d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x10
push 0x1020d28
push 0x1020cc0
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10254d6
xor ecx, ecx
inc ecx
test byte [ebp + 8], cl
je 0x10254e4
mov dword [esi], ecx
jmp 0x10254e4
cmp eax, 2
je 0x10254e0
cmp eax, 3
jne 0x10254e4
xor eax, eax
and dword [esi], eax
push eax
call fcn.0100a2af
pop esi
leave
ret 4
Function at 0x1025764
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x6c], 0
push esi
lea eax, [ebp - 0x6c]
push eax
push 0xf003f
push 0
push 0x100a1b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
mov esi, eax
test esi, esi
jl 0x1025833
lea eax, [ebp - 0x78]
push eax
push 0x800
push 1
mov dword [ebp - 0x78], 0xc
call dword [sym.imp.KERNEL32.dll_GetNLSVersion]
test eax, eax
je 0x102581c
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call sub.msvcrt.dll_memset
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push dword [ebp - 0x74]
push 4
push 0x100bcc0
push 0x32
push eax
call fcn.0100a5fc
mov esi, eax
add esp, 0x24
test esi, esi
jl 0x102582a
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push 0x100bc94
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x1025822
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a2af
mov esi, eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret

Function at 0x1025882
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
cmp dword [0x104a36c], ebx
je 0x10258f4
mov al, byte [0x104a370]
cmp al, 4
jae 0x10258a1
cmp al, bl
jne 0x10258f4
mov eax, dword [0x104a358]
mov ecx, dword [0x104a35c]
mov edx, 0x200
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x10258f4
mov eax, dword [0x104a360]
push edi
mov edi, dword [0x104a364]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x10258f3
cmp edx, edi
jne 0x10258f3
push dword [ebp + 8]
push 0x1025990
push dword [0x104a2d4]
push dword [0x104a2d0]
call fcn.01036d4b
pop edi
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x100a1b0
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
mov esi, eax
cmp esi, ebx
jl 0x1025973
cmp dword [ebp + 8], 1
jne 0x1025950
call fcn.01025764
mov esi, eax
cmp esi, ebx
jl 0x1025973
push 0x100f9a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
je 0x1025946
cmp eax, 3
jne 0x1025948
xor eax, eax
push eax
call fcn.0100a2af
mov esi, eax
cmp esi, ebx
jl 0x1025973
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0x100a178
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
call fcn.0100a2af
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x1025981
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 4