Function at 0x417520
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x45c
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x56]
push edi
push eax
mov word [esp + 0x5c], di
call fcn.00405a30
add esp, 0xc
push 0x206
lea ecx, [esp + 0x25e]
push edi
push ecx
mov word [esp + 0x264], di
call fcn.00405a30
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
mov eax, 0x4280a0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x104
mov word [esp + 0x28], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4175b4
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x4175e0
push 0x4280a0
push edi
push 0x20000
call esi
test eax, eax
jne 0x4177e3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push edi
push 0x4235c0
push connect
call ebx
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x41764f
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push 0x42362c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417648
lea ecx, [esp + 0x28]
push ecx
push edi
push 0x20000
call esi
test eax, eax
je 0x417648
mov edx, dword [esp + 0x14]
push edx
call ebp
jmp 0x4177e3
mov eax, dword [esp + 0x14]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x258]
push ecx
push 0x104
call esi
push str.gbp.ini
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.0040117b
mov eax, dword [0x427e0a]
mov ecx, dword [0x427e06]
add esp, 0xc
push eax
push ecx
mov edx, 0x427e0e
lea ecx, [esp + 0x260]
call fcn.00415a10
add esp, 8
lea edx, [esp + 0x50]
push edx
push 0x104
mov dword [esp + 0x20], edi
call esi
mov eax, 0x4280c0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4176b7
sub eax, edx
sar eax, 1
jne 0x4176f7
push 0x423688
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.0040117b
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.secu]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, di
jne 0x4176e1
jmp 0x417724
push 0x4280c0
lea ecx, [esp + 0x54]
push 0x104
push ecx
call fcn.0040117b
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x4280c0]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, di
jne 0x417710
push str..exe
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0040117b
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.00415220
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4177e3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.00417400
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
push 0x4236c4
lea edx, [esp + 0x5c]
push edx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0x14]
push eax
push 3
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call ebx
test eax, eax
jne 0x4177da
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4177a3
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push 1
push edi
push str.TrayKey
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4177da
mov ecx, dword [esp + 0x14]
push ecx
call ebp
push esi
call fcn.00401dd8
add esp, 4
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040113c
add esp, 0x45c
ret