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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x497d8d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 5
push str.Preparing_process_startup_line...
call fcn.00489420
mov ecx, dword [esi]
add ecx, 8
call fcn.004b32f0
mov ecx, dword [esi]
push eax
add ecx, 8
call fcn.004b32e0
push eax
call fcn.0049e320
mov eax, dword [0x52fe14]
push eax
call fcn.0049e290
mov ecx, dword [esi]
add esp, 0xc
mov dword [ebp - 0x68], ecx
mov ecx, dword [0x52fe2c]
push edi
call fcn.004098e0
test al, al
jne 0x497def
mov edx, dword [0x52fe14]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x497def
mov eax, dword [0x52fe14]
jmp 0x497df5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x6bb8]
mov dword [esi + 0xb7c], edi
cmp eax, edi
je 0x497e37
mov ecx, dword [eax + 0x38]
cmp ecx, edi
je 0x497e1e
cmp ecx, 0xffffffff
je 0x497e1e
push ecx
mov dword [eax + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x6bb8]
cmp eax, edi
je 0x497e37
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi + 0x6bb8], edi
mov ecx, esi
mov dword [esi + 0x495c], edi
mov byte [esi + 0x4960], 0
call fcn.0048dc70
push 0x44
lea ecx, [ebp - 0xcc]
push edi
push ecx
mov dword [esi + 0xb78], 1
call fcn.004c9b50
add esp, 0xc
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xa0], 0xb
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x4e5ea4]
mov word [ebp + eax - 0x558], cx
add eax, 2
cmp cx, di
jne 0x497e80
mov ecx, dword [esi + 0x41e4]
lea edx, [ebp - 0x558]
push ebx
mov dword [ebp - 0xc0], edx
call fcn.0047b4c0
mov ecx, dword [esi + 0x41e4]
cwde
mov dword [ebp - 0xac], eax
call fcn.0047b4d0
movsx ecx, ax
mov dword [ebp - 0xa8], ecx
mov ecx, dword [esi + 0x41e4]
push 3
call fcn.0047b1a0
test eax, eax
je 0x497f29
mov edx, esi
mov ecx, dword [edx + 0x41e4]
call fcn.0047b510
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push 0x20
add edi, edi
call ebx
mov esi, eax
add esi, edi
push 2
add esi, esi
call ebx
add eax, esi
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x41e4]
call fcn.0047b540
push 0x21
lea edi, [eax + eax*2]
call ebx
mov esi, eax
add esi, edi
push 4
add esi, esi
call ebx
jmp 0x497f6a
mov ebx, esi
mov ecx, dword [ebx + 0x41e4]
call fcn.0047b510
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
push 0x20
add esi, esi
call edi
mov ecx, dword [ebx + 0x41e4]
add eax, esi
add eax, eax
mov dword [ebp - 0xb4], eax
call fcn.0047b540
push 0x21
lea ebx, [eax + eax*2]
call edi
mov esi, eax
add esi, ebx
push 4
add esi, esi
call edi
add eax, esi
mov dword [ebp - 0xb0], eax
mov eax, dword [0x52fe30]
xor ecx, ecx
cmp byte [eax + 0x11641], cl
setne cl
xor esi, esi
push esi
mov dword [ebp - 0x24], esi
mov word [ebp - 0x9c], cx
movzx edx, byte [eax + 0x11641]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
mov dword [eax + 0x4934], edx
xor eax, eax
push str.ConsoleConEmu
push SysReAllocString
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esi + 0x10]
cmp eax, esi
jne 0x49808f
mov eax, 0x3e7
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x88], str.HistoryBufferSize
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0x32
mov dword [ebp - 0x78], str.NumberOfHistoryBuffers
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x20
lea esi, [ebp - 0x80]
lea ebx, [ecx - 0xe]
mov edi, dword [esi - 8]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49806a
mov eax, dword [ebp - 0x18]
mov ecx, 4
cmp dword [ebp - 0x3c], ecx
jne 0x498053
cmp dword [ebp - 0x28], ecx
jne 0x498053
cmp eax, dword [esi - 4]
jb 0x498053
cmp eax, dword [esi]
jbe 0x498085
mov ecx, dword [esi - 4]
cmp eax, ecx
jae 0x49805f
mov dword [ebp - 0x18], ecx
jmp 0x498070
mov ecx, dword [esi]
cmp eax, ecx
jbe 0x49806a
mov dword [ebp - 0x18], ecx
jmp 0x498070
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x20]
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0x10
sub ebx, 1
jne 0x498018
jmp 0x4980a3
push esi
push esi
push esi
push eax
push str.Failed_to_create_open_registry_key_HKCUConsoleConEmu
call fcn.004263e0
add esp, 0x14
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.004921b0
movzx edx, byte [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
or dword [ebp - 0xa0], 0x10
movzx eax, bl
shl edx, 4
or edx, eax
mov eax, dword [ebp - 0x20]
xor esi, esi
mov dword [ebp - 0xa4], edx
cmp eax, esi
je 0x4980f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], esi
lea ecx, [edi + 0x3fbc]
call fcn.00406ca0
test al, al
jne 0x49810d
mov ecx, dword [edi + 0x3fc0]
mov dword [ebp - 0xc0], ecx
mov eax, dword [edi + 0x3d4c]
cmp eax, esi
je 0x49811c
cmp word [eax], si
jne 0x49812a
mov ecx, dword [0x52fe34]
push 1
push esi
call fcn.0046a740
mov edx, 0x601
cmp word [0x510260], dx
mov dword [ebp - 0x50], eax
sete al
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], al
mov byte [ebp - 0xd], 0
test al, al
je 0x4982a8
mov eax, dword [edi + 0x950]
test eax, eax
jne 0x4982f4
push 8
push 1
call fcn.0044c490
mov esi, eax
add esp, 8
mov dword [edi + 0x950], esi
test esi, esi
je 0x4982a4
push 0xc
push 0x100
call fcn.0044c490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4982a4
mov dword [esi + 4], 0x100
mov byte [ebp - 0x30], 1
mov ecx, dword [0x52fe2c]
call fcn.0040a280
mov byte [ebp - 0xd], al
mov eax, dword [edi + 0x3d4c]
test eax, eax
je 0x4981c1
cmp word [eax], 0
mov byte [ebp - 0x19], 0
jne 0x4981c5
mov byte [ebp - 0x19], 1
mov dword [ebp - 0x38], 1
lea esp, [esp]
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x64]
push edx
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
push ebx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0xd0]
push edx
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0xd4]
push eax
push ecx
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x50]
push edx
mov ecx, edi
call fcn.00492790
xor ebx, ebx
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x4985f1
mov ecx, edi
call fcn.004898e0
test al, al
je 0x498268
mov eax, dword [edi + 0x944]
mov dword [edi + 0x3d38], 2
cmp eax, ebx
je 0x49825a
cmp eax, 0xffffffff
je 0x49825a
push eax
mov dword [edi + 0x944], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push str.Restart_console_failed
mov ecx, edi
call fcn.00489420
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x498270
mov ecx, dword [ebp - 0x2c]
sub eax, edx
sar eax, 1
cmp ecx, ebx
je 0x498321
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x498290
sub ecx, esi
sar ecx, 1
jmp 0x498326
mov byte [ebp - 0x30], 0
mov esi, dword [edi + 0x950]
test esi, esi
je 0x4982ce
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x4982ce
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi], 0
mov eax, dword [edi + 0x950]
test eax, eax
je 0x4981ad
push eax
call fcn.0044c4f0
add esp, 4
mov dword [edi + 0x950], 0
jmp 0x4981ad
mov ecx, dword [eax]
test ecx, ecx
je 0x49819f
mov eax, dword [eax + 4]
test eax, eax
je 0x49819f
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.004c9b50
add esp, 0xc
jmp 0x49819f
mov ecx, 0x10
cmp byte [ebp - 0x19], 0
lea edi, [ecx + eax + 0x78]
je 0x498356
mov ecx, dword [0x52fe34]
call fcn.0045c4a0
cmp eax, ebx
je 0x498356
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x498342
sub eax, edx
sar eax, 1
add eax, 0x64
jmp 0x498358
xor eax, eax
push 2
push 0x400
add edi, eax
call fcn.0044c490
add esp, 8
push ebx
push 0x400
mov esi, eax
mov eax, dword [ebp - 0x34]
push esi
push 0x400
push eax
push ebx
push 0x1200
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4983a1
mov ecx, dword [ebp - 0x34]
push ecx
push str.Unknown_system_error:_0x_x
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4983a6
sub eax, edx
sar eax, 1
add edi, eax
lea edx, [edi + 0xff]
push 2
push edx
call fcn.0044c490
mov esi, eax
mov eax, dword [ebp - 0x34]
add esp, 8
mov ebx, 0x10030
cmp eax, 5
je 0x4983df
push eax
push str.Cant_create_new_console__command_execution_failed__code__i__r_n
jmp 0x4983e6
push 5
push str.Cant_create_new_console__check_your_antivirus__code__i___r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x40]
add esp, 0xc
push eax
push edi
push esi
call fcn.004017b0
push 0x4e77f4
push edi
push esi
call fcn.004017b0
mov ecx, dword [ebp - 0x24]
push ecx
push edi
push esi
call fcn.004017b0
push str._r_n_r_nWorking_folder:_r_n_
push edi
push esi
call fcn.004017b0
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
jne 0x49842c
mov eax, str._USERPROFILE_
push eax
push edi
push esi
call fcn.004017b0
push 0x4e587c
push edi
push esi
call fcn.004017b0
cmp dword [ebp - 0x38], 1
jne 0x498490
mov eax, esi
lea edx, [eax + 2]
jmp 0x498450
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498450
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0xa
je 0x498473
push 0x4e77f4
push edi
push esi
call fcn.004017b0
push 0x4e77f4
push edi
push esi
call fcn.004017b0
push str.Choose_your_shell_
push edi
push esi
call fcn.004017b0
mov ebx, 0x10034
mov ecx, dword [0x52fe2c]
xor edi, edi
push edi
push edi
call fcn.00409d20
push eax
push ebx
push esi
call fcn.004262f0
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x44], ebx
cmp esi, edi
je 0x4984bc
push esi
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x4984cc
push eax
call fcn.0044c4f0
add esp, 4
cmp ebx, 6
jne 0x4986f7
lea ecx, [ebp - 0x358]
call fcn.00479450
mov ebx, dword [ebp - 0x14]
push edi
lea esi, [ebx + 0x3d38]
push esi
lea ecx, [ebp - 0x358]
mov dword [ebp - 4], edi
call fcn.004794f0
mov ecx, dword [0x52fe2c]
lea edx, [ebp - 0x358]
push edx
mov dword [ebp - 0xd8], 3
call fcn.0040a200
cmp eax, 0x5f4
je 0x498523
mov esi, 2
jmp 0x498570
mov eax, dword [ebx + 0x3d4c]
cmp eax, edi
je 0x49853c
push eax
call fcn.0044c4f0
add esp, 4
mov dword [ebx + 0x3d4c], edi
mov eax, dword [ebx + 0x3d50]
cmp eax, edi
je 0x498555
push eax
call fcn.0044c4f0
add esp, 4
mov dword [ebx + 0x3d50], edi
push edi
lea eax, [ebp - 0x358]
push eax
mov ecx, esi
call fcn.004794f0
mov ecx, dword [ebx + 0x3d4c]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x358]
mov dword [ebp - 4], 0xffffffff
call fcn.004797e0
cmp esi, 6
jne 0x4986fa
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x38]
cmp eax, edi
je 0x4985a1
push eax
call fcn.0044c4f0
add esp, 4
mov dword [ebp - 0x24], edi
push edi
push 1
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, ebx
call fcn.004921b0
mov ebx, dword [ebp - 0x28]
cmp bl, 0xf
jbe 0x4985c9
cmp byte [ebp - 0x18], 0xf
ja 0x4985e2
movzx eax, byte [ebp - 0x18]
or dword [ebp - 0xa0], 0x10
movzx ecx, bl
shl eax, 4
or eax, ecx
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0x38], 2
jle 0x4981d0
mov edi, dword [ebp - 0x14]
xor ebx, ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x498601
push eax
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x498617
cmp eax, 0xffffffff
je 0x498617
push eax
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x60], ebx
call fcn.0048acf0
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x64], ebx
je 0x498686
push ebx
mov ecx, edi
call fcn.0048da00
test eax, eax
je 0x498671
mov esi, dword [edi + 0x950]
mov eax, dword [esi]
mov dword [esi + 4], ebx
cmp eax, ebx
je 0x498658
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi], ebx
mov eax, dword [edi + 0x950]
cmp eax, ebx
je 0x498671
push eax
call fcn.0044c4f0
add esp, 4
mov dword [edi + 0x950], ebx
cmp byte [ebp - 0xd], 0
je 0x498686
mov ecx, dword [0x52fe2c]
call fcn.0040a2c0
mov byte [ebp - 0xd], 0
cmp dword [edi + 0x3d64], 2
je 0x4986a0
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00490250
mov ecx, esi
call fcn.0048a180
cmp byte [ebp - 0xd], 0
pop ebx
je 0x4986b2
mov ecx, dword [0x52fe2c]
call fcn.0040a2c0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp esi, ecx
je 0x4986c6
cmp dword [eax + 0x940], ecx
je 0x4986cc
mov dword [eax + 0xb78], ecx
mov edx, dword [eax + 0x3d28]
push edx
mov dword [eax + 0x3d2c], esi
mov dword [eax + 0x3cf8], ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
mov ecx, dword [0x52fe2c]
push edx
call fcn.0040aa50
test al, al
je 0x498726
mov dword [ebx + 0xb78], edi
cmp dword [ebx + 0x4954], edi
jne 0x498726
push 1
push edi
push edi
mov ecx, ebx
call fcn.00496a60
mov dword [ebp - 0x3c], edi
jmp 0x4986a0