joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408137
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x409
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push 4
push ebx
push 0x1036
push eax
mov dword [ebp + 8], eax
call esi
push 0x7c
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x24], ebx
call fcn.0040d75f
mov dword [ebp - 0x2c], eax
pop ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0x1ae
push eax
push ebx
push 0x101b
mov dword [ebp - 0x34], ebx
push dword [ebp + 8]
call esi
lea eax, [ebp - 8]
mov edi, 0x80000001
push eax
push 0xf003f
push ebx
push 0x404610
push edi
mov dword [ebp - 0x60], 5
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408286
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
jbe 0x408286
inc eax
mov dword [ebp - 0x18], eax
push eax
push 0x404608
lea eax, [ebp - 0x268]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
mov byte [ebp - 0x164], bl
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x268]
push eax
push 0x404610
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [ebp - 0x164]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40827a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1007
push dword [ebp + 8]
call esi
inc dword [ebp - 4]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jb 0x4081fa
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40828e
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x934
push ebx
push esi
push edi
push 0x409
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ebx, eax
push 0
push 0x1004
push ebx
mov dword [ebp - 4], ebx
call esi
mov edi, eax
dec edi
js 0x4082e5
push 0xf000
push edi
push 0x102c
push ebx
call esi
shr eax, 0xc
dec eax
je 0x4082c1
push 0
push edi
push 0x1008
push ebx
call esi
jmp 0x4082c1
mov ebx, 0x404610
mov edi, 0x80000001
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push 0
push 0x1004
push dword [ebp - 4]
call esi
and dword [ebp + 8], 0
mov dword [ebp - 8], eax
test eax, eax
jbe 0x40838b
lea eax, [ebp - 0x934]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], 0x800
push dword [ebp + 8]
push 0x102d
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push eax
push 0x404608
lea eax, [ebp - 0x134]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x31], 0
lea eax, [ebp - 0x934]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push eax
lea eax, [ebp - 0x934]
push eax
lea eax, [ebp - 0x134]
push 1
push eax
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
mov dword [ebp + 8], eax
jb 0x408310
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408425
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x40848d
cmp dword [ebp - 0x90], 5
jne 0x40848d
cmp dword [ebp - 0x8c], 1
jne 0x40848d
lea eax, [ebp - 0x80]
push 0x404650
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x408488
lea eax, [ebp - 0x80]
push 0x404640
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40848d
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4098c9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
push edi
push 0x41f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 2
mov edi, eax
lea ecx, [ebp - 0x10]
pop eax
test ecx, ecx
mov dword [ebp - 0x58], eax
je 0x4098f9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
jmp 0x4098fb
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp + 0x10]
push 0x100e
push edi
call esi
lea eax, [ebp - 0x58]
push eax
push 1
push 0x1019
push edi
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x10], eax
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 8], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
push 0x102d
push edi
call esi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x15c]
push eax
push 0
push 0x14d
push edi
call esi
mov eax, dword [ebp - 8]
push 0x40
sub eax, dword [ebp - 0x10]
push 0x12c
push eax
mov eax, dword [ebp - 0xc]
dec eax
push eax
push dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 1
push 0x14f
push edi
call esi
pop edi
pop esi
leave
ret

Function at 0x40d8d4
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x40d8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d8f9
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x40da59
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x419c74], ebx
je 0x40db01
cmp dword [ebp + 8], ebx
jne 0x40daa6
mov dword [ebp + 8], 0x404c24
push 1
call fcn.0040d9de
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40dafd
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call fcn.0041365d
add esp, 0x18
neg eax
sbb eax, eax
neg eax
jmp 0x40db51
xor eax, eax
jmp 0x40db51
lea eax, [ebp - 0x104]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40db3c
lea eax, [ebp - 0x104]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40db56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 4], 3
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x419c74], ebx
je 0x40dcad
cmp dword [ebp + 8], ebx
jne 0x40dbae
mov dword [ebp + 8], 0x404c24
push 1
call fcn.0040d9de
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40dca9
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa0b]
mov byte [ebp - 0xa0c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa0c]
push 0x7ff
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.00413296
add esp, 0x24
test eax, eax
je 0x40dca9
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40dca9
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xa0c]
push eax
mov edi, dword [esi]
call sub.MSVCRT.dll_strlen
shr eax, 1
cmp edi, eax
pop ecx
jae 0x40dc59
mov eax, edi
jmp 0x40dc68
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
shr eax, 1
push eax
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + 0x10]
call fcn.00417a4d
mov edi, dword [esi]
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
shr eax, 1
add esp, 0x10
cmp edi, eax
jae 0x40dc93
mov eax, edi
jmp 0x40dca2
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
shr eax, 1
push 1
mov dword [esi], eax
pop eax
jmp 0x40dd0a
xor eax, eax
jmp 0x40dd0a
lea eax, [ebp - 0x108]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40dce8
lea eax, [ebp - 0x108]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dd0f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1208
call fcn.00417d20
cmp dword [ebp + 0x14], 0xffe
push ebx
push esi
push edi
jle 0x40dd2f
xor eax, eax
jmp 0x40de61
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
cmp dword [0x419c74], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40de06
cmp dword [ebp + 8], ebx
jne 0x40dd5f
mov dword [ebp + 8], 0x404c24
push 1
call fcn.0040d9de
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40dd28
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1207]
mov byte [ebp - 0x1208], bl
rep stosd dword es:[edi], eax
push dword [ebp + 0x14]
stosw word es:[edi], ax
push dword [ebp + 0x10]
stosb byte es:[edi], al
lea eax, [ebp - 0x1208]
push eax
call fcn.00417aff
lea eax, [ebp - 0x1208]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, eax
je 0x40dd28
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.004133fa
add esp, 0x10
test eax, eax
je 0x40dd28
push 1
pop eax
jmp 0x40de61
lea eax, [ebp - 0x104]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40de41
lea eax, [ebp - 0x104]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40de66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
cmp dword [0x419c74], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
push 1
stosw word es:[edi], ax
stosb byte es:[edi], al
pop eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
je 0x40df0d
cmp dword [ebp + 8], ebx
jne 0x40deaa
mov dword [ebp + 8], 0x404c24
push eax
call fcn.0040d9de
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40df09
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.00413296
add esp, 0x24
neg eax
sbb eax, eax
neg eax
jmp 0x40df6b
xor eax, eax
jmp 0x40df6b
lea eax, [ebp - 0x10c]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40df48
lea eax, [ebp - 0x10c]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40df70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
cmp dword [0x419c74], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40e009
cmp dword [ebp + 8], ebx
jne 0x40dfa8
mov dword [ebp + 8], 0x404c24
push 1
call fcn.0040d9de
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40e005
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.004133fa
add esp, 0x20
neg eax
sbb eax, eax
neg eax
jmp 0x40e073
xor eax, eax
jmp 0x40e073
lea eax, [ebp - 0x104]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40e044
lea eax, [ebp - 0x104]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x40e055
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e078
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
xor esi, esi
cmp dword [0x419c74], esi
stosb byte es:[edi], al
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
je 0x40e166
cmp dword [ebp + 8], esi
jne 0x40e0be
mov dword [ebp + 8], 0x404c24
push 1
call fcn.0040d9de
mov ebx, eax
pop ecx
cmp dword [ebx], esi
je 0x40e162
and byte [ebp - 0x210], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
and byte [ebp - 0x314], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x314]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x314]
push dword [ebp + 0xc]
push eax
push dword [ebx]
call fcn.00413296
add esp, 0x24
test eax, eax
je 0x40e162
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40e162
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [ebp + 0x10]
push 1
mov dword [ecx], eax
pop eax
jmp 0x40e1c4
xor eax, eax
jmp 0x40e1c4
lea eax, [ebp - 0x10c]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x40e1a1
lea eax, [ebp - 0x10c]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e1c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
cmp dword [0x419c74], esi
stosb byte es:[edi], al
je 0x40e29f
cmp dword [ebp + 8], esi
jne 0x40e206
mov dword [ebp + 8], 0x404c24
and byte [ebp - 0x208], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov ebx, 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bec
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
push 1
call fcn.0040d9de
add esp, 0x14
cmp dword [eax], 0
mov dword [ebp + 0x14], eax
je 0x40e29b
and byte [ebp - 0x30c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x30c]
push ebx
push eax
call esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.004133fa
add esp, 0x20
neg eax
sbb eax, eax
neg eax
jmp 0x40e2fa
xor eax, eax
jmp 0x40e2fa
lea eax, [ebp - 0x104]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x40e2da
lea eax, [ebp - 0x104]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e2ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
cmp dword [ebp + 0x28], esi
stosb byte es:[edi], al
je 0x40e336
xor eax, eax
cmp dword [0x419c74], esi
sete al
jmp 0x40e33b
mov eax, dword [0x419c74]
cmp eax, esi
je 0x40e3f0
cmp dword [ebp + 0xc], esi
jne 0x40e34f
mov dword [ebp + 0xc], 0x404c24
push 1
call fcn.0040d9de
mov ebx, eax
pop ecx
cmp dword [ebx], esi
je 0x40e3eb
and byte [ebp - 0x30c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
cmp dword [ebp + 0x20], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, 0x103
stosb byte es:[edi], al
mov dword [ebp + 0x28], edx
jne 0x40e393
lea eax, [ebp - 0x30c]
lea esi, [ebp + 0x28]
mov dword [ebp + 0x20], eax
jmp 0x40e396
mov esi, dword [ebp + 0x24]
and byte [ebp - 0x208], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404c1c
lea eax, [ebp - 0x208]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [esi]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x20]
push dword [eax]
lea eax, [ebp - 0x208]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebx]
call fcn.004131c0
add esp, 0x2c
neg eax
sbb eax, eax
inc eax
jmp 0x40e446
push 1
pop eax
jmp 0x40e446
lea eax, [ebp - 0x104]
push 0x404c08
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x40e42b
lea eax, [ebp - 0x104]
push 0x404be0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHEnumValueA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
push 0x404c3c
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x108]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x108]
push 0
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40e9c4
push 1
pop eax
jmp 0x40e9c9
and byte [edi], 0
xor eax, eax
pop edi
leave
ret
Function at 0x40e9cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and byte [ebp - 0x10c], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x210], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x103
push 0x404c54
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
jne 0x40ea6b
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.0040e950
add esp, 0xc
leave
ret
mov eax, dword [ebp + 0xc]
and byte [eax], 0
xor eax, eax
leave
ret