Function at 0x4027f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x47d348]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x310]
push 0x5c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
lea ecx, [ebp - 0x108]
add esp, 0x14
mov edx, 0x104
lea esi, [eax + 1]
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x402889
mov al, byte [esi + ecx]
test al, al
je 0x402889
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x402870
test edx, edx
lea eax, [ecx - 1]
push 0x104
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x20c]
mov esi, str.SoftwareBearScreenShot
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4028d9
mov al, byte [esi + ecx]
test al, al
je 0x4028d9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4028c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ecx - 1]
test edx, edx
push 0
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x328]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocStringLen
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402a6f
push 0x104
lea eax, [ebp - 0x310]
push eax
push 1
push 0
push str.InstallPathFile
push dword [ebp - 0x328]
call ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.InstallFilename
push dword [ebp - 0x328]
call ebx
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x402960
sub esi, ecx
cmp esi, 4
jle 0x4029ce
cmp byte [ebp + esi - 0x10c], 0x2e
jne 0x4029ce
movsx eax, byte [ebp + esi - 0x10b]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
push eax
call edi
add esp, 4
cmp eax, 0x65
jne 0x4029ce
movsx eax, byte [ebp + esi - 0x10a]
push eax
call edi
add esp, 4
cmp eax, 0x78
jne 0x4029ce
movsx eax, byte [ebp + esi - 0x109]
push eax
call edi
add esp, 4
cmp eax, 0x65
jne 0x4029ce
add esi, 0xfffffffc
cmp esi, 0x104
jae 0x402bb7
mov byte [ebp + esi - 0x108], 0
lea eax, [ebp - 0x108]
push 0x45af9c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x108]
push 0x45afa0
push eax
call edi
add esp, 0x14
xor esi, esi
test eax, eax
je 0x402a51
cmp esi, 5
jge 0x402a28
lea eax, [ebp - 0x32c]
inc esi
push eax
push 0x45afa0
push 0
call edi
add esp, 0xc
mov dword [ebp + esi*4 - 0x324], eax
test eax, eax
jne 0x402a04
cmp esi, 2
jle 0x402a51
mov edx, dword [ebp - 0x320]
cmp byte [edx], 0
je 0x402a51
mov ecx, dword [ebp - 0x31c]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a41
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
jmp 0x402a58
push 7
push str.000000
push 1
push 0
push str.Channel
push dword [ebp - 0x328]
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x20c]
mov esi, str.SoftwareSystem
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x402ab9
mov al, byte [esi + ecx]
test al, al
je 0x402ab9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x402aa0
test edx, edx
lea eax, [ecx - 1]
push 0
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x328]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 7
push str.yxsoft
push 1
push 0
push str.normalFilter
push dword [ebp - 0x328]
call ebx
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x20c]
mov esi, str.SoftwareBearScreenshot
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x402b49
mov al, byte [esi + ecx]
test al, al
je 0x402b49
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x402b30
test edx, edx
lea eax, [ecx - 1]
push 0
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x328]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 0xf
push str.BearScreenshot
push 1
push 0
push str.normalFilter
push dword [ebp - 0x328]
call ebx
mov eax, dword [ebp - 0x328]
pop edi
pop esi
pop ebx
test eax, eax
je 0x402ba4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0044df71
mov esp, ebp
pop ebp
ret
call fcn.0044e109
int3