Function at 0x41299f
Capabilities:
Persist via path registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdf7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov dword [ebp - 0x20], ecx
push str.GSETUP::AddPath
lea ecx, [ebp - 0xfc]
call fcn.00404f76
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004054e3
mov byte [ebp - 4], 1
push str._SystemRoot__system32__SystemRoot___SystemRoot_System32Wbem_
lea ecx, [ebp - 0x78]
call fcn.004053d4
mov byte [ebp - 4], 2
push str.Path
lea ecx, [ebp - 0x39]
call fcn.004053d4
mov byte [ebp - 4], 3
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea ecx, [ebp - 0x66]
call fcn.004053d4
mov byte [ebp - 4], 4
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x39]
push eax
lea eax, [ebp - 0x66]
push eax
lea eax, [ebp - 0x85]
push eax
call fcn.0044e0b7
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
call fcn.00405662
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x85]
call fcn.004055b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x66]
call fcn.004055b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x39]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.004055b0
lea ecx, [ebp - 0xc4]
call fcn.0042583a
mov byte [ebp - 4], 6
push 0x4dbd9c
lea ecx, [ebp - 0x54]
call fcn.004053d4
mov byte [ebp - 4], 7
push 0x4dbd9c
lea ecx, [ebp - 0x6f]
call fcn.004053d4
mov byte [ebp - 4], 8
push 0
push 1
push 1
push 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6f]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00425c01
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6f]
call fcn.004055b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x54]
call fcn.004055b0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00408571
movsx eax, al
cmp eax, 0x3b
je 0x412b22
push 0x4dbd9c
lea ecx, [ebp - 0x42]
call fcn.004053d4
mov byte [ebp - 4], 9
lea eax, [ebp - 0x42]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406100
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x42]
call fcn.004055b0
and dword [ebp - 0x24], 0
and dword [ebp - 0x28], 0
and dword [ebp - 0x10], 0
jmp 0x412b37
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc4]
call fcn.0047e16a
cmp dword [ebp - 0x10], eax
jge 0x412bd0
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc4]
call fcn.004259cf
mov ecx, eax
call fcn.00408571
movsx eax, al
cmp eax, 0x5c
jne 0x412b98
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc4]
call fcn.004259cf
mov ecx, eax
call fcn.004085af
dec eax
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc4]
call fcn.004259cf
mov ecx, eax
call fcn.004087ee
mov ecx, dword [ebp + 8]
call fcn.00405b2a
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc4]
call fcn.004259cf
mov ecx, eax
call fcn.00405b2a
push eax
call fcn.004b6232
pop ecx
pop ecx
test eax, eax
jne 0x412bcb
mov dword [ebp - 0x28], 1
jmp 0x412bd0
jmp 0x412b30
cmp dword [ebp - 0x28], 0
jne 0x412c3c
mov ecx, dword [ebp + 8]
call fcn.00405b2a
push eax
push str.Adding_path__s_n
push dword [ebp - 0x20]
call fcn.0041a890
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00406100
push 0
lea ecx, [ebp - 0x1c]
call fcn.00408571
movsx eax, al
cmp eax, 0x3b
je 0x412c35
push 0x4dbd9c
lea ecx, [ebp - 0x4b]
call fcn.004053d4
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x4b]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406100
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4b]
call fcn.004055b0
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x412d04
push connect
lea ecx, [ebp - 0xe8]
call fcn.0044b749
mov byte [ebp - 4], 0xb
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea ecx, [ebp - 0x5d]
call fcn.004053d4
mov byte [ebp - 4], 0xc
push 0x2001f
lea eax, [ebp - 0x5d]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00456ef4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x5d]
call fcn.004055b0
lea ecx, [ebp - 0x1c]
call fcn.004085af
inc eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405b2a
push eax
push 2
push 0
push str.Path
lea ecx, [ebp - 0xe8]
call fcn.0047e16a
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x412cd6
lea ecx, [ebp - 0x1c]
call fcn.00405b2a
push eax
push str.Failed_to_set_path__s_n
push dword [ebp - 0x20]
call fcn.0041a890
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x1388
push 2
push str.Environment
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe8]
call fcn.0044b9ed
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.00425937
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4